@tachui/devtools 0.8.0-alpha

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.
Files changed (75) hide show
  1. package/LICENSE +363 -0
  2. package/README.md +189 -0
  3. package/dist/build-time/detection.d.ts +32 -0
  4. package/dist/build-time/detection.d.ts.map +1 -0
  5. package/dist/build-time/index.d.ts +84 -0
  6. package/dist/build-time/index.d.ts.map +1 -0
  7. package/dist/build-time/plugins.d.ts +75 -0
  8. package/dist/build-time/plugins.d.ts.map +1 -0
  9. package/dist/build-time/rules.d.ts +73 -0
  10. package/dist/build-time/rules.d.ts.map +1 -0
  11. package/dist/build-time/transformer.d.ts +23 -0
  12. package/dist/build-time/transformer.d.ts.map +1 -0
  13. package/dist/build-time/types.d.ts +212 -0
  14. package/dist/build-time/types.d.ts.map +1 -0
  15. package/dist/debug/advanced-debugging.d.ts +327 -0
  16. package/dist/debug/advanced-debugging.d.ts.map +1 -0
  17. package/dist/debug/debug.d.ts +61 -0
  18. package/dist/debug/debug.d.ts.map +1 -0
  19. package/dist/debug/developer-experience.d.ts +261 -0
  20. package/dist/debug/developer-experience.d.ts.map +1 -0
  21. package/dist/debug/development-warnings.d.ts +42 -0
  22. package/dist/debug/development-warnings.d.ts.map +1 -0
  23. package/dist/debug/documentation-integration.d.ts +269 -0
  24. package/dist/debug/documentation-integration.d.ts.map +1 -0
  25. package/dist/debug/enhanced-errors.d.ts +176 -0
  26. package/dist/debug/enhanced-errors.d.ts.map +1 -0
  27. package/dist/debug/enhanced-types.d.ts +284 -0
  28. package/dist/debug/enhanced-types.d.ts.map +1 -0
  29. package/dist/debug/ide-integration.d.ts +328 -0
  30. package/dist/debug/ide-integration.d.ts.map +1 -0
  31. package/dist/debug/index.d.ts +12 -0
  32. package/dist/debug/index.d.ts.map +1 -0
  33. package/dist/debug/index.js +1251 -0
  34. package/dist/debug/index.js.map +1 -0
  35. package/dist/debug/validation-debug-tools.d.ts +228 -0
  36. package/dist/debug/validation-debug-tools.d.ts.map +1 -0
  37. package/dist/index.d.ts +22 -0
  38. package/dist/index.d.ts.map +1 -0
  39. package/dist/index.js +216229 -0
  40. package/dist/index.js.map +1 -0
  41. package/dist/inspector/index.d.ts +232 -0
  42. package/dist/inspector/index.d.ts.map +1 -0
  43. package/dist/inspector/index.js +525 -0
  44. package/dist/inspector/index.js.map +1 -0
  45. package/dist/plugins/simplified-error-handler.d.ts +83 -0
  46. package/dist/plugins/simplified-error-handler.d.ts.map +1 -0
  47. package/dist/profiler/index.d.ts +21 -0
  48. package/dist/profiler/index.d.ts.map +1 -0
  49. package/dist/profiler/index.js +519 -0
  50. package/dist/profiler/index.js.map +1 -0
  51. package/dist/profiler/performance-optimizer.d.ts +115 -0
  52. package/dist/profiler/performance-optimizer.d.ts.map +1 -0
  53. package/dist/profiler/production-monitoring.d.ts +150 -0
  54. package/dist/profiler/production-monitoring.d.ts.map +1 -0
  55. package/dist/runtime/error-boundary.d.ts +302 -0
  56. package/dist/runtime/error-boundary.d.ts.map +1 -0
  57. package/dist/runtime/error-recovery.d.ts +267 -0
  58. package/dist/runtime/error-recovery.d.ts.map +1 -0
  59. package/dist/runtime/error-reporting.d.ts +287 -0
  60. package/dist/runtime/error-reporting.d.ts.map +1 -0
  61. package/dist/runtime/error-utils.d.ts +204 -0
  62. package/dist/runtime/error-utils.d.ts.map +1 -0
  63. package/dist/runtime/performance.d.ts +217 -0
  64. package/dist/runtime/performance.d.ts.map +1 -0
  65. package/dist/testing/index.d.ts +29 -0
  66. package/dist/testing/index.d.ts.map +1 -0
  67. package/dist/testing/index.js +47 -0
  68. package/dist/testing/index.js.map +1 -0
  69. package/dist/validation/debug-tools-stub.d.ts +67 -0
  70. package/dist/validation/debug-tools-stub.d.ts.map +1 -0
  71. package/dist/validation/enhanced-runtime.d.ts +310 -0
  72. package/dist/validation/enhanced-runtime.d.ts.map +1 -0
  73. package/dist/validation/error-reporting.d.ts +186 -0
  74. package/dist/validation/error-reporting.d.ts.map +1 -0
  75. package/package.json +78 -0
