tailwind-styled-v4 5.1.22 → 5.1.23
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/README.md +216 -0
- package/dist/atomic.js +34 -4
- package/dist/atomic.js.map +1 -1
- package/dist/atomic.mjs +31 -2
- package/dist/atomic.mjs.map +1 -1
- package/dist/cli.js +132 -97
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +129 -95
- package/dist/cli.mjs.map +1 -1
- package/dist/compiler.d.mts +195 -1
- package/dist/compiler.d.ts +195 -1
- package/dist/compiler.js +356 -12
- package/dist/compiler.js.map +1 -1
- package/dist/compiler.mjs +340 -10
- package/dist/compiler.mjs.map +1 -1
- package/dist/engine.js +194 -164
- package/dist/engine.js.map +1 -1
- package/dist/engine.mjs +184 -155
- package/dist/engine.mjs.map +1 -1
- package/dist/index.browser.mjs +144 -14
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.d.mts +45 -4
- package/dist/index.d.ts +45 -4
- package/dist/index.js +174 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +185 -21
- package/dist/index.mjs.map +1 -1
- package/dist/next.js +489 -158
- package/dist/next.js.map +1 -1
- package/dist/next.mjs +483 -153
- package/dist/next.mjs.map +1 -1
- package/dist/runtime-css.js +1 -1
- package/dist/runtime-css.js.map +1 -1
- package/dist/runtime-css.mjs +1 -1
- package/dist/runtime-css.mjs.map +1 -1
- package/dist/runtime.js +17 -0
- package/dist/runtime.js.map +1 -1
- package/dist/runtime.mjs +23 -0
- package/dist/runtime.mjs.map +1 -1
- package/dist/shared.js +91 -61
- package/dist/shared.js.map +1 -1
- package/dist/shared.mjs +85 -56
- package/dist/shared.mjs.map +1 -1
- package/dist/turbopackLoader.js +79 -49
- package/dist/turbopackLoader.js.map +1 -1
- package/dist/turbopackLoader.mjs +76 -47
- package/dist/turbopackLoader.mjs.map +1 -1
- package/dist/tw.js +132 -97
- package/dist/tw.js.map +1 -1
- package/dist/tw.mjs +129 -95
- package/dist/tw.mjs.map +1 -1
- package/dist/vite.js +157 -127
- package/dist/vite.js.map +1 -1
- package/dist/vite.mjs +150 -121
- package/dist/vite.mjs.map +1 -1
- package/dist/webpackLoader.js +39 -9
- package/dist/webpackLoader.js.map +1 -1
- package/dist/webpackLoader.mjs +36 -7
- package/dist/webpackLoader.mjs.map +1 -1
- package/package.json +1 -1
- package/CHANGELOG.md +0 -182
package/dist/compiler.d.mts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { Plugin } from 'esbuild';
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* Native Bridge Wrapper Functions - Part of NativeBridge exports
|
|
3
5
|
*
|
|
@@ -2938,6 +2940,198 @@ declare function buildRouteClassBuckets(root: string, srcDir: string, files: Sca
|
|
|
2938
2940
|
/** Slugify route path jadi nama file CSS yang aman. "/" -> "root", "/blog/[slug]" -> "blog__slug_". */
|
|
2939
2941
|
declare function routeToCssFilename(route: string): string;
|
|
2940
2942
|
|
|
2943
|
+
/**
|
|
2944
|
+
* Semantic Component Analyzer
|
|
2945
|
+
*
|
|
2946
|
+
* Build-time analyzer untuk extract component metadata (@semantic, @aria, @state)
|
|
2947
|
+
* dari component config dan determine semantic intent.
|
|
2948
|
+
*/
|
|
2949
|
+
/**
|
|
2950
|
+
* Semantic intent type - represents semantic meaning ng component
|
|
2951
|
+
*/
|
|
2952
|
+
type SemanticIntent = 'button' | 'link' | 'navigation' | 'heading' | 'paragraph' | 'list' | 'input' | 'form' | 'dialog' | 'alert' | 'tab' | 'checkbox' | 'radio' | 'select' | 'custom';
|
|
2953
|
+
/**
|
|
2954
|
+
* Semantic metadata annotations
|
|
2955
|
+
*/
|
|
2956
|
+
interface SemanticMetadata {
|
|
2957
|
+
/**
|
|
2958
|
+
* Semantic intent ng component (e.g., "button", "link")
|
|
2959
|
+
* Guides ARIA role assignment at build-time
|
|
2960
|
+
*/
|
|
2961
|
+
'@semantic'?: SemanticIntent;
|
|
2962
|
+
/**
|
|
2963
|
+
* Explicit ARIA attributes to inject
|
|
2964
|
+
*/
|
|
2965
|
+
'@aria'?: Record<string, string>;
|
|
2966
|
+
/**
|
|
2967
|
+
* State-to-ARIA property mappings
|
|
2968
|
+
* e.g., { checked: "aria-checked", disabled: "aria-disabled" }
|
|
2969
|
+
*/
|
|
2970
|
+
'@state'?: Record<string, string>;
|
|
2971
|
+
/**
|
|
2972
|
+
* Custom semantic mappings
|
|
2973
|
+
*/
|
|
2974
|
+
[key: string]: unknown;
|
|
2975
|
+
}
|
|
2976
|
+
/**
|
|
2977
|
+
* Component config type - basic shape
|
|
2978
|
+
*/
|
|
2979
|
+
interface ComponentConfig {
|
|
2980
|
+
tag?: string;
|
|
2981
|
+
variants?: Record<string, unknown>;
|
|
2982
|
+
defaultVariants?: Record<string, unknown>;
|
|
2983
|
+
[key: string]: unknown;
|
|
2984
|
+
}
|
|
2985
|
+
/**
|
|
2986
|
+
* Analysis result from semantic analyzer
|
|
2987
|
+
*/
|
|
2988
|
+
interface SemanticAnalysisResult {
|
|
2989
|
+
componentName: string;
|
|
2990
|
+
tag: string;
|
|
2991
|
+
semantic: SemanticIntent;
|
|
2992
|
+
metadata: SemanticMetadata;
|
|
2993
|
+
ariaRole?: string;
|
|
2994
|
+
stateProperties: Map<string, string>;
|
|
2995
|
+
}
|
|
2996
|
+
/**
|
|
2997
|
+
* Extract semantic metadata from component config
|
|
2998
|
+
* Looks for @semantic, @aria, @state annotations
|
|
2999
|
+
*/
|
|
3000
|
+
declare function extractSemanticMetadata(config: ComponentConfig): SemanticMetadata;
|
|
3001
|
+
/**
|
|
3002
|
+
* Analyze component config untuk determine semantic intent
|
|
3003
|
+
* Priority: explicit @semantic > tag-based inference
|
|
3004
|
+
*/
|
|
3005
|
+
declare function analyzeComponentSemantics(componentName: string, config: ComponentConfig): SemanticAnalysisResult;
|
|
3006
|
+
/**
|
|
3007
|
+
* Get ARIA role from semantic intent
|
|
3008
|
+
* Used by ARIA injection plugin at build-time
|
|
3009
|
+
*/
|
|
3010
|
+
declare function getAriaRoleForSemantic(semantic: SemanticIntent): string | undefined;
|
|
3011
|
+
/**
|
|
3012
|
+
* Batch analyze multiple components
|
|
3013
|
+
* Returns map of componentName → SemanticAnalysisResult
|
|
3014
|
+
*/
|
|
3015
|
+
declare function analyzeComponentBatch(components: Map<string, ComponentConfig>): Map<string, SemanticAnalysisResult>;
|
|
3016
|
+
/**
|
|
3017
|
+
* Validate semantic metadata untuk consistency
|
|
3018
|
+
* Returns array of validation issues (empty = valid)
|
|
3019
|
+
*/
|
|
3020
|
+
declare function validateSemanticMetadata(metadata: SemanticMetadata): string[];
|
|
3021
|
+
|
|
3022
|
+
/**
|
|
3023
|
+
* Type Stub Generator
|
|
3024
|
+
*
|
|
3025
|
+
* Build-time generator untuk create TypeScript .d.ts files dari semantic metadata.
|
|
3026
|
+
* Generates type stubs dengan semantic information untuk better IDE intellisense.
|
|
3027
|
+
*/
|
|
3028
|
+
|
|
3029
|
+
/**
|
|
3030
|
+
* TypeScript interface definition untuk generated type
|
|
3031
|
+
*/
|
|
3032
|
+
interface GeneratedTypeDefinition {
|
|
3033
|
+
interfaceName: string;
|
|
3034
|
+
extendsFrom: string;
|
|
3035
|
+
properties: Map<string, TypeProperty>;
|
|
3036
|
+
jsDocComment?: string;
|
|
3037
|
+
}
|
|
3038
|
+
/**
|
|
3039
|
+
* Individual property definition
|
|
3040
|
+
*/
|
|
3041
|
+
interface TypeProperty {
|
|
3042
|
+
name: string;
|
|
3043
|
+
type: string;
|
|
3044
|
+
description?: string;
|
|
3045
|
+
optional?: boolean;
|
|
3046
|
+
}
|
|
3047
|
+
/**
|
|
3048
|
+
* Generate .d.ts interface definition
|
|
3049
|
+
*/
|
|
3050
|
+
declare function generateTypeDefinition(analysis: SemanticAnalysisResult, componentName: string): GeneratedTypeDefinition;
|
|
3051
|
+
/**
|
|
3052
|
+
* Render TypeScript interface code
|
|
3053
|
+
*/
|
|
3054
|
+
declare function renderTypeDefinition(def: GeneratedTypeDefinition): string;
|
|
3055
|
+
/**
|
|
3056
|
+
* Generate complete .d.ts file content
|
|
3057
|
+
* Includes imports, interfaces, exports
|
|
3058
|
+
*/
|
|
3059
|
+
declare function generateTypeStubFile(analyses: Map<string, SemanticAnalysisResult>, packageName?: string): string;
|
|
3060
|
+
/**
|
|
3061
|
+
* Write type stub file ke disk
|
|
3062
|
+
* Handles both ESM dan CJS output paths
|
|
3063
|
+
*/
|
|
3064
|
+
interface TypeStubOutput {
|
|
3065
|
+
filePath: string;
|
|
3066
|
+
content: string;
|
|
3067
|
+
format: 'esm' | 'cjs' | 'dts';
|
|
3068
|
+
}
|
|
3069
|
+
/**
|
|
3070
|
+
* Generate output paths untuk type stubs
|
|
3071
|
+
*/
|
|
3072
|
+
declare function generateTypeStubOutputPaths(outputDir: string, packageName: string): TypeStubOutput[];
|
|
3073
|
+
/**
|
|
3074
|
+
* Batch generate type definitions dari multiple analyses
|
|
3075
|
+
*/
|
|
3076
|
+
declare function generateTypeDefinitionsBatch(analyses: Map<string, SemanticAnalysisResult>): Map<string, string>;
|
|
3077
|
+
/**
|
|
3078
|
+
* Combine multiple type definitions into single file
|
|
3079
|
+
*/
|
|
3080
|
+
declare function combineTypeDefinitions(definitions: Map<string, string>, packageName?: string): string;
|
|
3081
|
+
|
|
3082
|
+
/**
|
|
3083
|
+
* Type Generation Plugin untuk tsup/build pipeline
|
|
3084
|
+
*
|
|
3085
|
+
* Integration point untuk run semantic analyzer + type generator
|
|
3086
|
+
* sebagai part dari build process.
|
|
3087
|
+
*
|
|
3088
|
+
* Usage di tsup.config.ts:
|
|
3089
|
+
* ```
|
|
3090
|
+
* import { createTypeGenerationPlugin } from './src/typeGenerationPlugin'
|
|
3091
|
+
*
|
|
3092
|
+
* export default defineConfig({
|
|
3093
|
+
* plugins: [createTypeGenerationPlugin()],
|
|
3094
|
+
* ...
|
|
3095
|
+
* })
|
|
3096
|
+
* ```
|
|
3097
|
+
*/
|
|
3098
|
+
|
|
3099
|
+
/**
|
|
3100
|
+
* Options untuk type generation plugin
|
|
3101
|
+
*/
|
|
3102
|
+
interface TypeGenerationPluginOptions {
|
|
3103
|
+
/**
|
|
3104
|
+
* Directory dimana akan output .d.ts files
|
|
3105
|
+
* Default: './dist/types'
|
|
3106
|
+
*/
|
|
3107
|
+
outputDir?: string;
|
|
3108
|
+
/**
|
|
3109
|
+
* Package name untuk generated header
|
|
3110
|
+
* Default: 'tailwind-styled'
|
|
3111
|
+
*/
|
|
3112
|
+
packageName?: string;
|
|
3113
|
+
/**
|
|
3114
|
+
* Enable logging
|
|
3115
|
+
* Default: false
|
|
3116
|
+
*/
|
|
3117
|
+
verbose?: boolean;
|
|
3118
|
+
/**
|
|
3119
|
+
* Source file path untuk component registry
|
|
3120
|
+
* Jika tidak provided, akan skip type generation
|
|
3121
|
+
*/
|
|
3122
|
+
componentRegistryPath?: string;
|
|
3123
|
+
}
|
|
3124
|
+
/**
|
|
3125
|
+
* Create tsup plugin untuk type generation
|
|
3126
|
+
* Runs at build-time to generate .d.ts files dari semantic metadata
|
|
3127
|
+
*/
|
|
3128
|
+
declare function createTypeGenerationPlugin(options?: TypeGenerationPluginOptions): Plugin;
|
|
3129
|
+
/**
|
|
3130
|
+
* Standalone function untuk generate types from components
|
|
3131
|
+
* Useful untuk scripts atau CLI
|
|
3132
|
+
*/
|
|
3133
|
+
declare function generateTypesFromComponents(components: Map<string, ComponentConfig>, outputPath: string, packageName?: string): Promise<void>;
|
|
3134
|
+
|
|
2941
3135
|
/**
|
|
2942
3136
|
* tailwind-styled-v5 — Compiler Main Entry Point
|
|
2943
3137
|
*
|
|
@@ -3079,4 +3273,4 @@ declare const extractTwStateConfigs: (source: string, filename: string) => TwSta
|
|
|
3079
3273
|
declare const generateStaticStateCss: (entries: TwStateConfigEntry[], resolvedCssOrThemeConfig?: string | Record<string, unknown>) => GeneratedStateRule[];
|
|
3080
3274
|
declare const extractAndGenerateStateCss: (source: string, filename: string) => GeneratedStateRule[];
|
|
3081
3275
|
|
|
3082
|
-
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 RouteClassBuckets, type SafelistCheckResult, type ScanFileResult, type ScanWorkspaceResult, type ScannedFileInput, 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, buildRouteClassBuckets, 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, getAllRegisteredClasses, 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, resetRouteClassRegistry, resolveCascade, resolveClassNames, resolveColorCached, resolveConflictGroup, resolveFontSizeCached, resolveSimpleVariants, resolveSpacingCached, resolveThemeValue, resolveVariants, reverseLookupProperty, reverseLookupValue, routeToCssFilename, 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 };
|
|
3276
|
+
export { type BatchExtractResult, BucketEngine, type CacheOptimizationHints, type CacheStatistics, type ClassExtractResult, type ClassUsageItem, type ClassifyResult, type CompiledAnimation, type CompiledCssRule, type CompiledTheme, type ComponentConfig, type ComponentMetadata, type ConflictGroupInfo, type ContainerConfig, type CssCompileResult, type DeadCodeResult, type FileChangeEvent, type FileDiff, type FileFingerprint, type GeneratedStateCss, type GeneratedStateRule, type GeneratedTypeDefinition, 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 RouteClassBuckets, type SafelistCheckResult, type ScanFileResult, type ScanWorkspaceResult, type ScannedFileInput, type SemanticAnalysisResult, type SemanticIntent, type SemanticMetadata, type StateCssConfig, type StateInjectionResult, type StaticStateCssInput, type ThemeCascadeResult, type ThemeValidationResult, type TwMergeOptions, type TwStateConfigEntry, type TypeGenerationPluginOptions, type TypeProperty, type TypeStubOutput, type VariantTableResult, type WatchEvent, type WatchHandle, type WatchStats, type Week6FeaturesStatus, adaptNativeResult, analyzeClassUsageNative, analyzeClasses, analyzeClassesNative, analyzeComponentBatch, analyzeComponentSemantics, analyzeFile, analyzeRscNative, analyzeVariantUsage, astExtractClasses, atomicRegistrySize, batchExtractClasses, batchExtractClassesNative, bucketSort, buildRouteClassBuckets, buildStyleTag, cachePriority, cacheRead, cacheWrite, checkAgainstSafelist, checkAgainstSafelistNative, classifyAndSortClassesNative, classifyNode, clearAllCaches, clearAtomicRegistry, clearCompileCache, clearCssGenCache, clearParseCache, clearResolveCache, clearResolverPool, clearThemeCache, collectFiles, combineTypeDefinitions, compileAnimation, compileClass, compileClasses, compileCssFromClasses, compileCssLightning, compileCssNative2, compileKeyframes, compileTheme, compileToCss, compileToCssBatch, compileVariantTableNative, computeIncrementalDiff, createFingerprint, createTypeGenerationPlugin, detectConflicts, detectDeadCode, diffClassLists, eliminateDeadCss, eliminateDeadCssNative, emitPluginHook, estimateOptimalCacheConfig, estimateOptimalCacheConfigNative, extractAllClasses, extractAndGenerateStateCss, extractAndGenerateStateCssNative, extractClassesFromSource, extractClassesFromSourceNative, extractComponentUsage, extractContainerCssFromSource, extractSemanticMetadata, extractTwContainerConfigs, extractTwStateConfigs, extractTwStateConfigsNative, fileToRoute, findDeadVariants, generateAtomicCss, generateCss, generateCssBatch, generateCssForClasses, generateCssNative, generateSafelist, generateStaticStateCss, generateStaticStateCssNative, generateSubComponentTypes, generateTypeDefinition, generateTypeDefinitionsBatch, generateTypeStubFile, generateTypeStubOutputPaths, generateTypesFromComponents, getAllRegisteredClasses, getAllRoutes, getAriaRoleForSemantic, 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, renderTypeDefinition, resetBucketEngine, resetCacheStats, resetCompilationMetrics, resetIncrementalEngine, resetMemoryStats, resetNativeBridgeCache, resetResolverPoolStats, resetRouteClassRegistry, resolveCascade, resolveClassNames, resolveColorCached, resolveConflictGroup, resolveFontSizeCached, resolveSimpleVariants, resolveSpacingCached, resolveThemeValue, resolveVariants, reverseLookupProperty, reverseLookupValue, routeToCssFilename, runCssPipeline, runElimination, runLoaderTransform, scanCacheOptimizations, scanFile, scanFileNative, scanFilesBatchNative, scanProjectUsage, scanWorkspace, shouldProcess, shouldSkipFile, startWatch, stopWatch, toAtomicClasses, transformSource, twMerge, twMergeMany, twMergeManyWithSeparator, twMergeRaw, twMergeWithSeparator, unregisterPluginHook, validateCssOutput, validateSemanticMetadata, validateThemeConfig, valueIdToString, walkAndPrefilterSourceFiles, watchAddPattern, watchClearAll, watchEventTypeToString, watchGetActiveHandles, watchPause, watchRemovePattern, watchResume };
|
package/dist/compiler.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { Plugin } from 'esbuild';
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* Native Bridge Wrapper Functions - Part of NativeBridge exports
|
|
3
5
|
*
|
|
@@ -2938,6 +2940,198 @@ declare function buildRouteClassBuckets(root: string, srcDir: string, files: Sca
|
|
|
2938
2940
|
/** Slugify route path jadi nama file CSS yang aman. "/" -> "root", "/blog/[slug]" -> "blog__slug_". */
|
|
2939
2941
|
declare function routeToCssFilename(route: string): string;
|
|
2940
2942
|
|
|
2943
|
+
/**
|
|
2944
|
+
* Semantic Component Analyzer
|
|
2945
|
+
*
|
|
2946
|
+
* Build-time analyzer untuk extract component metadata (@semantic, @aria, @state)
|
|
2947
|
+
* dari component config dan determine semantic intent.
|
|
2948
|
+
*/
|
|
2949
|
+
/**
|
|
2950
|
+
* Semantic intent type - represents semantic meaning ng component
|
|
2951
|
+
*/
|
|
2952
|
+
type SemanticIntent = 'button' | 'link' | 'navigation' | 'heading' | 'paragraph' | 'list' | 'input' | 'form' | 'dialog' | 'alert' | 'tab' | 'checkbox' | 'radio' | 'select' | 'custom';
|
|
2953
|
+
/**
|
|
2954
|
+
* Semantic metadata annotations
|
|
2955
|
+
*/
|
|
2956
|
+
interface SemanticMetadata {
|
|
2957
|
+
/**
|
|
2958
|
+
* Semantic intent ng component (e.g., "button", "link")
|
|
2959
|
+
* Guides ARIA role assignment at build-time
|
|
2960
|
+
*/
|
|
2961
|
+
'@semantic'?: SemanticIntent;
|
|
2962
|
+
/**
|
|
2963
|
+
* Explicit ARIA attributes to inject
|
|
2964
|
+
*/
|
|
2965
|
+
'@aria'?: Record<string, string>;
|
|
2966
|
+
/**
|
|
2967
|
+
* State-to-ARIA property mappings
|
|
2968
|
+
* e.g., { checked: "aria-checked", disabled: "aria-disabled" }
|
|
2969
|
+
*/
|
|
2970
|
+
'@state'?: Record<string, string>;
|
|
2971
|
+
/**
|
|
2972
|
+
* Custom semantic mappings
|
|
2973
|
+
*/
|
|
2974
|
+
[key: string]: unknown;
|
|
2975
|
+
}
|
|
2976
|
+
/**
|
|
2977
|
+
* Component config type - basic shape
|
|
2978
|
+
*/
|
|
2979
|
+
interface ComponentConfig {
|
|
2980
|
+
tag?: string;
|
|
2981
|
+
variants?: Record<string, unknown>;
|
|
2982
|
+
defaultVariants?: Record<string, unknown>;
|
|
2983
|
+
[key: string]: unknown;
|
|
2984
|
+
}
|
|
2985
|
+
/**
|
|
2986
|
+
* Analysis result from semantic analyzer
|
|
2987
|
+
*/
|
|
2988
|
+
interface SemanticAnalysisResult {
|
|
2989
|
+
componentName: string;
|
|
2990
|
+
tag: string;
|
|
2991
|
+
semantic: SemanticIntent;
|
|
2992
|
+
metadata: SemanticMetadata;
|
|
2993
|
+
ariaRole?: string;
|
|
2994
|
+
stateProperties: Map<string, string>;
|
|
2995
|
+
}
|
|
2996
|
+
/**
|
|
2997
|
+
* Extract semantic metadata from component config
|
|
2998
|
+
* Looks for @semantic, @aria, @state annotations
|
|
2999
|
+
*/
|
|
3000
|
+
declare function extractSemanticMetadata(config: ComponentConfig): SemanticMetadata;
|
|
3001
|
+
/**
|
|
3002
|
+
* Analyze component config untuk determine semantic intent
|
|
3003
|
+
* Priority: explicit @semantic > tag-based inference
|
|
3004
|
+
*/
|
|
3005
|
+
declare function analyzeComponentSemantics(componentName: string, config: ComponentConfig): SemanticAnalysisResult;
|
|
3006
|
+
/**
|
|
3007
|
+
* Get ARIA role from semantic intent
|
|
3008
|
+
* Used by ARIA injection plugin at build-time
|
|
3009
|
+
*/
|
|
3010
|
+
declare function getAriaRoleForSemantic(semantic: SemanticIntent): string | undefined;
|
|
3011
|
+
/**
|
|
3012
|
+
* Batch analyze multiple components
|
|
3013
|
+
* Returns map of componentName → SemanticAnalysisResult
|
|
3014
|
+
*/
|
|
3015
|
+
declare function analyzeComponentBatch(components: Map<string, ComponentConfig>): Map<string, SemanticAnalysisResult>;
|
|
3016
|
+
/**
|
|
3017
|
+
* Validate semantic metadata untuk consistency
|
|
3018
|
+
* Returns array of validation issues (empty = valid)
|
|
3019
|
+
*/
|
|
3020
|
+
declare function validateSemanticMetadata(metadata: SemanticMetadata): string[];
|
|
3021
|
+
|
|
3022
|
+
/**
|
|
3023
|
+
* Type Stub Generator
|
|
3024
|
+
*
|
|
3025
|
+
* Build-time generator untuk create TypeScript .d.ts files dari semantic metadata.
|
|
3026
|
+
* Generates type stubs dengan semantic information untuk better IDE intellisense.
|
|
3027
|
+
*/
|
|
3028
|
+
|
|
3029
|
+
/**
|
|
3030
|
+
* TypeScript interface definition untuk generated type
|
|
3031
|
+
*/
|
|
3032
|
+
interface GeneratedTypeDefinition {
|
|
3033
|
+
interfaceName: string;
|
|
3034
|
+
extendsFrom: string;
|
|
3035
|
+
properties: Map<string, TypeProperty>;
|
|
3036
|
+
jsDocComment?: string;
|
|
3037
|
+
}
|
|
3038
|
+
/**
|
|
3039
|
+
* Individual property definition
|
|
3040
|
+
*/
|
|
3041
|
+
interface TypeProperty {
|
|
3042
|
+
name: string;
|
|
3043
|
+
type: string;
|
|
3044
|
+
description?: string;
|
|
3045
|
+
optional?: boolean;
|
|
3046
|
+
}
|
|
3047
|
+
/**
|
|
3048
|
+
* Generate .d.ts interface definition
|
|
3049
|
+
*/
|
|
3050
|
+
declare function generateTypeDefinition(analysis: SemanticAnalysisResult, componentName: string): GeneratedTypeDefinition;
|
|
3051
|
+
/**
|
|
3052
|
+
* Render TypeScript interface code
|
|
3053
|
+
*/
|
|
3054
|
+
declare function renderTypeDefinition(def: GeneratedTypeDefinition): string;
|
|
3055
|
+
/**
|
|
3056
|
+
* Generate complete .d.ts file content
|
|
3057
|
+
* Includes imports, interfaces, exports
|
|
3058
|
+
*/
|
|
3059
|
+
declare function generateTypeStubFile(analyses: Map<string, SemanticAnalysisResult>, packageName?: string): string;
|
|
3060
|
+
/**
|
|
3061
|
+
* Write type stub file ke disk
|
|
3062
|
+
* Handles both ESM dan CJS output paths
|
|
3063
|
+
*/
|
|
3064
|
+
interface TypeStubOutput {
|
|
3065
|
+
filePath: string;
|
|
3066
|
+
content: string;
|
|
3067
|
+
format: 'esm' | 'cjs' | 'dts';
|
|
3068
|
+
}
|
|
3069
|
+
/**
|
|
3070
|
+
* Generate output paths untuk type stubs
|
|
3071
|
+
*/
|
|
3072
|
+
declare function generateTypeStubOutputPaths(outputDir: string, packageName: string): TypeStubOutput[];
|
|
3073
|
+
/**
|
|
3074
|
+
* Batch generate type definitions dari multiple analyses
|
|
3075
|
+
*/
|
|
3076
|
+
declare function generateTypeDefinitionsBatch(analyses: Map<string, SemanticAnalysisResult>): Map<string, string>;
|
|
3077
|
+
/**
|
|
3078
|
+
* Combine multiple type definitions into single file
|
|
3079
|
+
*/
|
|
3080
|
+
declare function combineTypeDefinitions(definitions: Map<string, string>, packageName?: string): string;
|
|
3081
|
+
|
|
3082
|
+
/**
|
|
3083
|
+
* Type Generation Plugin untuk tsup/build pipeline
|
|
3084
|
+
*
|
|
3085
|
+
* Integration point untuk run semantic analyzer + type generator
|
|
3086
|
+
* sebagai part dari build process.
|
|
3087
|
+
*
|
|
3088
|
+
* Usage di tsup.config.ts:
|
|
3089
|
+
* ```
|
|
3090
|
+
* import { createTypeGenerationPlugin } from './src/typeGenerationPlugin'
|
|
3091
|
+
*
|
|
3092
|
+
* export default defineConfig({
|
|
3093
|
+
* plugins: [createTypeGenerationPlugin()],
|
|
3094
|
+
* ...
|
|
3095
|
+
* })
|
|
3096
|
+
* ```
|
|
3097
|
+
*/
|
|
3098
|
+
|
|
3099
|
+
/**
|
|
3100
|
+
* Options untuk type generation plugin
|
|
3101
|
+
*/
|
|
3102
|
+
interface TypeGenerationPluginOptions {
|
|
3103
|
+
/**
|
|
3104
|
+
* Directory dimana akan output .d.ts files
|
|
3105
|
+
* Default: './dist/types'
|
|
3106
|
+
*/
|
|
3107
|
+
outputDir?: string;
|
|
3108
|
+
/**
|
|
3109
|
+
* Package name untuk generated header
|
|
3110
|
+
* Default: 'tailwind-styled'
|
|
3111
|
+
*/
|
|
3112
|
+
packageName?: string;
|
|
3113
|
+
/**
|
|
3114
|
+
* Enable logging
|
|
3115
|
+
* Default: false
|
|
3116
|
+
*/
|
|
3117
|
+
verbose?: boolean;
|
|
3118
|
+
/**
|
|
3119
|
+
* Source file path untuk component registry
|
|
3120
|
+
* Jika tidak provided, akan skip type generation
|
|
3121
|
+
*/
|
|
3122
|
+
componentRegistryPath?: string;
|
|
3123
|
+
}
|
|
3124
|
+
/**
|
|
3125
|
+
* Create tsup plugin untuk type generation
|
|
3126
|
+
* Runs at build-time to generate .d.ts files dari semantic metadata
|
|
3127
|
+
*/
|
|
3128
|
+
declare function createTypeGenerationPlugin(options?: TypeGenerationPluginOptions): Plugin;
|
|
3129
|
+
/**
|
|
3130
|
+
* Standalone function untuk generate types from components
|
|
3131
|
+
* Useful untuk scripts atau CLI
|
|
3132
|
+
*/
|
|
3133
|
+
declare function generateTypesFromComponents(components: Map<string, ComponentConfig>, outputPath: string, packageName?: string): Promise<void>;
|
|
3134
|
+
|
|
2941
3135
|
/**
|
|
2942
3136
|
* tailwind-styled-v5 — Compiler Main Entry Point
|
|
2943
3137
|
*
|
|
@@ -3079,4 +3273,4 @@ declare const extractTwStateConfigs: (source: string, filename: string) => TwSta
|
|
|
3079
3273
|
declare const generateStaticStateCss: (entries: TwStateConfigEntry[], resolvedCssOrThemeConfig?: string | Record<string, unknown>) => GeneratedStateRule[];
|
|
3080
3274
|
declare const extractAndGenerateStateCss: (source: string, filename: string) => GeneratedStateRule[];
|
|
3081
3275
|
|
|
3082
|
-
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 RouteClassBuckets, type SafelistCheckResult, type ScanFileResult, type ScanWorkspaceResult, type ScannedFileInput, 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, buildRouteClassBuckets, 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, getAllRegisteredClasses, 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, resetRouteClassRegistry, resolveCascade, resolveClassNames, resolveColorCached, resolveConflictGroup, resolveFontSizeCached, resolveSimpleVariants, resolveSpacingCached, resolveThemeValue, resolveVariants, reverseLookupProperty, reverseLookupValue, routeToCssFilename, 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 };
|
|
3276
|
+
export { type BatchExtractResult, BucketEngine, type CacheOptimizationHints, type CacheStatistics, type ClassExtractResult, type ClassUsageItem, type ClassifyResult, type CompiledAnimation, type CompiledCssRule, type CompiledTheme, type ComponentConfig, type ComponentMetadata, type ConflictGroupInfo, type ContainerConfig, type CssCompileResult, type DeadCodeResult, type FileChangeEvent, type FileDiff, type FileFingerprint, type GeneratedStateCss, type GeneratedStateRule, type GeneratedTypeDefinition, 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 RouteClassBuckets, type SafelistCheckResult, type ScanFileResult, type ScanWorkspaceResult, type ScannedFileInput, type SemanticAnalysisResult, type SemanticIntent, type SemanticMetadata, type StateCssConfig, type StateInjectionResult, type StaticStateCssInput, type ThemeCascadeResult, type ThemeValidationResult, type TwMergeOptions, type TwStateConfigEntry, type TypeGenerationPluginOptions, type TypeProperty, type TypeStubOutput, type VariantTableResult, type WatchEvent, type WatchHandle, type WatchStats, type Week6FeaturesStatus, adaptNativeResult, analyzeClassUsageNative, analyzeClasses, analyzeClassesNative, analyzeComponentBatch, analyzeComponentSemantics, analyzeFile, analyzeRscNative, analyzeVariantUsage, astExtractClasses, atomicRegistrySize, batchExtractClasses, batchExtractClassesNative, bucketSort, buildRouteClassBuckets, buildStyleTag, cachePriority, cacheRead, cacheWrite, checkAgainstSafelist, checkAgainstSafelistNative, classifyAndSortClassesNative, classifyNode, clearAllCaches, clearAtomicRegistry, clearCompileCache, clearCssGenCache, clearParseCache, clearResolveCache, clearResolverPool, clearThemeCache, collectFiles, combineTypeDefinitions, compileAnimation, compileClass, compileClasses, compileCssFromClasses, compileCssLightning, compileCssNative2, compileKeyframes, compileTheme, compileToCss, compileToCssBatch, compileVariantTableNative, computeIncrementalDiff, createFingerprint, createTypeGenerationPlugin, detectConflicts, detectDeadCode, diffClassLists, eliminateDeadCss, eliminateDeadCssNative, emitPluginHook, estimateOptimalCacheConfig, estimateOptimalCacheConfigNative, extractAllClasses, extractAndGenerateStateCss, extractAndGenerateStateCssNative, extractClassesFromSource, extractClassesFromSourceNative, extractComponentUsage, extractContainerCssFromSource, extractSemanticMetadata, extractTwContainerConfigs, extractTwStateConfigs, extractTwStateConfigsNative, fileToRoute, findDeadVariants, generateAtomicCss, generateCss, generateCssBatch, generateCssForClasses, generateCssNative, generateSafelist, generateStaticStateCss, generateStaticStateCssNative, generateSubComponentTypes, generateTypeDefinition, generateTypeDefinitionsBatch, generateTypeStubFile, generateTypeStubOutputPaths, generateTypesFromComponents, getAllRegisteredClasses, getAllRoutes, getAriaRoleForSemantic, 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, renderTypeDefinition, resetBucketEngine, resetCacheStats, resetCompilationMetrics, resetIncrementalEngine, resetMemoryStats, resetNativeBridgeCache, resetResolverPoolStats, resetRouteClassRegistry, resolveCascade, resolveClassNames, resolveColorCached, resolveConflictGroup, resolveFontSizeCached, resolveSimpleVariants, resolveSpacingCached, resolveThemeValue, resolveVariants, reverseLookupProperty, reverseLookupValue, routeToCssFilename, runCssPipeline, runElimination, runLoaderTransform, scanCacheOptimizations, scanFile, scanFileNative, scanFilesBatchNative, scanProjectUsage, scanWorkspace, shouldProcess, shouldSkipFile, startWatch, stopWatch, toAtomicClasses, transformSource, twMerge, twMergeMany, twMergeManyWithSeparator, twMergeRaw, twMergeWithSeparator, unregisterPluginHook, validateCssOutput, validateSemanticMetadata, validateThemeConfig, valueIdToString, walkAndPrefilterSourceFiles, watchAddPattern, watchClearAll, watchEventTypeToString, watchGetActiveHandles, watchPause, watchRemovePattern, watchResume };
|