tailwind-styled-v4 5.0.18 → 5.0.21
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/{analyzeWorkspace-CopJNGmi.d.ts → analyzeWorkspace-B1_XRfdl.d.ts} +1 -0
- package/dist/{analyzeWorkspace-DpVPccjz.d.mts → analyzeWorkspace-hYfu4Hg3.d.mts} +1 -0
- package/dist/analyzer.d.mts +2 -2
- package/dist/analyzer.d.ts +2 -2
- package/dist/analyzer.js +5 -4
- package/dist/analyzer.js.map +1 -1
- package/dist/analyzer.mjs +5 -4
- package/dist/analyzer.mjs.map +1 -1
- package/dist/animate.js +3 -3
- package/dist/animate.js.map +1 -1
- package/dist/animate.mjs +3 -3
- package/dist/animate.mjs.map +1 -1
- package/dist/atomic.js +38 -2
- package/dist/atomic.js.map +1 -1
- package/dist/atomic.mjs +38 -2
- package/dist/atomic.mjs.map +1 -1
- package/dist/cli.js +43 -6
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +43 -6
- package/dist/cli.mjs.map +1 -1
- package/dist/compiler.d.mts +177 -2
- package/dist/compiler.d.ts +177 -2
- package/dist/compiler.js +172 -10
- package/dist/compiler.js.map +1 -1
- package/dist/compiler.mjs +159 -11
- package/dist/compiler.mjs.map +1 -1
- package/dist/engine.d.mts +3 -3
- package/dist/engine.d.ts +3 -3
- package/dist/engine.js +182 -14
- package/dist/engine.js.map +1 -1
- package/dist/engine.mjs +182 -14
- package/dist/engine.mjs.map +1 -1
- package/dist/index-BFqmBxl9.d.mts +102 -0
- package/dist/{index-DJv28Uzq.d.mts → index-DQI6O24n.d.mts} +1 -1
- package/dist/index-DwNErRJ_.d.ts +102 -0
- package/dist/{index-BDQw13kn.d.ts → index-UkYbyBkR.d.ts} +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +182 -14
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +182 -14
- package/dist/index.mjs.map +1 -1
- package/dist/next.js +193 -11
- package/dist/next.js.map +1 -1
- package/dist/next.mjs +193 -11
- package/dist/next.mjs.map +1 -1
- package/dist/plugin-api.d.mts +3 -101
- package/dist/plugin-api.d.ts +3 -101
- package/dist/plugin.d.mts +3 -5
- package/dist/plugin.d.ts +3 -5
- package/dist/plugin.js +0 -97
- package/dist/plugin.js.map +1 -1
- package/dist/plugin.mjs +1 -77
- package/dist/plugin.mjs.map +1 -1
- package/dist/shared.js +177 -10
- package/dist/shared.js.map +1 -1
- package/dist/shared.mjs +177 -10
- package/dist/shared.mjs.map +1 -1
- package/dist/turbopackLoader.js +179 -12
- package/dist/turbopackLoader.js.map +1 -1
- package/dist/turbopackLoader.mjs +179 -12
- package/dist/turbopackLoader.mjs.map +1 -1
- package/dist/tw.js +43 -6
- package/dist/tw.js.map +1 -1
- package/dist/tw.mjs +43 -6
- package/dist/tw.mjs.map +1 -1
- package/dist/vite.js +315 -147
- package/dist/vite.js.map +1 -1
- package/dist/vite.mjs +315 -147
- package/dist/vite.mjs.map +1 -1
- package/dist/webpackLoader.js +38 -2
- package/dist/webpackLoader.js.map +1 -1
- package/dist/webpackLoader.mjs +38 -2
- package/dist/webpackLoader.mjs.map +1 -1
- package/native/tailwind-styled-native.node +0 -0
- package/package.json +1 -1
package/dist/compiler.d.mts
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Native Bridge Wrapper Functions - Part of NativeBridge exports
|
|
3
|
+
*
|
|
4
|
+
* This file provides typed wrapper functions for all 63 Rust functions exposed via the native bridge.
|
|
5
|
+
* Each wrapper includes:
|
|
6
|
+
* - Comprehensive JSDoc documentation
|
|
7
|
+
* - Error handling with contextual messages
|
|
8
|
+
* - JSON parsing for functions that return JSON
|
|
9
|
+
* - Type safety through TypeScript generics
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
interface ResolverPoolStatsResult {
|
|
13
|
+
hits: number;
|
|
14
|
+
misses: number;
|
|
15
|
+
total: number;
|
|
16
|
+
hit_rate: number;
|
|
17
|
+
cached_resolvers: number;
|
|
18
|
+
}
|
|
19
|
+
|
|
1
20
|
/**
|
|
2
21
|
* tailwind-styled-v5 — Native Bridge Loader
|
|
3
22
|
*
|
|
@@ -270,6 +289,8 @@ interface NativeBridge {
|
|
|
270
289
|
rebuild_workspace_result?: (rootDir: string, extensions?: string[]) => string;
|
|
271
290
|
scan_file_native?: (filePath: string, fileContent: string) => string;
|
|
272
291
|
scan_files_batch_native?: (filesJson: string) => string;
|
|
292
|
+
generate_css?: (rule_json: string, minify?: boolean | null) => string;
|
|
293
|
+
generate_css_batch?: (rules_json: string, minify?: boolean | null) => string;
|
|
273
294
|
compile_class?: (input: string) => string;
|
|
274
295
|
compile_classes?: (inputs: string[]) => string;
|
|
275
296
|
compile_to_css?: (input: string, minify: boolean) => string;
|
|
@@ -366,6 +387,10 @@ interface NativeBridge {
|
|
|
366
387
|
clearCssGenCacheNapi?: () => void;
|
|
367
388
|
getResolverPoolStats?: () => string;
|
|
368
389
|
clearResolverPool?: () => string;
|
|
390
|
+
resolveColorCached?: (themeId: number, color: string, configJson: string) => string;
|
|
391
|
+
resolveSpacingCached?: (themeId: number, spacing: string, configJson: string) => string;
|
|
392
|
+
resolveFontSizeCached?: (themeId: number, size: string, configJson: string) => string;
|
|
393
|
+
resetResolverPoolStats?: () => void;
|
|
369
394
|
getCacheOptimizationHints?: () => string;
|
|
370
395
|
estimateStreamingBatchSize?: (targetMemoryMb: number) => string;
|
|
371
396
|
parseClass?: (input: string) => string;
|
|
@@ -400,12 +425,27 @@ interface NativeBridge {
|
|
|
400
425
|
recommendCachingStrategy?: (isSsr: boolean, memoryConstraintMb: number) => string;
|
|
401
426
|
benchmarkStreamingVsBuffered?: (classCount: number) => string;
|
|
402
427
|
getWeek6OptimizationStatus?: () => string;
|
|
428
|
+
getWeek6FeaturesStatus?: () => string;
|
|
429
|
+
getMemoryStatsNative?: () => string;
|
|
430
|
+
getMemoryRecommendationsNative?: () => string;
|
|
431
|
+
estimateOptimalCacheConfigNative?: (workloadType: string, expectedEntries: number) => string;
|
|
432
|
+
resetMemoryStats?: () => void;
|
|
403
433
|
scanCacheGet?: (filePath: string, contentHash: string) => string[] | null;
|
|
404
434
|
scanCachePut?: (filePath: string, contentHash: string, classes: string[], mtimeMs: number, size: number) => void;
|
|
405
435
|
scanCacheInvalidate?: (filePath: string) => void;
|
|
406
436
|
scanCacheStats?: () => {
|
|
407
437
|
size: number;
|
|
408
438
|
};
|
|
439
|
+
resolveColor?: (color: string) => string;
|
|
440
|
+
resolveSpacing?: (spacing: string) => string;
|
|
441
|
+
resolveFontSize?: (size: string) => string;
|
|
442
|
+
resolveBreakpoint?: (breakpoint: string) => string;
|
|
443
|
+
redisExpire?: (key: string, ttlSeconds: number) => string;
|
|
444
|
+
redisTtl?: (key: string) => string;
|
|
445
|
+
redisGetConfig?: () => string;
|
|
446
|
+
redisShutdown?: () => string;
|
|
447
|
+
redisSyncNodes?: () => string;
|
|
448
|
+
resetCacheStats?: () => void;
|
|
409
449
|
}
|
|
410
450
|
interface NativeTransformResult {
|
|
411
451
|
code: string;
|
|
@@ -503,6 +543,10 @@ declare function getCacheStats(): {
|
|
|
503
543
|
* ```
|
|
504
544
|
*/
|
|
505
545
|
declare function clearThemeCache(): void;
|
|
546
|
+
/**
|
|
547
|
+
* Reset cache statistics in the Rust compiler.
|
|
548
|
+
*/
|
|
549
|
+
declare function resetCacheStats(): void;
|
|
506
550
|
|
|
507
551
|
/**
|
|
508
552
|
* Compile Tailwind classes directly to CSS.
|
|
@@ -706,6 +750,22 @@ declare function compileToCssBatch(inputs: string[], minify?: boolean): string;
|
|
|
706
750
|
* ```
|
|
707
751
|
*/
|
|
708
752
|
declare function minifyCss(css: string): string;
|
|
753
|
+
/**
|
|
754
|
+
* Generate CSS from a single CSS rule representation
|
|
755
|
+
*
|
|
756
|
+
* @param ruleJson - JSON representation of CssRule
|
|
757
|
+
* @param minify - Whether to minify the CSS output
|
|
758
|
+
* @returns Generated CSS string
|
|
759
|
+
*/
|
|
760
|
+
declare function generateCss(ruleJson: string, minify?: boolean | null): string;
|
|
761
|
+
/**
|
|
762
|
+
* Generate CSS from multiple CSS rules in batch
|
|
763
|
+
*
|
|
764
|
+
* @param rulesJson - JSON array of CssRule objects
|
|
765
|
+
* @param minify - Whether to minify the CSS output
|
|
766
|
+
* @returns Combined CSS string
|
|
767
|
+
*/
|
|
768
|
+
declare function generateCssBatch(rulesJson: string, minify?: boolean | null): string;
|
|
709
769
|
/**
|
|
710
770
|
* Compile animation from from/to states
|
|
711
771
|
* Generates @keyframes and animation rule
|
|
@@ -1342,7 +1402,7 @@ interface CssPipelineResult {
|
|
|
1342
1402
|
sizeBytes: number;
|
|
1343
1403
|
optimized: boolean;
|
|
1344
1404
|
}
|
|
1345
|
-
declare function runCssPipeline(classes: string[], cssEntryContent?: string, root?: string, minify?: boolean): Promise<CssPipelineResult>;
|
|
1405
|
+
declare function runCssPipeline(classes: string[], cssEntryContent?: string, root?: string, minify?: boolean, minifier?: "lightning" | "fast"): Promise<CssPipelineResult>;
|
|
1346
1406
|
|
|
1347
1407
|
/**
|
|
1348
1408
|
* Parser Sub-entry Point
|
|
@@ -1357,6 +1417,7 @@ declare const parseClasses: (raw: string) => Array<{
|
|
|
1357
1417
|
raw: string;
|
|
1358
1418
|
type: string;
|
|
1359
1419
|
}>;
|
|
1420
|
+
declare const parseClass: (input: string) => Record<string, unknown>;
|
|
1360
1421
|
declare const extractAllClasses: (source: string) => string[];
|
|
1361
1422
|
declare const extractClassesFromSource: (source: string) => string;
|
|
1362
1423
|
declare const astExtractClasses: (source: string, _filename: string) => string[];
|
|
@@ -1451,6 +1512,74 @@ declare function classifyAndSortClassesNative(classes: string[]): ClassifyResult
|
|
|
1451
1512
|
* Merge CSS declarations from multiple chunks.
|
|
1452
1513
|
*/
|
|
1453
1514
|
declare function mergeCssDeclarationsNative(cssChunks: string[]): MergeResult;
|
|
1515
|
+
interface MemoryStats {
|
|
1516
|
+
status: string;
|
|
1517
|
+
memory: {
|
|
1518
|
+
allocated_bytes: number;
|
|
1519
|
+
freed_bytes: number;
|
|
1520
|
+
in_use_bytes: number;
|
|
1521
|
+
allocated_mb: number;
|
|
1522
|
+
freed_mb: number;
|
|
1523
|
+
in_use_mb: number;
|
|
1524
|
+
};
|
|
1525
|
+
system: {
|
|
1526
|
+
cache_entries: number;
|
|
1527
|
+
active_operations: number;
|
|
1528
|
+
};
|
|
1529
|
+
}
|
|
1530
|
+
interface MemoryRecommendations {
|
|
1531
|
+
status: string;
|
|
1532
|
+
current_memory_mb: number;
|
|
1533
|
+
recommendation: string;
|
|
1534
|
+
priority: string;
|
|
1535
|
+
suggestions: string[];
|
|
1536
|
+
}
|
|
1537
|
+
interface OptimalCacheConfigAnalysis {
|
|
1538
|
+
status: string;
|
|
1539
|
+
workload_type: string;
|
|
1540
|
+
expected_entries: number;
|
|
1541
|
+
recommended_backend: string;
|
|
1542
|
+
recommended_capacity: number;
|
|
1543
|
+
estimated_memory_mb: number;
|
|
1544
|
+
ttl_seconds: number;
|
|
1545
|
+
details: {
|
|
1546
|
+
backend_explanation: string;
|
|
1547
|
+
capacity_explanation: string;
|
|
1548
|
+
memory_estimate: string;
|
|
1549
|
+
};
|
|
1550
|
+
}
|
|
1551
|
+
interface Week6FeaturesStatus {
|
|
1552
|
+
status: string;
|
|
1553
|
+
week: number;
|
|
1554
|
+
features: Record<string, {
|
|
1555
|
+
implemented: boolean;
|
|
1556
|
+
status: string;
|
|
1557
|
+
capacity?: string;
|
|
1558
|
+
hit_rate_optimization?: boolean;
|
|
1559
|
+
metrics?: string[];
|
|
1560
|
+
}>;
|
|
1561
|
+
optimization_hints: Record<string, string>;
|
|
1562
|
+
}
|
|
1563
|
+
/**
|
|
1564
|
+
* Get Week 6 features status.
|
|
1565
|
+
*/
|
|
1566
|
+
declare function getWeek6FeaturesStatus(): Week6FeaturesStatus;
|
|
1567
|
+
/**
|
|
1568
|
+
* Get current memory statistics from native Rust engine.
|
|
1569
|
+
*/
|
|
1570
|
+
declare function getMemoryStatsNative(): MemoryStats;
|
|
1571
|
+
/**
|
|
1572
|
+
* Get memory recommendations based on current usage.
|
|
1573
|
+
*/
|
|
1574
|
+
declare function getMemoryRecommendationsNative(): MemoryRecommendations;
|
|
1575
|
+
/**
|
|
1576
|
+
* Estimate optimal cache config based on workload and entries count.
|
|
1577
|
+
*/
|
|
1578
|
+
declare function estimateOptimalCacheConfigNative(workloadType: string, expectedEntries: number): OptimalCacheConfigAnalysis;
|
|
1579
|
+
/**
|
|
1580
|
+
* Reset memory statistics tracking counters.
|
|
1581
|
+
*/
|
|
1582
|
+
declare function resetMemoryStats(): void;
|
|
1454
1583
|
|
|
1455
1584
|
/**
|
|
1456
1585
|
* themeResolutionNative.ts
|
|
@@ -1646,6 +1775,7 @@ declare function generateSubComponentTypes(root: string, outputPath?: string): s
|
|
|
1646
1775
|
* Phase 5.1: Cache Management - Advanced caching strategies and optimization
|
|
1647
1776
|
* Exposes 9 cache-related Rust functions for improved performance tuning
|
|
1648
1777
|
*/
|
|
1778
|
+
|
|
1649
1779
|
/**
|
|
1650
1780
|
* Cache optimization hints and recommendations
|
|
1651
1781
|
*/
|
|
@@ -1836,6 +1966,51 @@ declare function cacheWrite(cachePath: string, entries: Array<{
|
|
|
1836
1966
|
* ```
|
|
1837
1967
|
*/
|
|
1838
1968
|
declare function cachePriority(mtimeMs: number, sizeBytes: number, hitCount: number): number;
|
|
1969
|
+
/**
|
|
1970
|
+
* Get theme resolver pool statistics.
|
|
1971
|
+
*
|
|
1972
|
+
* @returns Resolver pool statistics (hits, misses, etc.)
|
|
1973
|
+
*/
|
|
1974
|
+
declare function getResolverPoolStats(): ResolverPoolStatsResult;
|
|
1975
|
+
/**
|
|
1976
|
+
* Clear and reset the theme resolver pool.
|
|
1977
|
+
*
|
|
1978
|
+
* @returns Status of the operation
|
|
1979
|
+
*/
|
|
1980
|
+
declare function clearResolverPool(): {
|
|
1981
|
+
status: string;
|
|
1982
|
+
};
|
|
1983
|
+
/**
|
|
1984
|
+
* Resolve a color value using the resolver pool (cached per themeId)
|
|
1985
|
+
*
|
|
1986
|
+
* @param themeId - Unique theme identifier
|
|
1987
|
+
* @param color - Color name or path
|
|
1988
|
+
* @param configJson - Theme configuration as JSON string
|
|
1989
|
+
* @returns Resolved color value
|
|
1990
|
+
*/
|
|
1991
|
+
declare function resolveColorCached(themeId: number, color: string, configJson: string): string;
|
|
1992
|
+
/**
|
|
1993
|
+
* Resolve a spacing value using the resolver pool (cached per themeId)
|
|
1994
|
+
*
|
|
1995
|
+
* @param themeId - Unique theme identifier
|
|
1996
|
+
* @param spacing - Spacing key or path
|
|
1997
|
+
* @param configJson - Theme configuration as JSON string
|
|
1998
|
+
* @returns Resolved spacing value
|
|
1999
|
+
*/
|
|
2000
|
+
declare function resolveSpacingCached(themeId: number, spacing: string, configJson: string): string;
|
|
2001
|
+
/**
|
|
2002
|
+
* Resolve a font size value using the resolver pool (cached per themeId)
|
|
2003
|
+
*
|
|
2004
|
+
* @param themeId - Unique theme identifier
|
|
2005
|
+
* @param size - Font size key or path
|
|
2006
|
+
* @param configJson - Theme configuration as JSON string
|
|
2007
|
+
* @returns Resolved font size value
|
|
2008
|
+
*/
|
|
2009
|
+
declare function resolveFontSizeCached(themeId: number, size: string, configJson: string): string;
|
|
2010
|
+
/**
|
|
2011
|
+
* Reset resolver pool statistics while keeping cached resolvers.
|
|
2012
|
+
*/
|
|
2013
|
+
declare function resetResolverPoolStats(): void;
|
|
1839
2014
|
|
|
1840
2015
|
/**
|
|
1841
2016
|
* redisNative.ts
|
|
@@ -2819,4 +2994,4 @@ declare const extractTwStateConfigs: (source: string, filename: string) => TwSta
|
|
|
2819
2994
|
declare const generateStaticStateCss: (entries: TwStateConfigEntry[], _themeConfig?: Record<string, unknown>) => GeneratedStateRule[];
|
|
2820
2995
|
declare const extractAndGenerateStateCss: (source: string, filename: string) => GeneratedStateRule[];
|
|
2821
2996
|
|
|
2822
|
-
export { type BatchExtractResult, BucketEngine, type CacheOptimizationHints, type CacheStatistics, type ClassExtractResult, type ClassUsageItem, type ClassifyResult, type CompiledAnimation, type CompiledCssRule, type CompiledTheme, type ComponentMetadata, type ConflictGroupInfo, type ContainerConfig, type CssCompileResult, type DeadCodeResult, type FileChangeEvent, type FileDiff, type FileFingerprint, type GeneratedStateCss, type GeneratedStateRule, type HoistResult, type IncrementalDiffResult, IncrementalEngine, type KeyExpiration, type LoaderOutput, type MergeResult, type NativeBridge, type NativeRscResult, type NativeTransformResult, type OptimalCacheConfig, type PoolInfo, type PrefilterFileResult, type ProcessedCssResult, type ProcessedFileChange, type PruneResult, type PubSubMessage, type RebuildWorkspaceResult, type RedisCacheConfig, type RedisClusterNode, type RedisClusterStatus, type RedisPoolStats, type RegistrySnapshot, type ResolvedClassName, type ResolvedVariantConfig, type SafelistCheckResult, type ScanFileResult, type ScanWorkspaceResult, type StateCssConfig, type StateInjectionResult, type StaticStateCssInput, type ThemeCascadeResult, type ThemeValidationResult, type TwMergeOptions, type TwStateConfigEntry, type VariantTableResult, type WatchEvent, type WatchHandle, type WatchStats, adaptNativeResult, analyzeClassUsageNative, analyzeClasses, analyzeClassesNative, analyzeFile, analyzeRscNative, analyzeVariantUsage, astExtractClasses, atomicRegistrySize, batchExtractClasses, batchExtractClassesNative, bucketSort, buildStyleTag, cachePriority, cacheRead, cacheWrite, checkAgainstSafelist, checkAgainstSafelistNative, classifyAndSortClassesNative, classifyNode, clearAllCaches, clearAtomicRegistry, clearCompileCache, clearCssGenCache, clearParseCache, clearResolveCache, clearThemeCache, collectFiles, compileAnimation, compileClass, compileClasses, compileCssFromClasses, compileCssLightning, compileCssNative2, compileKeyframes, compileTheme, compileToCss, compileToCssBatch, compileVariantTableNative, computeIncrementalDiff, createFingerprint, detectConflicts, detectDeadCode, diffClassLists, eliminateDeadCss, eliminateDeadCssNative, emitPluginHook, estimateOptimalCacheConfig, extractAllClasses, extractAndGenerateStateCss, extractAndGenerateStateCssNative, extractClassesFromSource, extractClassesFromSourceNative, extractComponentUsage, extractContainerCssFromSource, extractTwContainerConfigs, extractTwStateConfigs, extractTwStateConfigsNative, fileToRoute, findDeadVariants, generateAtomicCss, generateCssForClasses, generateCssNative, generateSafelist, generateStaticStateCss, generateStaticStateCssNative, generateSubComponentTypes, getAllRoutes, getBucketEngine, getCacheOptimizationHints, getCacheStatistics, getCacheStats, getCompilationMetrics, getCompilerDiagnostics, getContentPaths, getIncrementalEngine, getNativeBridge, getPluginHooks, getRouteClasses, getWatchStats, hasTwUsage, hashContent, hoistComponentsNative, idRegistryActiveCount, idRegistryCreate, idRegistryDestroy, idRegistryExport, idRegistryGenerate, idRegistryImport, idRegistryLookup, idRegistryNext, idRegistryReset, idRegistrySnapshot, injectClientDirective, injectServerOnlyComment, injectStateHash, isAlreadyTransformed, isWatchRunning, layoutClassesToCss, loadSafelist, loadTailwindConfig, mergeClassesStatic, mergeCssDeclarationsNative, minifyCss, normalizeAndDedupClasses, normalizeClasses, optimizeCssNative, parseAtomicClass, parseClasses, pollWatchEvents, processFileChange, processTailwindCssLightning, propertyIdToString, pruneStaleCacheEntries, rebuildWorkspaceResult, redisCacheClear, redisCacheHitRate, redisCacheKeyCount, redisCacheSize, redisCacheSync, redisClusterStatus, redisDelete, redisDiagnose, redisDisableCacheWarming, redisDisableCluster, redisDisablePersistence, redisEnableCacheWarming, redisEnableCluster, redisEnablePersistence, redisExists, redisExpirationGet, redisExpirationSet, redisFlushAll, redisFlushDb, redisGet, redisGetEvictionPolicy, redisInfo, redisMemoryStats, redisMget, redisMonitor, redisMset, redisOptimizeMemory, redisPing, redisPoolConnect, redisPoolReconnect, redisPoolStats, redisPublish, redisReplicate, redisReplicationStatus, redisSet, redisSetEvictionPolicy, redisSnapshot, redisSubscribe, registerFileClasses, registerGlobalClasses, registerPluginHook, registerPropertyName, registerValueName, resetBucketEngine, resetCompilationMetrics, resetIncrementalEngine, resetNativeBridgeCache, resolveCascade, resolveClassNames, resolveConflictGroup, resolveSimpleVariants, resolveThemeValue, resolveVariants, reverseLookupProperty, reverseLookupValue, runCssPipeline, runElimination, runLoaderTransform, scanCacheOptimizations, scanFile, scanFileNative, scanFilesBatchNative, scanProjectUsage, scanWorkspace, shouldProcess, shouldSkipFile, startWatch, stopWatch, toAtomicClasses, transformSource, twMerge, twMergeMany, twMergeManyWithSeparator, twMergeRaw, twMergeWithSeparator, unregisterPluginHook, validateCssOutput, validateThemeConfig, valueIdToString, walkAndPrefilterSourceFiles, watchAddPattern, watchClearAll, watchEventTypeToString, watchGetActiveHandles, watchPause, watchRemovePattern, watchResume };
|
|
2997
|
+
export { type BatchExtractResult, BucketEngine, type CacheOptimizationHints, type CacheStatistics, type ClassExtractResult, type ClassUsageItem, type ClassifyResult, type CompiledAnimation, type CompiledCssRule, type CompiledTheme, type ComponentMetadata, type ConflictGroupInfo, type ContainerConfig, type CssCompileResult, type DeadCodeResult, type FileChangeEvent, type FileDiff, type FileFingerprint, type GeneratedStateCss, type GeneratedStateRule, type HoistResult, type IncrementalDiffResult, IncrementalEngine, type KeyExpiration, type LoaderOutput, type MemoryRecommendations, type MemoryStats, type MergeResult, type NativeBridge, type NativeRscResult, type NativeTransformResult, type OptimalCacheConfig, type OptimalCacheConfigAnalysis, type PoolInfo, type PrefilterFileResult, type ProcessedCssResult, type ProcessedFileChange, type PruneResult, type PubSubMessage, type RebuildWorkspaceResult, type RedisCacheConfig, type RedisClusterNode, type RedisClusterStatus, type RedisPoolStats, type RegistrySnapshot, type ResolvedClassName, type ResolvedVariantConfig, type ResolverPoolStatsResult, type SafelistCheckResult, type ScanFileResult, type ScanWorkspaceResult, type StateCssConfig, type StateInjectionResult, type StaticStateCssInput, type ThemeCascadeResult, type ThemeValidationResult, type TwMergeOptions, type TwStateConfigEntry, type VariantTableResult, type WatchEvent, type WatchHandle, type WatchStats, type Week6FeaturesStatus, adaptNativeResult, analyzeClassUsageNative, analyzeClasses, analyzeClassesNative, analyzeFile, analyzeRscNative, analyzeVariantUsage, astExtractClasses, atomicRegistrySize, batchExtractClasses, batchExtractClassesNative, bucketSort, buildStyleTag, cachePriority, cacheRead, cacheWrite, checkAgainstSafelist, checkAgainstSafelistNative, classifyAndSortClassesNative, classifyNode, clearAllCaches, clearAtomicRegistry, clearCompileCache, clearCssGenCache, clearParseCache, clearResolveCache, clearResolverPool, clearThemeCache, collectFiles, compileAnimation, compileClass, compileClasses, compileCssFromClasses, compileCssLightning, compileCssNative2, compileKeyframes, compileTheme, compileToCss, compileToCssBatch, compileVariantTableNative, computeIncrementalDiff, createFingerprint, detectConflicts, detectDeadCode, diffClassLists, eliminateDeadCss, eliminateDeadCssNative, emitPluginHook, estimateOptimalCacheConfig, estimateOptimalCacheConfigNative, extractAllClasses, extractAndGenerateStateCss, extractAndGenerateStateCssNative, extractClassesFromSource, extractClassesFromSourceNative, extractComponentUsage, extractContainerCssFromSource, extractTwContainerConfigs, extractTwStateConfigs, extractTwStateConfigsNative, fileToRoute, findDeadVariants, generateAtomicCss, generateCss, generateCssBatch, generateCssForClasses, generateCssNative, generateSafelist, generateStaticStateCss, generateStaticStateCssNative, generateSubComponentTypes, getAllRoutes, getBucketEngine, getCacheOptimizationHints, getCacheStatistics, getCacheStats, getCompilationMetrics, getCompilerDiagnostics, getContentPaths, getIncrementalEngine, getMemoryRecommendationsNative, getMemoryStatsNative, getNativeBridge, getPluginHooks, getResolverPoolStats, getRouteClasses, getWatchStats, getWeek6FeaturesStatus, hasTwUsage, hashContent, hoistComponentsNative, idRegistryActiveCount, idRegistryCreate, idRegistryDestroy, idRegistryExport, idRegistryGenerate, idRegistryImport, idRegistryLookup, idRegistryNext, idRegistryReset, idRegistrySnapshot, injectClientDirective, injectServerOnlyComment, injectStateHash, isAlreadyTransformed, isWatchRunning, layoutClassesToCss, loadSafelist, loadTailwindConfig, mergeClassesStatic, mergeCssDeclarationsNative, minifyCss, normalizeAndDedupClasses, normalizeClasses, optimizeCssNative, parseAtomicClass, parseClass, parseClasses, pollWatchEvents, processFileChange, processTailwindCssLightning, propertyIdToString, pruneStaleCacheEntries, rebuildWorkspaceResult, redisCacheClear, redisCacheHitRate, redisCacheKeyCount, redisCacheSize, redisCacheSync, redisClusterStatus, redisDelete, redisDiagnose, redisDisableCacheWarming, redisDisableCluster, redisDisablePersistence, redisEnableCacheWarming, redisEnableCluster, redisEnablePersistence, redisExists, redisExpirationGet, redisExpirationSet, redisFlushAll, redisFlushDb, redisGet, redisGetEvictionPolicy, redisInfo, redisMemoryStats, redisMget, redisMonitor, redisMset, redisOptimizeMemory, redisPing, redisPoolConnect, redisPoolReconnect, redisPoolStats, redisPublish, redisReplicate, redisReplicationStatus, redisSet, redisSetEvictionPolicy, redisSnapshot, redisSubscribe, registerFileClasses, registerGlobalClasses, registerPluginHook, registerPropertyName, registerValueName, resetBucketEngine, resetCacheStats, resetCompilationMetrics, resetIncrementalEngine, resetMemoryStats, resetNativeBridgeCache, resetResolverPoolStats, resolveCascade, resolveClassNames, resolveColorCached, resolveConflictGroup, resolveFontSizeCached, resolveSimpleVariants, resolveSpacingCached, resolveThemeValue, resolveVariants, reverseLookupProperty, reverseLookupValue, runCssPipeline, runElimination, runLoaderTransform, scanCacheOptimizations, scanFile, scanFileNative, scanFilesBatchNative, scanProjectUsage, scanWorkspace, shouldProcess, shouldSkipFile, startWatch, stopWatch, toAtomicClasses, transformSource, twMerge, twMergeMany, twMergeManyWithSeparator, twMergeRaw, twMergeWithSeparator, unregisterPluginHook, validateCssOutput, validateThemeConfig, valueIdToString, walkAndPrefilterSourceFiles, watchAddPattern, watchClearAll, watchEventTypeToString, watchGetActiveHandles, watchPause, watchRemovePattern, watchResume };
|
package/dist/compiler.d.ts
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Native Bridge Wrapper Functions - Part of NativeBridge exports
|
|
3
|
+
*
|
|
4
|
+
* This file provides typed wrapper functions for all 63 Rust functions exposed via the native bridge.
|
|
5
|
+
* Each wrapper includes:
|
|
6
|
+
* - Comprehensive JSDoc documentation
|
|
7
|
+
* - Error handling with contextual messages
|
|
8
|
+
* - JSON parsing for functions that return JSON
|
|
9
|
+
* - Type safety through TypeScript generics
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
interface ResolverPoolStatsResult {
|
|
13
|
+
hits: number;
|
|
14
|
+
misses: number;
|
|
15
|
+
total: number;
|
|
16
|
+
hit_rate: number;
|
|
17
|
+
cached_resolvers: number;
|
|
18
|
+
}
|
|
19
|
+
|
|
1
20
|
/**
|
|
2
21
|
* tailwind-styled-v5 — Native Bridge Loader
|
|
3
22
|
*
|
|
@@ -270,6 +289,8 @@ interface NativeBridge {
|
|
|
270
289
|
rebuild_workspace_result?: (rootDir: string, extensions?: string[]) => string;
|
|
271
290
|
scan_file_native?: (filePath: string, fileContent: string) => string;
|
|
272
291
|
scan_files_batch_native?: (filesJson: string) => string;
|
|
292
|
+
generate_css?: (rule_json: string, minify?: boolean | null) => string;
|
|
293
|
+
generate_css_batch?: (rules_json: string, minify?: boolean | null) => string;
|
|
273
294
|
compile_class?: (input: string) => string;
|
|
274
295
|
compile_classes?: (inputs: string[]) => string;
|
|
275
296
|
compile_to_css?: (input: string, minify: boolean) => string;
|
|
@@ -366,6 +387,10 @@ interface NativeBridge {
|
|
|
366
387
|
clearCssGenCacheNapi?: () => void;
|
|
367
388
|
getResolverPoolStats?: () => string;
|
|
368
389
|
clearResolverPool?: () => string;
|
|
390
|
+
resolveColorCached?: (themeId: number, color: string, configJson: string) => string;
|
|
391
|
+
resolveSpacingCached?: (themeId: number, spacing: string, configJson: string) => string;
|
|
392
|
+
resolveFontSizeCached?: (themeId: number, size: string, configJson: string) => string;
|
|
393
|
+
resetResolverPoolStats?: () => void;
|
|
369
394
|
getCacheOptimizationHints?: () => string;
|
|
370
395
|
estimateStreamingBatchSize?: (targetMemoryMb: number) => string;
|
|
371
396
|
parseClass?: (input: string) => string;
|
|
@@ -400,12 +425,27 @@ interface NativeBridge {
|
|
|
400
425
|
recommendCachingStrategy?: (isSsr: boolean, memoryConstraintMb: number) => string;
|
|
401
426
|
benchmarkStreamingVsBuffered?: (classCount: number) => string;
|
|
402
427
|
getWeek6OptimizationStatus?: () => string;
|
|
428
|
+
getWeek6FeaturesStatus?: () => string;
|
|
429
|
+
getMemoryStatsNative?: () => string;
|
|
430
|
+
getMemoryRecommendationsNative?: () => string;
|
|
431
|
+
estimateOptimalCacheConfigNative?: (workloadType: string, expectedEntries: number) => string;
|
|
432
|
+
resetMemoryStats?: () => void;
|
|
403
433
|
scanCacheGet?: (filePath: string, contentHash: string) => string[] | null;
|
|
404
434
|
scanCachePut?: (filePath: string, contentHash: string, classes: string[], mtimeMs: number, size: number) => void;
|
|
405
435
|
scanCacheInvalidate?: (filePath: string) => void;
|
|
406
436
|
scanCacheStats?: () => {
|
|
407
437
|
size: number;
|
|
408
438
|
};
|
|
439
|
+
resolveColor?: (color: string) => string;
|
|
440
|
+
resolveSpacing?: (spacing: string) => string;
|
|
441
|
+
resolveFontSize?: (size: string) => string;
|
|
442
|
+
resolveBreakpoint?: (breakpoint: string) => string;
|
|
443
|
+
redisExpire?: (key: string, ttlSeconds: number) => string;
|
|
444
|
+
redisTtl?: (key: string) => string;
|
|
445
|
+
redisGetConfig?: () => string;
|
|
446
|
+
redisShutdown?: () => string;
|
|
447
|
+
redisSyncNodes?: () => string;
|
|
448
|
+
resetCacheStats?: () => void;
|
|
409
449
|
}
|
|
410
450
|
interface NativeTransformResult {
|
|
411
451
|
code: string;
|
|
@@ -503,6 +543,10 @@ declare function getCacheStats(): {
|
|
|
503
543
|
* ```
|
|
504
544
|
*/
|
|
505
545
|
declare function clearThemeCache(): void;
|
|
546
|
+
/**
|
|
547
|
+
* Reset cache statistics in the Rust compiler.
|
|
548
|
+
*/
|
|
549
|
+
declare function resetCacheStats(): void;
|
|
506
550
|
|
|
507
551
|
/**
|
|
508
552
|
* Compile Tailwind classes directly to CSS.
|
|
@@ -706,6 +750,22 @@ declare function compileToCssBatch(inputs: string[], minify?: boolean): string;
|
|
|
706
750
|
* ```
|
|
707
751
|
*/
|
|
708
752
|
declare function minifyCss(css: string): string;
|
|
753
|
+
/**
|
|
754
|
+
* Generate CSS from a single CSS rule representation
|
|
755
|
+
*
|
|
756
|
+
* @param ruleJson - JSON representation of CssRule
|
|
757
|
+
* @param minify - Whether to minify the CSS output
|
|
758
|
+
* @returns Generated CSS string
|
|
759
|
+
*/
|
|
760
|
+
declare function generateCss(ruleJson: string, minify?: boolean | null): string;
|
|
761
|
+
/**
|
|
762
|
+
* Generate CSS from multiple CSS rules in batch
|
|
763
|
+
*
|
|
764
|
+
* @param rulesJson - JSON array of CssRule objects
|
|
765
|
+
* @param minify - Whether to minify the CSS output
|
|
766
|
+
* @returns Combined CSS string
|
|
767
|
+
*/
|
|
768
|
+
declare function generateCssBatch(rulesJson: string, minify?: boolean | null): string;
|
|
709
769
|
/**
|
|
710
770
|
* Compile animation from from/to states
|
|
711
771
|
* Generates @keyframes and animation rule
|
|
@@ -1342,7 +1402,7 @@ interface CssPipelineResult {
|
|
|
1342
1402
|
sizeBytes: number;
|
|
1343
1403
|
optimized: boolean;
|
|
1344
1404
|
}
|
|
1345
|
-
declare function runCssPipeline(classes: string[], cssEntryContent?: string, root?: string, minify?: boolean): Promise<CssPipelineResult>;
|
|
1405
|
+
declare function runCssPipeline(classes: string[], cssEntryContent?: string, root?: string, minify?: boolean, minifier?: "lightning" | "fast"): Promise<CssPipelineResult>;
|
|
1346
1406
|
|
|
1347
1407
|
/**
|
|
1348
1408
|
* Parser Sub-entry Point
|
|
@@ -1357,6 +1417,7 @@ declare const parseClasses: (raw: string) => Array<{
|
|
|
1357
1417
|
raw: string;
|
|
1358
1418
|
type: string;
|
|
1359
1419
|
}>;
|
|
1420
|
+
declare const parseClass: (input: string) => Record<string, unknown>;
|
|
1360
1421
|
declare const extractAllClasses: (source: string) => string[];
|
|
1361
1422
|
declare const extractClassesFromSource: (source: string) => string;
|
|
1362
1423
|
declare const astExtractClasses: (source: string, _filename: string) => string[];
|
|
@@ -1451,6 +1512,74 @@ declare function classifyAndSortClassesNative(classes: string[]): ClassifyResult
|
|
|
1451
1512
|
* Merge CSS declarations from multiple chunks.
|
|
1452
1513
|
*/
|
|
1453
1514
|
declare function mergeCssDeclarationsNative(cssChunks: string[]): MergeResult;
|
|
1515
|
+
interface MemoryStats {
|
|
1516
|
+
status: string;
|
|
1517
|
+
memory: {
|
|
1518
|
+
allocated_bytes: number;
|
|
1519
|
+
freed_bytes: number;
|
|
1520
|
+
in_use_bytes: number;
|
|
1521
|
+
allocated_mb: number;
|
|
1522
|
+
freed_mb: number;
|
|
1523
|
+
in_use_mb: number;
|
|
1524
|
+
};
|
|
1525
|
+
system: {
|
|
1526
|
+
cache_entries: number;
|
|
1527
|
+
active_operations: number;
|
|
1528
|
+
};
|
|
1529
|
+
}
|
|
1530
|
+
interface MemoryRecommendations {
|
|
1531
|
+
status: string;
|
|
1532
|
+
current_memory_mb: number;
|
|
1533
|
+
recommendation: string;
|
|
1534
|
+
priority: string;
|
|
1535
|
+
suggestions: string[];
|
|
1536
|
+
}
|
|
1537
|
+
interface OptimalCacheConfigAnalysis {
|
|
1538
|
+
status: string;
|
|
1539
|
+
workload_type: string;
|
|
1540
|
+
expected_entries: number;
|
|
1541
|
+
recommended_backend: string;
|
|
1542
|
+
recommended_capacity: number;
|
|
1543
|
+
estimated_memory_mb: number;
|
|
1544
|
+
ttl_seconds: number;
|
|
1545
|
+
details: {
|
|
1546
|
+
backend_explanation: string;
|
|
1547
|
+
capacity_explanation: string;
|
|
1548
|
+
memory_estimate: string;
|
|
1549
|
+
};
|
|
1550
|
+
}
|
|
1551
|
+
interface Week6FeaturesStatus {
|
|
1552
|
+
status: string;
|
|
1553
|
+
week: number;
|
|
1554
|
+
features: Record<string, {
|
|
1555
|
+
implemented: boolean;
|
|
1556
|
+
status: string;
|
|
1557
|
+
capacity?: string;
|
|
1558
|
+
hit_rate_optimization?: boolean;
|
|
1559
|
+
metrics?: string[];
|
|
1560
|
+
}>;
|
|
1561
|
+
optimization_hints: Record<string, string>;
|
|
1562
|
+
}
|
|
1563
|
+
/**
|
|
1564
|
+
* Get Week 6 features status.
|
|
1565
|
+
*/
|
|
1566
|
+
declare function getWeek6FeaturesStatus(): Week6FeaturesStatus;
|
|
1567
|
+
/**
|
|
1568
|
+
* Get current memory statistics from native Rust engine.
|
|
1569
|
+
*/
|
|
1570
|
+
declare function getMemoryStatsNative(): MemoryStats;
|
|
1571
|
+
/**
|
|
1572
|
+
* Get memory recommendations based on current usage.
|
|
1573
|
+
*/
|
|
1574
|
+
declare function getMemoryRecommendationsNative(): MemoryRecommendations;
|
|
1575
|
+
/**
|
|
1576
|
+
* Estimate optimal cache config based on workload and entries count.
|
|
1577
|
+
*/
|
|
1578
|
+
declare function estimateOptimalCacheConfigNative(workloadType: string, expectedEntries: number): OptimalCacheConfigAnalysis;
|
|
1579
|
+
/**
|
|
1580
|
+
* Reset memory statistics tracking counters.
|
|
1581
|
+
*/
|
|
1582
|
+
declare function resetMemoryStats(): void;
|
|
1454
1583
|
|
|
1455
1584
|
/**
|
|
1456
1585
|
* themeResolutionNative.ts
|
|
@@ -1646,6 +1775,7 @@ declare function generateSubComponentTypes(root: string, outputPath?: string): s
|
|
|
1646
1775
|
* Phase 5.1: Cache Management - Advanced caching strategies and optimization
|
|
1647
1776
|
* Exposes 9 cache-related Rust functions for improved performance tuning
|
|
1648
1777
|
*/
|
|
1778
|
+
|
|
1649
1779
|
/**
|
|
1650
1780
|
* Cache optimization hints and recommendations
|
|
1651
1781
|
*/
|
|
@@ -1836,6 +1966,51 @@ declare function cacheWrite(cachePath: string, entries: Array<{
|
|
|
1836
1966
|
* ```
|
|
1837
1967
|
*/
|
|
1838
1968
|
declare function cachePriority(mtimeMs: number, sizeBytes: number, hitCount: number): number;
|
|
1969
|
+
/**
|
|
1970
|
+
* Get theme resolver pool statistics.
|
|
1971
|
+
*
|
|
1972
|
+
* @returns Resolver pool statistics (hits, misses, etc.)
|
|
1973
|
+
*/
|
|
1974
|
+
declare function getResolverPoolStats(): ResolverPoolStatsResult;
|
|
1975
|
+
/**
|
|
1976
|
+
* Clear and reset the theme resolver pool.
|
|
1977
|
+
*
|
|
1978
|
+
* @returns Status of the operation
|
|
1979
|
+
*/
|
|
1980
|
+
declare function clearResolverPool(): {
|
|
1981
|
+
status: string;
|
|
1982
|
+
};
|
|
1983
|
+
/**
|
|
1984
|
+
* Resolve a color value using the resolver pool (cached per themeId)
|
|
1985
|
+
*
|
|
1986
|
+
* @param themeId - Unique theme identifier
|
|
1987
|
+
* @param color - Color name or path
|
|
1988
|
+
* @param configJson - Theme configuration as JSON string
|
|
1989
|
+
* @returns Resolved color value
|
|
1990
|
+
*/
|
|
1991
|
+
declare function resolveColorCached(themeId: number, color: string, configJson: string): string;
|
|
1992
|
+
/**
|
|
1993
|
+
* Resolve a spacing value using the resolver pool (cached per themeId)
|
|
1994
|
+
*
|
|
1995
|
+
* @param themeId - Unique theme identifier
|
|
1996
|
+
* @param spacing - Spacing key or path
|
|
1997
|
+
* @param configJson - Theme configuration as JSON string
|
|
1998
|
+
* @returns Resolved spacing value
|
|
1999
|
+
*/
|
|
2000
|
+
declare function resolveSpacingCached(themeId: number, spacing: string, configJson: string): string;
|
|
2001
|
+
/**
|
|
2002
|
+
* Resolve a font size value using the resolver pool (cached per themeId)
|
|
2003
|
+
*
|
|
2004
|
+
* @param themeId - Unique theme identifier
|
|
2005
|
+
* @param size - Font size key or path
|
|
2006
|
+
* @param configJson - Theme configuration as JSON string
|
|
2007
|
+
* @returns Resolved font size value
|
|
2008
|
+
*/
|
|
2009
|
+
declare function resolveFontSizeCached(themeId: number, size: string, configJson: string): string;
|
|
2010
|
+
/**
|
|
2011
|
+
* Reset resolver pool statistics while keeping cached resolvers.
|
|
2012
|
+
*/
|
|
2013
|
+
declare function resetResolverPoolStats(): void;
|
|
1839
2014
|
|
|
1840
2015
|
/**
|
|
1841
2016
|
* redisNative.ts
|
|
@@ -2819,4 +2994,4 @@ declare const extractTwStateConfigs: (source: string, filename: string) => TwSta
|
|
|
2819
2994
|
declare const generateStaticStateCss: (entries: TwStateConfigEntry[], _themeConfig?: Record<string, unknown>) => GeneratedStateRule[];
|
|
2820
2995
|
declare const extractAndGenerateStateCss: (source: string, filename: string) => GeneratedStateRule[];
|
|
2821
2996
|
|
|
2822
|
-
export { type BatchExtractResult, BucketEngine, type CacheOptimizationHints, type CacheStatistics, type ClassExtractResult, type ClassUsageItem, type ClassifyResult, type CompiledAnimation, type CompiledCssRule, type CompiledTheme, type ComponentMetadata, type ConflictGroupInfo, type ContainerConfig, type CssCompileResult, type DeadCodeResult, type FileChangeEvent, type FileDiff, type FileFingerprint, type GeneratedStateCss, type GeneratedStateRule, type HoistResult, type IncrementalDiffResult, IncrementalEngine, type KeyExpiration, type LoaderOutput, type MergeResult, type NativeBridge, type NativeRscResult, type NativeTransformResult, type OptimalCacheConfig, type PoolInfo, type PrefilterFileResult, type ProcessedCssResult, type ProcessedFileChange, type PruneResult, type PubSubMessage, type RebuildWorkspaceResult, type RedisCacheConfig, type RedisClusterNode, type RedisClusterStatus, type RedisPoolStats, type RegistrySnapshot, type ResolvedClassName, type ResolvedVariantConfig, type SafelistCheckResult, type ScanFileResult, type ScanWorkspaceResult, type StateCssConfig, type StateInjectionResult, type StaticStateCssInput, type ThemeCascadeResult, type ThemeValidationResult, type TwMergeOptions, type TwStateConfigEntry, type VariantTableResult, type WatchEvent, type WatchHandle, type WatchStats, adaptNativeResult, analyzeClassUsageNative, analyzeClasses, analyzeClassesNative, analyzeFile, analyzeRscNative, analyzeVariantUsage, astExtractClasses, atomicRegistrySize, batchExtractClasses, batchExtractClassesNative, bucketSort, buildStyleTag, cachePriority, cacheRead, cacheWrite, checkAgainstSafelist, checkAgainstSafelistNative, classifyAndSortClassesNative, classifyNode, clearAllCaches, clearAtomicRegistry, clearCompileCache, clearCssGenCache, clearParseCache, clearResolveCache, clearThemeCache, collectFiles, compileAnimation, compileClass, compileClasses, compileCssFromClasses, compileCssLightning, compileCssNative2, compileKeyframes, compileTheme, compileToCss, compileToCssBatch, compileVariantTableNative, computeIncrementalDiff, createFingerprint, detectConflicts, detectDeadCode, diffClassLists, eliminateDeadCss, eliminateDeadCssNative, emitPluginHook, estimateOptimalCacheConfig, extractAllClasses, extractAndGenerateStateCss, extractAndGenerateStateCssNative, extractClassesFromSource, extractClassesFromSourceNative, extractComponentUsage, extractContainerCssFromSource, extractTwContainerConfigs, extractTwStateConfigs, extractTwStateConfigsNative, fileToRoute, findDeadVariants, generateAtomicCss, generateCssForClasses, generateCssNative, generateSafelist, generateStaticStateCss, generateStaticStateCssNative, generateSubComponentTypes, getAllRoutes, getBucketEngine, getCacheOptimizationHints, getCacheStatistics, getCacheStats, getCompilationMetrics, getCompilerDiagnostics, getContentPaths, getIncrementalEngine, getNativeBridge, getPluginHooks, getRouteClasses, getWatchStats, hasTwUsage, hashContent, hoistComponentsNative, idRegistryActiveCount, idRegistryCreate, idRegistryDestroy, idRegistryExport, idRegistryGenerate, idRegistryImport, idRegistryLookup, idRegistryNext, idRegistryReset, idRegistrySnapshot, injectClientDirective, injectServerOnlyComment, injectStateHash, isAlreadyTransformed, isWatchRunning, layoutClassesToCss, loadSafelist, loadTailwindConfig, mergeClassesStatic, mergeCssDeclarationsNative, minifyCss, normalizeAndDedupClasses, normalizeClasses, optimizeCssNative, parseAtomicClass, parseClasses, pollWatchEvents, processFileChange, processTailwindCssLightning, propertyIdToString, pruneStaleCacheEntries, rebuildWorkspaceResult, redisCacheClear, redisCacheHitRate, redisCacheKeyCount, redisCacheSize, redisCacheSync, redisClusterStatus, redisDelete, redisDiagnose, redisDisableCacheWarming, redisDisableCluster, redisDisablePersistence, redisEnableCacheWarming, redisEnableCluster, redisEnablePersistence, redisExists, redisExpirationGet, redisExpirationSet, redisFlushAll, redisFlushDb, redisGet, redisGetEvictionPolicy, redisInfo, redisMemoryStats, redisMget, redisMonitor, redisMset, redisOptimizeMemory, redisPing, redisPoolConnect, redisPoolReconnect, redisPoolStats, redisPublish, redisReplicate, redisReplicationStatus, redisSet, redisSetEvictionPolicy, redisSnapshot, redisSubscribe, registerFileClasses, registerGlobalClasses, registerPluginHook, registerPropertyName, registerValueName, resetBucketEngine, resetCompilationMetrics, resetIncrementalEngine, resetNativeBridgeCache, resolveCascade, resolveClassNames, resolveConflictGroup, resolveSimpleVariants, resolveThemeValue, resolveVariants, reverseLookupProperty, reverseLookupValue, runCssPipeline, runElimination, runLoaderTransform, scanCacheOptimizations, scanFile, scanFileNative, scanFilesBatchNative, scanProjectUsage, scanWorkspace, shouldProcess, shouldSkipFile, startWatch, stopWatch, toAtomicClasses, transformSource, twMerge, twMergeMany, twMergeManyWithSeparator, twMergeRaw, twMergeWithSeparator, unregisterPluginHook, validateCssOutput, validateThemeConfig, valueIdToString, walkAndPrefilterSourceFiles, watchAddPattern, watchClearAll, watchEventTypeToString, watchGetActiveHandles, watchPause, watchRemovePattern, watchResume };
|
|
2997
|
+
export { type BatchExtractResult, BucketEngine, type CacheOptimizationHints, type CacheStatistics, type ClassExtractResult, type ClassUsageItem, type ClassifyResult, type CompiledAnimation, type CompiledCssRule, type CompiledTheme, type ComponentMetadata, type ConflictGroupInfo, type ContainerConfig, type CssCompileResult, type DeadCodeResult, type FileChangeEvent, type FileDiff, type FileFingerprint, type GeneratedStateCss, type GeneratedStateRule, type HoistResult, type IncrementalDiffResult, IncrementalEngine, type KeyExpiration, type LoaderOutput, type MemoryRecommendations, type MemoryStats, type MergeResult, type NativeBridge, type NativeRscResult, type NativeTransformResult, type OptimalCacheConfig, type OptimalCacheConfigAnalysis, type PoolInfo, type PrefilterFileResult, type ProcessedCssResult, type ProcessedFileChange, type PruneResult, type PubSubMessage, type RebuildWorkspaceResult, type RedisCacheConfig, type RedisClusterNode, type RedisClusterStatus, type RedisPoolStats, type RegistrySnapshot, type ResolvedClassName, type ResolvedVariantConfig, type ResolverPoolStatsResult, type SafelistCheckResult, type ScanFileResult, type ScanWorkspaceResult, type StateCssConfig, type StateInjectionResult, type StaticStateCssInput, type ThemeCascadeResult, type ThemeValidationResult, type TwMergeOptions, type TwStateConfigEntry, type VariantTableResult, type WatchEvent, type WatchHandle, type WatchStats, type Week6FeaturesStatus, adaptNativeResult, analyzeClassUsageNative, analyzeClasses, analyzeClassesNative, analyzeFile, analyzeRscNative, analyzeVariantUsage, astExtractClasses, atomicRegistrySize, batchExtractClasses, batchExtractClassesNative, bucketSort, buildStyleTag, cachePriority, cacheRead, cacheWrite, checkAgainstSafelist, checkAgainstSafelistNative, classifyAndSortClassesNative, classifyNode, clearAllCaches, clearAtomicRegistry, clearCompileCache, clearCssGenCache, clearParseCache, clearResolveCache, clearResolverPool, clearThemeCache, collectFiles, compileAnimation, compileClass, compileClasses, compileCssFromClasses, compileCssLightning, compileCssNative2, compileKeyframes, compileTheme, compileToCss, compileToCssBatch, compileVariantTableNative, computeIncrementalDiff, createFingerprint, detectConflicts, detectDeadCode, diffClassLists, eliminateDeadCss, eliminateDeadCssNative, emitPluginHook, estimateOptimalCacheConfig, estimateOptimalCacheConfigNative, extractAllClasses, extractAndGenerateStateCss, extractAndGenerateStateCssNative, extractClassesFromSource, extractClassesFromSourceNative, extractComponentUsage, extractContainerCssFromSource, extractTwContainerConfigs, extractTwStateConfigs, extractTwStateConfigsNative, fileToRoute, findDeadVariants, generateAtomicCss, generateCss, generateCssBatch, generateCssForClasses, generateCssNative, generateSafelist, generateStaticStateCss, generateStaticStateCssNative, generateSubComponentTypes, getAllRoutes, getBucketEngine, getCacheOptimizationHints, getCacheStatistics, getCacheStats, getCompilationMetrics, getCompilerDiagnostics, getContentPaths, getIncrementalEngine, getMemoryRecommendationsNative, getMemoryStatsNative, getNativeBridge, getPluginHooks, getResolverPoolStats, getRouteClasses, getWatchStats, getWeek6FeaturesStatus, hasTwUsage, hashContent, hoistComponentsNative, idRegistryActiveCount, idRegistryCreate, idRegistryDestroy, idRegistryExport, idRegistryGenerate, idRegistryImport, idRegistryLookup, idRegistryNext, idRegistryReset, idRegistrySnapshot, injectClientDirective, injectServerOnlyComment, injectStateHash, isAlreadyTransformed, isWatchRunning, layoutClassesToCss, loadSafelist, loadTailwindConfig, mergeClassesStatic, mergeCssDeclarationsNative, minifyCss, normalizeAndDedupClasses, normalizeClasses, optimizeCssNative, parseAtomicClass, parseClass, parseClasses, pollWatchEvents, processFileChange, processTailwindCssLightning, propertyIdToString, pruneStaleCacheEntries, rebuildWorkspaceResult, redisCacheClear, redisCacheHitRate, redisCacheKeyCount, redisCacheSize, redisCacheSync, redisClusterStatus, redisDelete, redisDiagnose, redisDisableCacheWarming, redisDisableCluster, redisDisablePersistence, redisEnableCacheWarming, redisEnableCluster, redisEnablePersistence, redisExists, redisExpirationGet, redisExpirationSet, redisFlushAll, redisFlushDb, redisGet, redisGetEvictionPolicy, redisInfo, redisMemoryStats, redisMget, redisMonitor, redisMset, redisOptimizeMemory, redisPing, redisPoolConnect, redisPoolReconnect, redisPoolStats, redisPublish, redisReplicate, redisReplicationStatus, redisSet, redisSetEvictionPolicy, redisSnapshot, redisSubscribe, registerFileClasses, registerGlobalClasses, registerPluginHook, registerPropertyName, registerValueName, resetBucketEngine, resetCacheStats, resetCompilationMetrics, resetIncrementalEngine, resetMemoryStats, resetNativeBridgeCache, resetResolverPoolStats, resolveCascade, resolveClassNames, resolveColorCached, resolveConflictGroup, resolveFontSizeCached, resolveSimpleVariants, resolveSpacingCached, resolveThemeValue, resolveVariants, reverseLookupProperty, reverseLookupValue, runCssPipeline, runElimination, runLoaderTransform, scanCacheOptimizations, scanFile, scanFileNative, scanFilesBatchNative, scanProjectUsage, scanWorkspace, shouldProcess, shouldSkipFile, startWatch, stopWatch, toAtomicClasses, transformSource, twMerge, twMergeMany, twMergeManyWithSeparator, twMergeRaw, twMergeWithSeparator, unregisterPluginHook, validateCssOutput, validateThemeConfig, valueIdToString, walkAndPrefilterSourceFiles, watchAddPattern, watchClearAll, watchEventTypeToString, watchGetActiveHandles, watchPause, watchRemovePattern, watchResume };
|