@@ -0,0 +1,75 @@
1
+ /**
2
+ * Build Tool Plugin Integration
3
+ *
4
+ * Auto-detects build tools and provides zero-setup integration
5
+ * for TachUI validation across different build environments.
6
+ */
7
+ import type { BuildIntegrationResult, ValidationOptions } from './types';
8
+ /**
9
+ * Auto-integrate validation with detected build tools
10
+ */
11
+ export declare function autoIntegrateValidation(_projectRoot?: string, config?: Partial<ValidationOptions>): Promise<BuildIntegrationResult>;
12
+ /**
13
+ * Create Vite plugin
14
+ */
15
+ export declare function createVitePlugin(config: ValidationOptions): {
16
+ name: string;
17
+ enforce: "pre";
18
+ configResolved(_resolvedConfig: any): void;
19
+ transform(code: string, id: string): {
20
+ code: string;
21
+ map?: any;
22
+ } | null;
23
+ };
24
+ /**
25
+ * Create Webpack plugin
26
+ */
27
+ export declare function createWebpackPlugin(config: ValidationOptions): {
28
+ new (): {
29
+ apply(compiler: any): void;
30
+ validateModule(_module: any, _config: ValidationOptions): void;
31
+ };
32
+ };
33
+ /**
34
+ * Create Next.js plugin
35
+ */
36
+ export declare function createNextJSPlugin(_config: ValidationOptions, webpackPlugin: any): (nextConfig?: any) => any;
37
+ /**
38
+ * Get validation plugin for current environment
39
+ */
40
+ export declare function getValidationPlugin(): any;
41
+ /**
42
+ * Manual plugin registration helpers
43
+ */
44
+ export declare const PluginHelpers: {
45
+ /**
46
+ * Get Vite plugin for manual registration
47
+ */
48
+ vite(options?: Partial<ValidationOptions>): {
49
+ name: string;
50
+ enforce: "pre";
51
+ configResolved(_resolvedConfig: any): void;
52
+ transform(code: string, id: string): {
53
+ code: string;
54
+ map?: any;
55
+ } | null;
56
+ };
57
+ /**
58
+ * Get Webpack plugin for manual registration
59
+ */
60
+ webpack(options?: Partial<ValidationOptions>): {
61
+ new (): {
62
+ apply(compiler: any): void;
63
+ validateModule(_module: any, _config: ValidationOptions): void;
64
+ };
65
+ };
66
+ /**
67
+ * Get Next.js plugin for manual registration
68
+ */
69
+ nextjs(options?: Partial<ValidationOptions>): (nextConfig?: any) => any;
70
+ };
71
+ /**
72
+ * Initialize validation system
73
+ */
74
+ export declare function initializeValidation(options?: Partial<ValidationOptions>): Promise<BuildIntegrationResult>;
75
+ //# sourceMappingURL=plugins.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../src/build-time/plugins.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EACV,sBAAsB,EAEtB,iBAAiB,EAClB,MAAM,SAAS,CAAA;AAUhB;;GAEG;AACH,wBAAsB,uBAAuB,CAC3C,YAAY,GAAE,MAAsB,EACpC,MAAM,GAAE,OAAO,CAAC,iBAAiB,CAAM,GACtC,OAAO,CAAC,sBAAsB,CAAC,CA2EjC;AAsND;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,iBAAiB;;;oCAKtB,GAAG;oBAInB,MAAM,MAAM,MAAM;cA6F3B,MAAM;cAAQ,GAAG;;EAtE3B;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,iBAAiB;;wBAEzC,GAAG;gCAsBK,GAAG,WAAW,iBAAiB;;EAK1D;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,iBAAiB,EAC1B,aAAa,EAAE,GAAG,IAGV,aAAY,GAAQ,SAiB7B;AA+BD;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,GAAG,CAazC;AAED;;GAEG;AACH,eAAO,MAAM,aAAa;IACxB;;OAEG;mBACW,OAAO,CAAC,iBAAiB,CAAC;;;wCAhJN,GAAG;wBAInB,MAAM,MAAM,MAAM;kBA6F3B,MAAM;kBAAQ,GAAG;;;IA8D1B;;OAEG;sBACc,OAAO,CAAC,iBAAiB,CAAC;;4BAhIzB,GAAG;oCAsBK,GAAG,WAAW,iBAAiB;;;IAyHzD;;OAEG;qBACa,OAAO,CAAC,iBAAiB,CAAC,iBA7GtB,GAAG;CA4HxB,CAAA;AAED;;GAEG;AACH,wBAAsB,oBAAoB,CACxC,OAAO,GAAE,OAAO,CAAC,iBAAiB,CAAM,GACvC,OAAO,CAAC,sBAAsB,CAAC,CAEjC"}
@@ -0,0 +1,73 @@
1
+ /**
2
+ * Validation Rules Engine
3
+ *
4
+ * Comprehensive patterns and rules for validating TachUI components
5
+ * and modifiers at build time.
6
+ */
7
+ import type { ComponentValidationPattern, ModifierValidationPattern, BuildTimeValidationRule, ValidationContext, ValidationResult } from './types';
8
+ import * as ts from 'typescript';
9
+ /**
10
+ * Component validation patterns
11
+ */
12
+ export declare const componentPatterns: Record<string, ComponentValidationPattern>;
13
+ /**
14
+ * Modifier validation patterns
15
+ */
16
+ export declare const modifierPatterns: Record<string, ModifierValidationPattern>;
17
+ /**
18
+ * Built-in validation rules
19
+ */
20
+ export declare const builtInRules: BuildTimeValidationRule[];
21
+ /**
22
+ * Validation rule categories
23
+ */
24
+ export declare const ruleCategories: {
25
+ components: string[];
26
+ modifiers: string[];
27
+ performance: string[];
28
+ accessibility: string[];
29
+ 'best-practices': string[];
30
+ };
31
+ /**
32
+ * Rule severity levels
33
+ */
34
+ export declare const severityLevels: {
35
+ error: string[];
36
+ warning: string[];
37
+ info: string[];
38
+ };
39
+ /**
40
+ * Create custom validation rule
41
+ */
42
+ export declare function createCustomRule(name: string, category: string, severity: 'error' | 'warning' | 'info', description: string, validate: (node: ts.Node, checker: ts.TypeChecker, context: ValidationContext) => ValidationResult): BuildTimeValidationRule;
43
+ /**
44
+ * Rule registry for managing custom rules
45
+ */
46
+ export declare class ValidationRuleRegistry {
47
+ private rules;
48
+ constructor();
49
+ register(rule: BuildTimeValidationRule): void;
50
+ unregister(name: string): void;
51
+ getRule(name: string): BuildTimeValidationRule | undefined;
52
+ getAllRules(): BuildTimeValidationRule[];
53
+ getRulesByCategory(category: string): BuildTimeValidationRule[];
54
+ getRulesBySeverity(severity: 'error' | 'warning' | 'info'): BuildTimeValidationRule[];
55
+ }
56
+ /**
57
+ * Global rule registry instance
58
+ */
59
+ export declare const globalRuleRegistry: ValidationRuleRegistry;
60
+ /**
61
+ * Helper functions for rule creation
62
+ */
63
+ export declare const RuleHelpers: {
64
+ /**
65
+ * Create a rule that validates component arguments
66
+ */
67
+ createComponentRule(componentName: string, validator: (args: ts.NodeArray<ts.Expression>) => ValidationResult): BuildTimeValidationRule;
68
+ /**
69
+ * Create a rule that validates modifier usage
70
+ */
71
+ createModifierRule(modifierName: string, validator: (expression: ts.PropertyAccessExpression) => ValidationResult): BuildTimeValidationRule;
72
+ };
73
+ //# sourceMappingURL=rules.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../../src/build-time/rules.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EACV,0BAA0B,EAC1B,yBAAyB,EACzB,uBAAuB,EACvB,iBAAiB,EACjB,gBAAgB,EACjB,MAAM,SAAS,CAAA;AAChB,OAAO,KAAK,EAAE,MAAM,YAAY,CAAA;AAEhC;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAiPxE,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,yBAAyB,CAiNtE,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,uBAAuB,EAwCjD,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,cAAc;;;;;;CAsB1B,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,cAAc;;;;CAI1B,CAAA;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,OAAO,GAAG,SAAS,GAAG,MAAM,EACtC,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,CACR,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,OAAO,EAAE,EAAE,CAAC,WAAW,EACvB,OAAO,EAAE,iBAAiB,KACvB,gBAAgB,GACpB,uBAAuB,CASzB;AAED;;GAEG;AACH,qBAAa,sBAAsB;IACjC,OAAO,CAAC,KAAK,CAAkD;;IAS/D,QAAQ,CAAC,IAAI,EAAE,uBAAuB,GAAG,IAAI;IAI7C,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAI9B,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,uBAAuB,GAAG,SAAS;IAI1D,WAAW,IAAI,uBAAuB,EAAE;IAIxC,kBAAkB,CAAC,QAAQ,EAAE,MAAM,GAAG,uBAAuB,EAAE;IAQ/D,kBAAkB,CAChB,QAAQ,EAAE,OAAO,GAAG,SAAS,GAAG,MAAM,GACrC,uBAAuB,EAAE;CAM7B;AAED;;GAEG;AACH,eAAO,MAAM,kBAAkB,wBAA+B,CAAA;AAE9D;;GAEG;AACH,eAAO,MAAM,WAAW;IACtB;;OAEG;uCAEc,MAAM,aACV,CAAC,IAAI,EAAE,EAAE,CAAC,SAAS,CAAC,EAAE,CAAC,UAAU,CAAC,KAAK,gBAAgB,GACjE,uBAAuB;IAkB1B;;OAEG;qCAEa,MAAM,aACT,CAAC,UAAU,EAAE,EAAE,CAAC,wBAAwB,KAAK,gBAAgB,GACvE,uBAAuB;CAiB3B,CAAA"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * TypeScript Transformer for Build-Time Validation
3
+ *
4
+ * Analyzes TypeScript AST to validate TachUI component usage
5
+ * at compile time and provide detailed error messages.
6
+ */
7
+ import type { BuildTimeValidationRule, ValidationContext, ValidationResult } from './types';
8
+ /**
9
+ * Main TypeScript transformer factory
10
+ */
11
+ export declare function createTachUITransformer(program: any, // ts.Program when TypeScript is available
12
+ options?: {
13
+ strict?: boolean;
14
+ }): any;
15
+ /**
16
+ * Create custom validation rule
17
+ */
18
+ export declare function createValidationRule(name: string, validate: (node: any, checker: any, context: ValidationContext) => ValidationResult): BuildTimeValidationRule;
19
+ /**
20
+ * Validation rule runner
21
+ */
22
+ export declare function runValidationRules(rules: BuildTimeValidationRule[], node: any, context: ValidationContext): ValidationResult;
23
+ //# sourceMappingURL=transformer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transformer.d.ts","sourceRoot":"","sources":["../../src/build-time/transformer.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AA2BH,OAAO,KAAK,EACV,uBAAuB,EACvB,iBAAiB,EACjB,gBAAgB,EAIjB,MAAM,SAAS,CAAA;AAGhB;;GAEG;AACH,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,GAAG,EAAE,0CAA0C;AACxD,OAAO,GAAE;IAAE,MAAM,CAAC,EAAE,OAAO,CAAA;CAAO,GACjC,GAAG,CAiDL;AA2PD;;GAEG;AACH,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,CACR,IAAI,EAAE,GAAG,EACT,OAAO,EAAE,GAAG,EACZ,OAAO,EAAE,iBAAiB,KACvB,gBAAgB,GACpB,uBAAuB,CASzB;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,uBAAuB,EAAE,EAChC,IAAI,EAAE,GAAG,EACT,OAAO,EAAE,iBAAiB,GACzB,gBAAgB,CA0BlB"}
@@ -0,0 +1,212 @@
1
+ /**
2
+ * Build-Time Validation Types
3
+ *
4
+ * Type definitions for the build-time validation system that integrates
5
+ * with various build tools and provides TypeScript transformer capabilities.
6
+ */
7
+ import type * as ts from 'typescript';
8
+ /**
9
+ * Validation rule for build-time checking
10
+ */
11
+ export interface BuildTimeValidationRule {
12
+ name: string;
13
+ severity: 'error' | 'warning' | 'info';
14
+ description: string;
15
+ validate(node: ts.Node, checker: ts.TypeChecker, context: ValidationContext): ValidationResult;
16
+ generateMessage?(error: BuildTimeValidationError): string;
17
+ suggestFix?(error: BuildTimeValidationError): CodeFix[];
18
+ }
19
+ /**
20
+ * Context for validation operations
21
+ */
22
+ export interface ValidationContext {
23
+ sourceFile: ts.SourceFile;
24
+ program: ts.Program;
25
+ checker: ts.TypeChecker;
26
+ fileName: string;
27
+ options: ValidationOptions;
28
+ }
29
+ /**
30
+ * Validation result from a rule
31
+ */
32
+ export interface ValidationResult {
33
+ valid: boolean;
34
+ errors?: BuildTimeValidationError[];
35
+ warnings?: BuildTimeValidationWarning[];
36
+ suggestions?: CodeFix[];
37
+ }
38
+ /**
39
+ * Build-time validation error details
40
+ */
41
+ export interface BuildTimeValidationError {
42
+ message: string;
43
+ code: string;
44
+ severity: 'error' | 'warning' | 'info';
45
+ line: number;
46
+ column: number;
47
+ length: number;
48
+ category: string;
49
+ component?: string;
50
+ suggestion?: string;
51
+ documentationLink?: string;
52
+ fix?: CodeFix;
53
+ }
54
+ /**
55
+ * Build-time validation warning details
56
+ */
57
+ export interface BuildTimeValidationWarning extends Omit<BuildTimeValidationError, 'severity'> {
58
+ severity: 'warning';
59
+ }
60
+ /**
61
+ * Code fix suggestion
62
+ */
63
+ export interface CodeFix {
64
+ description: string;
65
+ changes: TextChange[];
66
+ }
67
+ /**
68
+ * Text change for code fixes
69
+ */
70
+ export interface TextChange {
71
+ span: {
72
+ start: number;
73
+ length: number;
74
+ };
75
+ newText: string;
76
+ }
77
+ /**
78
+ * Build tool detection and integration
79
+ */
80
+ export interface BuildToolInfo {
81
+ name: string;
82
+ version?: string;
83
+ configFile?: string;
84
+ detected: boolean;
85
+ supported: boolean;
86
+ }
87
+ /**
88
+ * Validation options for build-time checking
89
+ */
90
+ export interface ValidationOptions {
91
+ enabled: boolean;
92
+ strictMode: boolean;
93
+ errorLevel: 'error' | 'warn' | 'info';
94
+ excludeFiles: string[];
95
+ includeFiles?: string[];
96
+ customRules: BuildTimeValidationRule[];
97
+ buildTool?: string;
98
+ configFile?: string;
99
+ }
100
+ /**
101
+ * Plugin configuration for different build tools
102
+ */
103
+ export interface PluginConfig {
104
+ vite?: VitePluginOptions;
105
+ webpack?: WebpackPluginOptions;
106
+ nextjs?: NextJSPluginOptions;
107
+ typescript?: TypeScriptPluginOptions;
108
+ }
109
+ /**
110
+ * Vite plugin options
111
+ */
112
+ export interface VitePluginOptions {
113
+ include?: string[];
114
+ exclude?: string[];
115
+ enforce?: 'pre' | 'post';
116
+ apply?: 'build' | 'serve' | ((config: any, env: any) => boolean);
117
+ }
118
+ /**
119
+ * Webpack plugin options
120
+ */
121
+ export interface WebpackPluginOptions {
122
+ test?: RegExp;
123
+ include?: RegExp | string[];
124
+ exclude?: RegExp | string[];
125
+ options?: Record<string, any>;
126
+ }
127
+ /**
128
+ * Next.js plugin options
129
+ */
130
+ export interface NextJSPluginOptions {
131
+ webpack?: WebpackPluginOptions;
132
+ babel?: BabelPluginOptions;
133
+ swc?: SWCPluginOptions;
134
+ }
135
+ /**
136
+ * TypeScript plugin options
137
+ */
138
+ export interface TypeScriptPluginOptions {
139
+ transformers?: {
140
+ before?: ts.TransformerFactory<ts.SourceFile>[];
141
+ after?: ts.TransformerFactory<ts.SourceFile>[];
142
+ afterDeclarations?: ts.TransformerFactory<ts.SourceFile>[];
143
+ };
144
+ }
145
+ /**
146
+ * Babel plugin options
147
+ */
148
+ export interface BabelPluginOptions {
149
+ include?: string[];
150
+ exclude?: string[];
151
+ presets?: any[];
152
+ plugins?: any[];
153
+ }
154
+ /**
155
+ * SWC plugin options
156
+ */
157
+ export interface SWCPluginOptions {
158
+ test?: RegExp;
159
+ options?: Record<string, any>;
160
+ }
161
+ /**
162
+ * Build integration result
163
+ */
164
+ export interface BuildIntegrationResult {
165
+ success: boolean;
166
+ buildTool: string;
167
+ message: string;
168
+ pluginRegistered: boolean;
169
+ configurationApplied: boolean;
170
+ errors?: string[];
171
+ }
172
+ /**
173
+ * Validation statistics for reporting
174
+ */
175
+ export interface ValidationStats {
176
+ filesProcessed: number;
177
+ errorsFound: number;
178
+ warningsFound: number;
179
+ rulesApplied: number;
180
+ fixesApplied: number;
181
+ processingTime: number;
182
+ }
183
+ /**
184
+ * Component validation patterns
185
+ */
186
+ export interface ComponentValidationPattern {
187
+ componentName: string;
188
+ requiredProps: string[];
189
+ optionalProps: string[];
190
+ validModifiers: string[];
191
+ invalidModifiers: string[];
192
+ examples: {
193
+ valid: string[];
194
+ invalid: string[];
195
+ };
196
+ }
197
+ /**
198
+ * Modifier validation patterns
199
+ */
200
+ export interface ModifierValidationPattern {
201
+ modifierName: string;
202
+ validComponents: string[];
203
+ parameterTypes: {
204
+ [index: number]: string[];
205
+ };
206
+ noParameters?: boolean;
207
+ examples: {
208
+ valid: string[];
209
+ invalid: string[];
210
+ };
211
+ }
212
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/build-time/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAA;AAErC;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,OAAO,GAAG,SAAS,GAAG,MAAM,CAAA;IACtC,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,CACN,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,OAAO,EAAE,EAAE,CAAC,WAAW,EACvB,OAAO,EAAE,iBAAiB,GACzB,gBAAgB,CAAA;IACnB,eAAe,CAAC,CAAC,KAAK,EAAE,wBAAwB,GAAG,MAAM,CAAA;IACzD,UAAU,CAAC,CAAC,KAAK,EAAE,wBAAwB,GAAG,OAAO,EAAE,CAAA;CACxD;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAA;IACzB,OAAO,EAAE,EAAE,CAAC,OAAO,CAAA;IACnB,OAAO,EAAE,EAAE,CAAC,WAAW,CAAA;IACvB,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,iBAAiB,CAAA;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,OAAO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