@tachui/core 0.7.1-alpha → 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.
- package/README.md +2 -2
- package/dist/bundles/common.d.ts +1 -1
- package/dist/bundles/common.d.ts.map +1 -1
- package/dist/bundles/minimal.d.ts +2 -16
- package/dist/bundles/minimal.d.ts.map +1 -1
- package/dist/bundles/production-minimal.d.ts +2 -16
- package/dist/bundles/production-minimal.d.ts.map +1 -1
- package/dist/common.js +403 -827
- package/dist/compiler/advanced-parser.d.ts.map +1 -1
- package/dist/compiler/index.js +14 -8
- package/dist/component-XAzF1xqs.js +487 -0
- package/dist/component-base-x2XmHFjy.js +255 -0
- package/dist/components/index.d.ts +4 -38
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +7 -4167
- package/dist/components/wrapper.d.ts +5 -152
- package/dist/components/wrapper.d.ts.map +1 -1
- package/dist/concatenated-component-ByPl3_FF.js +2933 -0
- package/dist/constants/index.d.ts +1 -1
- package/dist/constants/layout.d.ts +47 -4
- package/dist/constants/layout.d.ts.map +1 -1
- package/dist/constants/layout.js +84 -0
- package/dist/css-classes/index.js +176 -0
- package/dist/{dom-bridge-Cx-s6Ihx.js → dom-bridge-CAa1N2zX.js} +28 -28
- package/dist/{effect-CytAc9em.js → effect-B9Knft0b.js} +3 -3
- package/dist/essential.js +395 -825
- package/dist/index-DCPJFUm9.js +1407 -0
- package/dist/index-DIvMCJQO.js +268 -0
- package/dist/index-vdsiw6gQ.js +777 -0
- package/dist/index.d.ts +9 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +395 -825
- package/dist/minimal-prod.js +101 -155
- package/dist/minimal.js +104 -170
- package/dist/modifiers/background.d.ts +41 -11
- package/dist/modifiers/background.d.ts.map +1 -1
- package/dist/modifiers/base.d.ts +6 -33
- package/dist/modifiers/base.d.ts.map +1 -1
- package/dist/modifiers/base.js +487 -0
- package/dist/modifiers/builder.d.ts +103 -195
- package/dist/modifiers/builder.d.ts.map +1 -1
- package/dist/modifiers/builder.js +9 -0
- package/dist/modifiers/core.d.ts +9 -401
- package/dist/modifiers/core.d.ts.map +1 -1
- package/dist/modifiers/{utils.d.ts → factories.d.ts} +18 -5
- package/dist/modifiers/factories.d.ts.map +1 -0
- package/dist/modifiers/index.d.ts +8 -52
- package/dist/modifiers/index.d.ts.map +1 -1
- package/dist/modifiers/index.js +38 -0
- package/dist/modifiers/presets.d.ts +368 -0
- package/dist/modifiers/presets.d.ts.map +1 -0
- package/dist/modifiers/registry.js +10 -0
- package/dist/modifiers/types.d.ts +39 -211
- package/dist/modifiers/types.d.ts.map +1 -1
- package/dist/modifiers/types.js +4 -0
- package/dist/performance-optimizer-stub-CtfXUwl4.js +38 -0
- package/dist/plugins/index.d.ts +5 -6
- package/dist/plugins/index.d.ts.map +1 -1
- package/dist/plugins/index.js +147 -297
- package/dist/plugins/simplified-index.d.ts +5 -6
- package/dist/plugins/simplified-index.d.ts.map +1 -1
- package/dist/production-minimal-BY_gMc-l.js +2532 -0
- package/dist/reactive/index.js +96 -95
- package/dist/reactive/types.js +4 -0
- package/dist/runtime/dom-bridge.js +5 -5
- package/dist/runtime/element-override.d.ts.map +1 -1
- package/dist/runtime/index.d.ts +0 -7
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/renderer.d.ts.map +1 -1
- package/dist/runtime/renderer.js +7 -8
- package/dist/runtime/semantic-role-manager.d.ts.map +1 -1
- package/dist/runtime/types.js +1 -0
- package/dist/{scheduler-7SvC3a21.js → scheduler-BKeqwrYE.js} +130 -130
- package/dist/validation/build-time-stub.d.ts +33 -0
- package/dist/validation/build-time-stub.d.ts.map +1 -0
- package/dist/validation/debug-tools-stub.d.ts +67 -0
- package/dist/validation/debug-tools-stub.d.ts.map +1 -0
- package/dist/validation/index.d.ts +23 -78
- package/dist/validation/index.d.ts.map +1 -1
- package/dist/validation/index.js +609 -6470
- package/dist/validation/lifecycle-validation.d.ts.map +1 -1
- package/dist/validation/performance-optimizer-stub.d.ts +50 -0
- package/dist/validation/performance-optimizer-stub.d.ts.map +1 -0
- package/dist/validation/plugin-registration.d.ts +5 -1
- package/dist/validation/plugin-registration.d.ts.map +1 -1
- package/dist/validation/production-bypass-core.d.ts +69 -0
- package/dist/validation/production-bypass-core.d.ts.map +1 -0
- package/package.json +41 -5
- package/dist/ScrollView-h-6wYMAm.js +0 -515
- package/dist/Spacer-BbteDQ9I.js +0 -5337
- package/dist/binding-CmdpowkI.js +0 -2276
- package/dist/components/BasicInput.d.ts +0 -116
- package/dist/components/BasicInput.d.ts.map +0 -1
- package/dist/components/Button.d.ts +0 -252
- package/dist/components/Button.d.ts.map +0 -1
- package/dist/components/Divider.d.ts +0 -141
- package/dist/components/Divider.d.ts.map +0 -1
- package/dist/components/EnhancedLink.d.ts +0 -365
- package/dist/components/EnhancedLink.d.ts.map +0 -1
- package/dist/components/Form.d.ts +0 -141
- package/dist/components/Form.d.ts.map +0 -1
- package/dist/components/Grid.d.ts +0 -698
- package/dist/components/Grid.d.ts.map +0 -1
- package/dist/components/GridResponsive.d.ts +0 -214
- package/dist/components/GridResponsive.d.ts.map +0 -1
- package/dist/components/Image.d.ts +0 -162
- package/dist/components/Image.d.ts.map +0 -1
- package/dist/components/List.d.ts +0 -287
- package/dist/components/List.d.ts.map +0 -1
- package/dist/components/Menu.d.ts +0 -159
- package/dist/components/Menu.d.ts.map +0 -1
- package/dist/components/Picker.d.ts +0 -153
- package/dist/components/Picker.d.ts.map +0 -1
- package/dist/components/ScrollView.d.ts +0 -222
- package/dist/components/ScrollView.d.ts.map +0 -1
- package/dist/components/Section.d.ts +0 -153
- package/dist/components/Section.d.ts.map +0 -1
- package/dist/components/Show.d.ts +0 -64
- package/dist/components/Show.d.ts.map +0 -1
- package/dist/components/Spacer.d.ts +0 -35
- package/dist/components/Spacer.d.ts.map +0 -1
- package/dist/components/Text.d.ts +0 -242
- package/dist/components/Text.d.ts.map +0 -1
- package/dist/components/Toggle.d.ts +0 -207
- package/dist/components/Toggle.d.ts.map +0 -1
- package/dist/concatenated-component-DPcl2TEO.js +0 -6779
- package/dist/context--zQFIImS.js +0 -283
- package/dist/debug/index.d.ts +0 -61
- package/dist/debug/index.d.ts.map +0 -1
- package/dist/debug.js +0 -178
- package/dist/developer-experience/enhanced-errors.d.ts +0 -128
- package/dist/developer-experience/enhanced-errors.d.ts.map +0 -1
- package/dist/developer-experience/enhanced-types.d.ts +0 -281
- package/dist/developer-experience/enhanced-types.d.ts.map +0 -1
- package/dist/developer-experience/index.d.ts +0 -44
- package/dist/developer-experience/index.d.ts.map +0 -1
- package/dist/index-Nfi2SBQh.js +0 -3268
- package/dist/modifiers/attributes.d.ts +0 -203
- package/dist/modifiers/attributes.d.ts.map +0 -1
- package/dist/modifiers/backdrop.d.ts +0 -59
- package/dist/modifiers/backdrop.d.ts.map +0 -1
- package/dist/modifiers/border.d.ts +0 -217
- package/dist/modifiers/border.d.ts.map +0 -1
- package/dist/modifiers/effects.d.ts +0 -159
- package/dist/modifiers/effects.d.ts.map +0 -1
- package/dist/modifiers/elements.d.ts +0 -240
- package/dist/modifiers/elements.d.ts.map +0 -1
- package/dist/modifiers/filters.d.ts +0 -275
- package/dist/modifiers/filters.d.ts.map +0 -1
- package/dist/modifiers/flexbox.d.ts +0 -82
- package/dist/modifiers/flexbox.d.ts.map +0 -1
- package/dist/modifiers/font.d.ts +0 -71
- package/dist/modifiers/font.d.ts.map +0 -1
- package/dist/modifiers/grid.d.ts +0 -92
- package/dist/modifiers/grid.d.ts.map +0 -1
- package/dist/modifiers/margin.d.ts +0 -128
- package/dist/modifiers/margin.d.ts.map +0 -1
- package/dist/modifiers/padding.d.ts +0 -204
- package/dist/modifiers/padding.d.ts.map +0 -1
- package/dist/modifiers/responsive/advanced-utilities.d.ts +0 -118
- package/dist/modifiers/responsive/advanced-utilities.d.ts.map +0 -1
- package/dist/modifiers/responsive/breakpoints.d.ts +0 -81
- package/dist/modifiers/responsive/breakpoints.d.ts.map +0 -1
- package/dist/modifiers/responsive/css-generator.d.ts +0 -100
- package/dist/modifiers/responsive/css-generator.d.ts.map +0 -1
- package/dist/modifiers/responsive/dev-tools.d.ts +0 -107
- package/dist/modifiers/responsive/dev-tools.d.ts.map +0 -1
- package/dist/modifiers/responsive/index.d.ts +0 -29
- package/dist/modifiers/responsive/index.d.ts.map +0 -1
- package/dist/modifiers/responsive/layout-patterns.d.ts +0 -230
- package/dist/modifiers/responsive/layout-patterns.d.ts.map +0 -1
- package/dist/modifiers/responsive/performance.d.ts +0 -130
- package/dist/modifiers/responsive/performance.d.ts.map +0 -1
- package/dist/modifiers/responsive/responsive-builder.d.ts +0 -133
- package/dist/modifiers/responsive/responsive-builder.d.ts.map +0 -1
- package/dist/modifiers/responsive/responsive-modifier.d.ts +0 -123
- package/dist/modifiers/responsive/responsive-modifier.d.ts.map +0 -1
- package/dist/modifiers/responsive/types.d.ts +0 -183
- package/dist/modifiers/responsive/types.d.ts.map +0 -1
- package/dist/modifiers/responsive/utilities.d.ts +0 -149
- package/dist/modifiers/responsive/utilities.d.ts.map +0 -1
- package/dist/modifiers/scroll.d.ts +0 -143
- package/dist/modifiers/scroll.d.ts.map +0 -1
- package/dist/modifiers/shadows.d.ts +0 -114
- package/dist/modifiers/shadows.d.ts.map +0 -1
- package/dist/modifiers/size.d.ts +0 -113
- package/dist/modifiers/size.d.ts.map +0 -1
- package/dist/modifiers/text.d.ts +0 -147
- package/dist/modifiers/text.d.ts.map +0 -1
- package/dist/modifiers/transformations.d.ts +0 -329
- package/dist/modifiers/transformations.d.ts.map +0 -1
- package/dist/modifiers/transitions.d.ts +0 -98
- package/dist/modifiers/transitions.d.ts.map +0 -1
- package/dist/modifiers/typography.d.ts +0 -192
- package/dist/modifiers/typography.d.ts.map +0 -1
- package/dist/modifiers/utility.d.ts +0 -69
- package/dist/modifiers/utility.d.ts.map +0 -1
- package/dist/modifiers/utils.d.ts.map +0 -1
- package/dist/plugins/simplified-error-handler.d.ts +0 -83
- package/dist/plugins/simplified-error-handler.d.ts.map +0 -1
- package/dist/runtime/dev-tools.d.ts +0 -240
- package/dist/runtime/dev-tools.d.ts.map +0 -1
- package/dist/runtime/development-warnings.d.ts +0 -42
- package/dist/runtime/development-warnings.d.ts.map +0 -1
- package/dist/runtime/error-boundary.d.ts +0 -302
- package/dist/runtime/error-boundary.d.ts.map +0 -1
- package/dist/runtime/error-recovery.d.ts +0 -267
- package/dist/runtime/error-recovery.d.ts.map +0 -1
- package/dist/runtime/error-reporting.d.ts +0 -287
- package/dist/runtime/error-reporting.d.ts.map +0 -1
- package/dist/runtime/error-utils.d.ts +0 -204
- package/dist/runtime/error-utils.d.ts.map +0 -1
- package/dist/runtime/performance.d.ts +0 -217
- package/dist/runtime/performance.d.ts.map +0 -1
- package/dist/sui-compat.d.ts +0 -110
- package/dist/sui-compat.d.ts.map +0 -1
- package/dist/validation/advanced-debugging.d.ts +0 -319
- package/dist/validation/advanced-debugging.d.ts.map +0 -1
- package/dist/validation/build-time/detection.d.ts +0 -32
- package/dist/validation/build-time/detection.d.ts.map +0 -1
- package/dist/validation/build-time/index.d.ts +0 -84
- package/dist/validation/build-time/index.d.ts.map +0 -1
- package/dist/validation/build-time/plugins.d.ts +0 -75
- package/dist/validation/build-time/plugins.d.ts.map +0 -1
- package/dist/validation/build-time/rules.d.ts +0 -73
- package/dist/validation/build-time/rules.d.ts.map +0 -1
- package/dist/validation/build-time/transformer.d.ts +0 -23
- package/dist/validation/build-time/transformer.d.ts.map +0 -1
- package/dist/validation/build-time/types.d.ts +0 -212
- package/dist/validation/build-time/types.d.ts.map +0 -1
- package/dist/validation/comprehensive.d.ts +0 -160
- package/dist/validation/comprehensive.d.ts.map +0 -1
- package/dist/validation/debug-tools.d.ts +0 -251
- package/dist/validation/debug-tools.d.ts.map +0 -1
- package/dist/validation/developer-experience.d.ts +0 -243
- package/dist/validation/developer-experience.d.ts.map +0 -1
- package/dist/validation/documentation-integration.d.ts +0 -269
- package/dist/validation/documentation-integration.d.ts.map +0 -1
- package/dist/validation/enhanced-runtime.d.ts +0 -279
- package/dist/validation/enhanced-runtime.d.ts.map +0 -1
- package/dist/validation/error-reporting.d.ts +0 -186
- package/dist/validation/error-reporting.d.ts.map +0 -1
- package/dist/validation/ide-integration.d.ts +0 -328
- package/dist/validation/ide-integration.d.ts.map +0 -1
- package/dist/validation/performance-optimizer.d.ts +0 -218
- package/dist/validation/performance-optimizer.d.ts.map +0 -1
- package/dist/validation/production-bypass.d.ts +0 -175
- package/dist/validation/production-bypass.d.ts.map +0 -1
- package/dist/validation/simple.d.ts +0 -111
- package/dist/validation/simple.d.ts.map +0 -1
- package/dist/viewport/adapters/web-adapter.d.ts +0 -227
- package/dist/viewport/adapters/web-adapter.d.ts.map +0 -1
- package/dist/viewport/components.d.ts +0 -131
- package/dist/viewport/components.d.ts.map +0 -1
- package/dist/viewport/environment.d.ts +0 -75
- package/dist/viewport/environment.d.ts.map +0 -1
- package/dist/viewport/index.d.ts +0 -138
- package/dist/viewport/index.d.ts.map +0 -1
- package/dist/viewport/index.js +0 -2085
- package/dist/viewport/platform-detection.d.ts +0 -59
- package/dist/viewport/platform-detection.d.ts.map +0 -1
- package/dist/viewport/types.d.ts +0 -301
- package/dist/viewport/types.d.ts.map +0 -1
- package/dist/viewport/viewport-manager.d.ts +0 -118
- package/dist/viewport/viewport-manager.d.ts.map +0 -1
|
@@ -1,217 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Performance Monitoring System (Phase 3.2.2)
|
|
3
|
-
*
|
|
4
|
-
* Comprehensive performance monitoring and debugging tools for TachUI.
|
|
5
|
-
* Tracks component lifecycle metrics, reactive system performance,
|
|
6
|
-
* and provides detailed debugging information.
|
|
7
|
-
*/
|
|
8
|
-
/**
|
|
9
|
-
* Performance metric types
|
|
10
|
-
*/
|
|
11
|
-
export interface PerformanceMetric {
|
|
12
|
-
name: string;
|
|
13
|
-
value: number;
|
|
14
|
-
unit: 'ms' | 'bytes' | 'count';
|
|
15
|
-
timestamp: number;
|
|
16
|
-
category: 'component' | 'reactive' | 'render' | 'memory';
|
|
17
|
-
componentId?: string;
|
|
18
|
-
phase?: string;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Component performance data
|
|
22
|
-
*/
|
|
23
|
-
export interface ComponentMetrics {
|
|
24
|
-
id: string;
|
|
25
|
-
name: string;
|
|
26
|
-
mountTime: number;
|
|
27
|
-
renderTime: number;
|
|
28
|
-
updateCount: number;
|
|
29
|
-
propsChanges: number;
|
|
30
|
-
lastRenderDuration: number;
|
|
31
|
-
memoryUsage: number;
|
|
32
|
-
children: ComponentMetrics[];
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Reactive system metrics
|
|
36
|
-
*/
|
|
37
|
-
export interface ReactiveMetrics {
|
|
38
|
-
signalCount: number;
|
|
39
|
-
computedCount: number;
|
|
40
|
-
effectCount: number;
|
|
41
|
-
signalUpdates: number;
|
|
42
|
-
computedRecalculations: number;
|
|
43
|
-
effectExecutions: number;
|
|
44
|
-
averageUpdateTime: number;
|
|
45
|
-
memoryFootprint: number;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Performance monitoring options
|
|
49
|
-
*/
|
|
50
|
-
export interface MonitoringOptions {
|
|
51
|
-
enabled: boolean;
|
|
52
|
-
trackComponents: boolean;
|
|
53
|
-
trackReactive: boolean;
|
|
54
|
-
trackMemory: boolean;
|
|
55
|
-
trackRender: boolean;
|
|
56
|
-
sampleRate: number;
|
|
57
|
-
maxMetrics: number;
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Performance event listener
|
|
61
|
-
*/
|
|
62
|
-
export type PerformanceListener = (metric: PerformanceMetric) => void;
|
|
63
|
-
/**
|
|
64
|
-
* Comprehensive performance monitoring system
|
|
65
|
-
*/
|
|
66
|
-
export declare class PerformanceMonitor {
|
|
67
|
-
private static instance;
|
|
68
|
-
private options;
|
|
69
|
-
private metrics;
|
|
70
|
-
private componentMetrics;
|
|
71
|
-
private reactiveMetrics;
|
|
72
|
-
private listeners;
|
|
73
|
-
private timers;
|
|
74
|
-
private metricsSignal;
|
|
75
|
-
private setMetrics;
|
|
76
|
-
private componentMetricsSignal;
|
|
77
|
-
private setComponentMetrics;
|
|
78
|
-
constructor();
|
|
79
|
-
static getInstance(): PerformanceMonitor;
|
|
80
|
-
/**
|
|
81
|
-
* Configure monitoring options
|
|
82
|
-
*/
|
|
83
|
-
configure(options: Partial<MonitoringOptions>): void;
|
|
84
|
-
/**
|
|
85
|
-
* Enable performance monitoring
|
|
86
|
-
*/
|
|
87
|
-
enable(): void;
|
|
88
|
-
/**
|
|
89
|
-
* Disable performance monitoring
|
|
90
|
-
*/
|
|
91
|
-
disable(): void;
|
|
92
|
-
/**
|
|
93
|
-
* Check if monitoring is enabled
|
|
94
|
-
*/
|
|
95
|
-
isEnabled(): boolean;
|
|
96
|
-
/**
|
|
97
|
-
* Start timing an operation
|
|
98
|
-
*/
|
|
99
|
-
startTimer(name: string): void;
|
|
100
|
-
/**
|
|
101
|
-
* End timing and record metric
|
|
102
|
-
*/
|
|
103
|
-
endTimer(name: string, category?: PerformanceMetric['category'], componentId?: string): number;
|
|
104
|
-
/**
|
|
105
|
-
* Record a custom metric
|
|
106
|
-
*/
|
|
107
|
-
recordMetric(metric: PerformanceMetric): void;
|
|
108
|
-
/**
|
|
109
|
-
* Track component mount
|
|
110
|
-
*/
|
|
111
|
-
trackComponentMount(componentId: string, componentName: string): void;
|
|
112
|
-
/**
|
|
113
|
-
* Track component unmount
|
|
114
|
-
*/
|
|
115
|
-
trackComponentUnmount(componentId: string): void;
|
|
116
|
-
/**
|
|
117
|
-
* Track component render
|
|
118
|
-
*/
|
|
119
|
-
trackComponentRender(componentId: string, duration: number): void;
|
|
120
|
-
/**
|
|
121
|
-
* Track props changes
|
|
122
|
-
*/
|
|
123
|
-
trackPropsChange(componentId: string, changedKeys: string[]): void;
|
|
124
|
-
/**
|
|
125
|
-
* Track reactive system metrics
|
|
126
|
-
*/
|
|
127
|
-
trackReactiveOperation(type: 'signal' | 'computed' | 'effect', operation: 'create' | 'update' | 'execute', duration?: number): void;
|
|
128
|
-
/**
|
|
129
|
-
* Track memory usage
|
|
130
|
-
*/
|
|
131
|
-
trackMemoryUsage(): void;
|
|
132
|
-
/**
|
|
133
|
-
* Estimate memory usage (simplified)
|
|
134
|
-
*/
|
|
135
|
-
private estimateMemoryUsage;
|
|
136
|
-
/**
|
|
137
|
-
* Get all metrics
|
|
138
|
-
*/
|
|
139
|
-
getMetrics(): PerformanceMetric[];
|
|
140
|
-
/**
|
|
141
|
-
* Get reactive metrics signal
|
|
142
|
-
*/
|
|
143
|
-
getMetricsSignal(): () => PerformanceMetric[];
|
|
144
|
-
/**
|
|
145
|
-
* Get component metrics
|
|
146
|
-
*/
|
|
147
|
-
getComponentMetrics(): Map<string, ComponentMetrics>;
|
|
148
|
-
/**
|
|
149
|
-
* Get component metrics signal
|
|
150
|
-
*/
|
|
151
|
-
getComponentMetricsSignal(): () => Map<string, ComponentMetrics>;
|
|
152
|
-
/**
|
|
153
|
-
* Get reactive system metrics
|
|
154
|
-
*/
|
|
155
|
-
getReactiveMetrics(): ReactiveMetrics;
|
|
156
|
-
/**
|
|
157
|
-
* Get metrics by category
|
|
158
|
-
*/
|
|
159
|
-
getMetricsByCategory(category: PerformanceMetric['category']): PerformanceMetric[];
|
|
160
|
-
/**
|
|
161
|
-
* Get metrics by component
|
|
162
|
-
*/
|
|
163
|
-
getMetricsByComponent(componentId: string): PerformanceMetric[];
|
|
164
|
-
/**
|
|
165
|
-
* Get average metric value
|
|
166
|
-
*/
|
|
167
|
-
getAverageMetric(name: string): number;
|
|
168
|
-
/**
|
|
169
|
-
* Get performance summary
|
|
170
|
-
*/
|
|
171
|
-
getSummary(): {
|
|
172
|
-
totalMetrics: number;
|
|
173
|
-
componentCount: number;
|
|
174
|
-
reactive: ReactiveMetrics;
|
|
175
|
-
averageRenderTime: number;
|
|
176
|
-
averageMemoryUsage: number;
|
|
177
|
-
mostActiveComponent: string | null;
|
|
178
|
-
};
|
|
179
|
-
/**
|
|
180
|
-
* Add performance listener
|
|
181
|
-
*/
|
|
182
|
-
addListener(listener: PerformanceListener): () => void;
|
|
183
|
-
/**
|
|
184
|
-
* Clear all metrics
|
|
185
|
-
*/
|
|
186
|
-
clear(): void;
|
|
187
|
-
/**
|
|
188
|
-
* Export metrics to JSON
|
|
189
|
-
*/
|
|
190
|
-
exportMetrics(): string;
|
|
191
|
-
/**
|
|
192
|
-
* Import metrics from JSON
|
|
193
|
-
*/
|
|
194
|
-
importMetrics(json: string): void;
|
|
195
|
-
}
|
|
196
|
-
/**
|
|
197
|
-
* Global performance monitor instance
|
|
198
|
-
*/
|
|
199
|
-
export declare const globalPerformanceMonitor: PerformanceMonitor;
|
|
200
|
-
/**
|
|
201
|
-
* Performance monitoring decorators and utilities
|
|
202
|
-
*/
|
|
203
|
-
export declare const performanceUtils: {
|
|
204
|
-
/**
|
|
205
|
-
* Measure function execution time
|
|
206
|
-
*/
|
|
207
|
-
measure<T>(name: string, fn: () => T, category?: PerformanceMetric["category"]): T;
|
|
208
|
-
/**
|
|
209
|
-
* Async function measurement
|
|
210
|
-
*/
|
|
211
|
-
measureAsync<T>(name: string, fn: () => Promise<T>, category?: PerformanceMetric["category"]): Promise<T>;
|
|
212
|
-
/**
|
|
213
|
-
* Create a performance tracking wrapper for components
|
|
214
|
-
*/
|
|
215
|
-
withPerformanceTracking<T extends (...args: any[]) => any>(componentFn: T, componentName: string): T;
|
|
216
|
-
};
|
|
217
|
-
//# sourceMappingURL=performance.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"performance.d.ts","sourceRoot":"","sources":["../../src/runtime/performance.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,IAAI,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H,eAAO,MAAM,gBAAgB;IAC3B;;OAEG;YACK,CAAC,QAAQ,MAAM,MAAM,MAAM,CAAC,aAAY,iBAAiB,CAAC,UAAU,CAAC,GAAiB,CAAC;IAc/F;;OAEG;iBACgB,CAAC,QACZ,MAAM,MACR,MAAM,OAAO,CAAC,CAAC,CAAC,aACV,iBAAiB,CAAC,UAAU,CAAC,GACtC,OAAO,CAAC,CAAC,CAAC;IAcb;;OAEG;4BACqB,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,eAC1C,CAAC,iBACC,MAAM,GACpB,CAAC;CAgBL,CAAA"}
|
package/dist/sui-compat.d.ts
DELETED
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* SUI Compatibility Layer (SUI = SwiftUI-inspired)
|
|
3
|
-
*
|
|
4
|
-
* Provides SwiftUI-style APIs and constants for familiar development experience.
|
|
5
|
-
* Enables easy migration from SwiftUI to TachUI with minimal syntax changes.
|
|
6
|
-
*/
|
|
7
|
-
import { infinity } from './constants/layout';
|
|
8
|
-
import type { Dimension } from './constants/layout';
|
|
9
|
-
/**
|
|
10
|
-
* SUI-style constant exports (SUI = SwiftUI-inspired)
|
|
11
|
-
* Allows usage like: import { SUI } from '@tachui/core'; SUI.infinity
|
|
12
|
-
*/
|
|
13
|
-
export declare const SUI: {
|
|
14
|
-
readonly infinity: typeof infinity;
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* Direct infinity export for convenience
|
|
18
|
-
* Allows usage like: import { infinity } from '@tachui/core'
|
|
19
|
-
*/
|
|
20
|
-
export { infinity };
|
|
21
|
-
/**
|
|
22
|
-
* Type exports for SwiftUI compatibility
|
|
23
|
-
*/
|
|
24
|
-
export type { Dimension };
|
|
25
|
-
/**
|
|
26
|
-
* Frame utility exports for convenience
|
|
27
|
-
*/
|
|
28
|
-
export { fillMaxWidth, fillMaxHeight, fillMaxSize, expand, fixedWidthExpandHeight, fixedHeightExpandWidth, constrainedExpand, responsive, flexible, fullScreen, remainingSpace, equalShare } from './constants/frame-utils';
|
|
29
|
-
import { fillMaxWidth, fillMaxHeight, fillMaxSize, expand, flexible, fullScreen, remainingSpace, equalShare } from './constants/frame-utils';
|
|
30
|
-
/**
|
|
31
|
-
* SUI-style frame helpers namespace (SUI = SwiftUI-inspired)
|
|
32
|
-
* Provides organized access to frame utilities
|
|
33
|
-
*/
|
|
34
|
-
export declare const Frame: {
|
|
35
|
-
readonly fillMaxWidth: typeof fillMaxWidth;
|
|
36
|
-
readonly fillMaxHeight: typeof fillMaxHeight;
|
|
37
|
-
readonly fillMaxSize: typeof fillMaxSize;
|
|
38
|
-
readonly expand: typeof expand;
|
|
39
|
-
readonly flexible: typeof flexible;
|
|
40
|
-
readonly fullScreen: typeof fullScreen;
|
|
41
|
-
readonly remainingSpace: typeof remainingSpace;
|
|
42
|
-
readonly equalShare: typeof equalShare;
|
|
43
|
-
};
|
|
44
|
-
/**
|
|
45
|
-
* Common SUI layout patterns (SUI = SwiftUI-inspired)
|
|
46
|
-
*/
|
|
47
|
-
export declare const LayoutPatterns: {
|
|
48
|
-
/**
|
|
49
|
-
* Full-width button pattern
|
|
50
|
-
* Common in forms and action sheets
|
|
51
|
-
*/
|
|
52
|
-
readonly fullWidthButton: typeof fillMaxWidth;
|
|
53
|
-
/**
|
|
54
|
-
* Sidebar layout pattern
|
|
55
|
-
* Fixed width with full height
|
|
56
|
-
*/
|
|
57
|
-
readonly sidebar: (width?: number | string) => import("./modifiers").Modifier<{}>;
|
|
58
|
-
/**
|
|
59
|
-
* Header/footer pattern
|
|
60
|
-
* Fixed height with full width
|
|
61
|
-
*/
|
|
62
|
-
readonly header: (height?: number | string) => import("./modifiers").Modifier<{}>;
|
|
63
|
-
/**
|
|
64
|
-
* Content area pattern
|
|
65
|
-
* Fills remaining space with constraints
|
|
66
|
-
*/
|
|
67
|
-
readonly content: (maxWidth?: number | string) => import("./modifiers").Modifier<{}>;
|
|
68
|
-
/**
|
|
69
|
-
* Card layout pattern
|
|
70
|
-
* Responsive with sensible constraints
|
|
71
|
-
*/
|
|
72
|
-
readonly card: import("./modifiers").Modifier<{}>;
|
|
73
|
-
/**
|
|
74
|
-
* Modal overlay pattern
|
|
75
|
-
* Full screen coverage
|
|
76
|
-
*/
|
|
77
|
-
readonly overlay: typeof fullScreen;
|
|
78
|
-
};
|
|
79
|
-
/**
|
|
80
|
-
* Migration helpers for SUI developers (SUI = SwiftUI-inspired)
|
|
81
|
-
* Common patterns mapped to TachUI equivalents
|
|
82
|
-
*/
|
|
83
|
-
export declare const SuiMigration: {
|
|
84
|
-
/**
|
|
85
|
-
* Pattern: .frame(maxWidth: .infinity)
|
|
86
|
-
* TachUI: fillMaxWidth()
|
|
87
|
-
*/
|
|
88
|
-
readonly 'frame(maxWidth: .infinity)': typeof fillMaxWidth;
|
|
89
|
-
/**
|
|
90
|
-
* Pattern: .frame(maxHeight: .infinity)
|
|
91
|
-
* TachUI: fillMaxHeight()
|
|
92
|
-
*/
|
|
93
|
-
readonly 'frame(maxHeight: .infinity)': typeof fillMaxHeight;
|
|
94
|
-
/**
|
|
95
|
-
* Pattern: .frame(maxWidth: .infinity, maxHeight: .infinity)
|
|
96
|
-
* TachUI: fillMaxSize()
|
|
97
|
-
*/
|
|
98
|
-
readonly 'frame(maxWidth: .infinity, maxHeight: .infinity)': typeof fillMaxSize;
|
|
99
|
-
/**
|
|
100
|
-
* Pattern: .frame(width: .infinity, height: .infinity)
|
|
101
|
-
* TachUI: expand()
|
|
102
|
-
*/
|
|
103
|
-
readonly 'frame(width: .infinity, height: .infinity)': typeof expand;
|
|
104
|
-
};
|
|
105
|
-
/**
|
|
106
|
-
* Debug helper for SUI compatibility (SUI = SwiftUI-inspired)
|
|
107
|
-
* Logs equivalencies for learning purposes
|
|
108
|
-
*/
|
|
109
|
-
export declare function logSuiEquivalent(suiCode: string): void;
|
|
110
|
-
//# sourceMappingURL=sui-compat.d.ts.map
|
package/dist/sui-compat.d.ts.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
* Advanced Developer Debugging Tools - Phase 1D
|
|
3
|
-
*
|
|
4
|
-
* Enhanced validation state inspection, visual debugging tools,
|
|
5
|
-
* and comprehensive developer diagnostics.
|
|
6
|
-
*/
|
|
7
|
-
import type { ValidationDebugEventType, DebugEvent } from './debug-tools';
|
|
8
|
-
import type { FormattedErrorMessage } from './developer-experience';
|
|
9
|
-
/**
|
|
10
|
-
* Advanced debugging configuration
|
|
11
|
-
*/
|
|
12
|
-
export interface AdvancedDebuggingConfig {
|
|
13
|
-
enableVisualDebugging: boolean;
|
|
14
|
-
highlightValidationErrors: boolean;
|
|
15
|
-
showComponentBoundaries: boolean;
|
|
16
|
-
showModifierEffects: boolean;
|
|
17
|
-
enableStateInspection: boolean;
|
|
18
|
-
trackStateChanges: boolean;
|
|
19
|
-
showStateHistory: boolean;
|
|
20
|
-
maxHistorySize: number;
|
|
21
|
-
enablePerformanceDebugging: boolean;
|
|
22
|
-
trackRenderTimes: boolean;
|
|
23
|
-
showMemoryUsage: boolean;
|
|
24
|
-
enableFrameProfiler: boolean;
|
|
25
|
-
enableInteractiveMode: boolean;
|
|
26
|
-
showDebugPanel: boolean;
|
|
27
|
-
enableBreakpoints: boolean;
|
|
28
|
-
enableStepThrough: boolean;
|
|
29
|
-
enableDebugExport: boolean;
|
|
30
|
-
exportFormat: 'json' | 'csv' | 'html';
|
|
31
|
-
includeSourceMaps: boolean;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Component state snapshot for debugging
|
|
35
|
-
*/
|
|
36
|
-
export interface ComponentStateSnapshot {
|
|
37
|
-
id: string;
|
|
38
|
-
componentType: string;
|
|
39
|
-
timestamp: number;
|
|
40
|
-
props: Record<string, any>;
|
|
41
|
-
state: Record<string, any>;
|
|
42
|
-
modifiers: string[];
|
|
43
|
-
validationErrors: FormattedErrorMessage[];
|
|
44
|
-
validationWarnings: FormattedErrorMessage[];
|
|
45
|
-
isValid: boolean;
|
|
46
|
-
renderTime: number;
|
|
47
|
-
memoryUsage: number;
|
|
48
|
-
updateCount: number;
|
|
49
|
-
domNode?: {
|
|
50
|
-
tagName: string;
|
|
51
|
-
className: string;
|
|
52
|
-
attributes: Record<string, string>;
|
|
53
|
-
computedStyles: Record<string, string>;
|
|
54
|
-
};
|
|
55
|
-
parent?: string;
|
|
56
|
-
children: string[];
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Validation state inspector
|
|
60
|
-
*/
|
|
61
|
-
export interface ValidationStateInspector {
|
|
62
|
-
id: string;
|
|
63
|
-
target: 'component' | 'modifier' | 'global';
|
|
64
|
-
targetId?: string;
|
|
65
|
-
watchProperties: string[];
|
|
66
|
-
watchEvents: ValidationDebugEventType[];
|
|
67
|
-
snapshots: ComponentStateSnapshot[];
|
|
68
|
-
events: DebugEvent[];
|
|
69
|
-
trends: {
|
|
70
|
-
errorFrequency: number;
|
|
71
|
-
performanceRegression: boolean;
|
|
72
|
-
memoryLeaks: boolean;
|
|
73
|
-
stateInconsistencies: boolean;
|
|
74
|
-
};
|
|
75
|
-
isActive: boolean;
|
|
76
|
-
startTime: number;
|
|
77
|
-
lastUpdate: number;
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Visual debugging overlay
|
|
81
|
-
*/
|
|
82
|
-
export interface VisualDebuggingOverlay {
|
|
83
|
-
id: string;
|
|
84
|
-
type: 'error-highlight' | 'component-boundary' | 'modifier-effect' | 'performance-heatmap';
|
|
85
|
-
color: string;
|
|
86
|
-
opacity: number;
|
|
87
|
-
strokeWidth: number;
|
|
88
|
-
animation?: 'pulse' | 'fade' | 'shake';
|
|
89
|
-
bounds: {
|
|
90
|
-
x: number;
|
|
91
|
-
y: number;
|
|
92
|
-
width: number;
|
|
93
|
-
height: number;
|
|
94
|
-
};
|
|
95
|
-
label?: string;
|
|
96
|
-
tooltip?: string;
|
|
97
|
-
additionalInfo?: Record<string, any>;
|
|
98
|
-
duration: number;
|
|
99
|
-
createdAt: number;
|
|
100
|
-
expiresAt: number;
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* Advanced debugging session
|
|
104
|
-
*/
|
|
105
|
-
export interface AdvancedDebuggingSession {
|
|
106
|
-
id: string;
|
|
107
|
-
name: string;
|
|
108
|
-
description: string;
|
|
109
|
-
startTime: number;
|
|
110
|
-
endTime?: number;
|
|
111
|
-
duration?: number;
|
|
112
|
-
components: Map<string, ComponentStateSnapshot[]>;
|
|
113
|
-
validators: ValidationStateInspector[];
|
|
114
|
-
overlays: VisualDebuggingOverlay[];
|
|
115
|
-
events: DebugEvent[];
|
|
116
|
-
summary: {
|
|
117
|
-
totalErrors: number;
|
|
118
|
-
totalWarnings: number;
|
|
119
|
-
criticalIssues: string[];
|
|
120
|
-
performanceIssues: string[];
|
|
121
|
-
recommendations: string[];
|
|
122
|
-
};
|
|
123
|
-
exported: boolean;
|
|
124
|
-
exportFormat?: string;
|
|
125
|
-
exportPath?: string;
|
|
126
|
-
}
|
|
127
|
-
/**
|
|
128
|
-
* Advanced validation state inspector
|
|
129
|
-
*/
|
|
130
|
-
export declare class AdvancedValidationInspector {
|
|
131
|
-
private inspectors;
|
|
132
|
-
private snapshots;
|
|
133
|
-
private overlays;
|
|
134
|
-
private activeSession;
|
|
135
|
-
/**
|
|
136
|
-
* Create a new state inspector
|
|
137
|
-
*/
|
|
138
|
-
createInspector(target: 'component' | 'modifier' | 'global', targetId?: string, options?: {
|
|
139
|
-
watchProperties?: string[];
|
|
140
|
-
watchEvents?: ValidationDebugEventType[];
|
|
141
|
-
}): string;
|
|
142
|
-
/**
|
|
143
|
-
* Take a component state snapshot
|
|
144
|
-
*/
|
|
145
|
-
takeSnapshot(componentId: string, componentData: {
|
|
146
|
-
type: string;
|
|
147
|
-
props: Record<string, any>;
|
|
148
|
-
state: Record<string, any>;
|
|
149
|
-
modifiers: string[];
|
|
150
|
-
domElement?: HTMLElement;
|
|
151
|
-
}): string;
|
|
152
|
-
/**
|
|
153
|
-
* Add visual debugging overlay
|
|
154
|
-
*/
|
|
155
|
-
addVisualOverlay(type: VisualDebuggingOverlay['type'], bounds: {
|
|
156
|
-
x: number;
|
|
157
|
-
y: number;
|
|
158
|
-
width: number;
|
|
159
|
-
height: number;
|
|
160
|
-
}, options?: {
|
|
161
|
-
color?: string;
|
|
162
|
-
label?: string;
|
|
163
|
-
tooltip?: string;
|
|
164
|
-
duration?: number;
|
|
165
|
-
animation?: VisualDebuggingOverlay['animation'];
|
|
166
|
-
}): string;
|
|
167
|
-
/**
|
|
168
|
-
* Start advanced debugging session
|
|
169
|
-
*/
|
|
170
|
-
startSession(name: string, description?: string): string;
|
|
171
|
-
/**
|
|
172
|
-
* Stop debugging session and generate report
|
|
173
|
-
*/
|
|
174
|
-
stopSession(): AdvancedDebuggingSession | null;
|
|
175
|
-
/**
|
|
176
|
-
* Get component state history
|
|
177
|
-
*/
|
|
178
|
-
getComponentHistory(componentId: string): ComponentStateSnapshot[];
|
|
179
|
-
/**
|
|
180
|
-
* Get validation trends analysis
|
|
181
|
-
*/
|
|
182
|
-
getValidationTrends(componentId?: string): {
|
|
183
|
-
errorRate: number;
|
|
184
|
-
warningRate: number;
|
|
185
|
-
performanceRegression: boolean;
|
|
186
|
-
memoryTrend: 'increasing' | 'stable' | 'decreasing';
|
|
187
|
-
recommendations: string[];
|
|
188
|
-
};
|
|
189
|
-
/**
|
|
190
|
-
* Export debugging session data
|
|
191
|
-
*/
|
|
192
|
-
exportSessionData(session: AdvancedDebuggingSession, format?: 'json' | 'csv' | 'html'): string;
|
|
193
|
-
/**
|
|
194
|
-
* Extract DOM information from element
|
|
195
|
-
*/
|
|
196
|
-
private extractDOMInfo;
|
|
197
|
-
/**
|
|
198
|
-
* Get computed styles for an element
|
|
199
|
-
*/
|
|
200
|
-
private getComputedStyles;
|
|
201
|
-
/**
|
|
202
|
-
* Get current memory usage
|
|
203
|
-
*/
|
|
204
|
-
private getMemoryUsage;
|
|
205
|
-
/**
|
|
206
|
-
* Get default color for overlay type
|
|
207
|
-
*/
|
|
208
|
-
private getDefaultColor;
|
|
209
|
-
/**
|
|
210
|
-
* Update active inspectors with new snapshot
|
|
211
|
-
*/
|
|
212
|
-
private updateInspectors;
|
|
213
|
-
/**
|
|
214
|
-
* Update inspector trends analysis
|
|
215
|
-
*/
|
|
216
|
-
private updateInspectorTrends;
|
|
217
|
-
/**
|
|
218
|
-
* Analyze debugging session
|
|
219
|
-
*/
|
|
220
|
-
private analyzeSession;
|
|
221
|
-
/**
|
|
222
|
-
* Export session as JSON
|
|
223
|
-
*/
|
|
224
|
-
private exportAsJSON;
|
|
225
|
-
/**
|
|
226
|
-
* Export session as CSV
|
|
227
|
-
*/
|
|
228
|
-
private exportAsCSV;
|
|
229
|
-
/**
|
|
230
|
-
* Export session as HTML report
|
|
231
|
-
*/
|
|
232
|
-
private exportAsHTML;
|
|
233
|
-
/**
|
|
234
|
-
* Get inspector statistics
|
|
235
|
-
*/
|
|
236
|
-
getStatistics(): {
|
|
237
|
-
activeInspectors: number;
|
|
238
|
-
totalSnapshots: number;
|
|
239
|
-
activeOverlays: number;
|
|
240
|
-
sessionActive: boolean;
|
|
241
|
-
memoryUsage: number;
|
|
242
|
-
};
|
|
243
|
-
}
|
|
244
|
-
/**
|
|
245
|
-
* Configure advanced debugging
|
|
246
|
-
*/
|
|
247
|
-
export declare function configureAdvancedDebugging(config: Partial<AdvancedDebuggingConfig>): void;
|
|
248
|
-
/**
|
|
249
|
-
* Get current advanced debugging configuration
|
|
250
|
-
*/
|
|
251
|
-
export declare function getAdvancedDebuggingConfig(): AdvancedDebuggingConfig;
|
|
252
|
-
declare const advancedInspector: AdvancedValidationInspector;
|
|
253
|
-
/**
|
|
254
|
-
* Advanced Debugging utilities
|
|
255
|
-
*/
|
|
256
|
-
export declare const AdvancedDebuggingUtils: {
|
|
257
|
-
/**
|
|
258
|
-
* Create new inspector
|
|
259
|
-
*/
|
|
260
|
-
createInspector: (target: "component" | "modifier" | "global", targetId?: string, options?: any) => string;
|
|
261
|
-
/**
|
|
262
|
-
* Take component snapshot
|
|
263
|
-
*/
|
|
264
|
-
takeSnapshot: (componentId: string, componentData: any) => string;
|
|
265
|
-
/**
|
|
266
|
-
* Add visual overlay
|
|
267
|
-
*/
|
|
268
|
-
addVisualOverlay: (type: VisualDebuggingOverlay["type"], bounds: any, options?: any) => string;
|
|
269
|
-
/**
|
|
270
|
-
* Start debugging session
|
|
271
|
-
*/
|
|
272
|
-
startSession: (name: string, description?: string) => string;
|
|
273
|
-
/**
|
|
274
|
-
* Stop debugging session
|
|
275
|
-
*/
|
|
276
|
-
stopSession: () => AdvancedDebuggingSession | null;
|
|
277
|
-
/**
|
|
278
|
-
* Get component history
|
|
279
|
-
*/
|
|
280
|
-
getComponentHistory: (componentId: string) => ComponentStateSnapshot[];
|
|
281
|
-
/**
|
|
282
|
-
* Get validation trends
|
|
283
|
-
*/
|
|
284
|
-
getValidationTrends: (componentId?: string) => {
|
|
285
|
-
errorRate: number;
|
|
286
|
-
warningRate: number;
|
|
287
|
-
performanceRegression: boolean;
|
|
288
|
-
memoryTrend: "increasing" | "stable" | "decreasing";
|
|
289
|
-
recommendations: string[];
|
|
290
|
-
};
|
|
291
|
-
/**
|
|
292
|
-
* Export session data
|
|
293
|
-
*/
|
|
294
|
-
exportSessionData: (session: AdvancedDebuggingSession, format?: "json" | "csv" | "html") => string;
|
|
295
|
-
/**
|
|
296
|
-
* Configure debugging
|
|
297
|
-
*/
|
|
298
|
-
configure: typeof configureAdvancedDebugging;
|
|
299
|
-
/**
|
|
300
|
-
* Get configuration
|
|
301
|
-
*/
|
|
302
|
-
getConfig: typeof getAdvancedDebuggingConfig;
|
|
303
|
-
/**
|
|
304
|
-
* Get statistics
|
|
305
|
-
*/
|
|
306
|
-
getStatistics: () => {
|
|
307
|
-
activeInspectors: number;
|
|
308
|
-
totalSnapshots: number;
|
|
309
|
-
activeOverlays: number;
|
|
310
|
-
sessionActive: boolean;
|
|
311
|
-
memoryUsage: number;
|
|
312
|
-
};
|
|
313
|
-
/**
|
|
314
|
-
* Test advanced debugging system
|
|
315
|
-
*/
|
|
316
|
-
test: () => void;
|
|
317
|
-
};
|
|
318
|
-
export { advancedInspector };
|
|
319
|
-
//# sourceMappingURL=advanced-debugging.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"advanced-debugging.d.ts","sourceRoot":"","sources":["../../src/validation/advanced-debugging.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,wBAAwB,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AACzE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAA;AAEnE;;GAEG;AACH,MAAM,WAAW,uBAAuB;IAEtC,qBAAqB,EAAE,OAAO,CAAA;IAC9B,yBAAyB,EAAE,OAAO,CAAA;IAClC,uBAAuB,EAAE,OAAO,CAAA;IAChC,mBAAmB,EAAE,OAAO,CAAA;IAG5B,qBAAqB,EAAE,OAAO,CAAA;IAC9B,iBAAiB,EAAE,OAAO,CAAA;IAC1B,gBAAgB,EAAE,OAAO,CAAA;IACzB,cAAc,EAAE,MAAM,CAAA;IAGtB,0BAA0B,EAAE,OAAO,CAAA;IACnC,gBAAgB,EAAE,OAAO,CAAA;IACzB,eAAe,EAAE,OAAO,CAAA;IACxB,mBAAmB,EAAE,OAAO,CAAA;IAG5B,qBAAqB,EAAE,OAAO,CAAA;IAC9B,cAAc,EAAE,OAAO,CAAA;IACvB,iBAAiB,EAAE,OAAO,CAAA;IAC1B,iBAAiB,EAAE,OAAO,CAAA;IAG1B,iBAAiB,EAAE,OAAO,CAAA;IAC1B,YAAY,EAAE,MAAM,GAAG,KAAK,GAAG,MAAM,CAAA;IACrC,iBAAiB,EAAE,OAAO,CAAA;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,MAAM,CAAA;IACV,aAAa,EAAE,MAAM,CAAA;IACrB,SAAS,EAAE,MAAM,CAAA;IAGjB,KAAK,EAAE,MA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