@tachui/core 0.7.0-alpha1
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/LICENSE +363 -0
- package/dist/assets/Asset.cjs +2 -0
- package/dist/assets/Asset.cjs.map +1 -0
- package/dist/assets/Asset.d.ts +11 -0
- package/dist/assets/Asset.d.ts.map +1 -0
- package/dist/assets/Asset.js +9 -0
- package/dist/assets/Asset.js.map +1 -0
- package/dist/assets/AssetCollection.cjs +2 -0
- package/dist/assets/AssetCollection.cjs.map +1 -0
- package/dist/assets/AssetCollection.d.ts +14 -0
- package/dist/assets/AssetCollection.d.ts.map +1 -0
- package/dist/assets/AssetCollection.js +44 -0
- package/dist/assets/AssetCollection.js.map +1 -0
- package/dist/assets/ColorAsset.cjs +2 -0
- package/dist/assets/ColorAsset.cjs.map +1 -0
- package/dist/assets/ColorAsset.d.ts +31 -0
- package/dist/assets/ColorAsset.d.ts.map +1 -0
- package/dist/assets/ColorAsset.js +114 -0
- package/dist/assets/ColorAsset.js.map +1 -0
- package/dist/assets/FontAsset.cjs +9 -0
- package/dist/assets/FontAsset.cjs.map +1 -0
- package/dist/assets/FontAsset.d.ts +114 -0
- package/dist/assets/FontAsset.d.ts.map +1 -0
- package/dist/assets/FontAsset.js +173 -0
- package/dist/assets/FontAsset.js.map +1 -0
- package/dist/assets/ImageAsset.cjs +2 -0
- package/dist/assets/ImageAsset.cjs.map +1 -0
- package/dist/assets/ImageAsset.d.ts +35 -0
- package/dist/assets/ImageAsset.d.ts.map +1 -0
- package/dist/assets/ImageAsset.js +39 -0
- package/dist/assets/ImageAsset.js.map +1 -0
- package/dist/assets/index.cjs +2 -0
- package/dist/assets/index.cjs.map +1 -0
- package/dist/assets/index.d.ts +26 -0
- package/dist/assets/index.d.ts.map +1 -0
- package/dist/assets/index.js +119 -0
- package/dist/assets/index.js.map +1 -0
- package/dist/assets/types.d.ts +70 -0
- package/dist/assets/types.d.ts.map +1 -0
- package/dist/bundles/common.d.ts +24 -0
- package/dist/bundles/common.d.ts.map +1 -0
- package/dist/bundles/complete.d.ts +27 -0
- package/dist/bundles/complete.d.ts.map +1 -0
- package/dist/bundles/essential.d.ts +24 -0
- package/dist/bundles/essential.d.ts.map +1 -0
- package/dist/bundles/minimal.d.ts +24 -0
- package/dist/bundles/minimal.d.ts.map +1 -0
- package/dist/bundles/production-minimal.d.ts +35 -0
- package/dist/bundles/production-minimal.d.ts.map +1 -0
- package/dist/common.cjs +2 -0
- package/dist/common.cjs.map +1 -0
- package/dist/common.js +985 -0
- package/dist/common.js.map +1 -0
- package/dist/compiler/advanced-parser.cjs +5 -0
- package/dist/compiler/advanced-parser.cjs.map +1 -0
- package/dist/compiler/advanced-parser.d.ts +113 -0
- package/dist/compiler/advanced-parser.d.ts.map +1 -0
- package/dist/compiler/advanced-parser.js +440 -0
- package/dist/compiler/advanced-parser.js.map +1 -0
- package/dist/compiler/codegen.cjs +6 -0
- package/dist/compiler/codegen.cjs.map +1 -0
- package/dist/compiler/codegen.d.ts +20 -0
- package/dist/compiler/codegen.d.ts.map +1 -0
- package/dist/compiler/codegen.js +241 -0
- package/dist/compiler/codegen.js.map +1 -0
- package/dist/compiler/enhanced-codegen.cjs +6 -0
- package/dist/compiler/enhanced-codegen.cjs.map +1 -0
- package/dist/compiler/enhanced-codegen.d.ts +121 -0
- package/dist/compiler/enhanced-codegen.d.ts.map +1 -0
- package/dist/compiler/enhanced-codegen.js +347 -0
- package/dist/compiler/enhanced-codegen.js.map +1 -0
- package/dist/compiler/index.cjs +2 -0
- package/dist/compiler/index.cjs.map +1 -0
- package/dist/compiler/index.d.ts +14 -0
- package/dist/compiler/index.d.ts.map +1 -0
- package/dist/compiler/index.js +13 -0
- package/dist/compiler/index.js.map +1 -0
- package/dist/compiler/parser.cjs +5 -0
- package/dist/compiler/parser.cjs.map +1 -0
- package/dist/compiler/parser.d.ts +12 -0
- package/dist/compiler/parser.d.ts.map +1 -0
- package/dist/compiler/parser.js +275 -0
- package/dist/compiler/parser.js.map +1 -0
- package/dist/compiler/plugin.cjs +33 -0
- package/dist/compiler/plugin.cjs.map +1 -0
- package/dist/compiler/plugin.d.ts +13 -0
- package/dist/compiler/plugin.d.ts.map +1 -0
- package/dist/compiler/plugin.js +103 -0
- package/dist/compiler/plugin.js.map +1 -0
- package/dist/compiler/types.d.ts +149 -0
- package/dist/compiler/types.d.ts.map +1 -0
- package/dist/components/BasicInput.cjs +2 -0
- package/dist/components/BasicInput.cjs.map +1 -0
- package/dist/components/BasicInput.d.ts +116 -0
- package/dist/components/BasicInput.d.ts.map +1 -0
- package/dist/components/BasicInput.js +182 -0
- package/dist/components/BasicInput.js.map +1 -0
- package/dist/components/Button.cjs +7 -0
- package/dist/components/Button.cjs.map +1 -0
- package/dist/components/Button.d.ts +252 -0
- package/dist/components/Button.d.ts.map +1 -0
- package/dist/components/Button.js +408 -0
- package/dist/components/Button.js.map +1 -0
- package/dist/components/Divider.cjs +2 -0
- package/dist/components/Divider.cjs.map +1 -0
- package/dist/components/Divider.d.ts +141 -0
- package/dist/components/Divider.d.ts.map +1 -0
- package/dist/components/Divider.js +187 -0
- package/dist/components/Divider.js.map +1 -0
- package/dist/components/EnhancedLink.cjs +2 -0
- package/dist/components/EnhancedLink.cjs.map +1 -0
- package/dist/components/EnhancedLink.d.ts +365 -0
- package/dist/components/EnhancedLink.d.ts.map +1 -0
- package/dist/components/EnhancedLink.js +345 -0
- package/dist/components/EnhancedLink.js.map +1 -0
- package/dist/components/Form.cjs +2 -0
- package/dist/components/Form.cjs.map +1 -0
- package/dist/components/Form.d.ts +141 -0
- package/dist/components/Form.d.ts.map +1 -0
- package/dist/components/Form.js +244 -0
- package/dist/components/Form.js.map +1 -0
- package/dist/components/Grid.cjs +2 -0
- package/dist/components/Grid.cjs.map +1 -0
- package/dist/components/Grid.d.ts +698 -0
- package/dist/components/Grid.d.ts.map +1 -0
- package/dist/components/Grid.js +1045 -0
- package/dist/components/Grid.js.map +1 -0
- package/dist/components/GridResponsive.cjs +2 -0
- package/dist/components/GridResponsive.cjs.map +1 -0
- package/dist/components/GridResponsive.d.ts +214 -0
- package/dist/components/GridResponsive.d.ts.map +1 -0
- package/dist/components/GridResponsive.js +382 -0
- package/dist/components/GridResponsive.js.map +1 -0
- package/dist/components/Image.cjs +2 -0
- package/dist/components/Image.cjs.map +1 -0
- package/dist/components/Image.d.ts +162 -0
- package/dist/components/Image.d.ts.map +1 -0
- package/dist/components/Image.js +212 -0
- package/dist/components/Image.js.map +1 -0
- package/dist/components/List.cjs +2 -0
- package/dist/components/List.cjs.map +1 -0
- package/dist/components/List.d.ts +287 -0
- package/dist/components/List.d.ts.map +1 -0
- package/dist/components/List.js +561 -0
- package/dist/components/List.js.map +1 -0
- package/dist/components/Menu.cjs +2 -0
- package/dist/components/Menu.cjs.map +1 -0
- package/dist/components/Menu.d.ts +159 -0
- package/dist/components/Menu.d.ts.map +1 -0
- package/dist/components/Menu.js +443 -0
- package/dist/components/Menu.js.map +1 -0
- package/dist/components/Picker.cjs +2 -0
- package/dist/components/Picker.cjs.map +1 -0
- package/dist/components/Picker.d.ts +153 -0
- package/dist/components/Picker.d.ts.map +1 -0
- package/dist/components/Picker.js +478 -0
- package/dist/components/Picker.js.map +1 -0
- package/dist/components/ScrollView.cjs +6 -0
- package/dist/components/ScrollView.cjs.map +1 -0
- package/dist/components/ScrollView.d.ts +222 -0
- package/dist/components/ScrollView.d.ts.map +1 -0
- package/dist/components/ScrollView.js +363 -0
- package/dist/components/ScrollView.js.map +1 -0
- package/dist/components/Section.cjs +2 -0
- package/dist/components/Section.cjs.map +1 -0
- package/dist/components/Section.d.ts +153 -0
- package/dist/components/Section.d.ts.map +1 -0
- package/dist/components/Section.js +323 -0
- package/dist/components/Section.js.map +1 -0
- package/dist/components/Show.cjs +2 -0
- package/dist/components/Show.cjs.map +1 -0
- package/dist/components/Show.d.ts +64 -0
- package/dist/components/Show.d.ts.map +1 -0
- package/dist/components/Show.js +112 -0
- package/dist/components/Show.js.map +1 -0
- package/dist/components/Spacer.cjs +2 -0
- package/dist/components/Spacer.cjs.map +1 -0
- package/dist/components/Spacer.d.ts +35 -0
- package/dist/components/Spacer.d.ts.map +1 -0
- package/dist/components/Spacer.js +53 -0
- package/dist/components/Spacer.js.map +1 -0
- package/dist/components/Text.cjs +2 -0
- package/dist/components/Text.cjs.map +1 -0
- package/dist/components/Text.d.ts +242 -0
- package/dist/components/Text.d.ts.map +1 -0
- package/dist/components/Text.js +193 -0
- package/dist/components/Text.js.map +1 -0
- package/dist/components/Toggle.cjs +2 -0
- package/dist/components/Toggle.cjs.map +1 -0
- package/dist/components/Toggle.d.ts +207 -0
- package/dist/components/Toggle.d.ts.map +1 -0
- package/dist/components/Toggle.js +477 -0
- package/dist/components/Toggle.js.map +1 -0
- package/dist/components/index.cjs +2 -0
- package/dist/components/index.cjs.map +1 -0
- package/dist/components/index.d.ts +45 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +104 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/wrapper.cjs +2 -0
- package/dist/components/wrapper.cjs.map +1 -0
- package/dist/components/wrapper.d.ts +249 -0
- package/dist/components/wrapper.d.ts.map +1 -0
- package/dist/components/wrapper.js +484 -0
- package/dist/components/wrapper.js.map +1 -0
- package/dist/concatenation/concatenatable.cjs +2 -0
- package/dist/concatenation/concatenatable.cjs.map +1 -0
- package/dist/concatenation/concatenatable.d.ts +63 -0
- package/dist/concatenation/concatenatable.d.ts.map +1 -0
- package/dist/concatenation/concatenatable.js +118 -0
- package/dist/concatenation/concatenatable.js.map +1 -0
- package/dist/concatenation/concatenated-component.cjs +2 -0
- package/dist/concatenation/concatenated-component.cjs.map +1 -0
- package/dist/concatenation/concatenated-component.d.ts +110 -0
- package/dist/concatenation/concatenated-component.d.ts.map +1 -0
- package/dist/concatenation/concatenated-component.js +276 -0
- package/dist/concatenation/concatenated-component.js.map +1 -0
- package/dist/concatenation/index.d.ts +13 -0
- package/dist/concatenation/index.d.ts.map +1 -0
- package/dist/concatenation/text-optimizer.cjs +2 -0
- package/dist/concatenation/text-optimizer.cjs.map +1 -0
- package/dist/concatenation/text-optimizer.d.ts +104 -0
- package/dist/concatenation/text-optimizer.d.ts.map +1 -0
- package/dist/concatenation/text-optimizer.js +236 -0
- package/dist/concatenation/text-optimizer.js.map +1 -0
- package/dist/concatenation/types.cjs +2 -0
- package/dist/concatenation/types.cjs.map +1 -0
- package/dist/concatenation/types.d.ts +88 -0
- package/dist/concatenation/types.d.ts.map +1 -0
- package/dist/concatenation/types.js +13 -0
- package/dist/concatenation/types.js.map +1 -0
- package/dist/constants/frame-utils.cjs +2 -0
- package/dist/constants/frame-utils.cjs.map +1 -0
- package/dist/constants/frame-utils.d.ts +68 -0
- package/dist/constants/frame-utils.d.ts.map +1 -0
- package/dist/constants/frame-utils.js +116 -0
- package/dist/constants/frame-utils.js.map +1 -0
- package/dist/constants/index.d.ts +8 -0
- package/dist/constants/index.d.ts.map +1 -0
- package/dist/constants/layout.cjs +2 -0
- package/dist/constants/layout.cjs.map +1 -0
- package/dist/constants/layout.d.ts +60 -0
- package/dist/constants/layout.d.ts.map +1 -0
- package/dist/constants/layout.js +46 -0
- package/dist/constants/layout.js.map +1 -0
- package/dist/css-classes/component-base.cjs +2 -0
- package/dist/css-classes/component-base.cjs.map +1 -0
- package/dist/css-classes/component-base.d.ts +40 -0
- package/dist/css-classes/component-base.d.ts.map +1 -0
- package/dist/css-classes/component-base.js +62 -0
- package/dist/css-classes/component-base.js.map +1 -0
- package/dist/css-classes/css-class-manager.cjs +2 -0
- package/dist/css-classes/css-class-manager.cjs.map +1 -0
- package/dist/css-classes/css-class-manager.d.ts +89 -0
- package/dist/css-classes/css-class-manager.d.ts.map +1 -0
- package/dist/css-classes/css-class-manager.js +209 -0
- package/dist/css-classes/css-class-manager.js.map +1 -0
- package/dist/css-classes/dom-integration.cjs +2 -0
- package/dist/css-classes/dom-integration.cjs.map +1 -0
- package/dist/css-classes/dom-integration.d.ts +76 -0
- package/dist/css-classes/dom-integration.d.ts.map +1 -0
- package/dist/css-classes/dom-integration.js +67 -0
- package/dist/css-classes/dom-integration.js.map +1 -0
- package/dist/css-classes/enhanced-renderer.cjs +2 -0
- package/dist/css-classes/enhanced-renderer.cjs.map +1 -0
- package/dist/css-classes/enhanced-renderer.d.ts +42 -0
- package/dist/css-classes/enhanced-renderer.d.ts.map +1 -0
- package/dist/css-classes/enhanced-renderer.js +73 -0
- package/dist/css-classes/enhanced-renderer.js.map +1 -0
- package/dist/css-classes/index.d.ts +14 -0
- package/dist/css-classes/index.d.ts.map +1 -0
- package/dist/css-classes/types.d.ts +59 -0
- package/dist/css-classes/types.d.ts.map +1 -0
- package/dist/css-classes/utilities.cjs +2 -0
- package/dist/css-classes/utilities.cjs.map +1 -0
- package/dist/css-classes/utilities.d.ts +104 -0
- package/dist/css-classes/utilities.d.ts.map +1 -0
- package/dist/css-classes/utilities.js +41 -0
- package/dist/css-classes/utilities.js.map +1 -0
- package/dist/debug/index.d.ts +61 -0
- package/dist/debug/index.d.ts.map +1 -0
- package/dist/debug.cjs +52 -0
- package/dist/debug.cjs.map +1 -0
- package/dist/debug.js +179 -0
- package/dist/debug.js.map +1 -0
- package/dist/developer-experience/enhanced-errors.d.ts +128 -0
- package/dist/developer-experience/enhanced-errors.d.ts.map +1 -0
- package/dist/developer-experience/enhanced-types.d.ts +281 -0
- package/dist/developer-experience/enhanced-types.d.ts.map +1 -0
- package/dist/developer-experience/index.d.ts +44 -0
- package/dist/developer-experience/index.d.ts.map +1 -0
- package/dist/essential.cjs +2 -0
- package/dist/essential.cjs.map +1 -0
- package/dist/essential.js +968 -0
- package/dist/essential.js.map +1 -0
- package/dist/gradients/css-generator.cjs +2 -0
- package/dist/gradients/css-generator.cjs.map +1 -0
- package/dist/gradients/css-generator.d.ts +10 -0
- package/dist/gradients/css-generator.d.ts.map +1 -0
- package/dist/gradients/css-generator.js +100 -0
- package/dist/gradients/css-generator.js.map +1 -0
- package/dist/gradients/examples.cjs +2 -0
- package/dist/gradients/examples.cjs.map +1 -0
- package/dist/gradients/examples.d.ts +432 -0
- package/dist/gradients/examples.d.ts.map +1 -0
- package/dist/gradients/examples.js +555 -0
- package/dist/gradients/examples.js.map +1 -0
- package/dist/gradients/gradient-asset.cjs +2 -0
- package/dist/gradients/gradient-asset.cjs.map +1 -0
- package/dist/gradients/gradient-asset.d.ts +10 -0
- package/dist/gradients/gradient-asset.d.ts.map +1 -0
- package/dist/gradients/gradient-asset.js +22 -0
- package/dist/gradients/gradient-asset.js.map +1 -0
- package/dist/gradients/index.cjs +2 -0
- package/dist/gradients/index.cjs.map +1 -0
- package/dist/gradients/index.d.ts +19 -0
- package/dist/gradients/index.d.ts.map +1 -0
- package/dist/gradients/index.js +78 -0
- package/dist/gradients/index.js.map +1 -0
- package/dist/gradients/performance.cjs +2 -0
- package/dist/gradients/performance.cjs.map +1 -0
- package/dist/gradients/performance.d.ts +146 -0
- package/dist/gradients/performance.d.ts.map +1 -0
- package/dist/gradients/performance.js +237 -0
- package/dist/gradients/performance.js.map +1 -0
- package/dist/gradients/presets.cjs +2 -0
- package/dist/gradients/presets.cjs.map +1 -0
- package/dist/gradients/presets.d.ts +165 -0
- package/dist/gradients/presets.d.ts.map +1 -0
- package/dist/gradients/presets.js +254 -0
- package/dist/gradients/presets.js.map +1 -0
- package/dist/gradients/reactive.cjs +2 -0
- package/dist/gradients/reactive.cjs.map +1 -0
- package/dist/gradients/reactive.d.ts +167 -0
- package/dist/gradients/reactive.d.ts.map +1 -0
- package/dist/gradients/reactive.js +239 -0
- package/dist/gradients/reactive.js.map +1 -0
- package/dist/gradients/state-gradient-asset.cjs +2 -0
- package/dist/gradients/state-gradient-asset.cjs.map +1 -0
- package/dist/gradients/state-gradient-asset.d.ts +67 -0
- package/dist/gradients/state-gradient-asset.d.ts.map +1 -0
- package/dist/gradients/state-gradient-asset.js +111 -0
- package/dist/gradients/state-gradient-asset.js.map +1 -0
- package/dist/gradients/types.d.ts +94 -0
- package/dist/gradients/types.d.ts.map +1 -0
- package/dist/gradients/utils.cjs +2 -0
- package/dist/gradients/utils.cjs.map +1 -0
- package/dist/gradients/utils.d.ts +313 -0
- package/dist/gradients/utils.d.ts.map +1 -0
- package/dist/gradients/utils.js +385 -0
- package/dist/gradients/utils.js.map +1 -0
- package/dist/gradients/validation.cjs +2 -0
- package/dist/gradients/validation.cjs.map +1 -0
- package/dist/gradients/validation.d.ts +156 -0
- package/dist/gradients/validation.d.ts.map +1 -0
- package/dist/gradients/validation.js +209 -0
- package/dist/gradients/validation.js.map +1 -0
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +965 -0
- package/dist/index.js.map +1 -0
- package/dist/index2.cjs +2 -0
- package/dist/index2.cjs.map +1 -0
- package/dist/index2.js +293 -0
- package/dist/index2.js.map +1 -0
- package/dist/lifecycle/hooks.cjs +2 -0
- package/dist/lifecycle/hooks.cjs.map +1 -0
- package/dist/lifecycle/hooks.d.ts +101 -0
- package/dist/lifecycle/hooks.d.ts.map +1 -0
- package/dist/lifecycle/hooks.js +159 -0
- package/dist/lifecycle/hooks.js.map +1 -0
- package/dist/minimal-prod.cjs +2 -0
- package/dist/minimal-prod.cjs.map +1 -0
- package/dist/minimal-prod.js +193 -0
- package/dist/minimal-prod.js.map +1 -0
- package/dist/minimal.cjs +2 -0
- package/dist/minimal.cjs.map +1 -0
- package/dist/minimal.js +968 -0
- package/dist/minimal.js.map +1 -0
- package/dist/modifiers/as-html-validator.cjs +2 -0
- package/dist/modifiers/as-html-validator.cjs.map +1 -0
- package/dist/modifiers/as-html-validator.d.ts +20 -0
- package/dist/modifiers/as-html-validator.d.ts.map +1 -0
- package/dist/modifiers/as-html-validator.js +47 -0
- package/dist/modifiers/as-html-validator.js.map +1 -0
- package/dist/modifiers/as-html.cjs +2 -0
- package/dist/modifiers/as-html.cjs.map +1 -0
- package/dist/modifiers/as-html.d.ts +65 -0
- package/dist/modifiers/as-html.d.ts.map +1 -0
- package/dist/modifiers/as-html.js +71 -0
- package/dist/modifiers/as-html.js.map +1 -0
- package/dist/modifiers/attributes.cjs +2 -0
- package/dist/modifiers/attributes.cjs.map +1 -0
- package/dist/modifiers/attributes.d.ts +203 -0
- package/dist/modifiers/attributes.d.ts.map +1 -0
- package/dist/modifiers/attributes.js +272 -0
- package/dist/modifiers/attributes.js.map +1 -0
- package/dist/modifiers/backdrop.cjs +2 -0
- package/dist/modifiers/backdrop.cjs.map +1 -0
- package/dist/modifiers/backdrop.d.ts +59 -0
- package/dist/modifiers/backdrop.d.ts.map +1 -0
- package/dist/modifiers/backdrop.js +109 -0
- package/dist/modifiers/backdrop.js.map +1 -0
- package/dist/modifiers/background.cjs +2 -0
- package/dist/modifiers/background.cjs.map +1 -0
- package/dist/modifiers/background.d.ts +21 -0
- package/dist/modifiers/background.d.ts.map +1 -0
- package/dist/modifiers/background.js +67 -0
- package/dist/modifiers/background.js.map +1 -0
- package/dist/modifiers/base.cjs +25 -0
- package/dist/modifiers/base.cjs.map +1 -0
- package/dist/modifiers/base.d.ts +156 -0
- package/dist/modifiers/base.d.ts.map +1 -0
- package/dist/modifiers/base.js +745 -0
- package/dist/modifiers/base.js.map +1 -0
- package/dist/modifiers/basic-sanitizer.cjs +2 -0
- package/dist/modifiers/basic-sanitizer.cjs.map +1 -0
- package/dist/modifiers/basic-sanitizer.d.ts +54 -0
- package/dist/modifiers/basic-sanitizer.d.ts.map +1 -0
- package/dist/modifiers/basic-sanitizer.js +162 -0
- package/dist/modifiers/basic-sanitizer.js.map +1 -0
- package/dist/modifiers/border.cjs +2 -0
- package/dist/modifiers/border.cjs.map +1 -0
- package/dist/modifiers/border.d.ts +217 -0
- package/dist/modifiers/border.d.ts.map +1 -0
- package/dist/modifiers/border.js +160 -0
- package/dist/modifiers/border.js.map +1 -0
- package/dist/modifiers/builder.cjs +2 -0
- package/dist/modifiers/builder.cjs.map +1 -0
- package/dist/modifiers/builder.d.ts +377 -0
- package/dist/modifiers/builder.d.ts.map +1 -0
- package/dist/modifiers/builder.js +930 -0
- package/dist/modifiers/builder.js.map +1 -0
- package/dist/modifiers/core.cjs +2 -0
- package/dist/modifiers/core.cjs.map +1 -0
- package/dist/modifiers/core.d.ts +407 -0
- package/dist/modifiers/core.d.ts.map +1 -0
- package/dist/modifiers/core.js +398 -0
- package/dist/modifiers/core.js.map +1 -0
- package/dist/modifiers/css.cjs +2 -0
- package/dist/modifiers/css.cjs.map +1 -0
- package/dist/modifiers/css.d.ts +86 -0
- package/dist/modifiers/css.d.ts.map +1 -0
- package/dist/modifiers/css.js +50 -0
- package/dist/modifiers/css.js.map +1 -0
- package/dist/modifiers/effects.cjs +2 -0
- package/dist/modifiers/effects.cjs.map +1 -0
- package/dist/modifiers/effects.d.ts +159 -0
- package/dist/modifiers/effects.d.ts.map +1 -0
- package/dist/modifiers/effects.js +178 -0
- package/dist/modifiers/effects.js.map +1 -0
- package/dist/modifiers/elements.cjs +2 -0
- package/dist/modifiers/elements.cjs.map +1 -0
- package/dist/modifiers/elements.d.ts +240 -0
- package/dist/modifiers/elements.d.ts.map +1 -0
- package/dist/modifiers/elements.js +216 -0
- package/dist/modifiers/elements.js.map +1 -0
- package/dist/modifiers/filters.cjs +2 -0
- package/dist/modifiers/filters.cjs.map +1 -0
- package/dist/modifiers/filters.d.ts +275 -0
- package/dist/modifiers/filters.d.ts.map +1 -0
- package/dist/modifiers/filters.js +223 -0
- package/dist/modifiers/filters.js.map +1 -0
- package/dist/modifiers/flexbox.cjs +2 -0
- package/dist/modifiers/flexbox.cjs.map +1 -0
- package/dist/modifiers/flexbox.d.ts +82 -0
- package/dist/modifiers/flexbox.d.ts.map +1 -0
- package/dist/modifiers/flexbox.js +56 -0
- package/dist/modifiers/flexbox.js.map +1 -0
- package/dist/modifiers/font.cjs +2 -0
- package/dist/modifiers/font.cjs.map +1 -0
- package/dist/modifiers/font.d.ts +71 -0
- package/dist/modifiers/font.d.ts.map +1 -0
- package/dist/modifiers/font.js +60 -0
- package/dist/modifiers/font.js.map +1 -0
- package/dist/modifiers/grid.cjs +2 -0
- package/dist/modifiers/grid.cjs.map +1 -0
- package/dist/modifiers/grid.d.ts +92 -0
- package/dist/modifiers/grid.d.ts.map +1 -0
- package/dist/modifiers/grid.js +92 -0
- package/dist/modifiers/grid.js.map +1 -0
- package/dist/modifiers/index.d.ts +58 -0
- package/dist/modifiers/index.d.ts.map +1 -0
- package/dist/modifiers/margin.cjs +2 -0
- package/dist/modifiers/margin.cjs.map +1 -0
- package/dist/modifiers/margin.d.ts +128 -0
- package/dist/modifiers/margin.d.ts.map +1 -0
- package/dist/modifiers/margin.js +65 -0
- package/dist/modifiers/margin.js.map +1 -0
- package/dist/modifiers/padding.cjs +2 -0
- package/dist/modifiers/padding.cjs.map +1 -0
- package/dist/modifiers/padding.d.ts +204 -0
- package/dist/modifiers/padding.d.ts.map +1 -0
- package/dist/modifiers/padding.js +109 -0
- package/dist/modifiers/padding.js.map +1 -0
- package/dist/modifiers/registry.cjs +2 -0
- package/dist/modifiers/registry.cjs.map +1 -0
- package/dist/modifiers/registry.d.ts +69 -0
- package/dist/modifiers/registry.d.ts.map +1 -0
- package/dist/modifiers/registry.js +163 -0
- package/dist/modifiers/registry.js.map +1 -0
- package/dist/modifiers/responsive/advanced-utilities.cjs +2 -0
- package/dist/modifiers/responsive/advanced-utilities.cjs.map +1 -0
- package/dist/modifiers/responsive/advanced-utilities.d.ts +118 -0
- package/dist/modifiers/responsive/advanced-utilities.d.ts.map +1 -0
- package/dist/modifiers/responsive/advanced-utilities.js +291 -0
- package/dist/modifiers/responsive/advanced-utilities.js.map +1 -0
- package/dist/modifiers/responsive/breakpoints.cjs +2 -0
- package/dist/modifiers/responsive/breakpoints.cjs.map +1 -0
- package/dist/modifiers/responsive/breakpoints.d.ts +81 -0
- package/dist/modifiers/responsive/breakpoints.d.ts.map +1 -0
- package/dist/modifiers/responsive/breakpoints.js +168 -0
- package/dist/modifiers/responsive/breakpoints.js.map +1 -0
- package/dist/modifiers/responsive/css-generator.cjs +5 -0
- package/dist/modifiers/responsive/css-generator.cjs.map +1 -0
- package/dist/modifiers/responsive/css-generator.d.ts +100 -0
- package/dist/modifiers/responsive/css-generator.d.ts.map +1 -0
- package/dist/modifiers/responsive/css-generator.js +261 -0
- package/dist/modifiers/responsive/css-generator.js.map +1 -0
- package/dist/modifiers/responsive/dev-tools.cjs +77 -0
- package/dist/modifiers/responsive/dev-tools.cjs.map +1 -0
- package/dist/modifiers/responsive/dev-tools.d.ts +107 -0
- package/dist/modifiers/responsive/dev-tools.d.ts.map +1 -0
- package/dist/modifiers/responsive/dev-tools.js +380 -0
- package/dist/modifiers/responsive/dev-tools.js.map +1 -0
- package/dist/modifiers/responsive/index.d.ts +28 -0
- package/dist/modifiers/responsive/index.d.ts.map +1 -0
- package/dist/modifiers/responsive/layout-patterns.cjs +2 -0
- package/dist/modifiers/responsive/layout-patterns.cjs.map +1 -0
- package/dist/modifiers/responsive/layout-patterns.d.ts +230 -0
- package/dist/modifiers/responsive/layout-patterns.d.ts.map +1 -0
- package/dist/modifiers/responsive/layout-patterns.js +254 -0
- package/dist/modifiers/responsive/layout-patterns.js.map +1 -0
- package/dist/modifiers/responsive/performance.cjs +3 -0
- package/dist/modifiers/responsive/performance.cjs.map +1 -0
- package/dist/modifiers/responsive/performance.d.ts +130 -0
- package/dist/modifiers/responsive/performance.d.ts.map +1 -0
- package/dist/modifiers/responsive/performance.js +212 -0
- package/dist/modifiers/responsive/performance.js.map +1 -0
- package/dist/modifiers/responsive/responsive-builder.cjs +2 -0
- package/dist/modifiers/responsive/responsive-builder.cjs.map +1 -0
- package/dist/modifiers/responsive/responsive-builder.d.ts +133 -0
- package/dist/modifiers/responsive/responsive-builder.d.ts.map +1 -0
- package/dist/modifiers/responsive/responsive-builder.js +272 -0
- package/dist/modifiers/responsive/responsive-builder.js.map +1 -0
- package/dist/modifiers/responsive/responsive-modifier.cjs +3 -0
- package/dist/modifiers/responsive/responsive-modifier.cjs.map +1 -0
- package/dist/modifiers/responsive/responsive-modifier.d.ts +123 -0
- package/dist/modifiers/responsive/responsive-modifier.d.ts.map +1 -0
- package/dist/modifiers/responsive/responsive-modifier.js +204 -0
- package/dist/modifiers/responsive/responsive-modifier.js.map +1 -0
- package/dist/modifiers/responsive/types.cjs +2 -0
- package/dist/modifiers/responsive/types.cjs.map +1 -0
- package/dist/modifiers/responsive/types.d.ts +183 -0
- package/dist/modifiers/responsive/types.d.ts.map +1 -0
- package/dist/modifiers/responsive/types.js +26 -0
- package/dist/modifiers/responsive/types.js.map +1 -0
- package/dist/modifiers/responsive/utilities.cjs +16 -0
- package/dist/modifiers/responsive/utilities.cjs.map +1 -0
- package/dist/modifiers/responsive/utilities.d.ts +149 -0
- package/dist/modifiers/responsive/utilities.d.ts.map +1 -0
- package/dist/modifiers/responsive/utilities.js +273 -0
- package/dist/modifiers/responsive/utilities.js.map +1 -0
- package/dist/modifiers/scroll.cjs +2 -0
- package/dist/modifiers/scroll.cjs.map +1 -0
- package/dist/modifiers/scroll.d.ts +143 -0
- package/dist/modifiers/scroll.d.ts.map +1 -0
- package/dist/modifiers/scroll.js +82 -0
- package/dist/modifiers/scroll.js.map +1 -0
- package/dist/modifiers/shadows.cjs +2 -0
- package/dist/modifiers/shadows.cjs.map +1 -0
- package/dist/modifiers/shadows.d.ts +114 -0
- package/dist/modifiers/shadows.d.ts.map +1 -0
- package/dist/modifiers/shadows.js +147 -0
- package/dist/modifiers/shadows.js.map +1 -0
- package/dist/modifiers/size.cjs +2 -0
- package/dist/modifiers/size.cjs.map +1 -0
- package/dist/modifiers/size.d.ts +113 -0
- package/dist/modifiers/size.d.ts.map +1 -0
- package/dist/modifiers/size.js +74 -0
- package/dist/modifiers/size.js.map +1 -0
- package/dist/modifiers/text.cjs +2 -0
- package/dist/modifiers/text.cjs.map +1 -0
- package/dist/modifiers/text.d.ts +147 -0
- package/dist/modifiers/text.d.ts.map +1 -0
- package/dist/modifiers/text.js +166 -0
- package/dist/modifiers/text.js.map +1 -0
- package/dist/modifiers/transformations.cjs +2 -0
- package/dist/modifiers/transformations.cjs.map +1 -0
- package/dist/modifiers/transformations.d.ts +329 -0
- package/dist/modifiers/transformations.d.ts.map +1 -0
- package/dist/modifiers/transformations.js +216 -0
- package/dist/modifiers/transformations.js.map +1 -0
- package/dist/modifiers/transitions.cjs +2 -0
- package/dist/modifiers/transitions.cjs.map +1 -0
- package/dist/modifiers/transitions.d.ts +98 -0
- package/dist/modifiers/transitions.d.ts.map +1 -0
- package/dist/modifiers/transitions.js +102 -0
- package/dist/modifiers/transitions.js.map +1 -0
- package/dist/modifiers/types.cjs +2 -0
- package/dist/modifiers/types.cjs.map +1 -0
- package/dist/modifiers/types.d.ts +655 -0
- package/dist/modifiers/types.d.ts.map +1 -0
- package/dist/modifiers/types.js +5 -0
- package/dist/modifiers/types.js.map +1 -0
- package/dist/modifiers/typography.cjs +2 -0
- package/dist/modifiers/typography.cjs.map +1 -0
- package/dist/modifiers/typography.d.ts +192 -0
- package/dist/modifiers/typography.d.ts.map +1 -0
- package/dist/modifiers/typography.js +76 -0
- package/dist/modifiers/typography.js.map +1 -0
- package/dist/modifiers/utility.cjs +2 -0
- package/dist/modifiers/utility.cjs.map +1 -0
- package/dist/modifiers/utility.d.ts +69 -0
- package/dist/modifiers/utility.d.ts.map +1 -0
- package/dist/modifiers/utility.js +71 -0
- package/dist/modifiers/utility.js.map +1 -0
- package/dist/modifiers/utils.cjs +2 -0
- package/dist/modifiers/utils.cjs.map +1 -0
- package/dist/modifiers/utils.d.ts +75 -0
- package/dist/modifiers/utils.d.ts.map +1 -0
- package/dist/modifiers/utils.js +250 -0
- package/dist/modifiers/utils.js.map +1 -0
- package/dist/plugins/component-loader-registry.d.ts +143 -0
- package/dist/plugins/component-loader-registry.d.ts.map +1 -0
- package/dist/plugins/index.cjs +2 -0
- package/dist/plugins/index.cjs.map +1 -0
- package/dist/plugins/index.d.ts +17 -0
- package/dist/plugins/index.d.ts.map +1 -0
- package/dist/plugins/index.js +34 -0
- package/dist/plugins/index.js.map +1 -0
- package/dist/plugins/legacy-adapter.cjs +2 -0
- package/dist/plugins/legacy-adapter.cjs.map +1 -0
- package/dist/plugins/legacy-adapter.d.ts +35 -0
- package/dist/plugins/legacy-adapter.d.ts.map +1 -0
- package/dist/plugins/legacy-adapter.js +30 -0
- package/dist/plugins/legacy-adapter.js.map +1 -0
- package/dist/plugins/simplified-component-registry.cjs +2 -0
- package/dist/plugins/simplified-component-registry.cjs.map +1 -0
- package/dist/plugins/simplified-component-registry.d.ts +40 -0
- package/dist/plugins/simplified-component-registry.d.ts.map +1 -0
- package/dist/plugins/simplified-component-registry.js +71 -0
- package/dist/plugins/simplified-component-registry.js.map +1 -0
- package/dist/plugins/simplified-error-handler.cjs +2 -0
- package/dist/plugins/simplified-error-handler.cjs.map +1 -0
- package/dist/plugins/simplified-error-handler.d.ts +83 -0
- package/dist/plugins/simplified-error-handler.d.ts.map +1 -0
- package/dist/plugins/simplified-error-handler.js +154 -0
- package/dist/plugins/simplified-error-handler.js.map +1 -0
- package/dist/plugins/simplified-index.d.ts +17 -0
- package/dist/plugins/simplified-index.d.ts.map +1 -0
- package/dist/plugins/simplified-lazy-loader.cjs +2 -0
- package/dist/plugins/simplified-lazy-loader.cjs.map +1 -0
- package/dist/plugins/simplified-lazy-loader.d.ts +65 -0
- package/dist/plugins/simplified-lazy-loader.d.ts.map +1 -0
- package/dist/plugins/simplified-lazy-loader.js +129 -0
- package/dist/plugins/simplified-lazy-loader.js.map +1 -0
- package/dist/plugins/simplified-plugin-manager.cjs +2 -0
- package/dist/plugins/simplified-plugin-manager.cjs.map +1 -0
- package/dist/plugins/simplified-plugin-manager.d.ts +24 -0
- package/dist/plugins/simplified-plugin-manager.d.ts.map +1 -0
- package/dist/plugins/simplified-plugin-manager.js +51 -0
- package/dist/plugins/simplified-plugin-manager.js.map +1 -0
- package/dist/plugins/simplified-tachui-instance.cjs +2 -0
- package/dist/plugins/simplified-tachui-instance.cjs.map +1 -0
- package/dist/plugins/simplified-tachui-instance.d.ts +54 -0
- package/dist/plugins/simplified-tachui-instance.d.ts.map +1 -0
- package/dist/plugins/simplified-tachui-instance.js +88 -0
- package/dist/plugins/simplified-tachui-instance.js.map +1 -0
- package/dist/plugins/simplified-types.cjs +2 -0
- package/dist/plugins/simplified-types.cjs.map +1 -0
- package/dist/plugins/simplified-types.d.ts +63 -0
- package/dist/plugins/simplified-types.d.ts.map +1 -0
- package/dist/plugins/simplified-types.js +9 -0
- package/dist/plugins/simplified-types.js.map +1 -0
- package/dist/plugins/simplified-utils.cjs +2 -0
- package/dist/plugins/simplified-utils.cjs.map +1 -0
- package/dist/plugins/simplified-utils.d.ts +39 -0
- package/dist/plugins/simplified-utils.d.ts.map +1 -0
- package/dist/plugins/simplified-utils.js +40 -0
- package/dist/plugins/simplified-utils.js.map +1 -0
- package/dist/reactive/cleanup.cjs +2 -0
- package/dist/reactive/cleanup.cjs.map +1 -0
- package/dist/reactive/cleanup.d.ts +115 -0
- package/dist/reactive/cleanup.d.ts.map +1 -0
- package/dist/reactive/cleanup.js +62 -0
- package/dist/reactive/cleanup.js.map +1 -0
- package/dist/reactive/computed.cjs +2 -0
- package/dist/reactive/computed.cjs.map +1 -0
- package/dist/reactive/computed.d.ts +115 -0
- package/dist/reactive/computed.d.ts.map +1 -0
- package/dist/reactive/computed.js +121 -0
- package/dist/reactive/computed.js.map +1 -0
- package/dist/reactive/context.cjs +2 -0
- package/dist/reactive/context.cjs.map +1 -0
- package/dist/reactive/context.d.ts +82 -0
- package/dist/reactive/context.d.ts.map +1 -0
- package/dist/reactive/context.js +143 -0
- package/dist/reactive/context.js.map +1 -0
- package/dist/reactive/effect.cjs +2 -0
- package/dist/reactive/effect.cjs.map +1 -0
- package/dist/reactive/effect.d.ts +79 -0
- package/dist/reactive/effect.d.ts.map +1 -0
- package/dist/reactive/effect.js +67 -0
- package/dist/reactive/effect.js.map +1 -0
- package/dist/reactive/enhanced-effect.cjs +2 -0
- package/dist/reactive/enhanced-effect.cjs.map +1 -0
- package/dist/reactive/enhanced-effect.d.ts +108 -0
- package/dist/reactive/enhanced-effect.d.ts.map +1 -0
- package/dist/reactive/enhanced-effect.js +153 -0
- package/dist/reactive/enhanced-effect.js.map +1 -0
- package/dist/reactive/enhanced-signal.cjs +2 -0
- package/dist/reactive/enhanced-signal.cjs.map +1 -0
- package/dist/reactive/enhanced-signal.d.ts +91 -0
- package/dist/reactive/enhanced-signal.d.ts.map +1 -0
- package/dist/reactive/enhanced-signal.js +117 -0
- package/dist/reactive/enhanced-signal.js.map +1 -0
- package/dist/reactive/equality.cjs +2 -0
- package/dist/reactive/equality.cjs.map +1 -0
- package/dist/reactive/equality.d.ts +51 -0
- package/dist/reactive/equality.d.ts.map +1 -0
- package/dist/reactive/equality.js +66 -0
- package/dist/reactive/equality.js.map +1 -0
- package/dist/reactive/index.cjs +2 -0
- package/dist/reactive/index.cjs.map +1 -0
- package/dist/reactive/index.d.ts +21 -0
- package/dist/reactive/index.d.ts.map +1 -0
- package/dist/reactive/index.js +95 -0
- package/dist/reactive/index.js.map +1 -0
- package/dist/reactive/migration.cjs +18 -0
- package/dist/reactive/migration.cjs.map +1 -0
- package/dist/reactive/migration.d.ts +104 -0
- package/dist/reactive/migration.d.ts.map +1 -0
- package/dist/reactive/migration.js +164 -0
- package/dist/reactive/migration.js.map +1 -0
- package/dist/reactive/ownership.cjs +2 -0
- package/dist/reactive/ownership.cjs.map +1 -0
- package/dist/reactive/ownership.d.ts +75 -0
- package/dist/reactive/ownership.d.ts.map +1 -0
- package/dist/reactive/ownership.js +34 -0
- package/dist/reactive/ownership.js.map +1 -0
- package/dist/reactive/scheduler.cjs +2 -0
- package/dist/reactive/scheduler.cjs.map +1 -0
- package/dist/reactive/scheduler.d.ts +56 -0
- package/dist/reactive/scheduler.d.ts.map +1 -0
- package/dist/reactive/scheduler.js +111 -0
- package/dist/reactive/scheduler.js.map +1 -0
- package/dist/reactive/signal.cjs +2 -0
- package/dist/reactive/signal.cjs.map +1 -0
- package/dist/reactive/signal.d.ts +82 -0
- package/dist/reactive/signal.d.ts.map +1 -0
- package/dist/reactive/signal.js +96 -0
- package/dist/reactive/signal.js.map +1 -0
- package/dist/reactive/theme.cjs +2 -0
- package/dist/reactive/theme.cjs.map +1 -0
- package/dist/reactive/theme.d.ts +12 -0
- package/dist/reactive/theme.d.ts.map +1 -0
- package/dist/reactive/theme.js +27 -0
- package/dist/reactive/theme.js.map +1 -0
- package/dist/reactive/types.cjs +2 -0
- package/dist/reactive/types.cjs.map +1 -0
- package/dist/reactive/types.d.ts +93 -0
- package/dist/reactive/types.d.ts.map +1 -0
- package/dist/reactive/types.js +5 -0
- package/dist/reactive/types.js.map +1 -0
- package/dist/reactive/unified-scheduler.cjs +2 -0
- package/dist/reactive/unified-scheduler.cjs.map +1 -0
- package/dist/reactive/unified-scheduler.d.ts +112 -0
- package/dist/reactive/unified-scheduler.d.ts.map +1 -0
- package/dist/reactive/unified-scheduler.js +219 -0
- package/dist/reactive/unified-scheduler.js.map +1 -0
- package/dist/runtime/component-context.cjs +2 -0
- package/dist/runtime/component-context.cjs.map +1 -0
- package/dist/runtime/component-context.d.ts +73 -0
- package/dist/runtime/component-context.d.ts.map +1 -0
- package/dist/runtime/component-context.js +177 -0
- package/dist/runtime/component-context.js.map +1 -0
- package/dist/runtime/component.cjs +2 -0
- package/dist/runtime/component.cjs.map +1 -0
- package/dist/runtime/component.d.ts +112 -0
- package/dist/runtime/component.d.ts.map +1 -0
- package/dist/runtime/component.js +238 -0
- package/dist/runtime/component.js.map +1 -0
- package/dist/runtime/context.cjs +2 -0
- package/dist/runtime/context.cjs.map +1 -0
- package/dist/runtime/context.d.ts +138 -0
- package/dist/runtime/context.d.ts.map +1 -0
- package/dist/runtime/context.js +289 -0
- package/dist/runtime/context.js.map +1 -0
- package/dist/runtime/dev-tools.cjs +2 -0
- package/dist/runtime/dev-tools.cjs.map +1 -0
- package/dist/runtime/dev-tools.d.ts +240 -0
- package/dist/runtime/dev-tools.d.ts.map +1 -0
- package/dist/runtime/dev-tools.js +391 -0
- package/dist/runtime/dev-tools.js.map +1 -0
- package/dist/runtime/development-warnings.cjs +2 -0
- package/dist/runtime/development-warnings.cjs.map +1 -0
- package/dist/runtime/development-warnings.d.ts +42 -0
- package/dist/runtime/development-warnings.d.ts.map +1 -0
- package/dist/runtime/development-warnings.js +69 -0
- package/dist/runtime/development-warnings.js.map +1 -0
- package/dist/runtime/dom-bridge.cjs +2 -0
- package/dist/runtime/dom-bridge.cjs.map +1 -0
- package/dist/runtime/dom-bridge.d.ts +70 -0
- package/dist/runtime/dom-bridge.d.ts.map +1 -0
- package/dist/runtime/dom-bridge.js +241 -0
- package/dist/runtime/dom-bridge.js.map +1 -0
- package/dist/runtime/element-override.cjs +2 -0
- package/dist/runtime/element-override.cjs.map +1 -0
- package/dist/runtime/element-override.d.ts +82 -0
- package/dist/runtime/element-override.d.ts.map +1 -0
- package/dist/runtime/element-override.js +214 -0
- package/dist/runtime/element-override.js.map +1 -0
- package/dist/runtime/error-boundary.cjs +2 -0
- package/dist/runtime/error-boundary.cjs.map +1 -0
- package/dist/runtime/error-boundary.d.ts +302 -0
- package/dist/runtime/error-boundary.d.ts.map +1 -0
- package/dist/runtime/error-boundary.js +559 -0
- package/dist/runtime/error-boundary.js.map +1 -0
- package/dist/runtime/error-recovery.cjs +2 -0
- package/dist/runtime/error-recovery.cjs.map +1 -0
- package/dist/runtime/error-recovery.d.ts +267 -0
- package/dist/runtime/error-recovery.d.ts.map +1 -0
- package/dist/runtime/error-recovery.js +385 -0
- package/dist/runtime/error-recovery.js.map +1 -0
- package/dist/runtime/error-reporting.cjs +3 -0
- package/dist/runtime/error-reporting.cjs.map +1 -0
- package/dist/runtime/error-reporting.d.ts +287 -0
- package/dist/runtime/error-reporting.d.ts.map +1 -0
- package/dist/runtime/error-reporting.js +479 -0
- package/dist/runtime/error-reporting.js.map +1 -0
- package/dist/runtime/error-utils.cjs +3 -0
- package/dist/runtime/error-utils.cjs.map +1 -0
- package/dist/runtime/error-utils.d.ts +204 -0
- package/dist/runtime/error-utils.d.ts.map +1 -0
- package/dist/runtime/error-utils.js +352 -0
- package/dist/runtime/error-utils.js.map +1 -0
- package/dist/runtime/index.d.ts +29 -0
- package/dist/runtime/index.d.ts.map +1 -0
- package/dist/runtime/lazy-component.cjs +2 -0
- package/dist/runtime/lazy-component.cjs.map +1 -0
- package/dist/runtime/lazy-component.d.ts +58 -0
- package/dist/runtime/lazy-component.d.ts.map +1 -0
- package/dist/runtime/lazy-component.js +129 -0
- package/dist/runtime/lazy-component.js.map +1 -0
- package/dist/runtime/lifecycle.cjs +2 -0
- package/dist/runtime/lifecycle.cjs.map +1 -0
- package/dist/runtime/lifecycle.d.ts +8 -0
- package/dist/runtime/lifecycle.d.ts.map +1 -0
- package/dist/runtime/lifecycle.js +7 -0
- package/dist/runtime/lifecycle.js.map +1 -0
- package/dist/runtime/mounting.cjs +2 -0
- package/dist/runtime/mounting.cjs.map +1 -0
- package/dist/runtime/mounting.d.ts +9 -0
- package/dist/runtime/mounting.d.ts.map +1 -0
- package/dist/runtime/mounting.js +12 -0
- package/dist/runtime/mounting.js.map +1 -0
- package/dist/runtime/optimization.cjs +2 -0
- package/dist/runtime/optimization.cjs.map +1 -0
- package/dist/runtime/optimization.d.ts +8 -0
- package/dist/runtime/optimization.d.ts.map +1 -0
- package/dist/runtime/optimization.js +6 -0
- package/dist/runtime/optimization.js.map +1 -0
- package/dist/runtime/performance.cjs +2 -0
- package/dist/runtime/performance.cjs.map +1 -0
- package/dist/runtime/performance.d.ts +217 -0
- package/dist/runtime/performance.d.ts.map +1 -0
- package/dist/runtime/performance.js +399 -0
- package/dist/runtime/performance.js.map +1 -0
- package/dist/runtime/props.cjs +2 -0
- package/dist/runtime/props.cjs.map +1 -0
- package/dist/runtime/props.d.ts +154 -0
- package/dist/runtime/props.d.ts.map +1 -0
- package/dist/runtime/props.js +265 -0
- package/dist/runtime/props.js.map +1 -0
- package/dist/runtime/refs.d.ts +8 -0
- package/dist/runtime/refs.d.ts.map +1 -0
- package/dist/runtime/renderer.cjs +2 -0
- package/dist/runtime/renderer.cjs.map +1 -0
- package/dist/runtime/renderer.d.ts +116 -0
- package/dist/runtime/renderer.d.ts.map +1 -0
- package/dist/runtime/renderer.js +390 -0
- package/dist/runtime/renderer.js.map +1 -0
- package/dist/runtime/semantic-role-manager.cjs +2 -0
- package/dist/runtime/semantic-role-manager.cjs.map +1 -0
- package/dist/runtime/semantic-role-manager.d.ts +37 -0
- package/dist/runtime/semantic-role-manager.d.ts.map +1 -0
- package/dist/runtime/semantic-role-manager.js +82 -0
- package/dist/runtime/semantic-role-manager.js.map +1 -0
- package/dist/runtime/types.d.ts +230 -0
- package/dist/runtime/types.d.ts.map +1 -0
- package/dist/state/binding.cjs +2 -0
- package/dist/state/binding.cjs.map +1 -0
- package/dist/state/binding.d.ts +96 -0
- package/dist/state/binding.d.ts.map +1 -0
- package/dist/state/binding.js +155 -0
- package/dist/state/binding.js.map +1 -0
- package/dist/state/environment-object.d.ts +130 -0
- package/dist/state/environment-object.d.ts.map +1 -0
- package/dist/state/environment.cjs +2 -0
- package/dist/state/environment.cjs.map +1 -0
- package/dist/state/environment.d.ts +178 -0
- package/dist/state/environment.d.ts.map +1 -0
- package/dist/state/environment.js +115 -0
- package/dist/state/environment.js.map +1 -0
- package/dist/state/index.cjs +2 -0
- package/dist/state/index.cjs.map +1 -0
- package/dist/state/index.d.ts +108 -0
- package/dist/state/index.d.ts.map +1 -0
- package/dist/state/index.js +63 -0
- package/dist/state/index.js.map +1 -0
- package/dist/state/observed-object.cjs +2 -0
- package/dist/state/observed-object.cjs.map +1 -0
- package/dist/state/observed-object.d.ts +126 -0
- package/dist/state/observed-object.d.ts.map +1 -0
- package/dist/state/observed-object.js +163 -0
- package/dist/state/observed-object.js.map +1 -0
- package/dist/state/state-manager.cjs +2 -0
- package/dist/state/state-manager.cjs.map +1 -0
- package/dist/state/state-manager.d.ts +97 -0
- package/dist/state/state-manager.d.ts.map +1 -0
- package/dist/state/state-manager.js +233 -0
- package/dist/state/state-manager.js.map +1 -0
- package/dist/state/state.cjs +2 -0
- package/dist/state/state.cjs.map +1 -0
- package/dist/state/state.d.ts +78 -0
- package/dist/state/state.d.ts.map +1 -0
- package/dist/state/state.js +159 -0
- package/dist/state/state.js.map +1 -0
- package/dist/state/types.d.ts +159 -0
- package/dist/state/types.d.ts.map +1 -0
- package/dist/sui-compat.cjs +2 -0
- package/dist/sui-compat.cjs.map +1 -0
- package/dist/sui-compat.d.ts +110 -0
- package/dist/sui-compat.d.ts.map +1 -0
- package/dist/sui-compat.js +88 -0
- package/dist/sui-compat.js.map +1 -0
- package/dist/validation/advanced-debugging.cjs +44 -0
- package/dist/validation/advanced-debugging.cjs.map +1 -0
- package/dist/validation/advanced-debugging.d.ts +319 -0
- package/dist/validation/advanced-debugging.d.ts.map +1 -0
- package/dist/validation/advanced-debugging.js +455 -0
- package/dist/validation/advanced-debugging.js.map +1 -0
- package/dist/validation/build-time/detection.cjs +2 -0
- package/dist/validation/build-time/detection.cjs.map +1 -0
- package/dist/validation/build-time/detection.d.ts +32 -0
- package/dist/validation/build-time/detection.d.ts.map +1 -0
- package/dist/validation/build-time/detection.js +199 -0
- package/dist/validation/build-time/detection.js.map +1 -0
- package/dist/validation/build-time/index.cjs +2 -0
- package/dist/validation/build-time/index.cjs.map +1 -0
- package/dist/validation/build-time/index.d.ts +84 -0
- package/dist/validation/build-time/index.d.ts.map +1 -0
- package/dist/validation/build-time/index.js +122 -0
- package/dist/validation/build-time/index.js.map +1 -0
- package/dist/validation/build-time/plugins.cjs +3 -0
- package/dist/validation/build-time/plugins.cjs.map +1 -0
- package/dist/validation/build-time/plugins.d.ts +75 -0
- package/dist/validation/build-time/plugins.d.ts.map +1 -0
- package/dist/validation/build-time/plugins.js +282 -0
- package/dist/validation/build-time/plugins.js.map +1 -0
- package/dist/validation/build-time/rules.cjs +2 -0
- package/dist/validation/build-time/rules.cjs.map +1 -0
- package/dist/validation/build-time/rules.d.ts +73 -0
- package/dist/validation/build-time/rules.d.ts.map +1 -0
- package/dist/validation/build-time/rules.js +576 -0
- package/dist/validation/build-time/rules.js.map +1 -0
- package/dist/validation/build-time/transformer.cjs +3 -0
- package/dist/validation/build-time/transformer.cjs.map +1 -0
- package/dist/validation/build-time/transformer.d.ts +23 -0
- package/dist/validation/build-time/transformer.d.ts.map +1 -0
- package/dist/validation/build-time/transformer.js +177 -0
- package/dist/validation/build-time/transformer.js.map +1 -0
- package/dist/validation/build-time/types.d.ts +212 -0
- package/dist/validation/build-time/types.d.ts.map +1 -0
- package/dist/validation/comprehensive.cjs +9 -0
- package/dist/validation/comprehensive.cjs.map +1 -0
- package/dist/validation/comprehensive.d.ts +160 -0
- package/dist/validation/comprehensive.d.ts.map +1 -0
- package/dist/validation/comprehensive.js +916 -0
- package/dist/validation/comprehensive.js.map +1 -0
- package/dist/validation/debug-tools.cjs +16 -0
- package/dist/validation/debug-tools.cjs.map +1 -0
- package/dist/validation/debug-tools.d.ts +251 -0
- package/dist/validation/debug-tools.d.ts.map +1 -0
- package/dist/validation/debug-tools.js +405 -0
- package/dist/validation/debug-tools.js.map +1 -0
- package/dist/validation/developer-experience.cjs +17 -0
- package/dist/validation/developer-experience.cjs.map +1 -0
- package/dist/validation/developer-experience.d.ts +243 -0
- package/dist/validation/developer-experience.d.ts.map +1 -0
- package/dist/validation/developer-experience.js +433 -0
- package/dist/validation/developer-experience.js.map +1 -0
- package/dist/validation/documentation-integration.cjs +7 -0
- package/dist/validation/documentation-integration.cjs.map +1 -0
- package/dist/validation/documentation-integration.d.ts +269 -0
- package/dist/validation/documentation-integration.d.ts.map +1 -0
- package/dist/validation/documentation-integration.js +440 -0
- package/dist/validation/documentation-integration.js.map +1 -0
- package/dist/validation/enhanced-runtime.cjs +6 -0
- package/dist/validation/enhanced-runtime.cjs.map +1 -0
- package/dist/validation/enhanced-runtime.d.ts +279 -0
- package/dist/validation/enhanced-runtime.d.ts.map +1 -0
- package/dist/validation/enhanced-runtime.js +465 -0
- package/dist/validation/enhanced-runtime.js.map +1 -0
- package/dist/validation/error-reporting.cjs +32 -0
- package/dist/validation/error-reporting.cjs.map +1 -0
- package/dist/validation/error-reporting.d.ts +186 -0
- package/dist/validation/error-reporting.d.ts.map +1 -0
- package/dist/validation/error-reporting.js +370 -0
- package/dist/validation/error-reporting.js.map +1 -0
- package/dist/validation/ide-integration.cjs +85 -0
- package/dist/validation/ide-integration.cjs.map +1 -0
- package/dist/validation/ide-integration.d.ts +328 -0
- package/dist/validation/ide-integration.d.ts.map +1 -0
- package/dist/validation/ide-integration.js +557 -0
- package/dist/validation/ide-integration.js.map +1 -0
- package/dist/validation/index.cjs +6 -0
- package/dist/validation/index.cjs.map +1 -0
- package/dist/validation/index.d.ts +171 -0
- package/dist/validation/index.d.ts.map +1 -0
- package/dist/validation/index.js +309 -0
- package/dist/validation/index.js.map +1 -0
- package/dist/validation/lifecycle-validation.cjs +2 -0
- package/dist/validation/lifecycle-validation.cjs.map +1 -0
- package/dist/validation/lifecycle-validation.d.ts +165 -0
- package/dist/validation/lifecycle-validation.d.ts.map +1 -0
- package/dist/validation/lifecycle-validation.js +314 -0
- package/dist/validation/lifecycle-validation.js.map +1 -0
- package/dist/validation/performance-optimizer.cjs +2 -0
- package/dist/validation/performance-optimizer.cjs.map +1 -0
- package/dist/validation/performance-optimizer.d.ts +218 -0
- package/dist/validation/performance-optimizer.d.ts.map +1 -0
- package/dist/validation/performance-optimizer.js +338 -0
- package/dist/validation/performance-optimizer.js.map +1 -0
- package/dist/validation/plugin-registration.cjs +2 -0
- package/dist/validation/plugin-registration.cjs.map +1 -0
- package/dist/validation/plugin-registration.d.ts +88 -0
- package/dist/validation/plugin-registration.d.ts.map +1 -0
- package/dist/validation/plugin-registration.js +126 -0
- package/dist/validation/plugin-registration.js.map +1 -0
- package/dist/validation/production-bypass.cjs +2 -0
- package/dist/validation/production-bypass.cjs.map +1 -0
- package/dist/validation/production-bypass.d.ts +175 -0
- package/dist/validation/production-bypass.d.ts.map +1 -0
- package/dist/validation/production-bypass.js +218 -0
- package/dist/validation/production-bypass.js.map +1 -0
- package/dist/validation/simple.cjs +9 -0
- package/dist/validation/simple.cjs.map +1 -0
- package/dist/validation/simple.d.ts +111 -0
- package/dist/validation/simple.d.ts.map +1 -0
- package/dist/validation/simple.js +146 -0
- package/dist/validation/simple.js.map +1 -0
- package/dist/viewport/adapters/web-adapter.cjs +70 -0
- package/dist/viewport/adapters/web-adapter.cjs.map +1 -0
- package/dist/viewport/adapters/web-adapter.d.ts +227 -0
- package/dist/viewport/adapters/web-adapter.d.ts.map +1 -0
- package/dist/viewport/adapters/web-adapter.js +823 -0
- package/dist/viewport/adapters/web-adapter.js.map +1 -0
- package/dist/viewport/components.cjs +2 -0
- package/dist/viewport/components.cjs.map +1 -0
- package/dist/viewport/components.d.ts +131 -0
- package/dist/viewport/components.d.ts.map +1 -0
- package/dist/viewport/components.js +298 -0
- package/dist/viewport/components.js.map +1 -0
- package/dist/viewport/environment.cjs +2 -0
- package/dist/viewport/environment.cjs.map +1 -0
- package/dist/viewport/environment.d.ts +75 -0
- package/dist/viewport/environment.d.ts.map +1 -0
- package/dist/viewport/environment.js +86 -0
- package/dist/viewport/environment.js.map +1 -0
- package/dist/viewport/index.cjs +2 -0
- package/dist/viewport/index.cjs.map +1 -0
- package/dist/viewport/index.d.ts +138 -0
- package/dist/viewport/index.d.ts.map +1 -0
- package/dist/viewport/index.js +166 -0
- package/dist/viewport/index.js.map +1 -0
- package/dist/viewport/platform-detection.cjs +2 -0
- package/dist/viewport/platform-detection.cjs.map +1 -0
- package/dist/viewport/platform-detection.d.ts +59 -0
- package/dist/viewport/platform-detection.d.ts.map +1 -0
- package/dist/viewport/platform-detection.js +205 -0
- package/dist/viewport/platform-detection.js.map +1 -0
- package/dist/viewport/types.cjs +2 -0
- package/dist/viewport/types.cjs.map +1 -0
- package/dist/viewport/types.d.ts +301 -0
- package/dist/viewport/types.d.ts.map +1 -0
- package/dist/viewport/types.js +13 -0
- package/dist/viewport/types.js.map +1 -0
- package/dist/viewport/viewport-manager.cjs +2 -0
- package/dist/viewport/viewport-manager.cjs.map +1 -0
- package/dist/viewport/viewport-manager.d.ts +118 -0
- package/dist/viewport/viewport-manager.d.ts.map +1 -0
- package/dist/viewport/viewport-manager.js +524 -0
- package/dist/viewport/viewport-manager.js.map +1 -0
- package/package.json +128 -0
- package/src/assets/Asset.ts +11 -0
- package/src/assets/AssetCollection.ts +99 -0
- package/src/assets/ColorAsset.ts +210 -0
- package/src/assets/FontAsset.ts +380 -0
- package/src/assets/ImageAsset.ts +91 -0
- package/src/assets/README.md +190 -0
- package/src/assets/index.ts +175 -0
- package/src/assets/test-assets.ts +69 -0
- package/src/assets/test-integration.ts +46 -0
- package/src/assets/test-simple.ts +28 -0
- package/src/assets/types.ts +79 -0
- package/src/bundles/common.ts +30 -0
- package/src/bundles/complete.ts +29 -0
- package/src/bundles/essential.ts +26 -0
- package/src/bundles/minimal.ts +26 -0
- package/src/bundles/production-minimal.ts +67 -0
- package/src/compiler/advanced-parser.ts +871 -0
- package/src/compiler/codegen.ts +450 -0
- package/src/compiler/enhanced-codegen.ts +729 -0
- package/src/compiler/index.ts +25 -0
- package/src/compiler/parser.ts +461 -0
- package/src/compiler/plugin.ts +181 -0
- package/src/compiler/types.ts +177 -0
- package/src/components/BasicInput.ts +352 -0
- package/src/components/Button.ts +963 -0
- package/src/components/Divider.ts +341 -0
- package/src/components/EnhancedLink.ts +676 -0
- package/src/components/Form.ts +414 -0
- package/src/components/Grid.ts +2507 -0
- package/src/components/GridResponsive.ts +637 -0
- package/src/components/Image.ts +426 -0
- package/src/components/List.ts +1084 -0
- package/src/components/Menu.ts +807 -0
- package/src/components/Picker.ts +678 -0
- package/src/components/ScrollView.ts +725 -0
- package/src/components/Section.ts +472 -0
- package/src/components/Show.ts +205 -0
- package/src/components/Spacer.ts +93 -0
- package/src/components/Text.ts +447 -0
- package/src/components/Toggle.ts +700 -0
- package/src/components/index.ts +231 -0
- package/src/components/wrapper.ts +828 -0
- package/src/concatenation/concatenatable.ts +211 -0
- package/src/concatenation/concatenated-component.ts +471 -0
- package/src/concatenation/index.ts +41 -0
- package/src/concatenation/styles.css +120 -0
- package/src/concatenation/text-optimizer.ts +440 -0
- package/src/concatenation/types.ts +116 -0
- package/src/constants/README.md +339 -0
- package/src/constants/__tests__/frame-utils.test.ts +276 -0
- package/src/constants/__tests__/layout.test.ts +215 -0
- package/src/constants/frame-utils.ts +174 -0
- package/src/constants/index.ts +8 -0
- package/src/constants/layout.ts +120 -0
- package/src/css-classes/component-base.ts +117 -0
- package/src/css-classes/css-class-manager.ts +372 -0
- package/src/css-classes/dom-integration.ts +162 -0
- package/src/css-classes/enhanced-renderer.ts +166 -0
- package/src/css-classes/index.ts +45 -0
- package/src/css-classes/types.ts +73 -0
- package/src/css-classes/utilities.ts +175 -0
- package/src/debug/index.ts +267 -0
- package/src/developer-experience/enhanced-errors.ts +556 -0
- package/src/developer-experience/enhanced-types.ts +427 -0
- package/src/developer-experience/index.ts +220 -0
- package/src/globals.d.ts +43 -0
- package/src/gradients/__tests__/angular-gradient.test.ts +111 -0
- package/src/gradients/__tests__/background-modifier.test.ts +81 -0
- package/src/gradients/__tests__/comprehensive-gradients.test.ts +296 -0
- package/src/gradients/__tests__/gradient-asset.test.ts +144 -0
- package/src/gradients/__tests__/linear-gradient.test.ts +92 -0
- package/src/gradients/__tests__/phase4-features.test.ts +386 -0
- package/src/gradients/__tests__/radial-gradient.test.ts +110 -0
- package/src/gradients/__tests__/repeating-gradients.test.ts +125 -0
- package/src/gradients/__tests__/state-background-modifier.test.ts +340 -0
- package/src/gradients/__tests__/state-gradient-asset.test.ts +262 -0
- package/src/gradients/__tests__/state-gradient-integration.test.ts +277 -0
- package/src/gradients/css-generator.ts +158 -0
- package/src/gradients/examples.ts +632 -0
- package/src/gradients/gradient-asset.ts +30 -0
- package/src/gradients/index.ts +85 -0
- package/src/gradients/performance.ts +521 -0
- package/src/gradients/presets.ts +422 -0
- package/src/gradients/reactive.ts +470 -0
- package/src/gradients/state-gradient-asset.ts +179 -0
- package/src/gradients/types.ts +148 -0
- package/src/gradients/utils.ts +579 -0
- package/src/gradients/validation.ts +489 -0
- package/src/index.ts +168 -0
- package/src/lifecycle/hooks.ts +332 -0
- package/src/modifiers/__tests__/as-html-integration.test.ts +204 -0
- package/src/modifiers/__tests__/as-html.test.ts +437 -0
- package/src/modifiers/__tests__/basic-sanitizer-security.test.ts +294 -0
- package/src/modifiers/__tests__/border.test.ts +371 -0
- package/src/modifiers/__tests__/margin-string-support.test.ts +41 -0
- package/src/modifiers/__tests__/padding-string-support.test.ts +41 -0
- package/src/modifiers/as-html-validator.ts +68 -0
- package/src/modifiers/as-html.ts +216 -0
- package/src/modifiers/attributes.ts +574 -0
- package/src/modifiers/backdrop.ts +290 -0
- package/src/modifiers/background.ts +165 -0
- package/src/modifiers/base.ts +1815 -0
- package/src/modifiers/basic-sanitizer.ts +227 -0
- package/src/modifiers/border.ts +574 -0
- package/src/modifiers/builder.ts +1747 -0
- package/src/modifiers/core.ts +521 -0
- package/src/modifiers/css.ts +148 -0
- package/src/modifiers/effects.ts +412 -0
- package/src/modifiers/elements.ts +541 -0
- package/src/modifiers/filters.ts +501 -0
- package/src/modifiers/flexbox.ts +180 -0
- package/src/modifiers/font.ts +149 -0
- package/src/modifiers/grid.ts +238 -0
- package/src/modifiers/index.ts +481 -0
- package/src/modifiers/margin.ts +218 -0
- package/src/modifiers/padding.ts +318 -0
- package/src/modifiers/registry.ts +444 -0
- package/src/modifiers/responsive/__tests__/advanced-media-queries.test.ts +392 -0
- package/src/modifiers/responsive/__tests__/advanced-utilities.test.ts +368 -0
- package/src/modifiers/responsive/__tests__/comprehensive-browser-tests.test.ts +556 -0
- package/src/modifiers/responsive/__tests__/layout-patterns.test.ts +558 -0
- package/src/modifiers/responsive/advanced-utilities.ts +562 -0
- package/src/modifiers/responsive/breakpoints.ts +330 -0
- package/src/modifiers/responsive/css-generator.ts +432 -0
- package/src/modifiers/responsive/dev-tools.ts +650 -0
- package/src/modifiers/responsive/index.ts +119 -0
- package/src/modifiers/responsive/layout-patterns.ts +592 -0
- package/src/modifiers/responsive/performance.ts +385 -0
- package/src/modifiers/responsive/responsive-builder.ts +620 -0
- package/src/modifiers/responsive/responsive-modifier.ts +410 -0
- package/src/modifiers/responsive/types.ts +226 -0
- package/src/modifiers/responsive/utilities.ts +478 -0
- package/src/modifiers/scroll.ts +297 -0
- package/src/modifiers/shadows.ts +321 -0
- package/src/modifiers/size.ts +208 -0
- package/src/modifiers/text.ts +416 -0
- package/src/modifiers/transformations.ts +640 -0
- package/src/modifiers/transitions.ts +218 -0
- package/src/modifiers/types.ts +889 -0
- package/src/modifiers/typography.ts +341 -0
- package/src/modifiers/utility.ts +209 -0
- package/src/modifiers/utils.ts +413 -0
- package/src/plugins/__tests__/simplified-plugin-system.test.ts +190 -0
- package/src/plugins/component-loader-registry.ts +371 -0
- package/src/plugins/index.ts +61 -0
- package/src/plugins/legacy-adapter.ts +84 -0
- package/src/plugins/simplified-component-registry.ts +130 -0
- package/src/plugins/simplified-error-handler.ts +372 -0
- package/src/plugins/simplified-index.ts +61 -0
- package/src/plugins/simplified-lazy-loader.ts +242 -0
- package/src/plugins/simplified-plugin-manager.ts +93 -0
- package/src/plugins/simplified-tachui-instance.ts +142 -0
- package/src/plugins/simplified-types.ts +79 -0
- package/src/plugins/simplified-utils.ts +118 -0
- package/src/reactive/cleanup.ts +241 -0
- package/src/reactive/computed.ts +281 -0
- package/src/reactive/context.ts +287 -0
- package/src/reactive/effect.ts +194 -0
- package/src/reactive/enhanced-effect.ts +318 -0
- package/src/reactive/enhanced-signal.ts +227 -0
- package/src/reactive/equality.ts +188 -0
- package/src/reactive/globals.d.ts +5 -0
- package/src/reactive/index.ts +150 -0
- package/src/reactive/migration.ts +335 -0
- package/src/reactive/ownership.ts +182 -0
- package/src/reactive/scheduler.ts +300 -0
- package/src/reactive/signal.ts +201 -0
- package/src/reactive/theme.ts +49 -0
- package/src/reactive/types.ts +103 -0
- package/src/reactive/unified-scheduler.ts +357 -0
- package/src/runtime/component-context.ts +343 -0
- package/src/runtime/component.ts +499 -0
- package/src/runtime/context.ts +527 -0
- package/src/runtime/dev-tools.ts +752 -0
- package/src/runtime/development-warnings.ts +114 -0
- package/src/runtime/dom-bridge.ts +570 -0
- package/src/runtime/element-override.ts +282 -0
- package/src/runtime/error-boundary.ts +955 -0
- package/src/runtime/error-recovery.ts +638 -0
- package/src/runtime/error-reporting.ts +808 -0
- package/src/runtime/error-utils.ts +698 -0
- package/src/runtime/index.ts +202 -0
- package/src/runtime/lazy-component.ts +268 -0
- package/src/runtime/lifecycle.ts +10 -0
- package/src/runtime/mounting.ts +17 -0
- package/src/runtime/optimization.ts +13 -0
- package/src/runtime/performance.ts +693 -0
- package/src/runtime/props.ts +434 -0
- package/src/runtime/refs.ts +13 -0
- package/src/runtime/renderer.ts +674 -0
- package/src/runtime/semantic-role-manager.ts +140 -0
- package/src/runtime/types.ts +282 -0
- package/src/state/binding.ts +381 -0
- package/src/state/environment-object.ts +444 -0
- package/src/state/environment.ts +351 -0
- package/src/state/index.ts +179 -0
- package/src/state/observed-object.ts +405 -0
- package/src/state/state-manager.ts +366 -0
- package/src/state/state.ts +339 -0
- package/src/state/types.ts +192 -0
- package/src/sui-compat.ts +163 -0
- package/src/validation/__tests__/phase-1d-integration.test.ts +558 -0
- package/src/validation/advanced-debugging.ts +860 -0
- package/src/validation/build-time/detection.ts +373 -0
- package/src/validation/build-time/index.ts +222 -0
- package/src/validation/build-time/plugins.ts +515 -0
- package/src/validation/build-time/rules.ts +624 -0
- package/src/validation/build-time/transformer.ts +372 -0
- package/src/validation/build-time/types.ts +232 -0
- package/src/validation/comprehensive.ts +1272 -0
- package/src/validation/debug-tools.ts +724 -0
- package/src/validation/developer-experience.ts +712 -0
- package/src/validation/documentation-integration.ts +835 -0
- package/src/validation/enhanced-runtime.ts +765 -0
- package/src/validation/error-reporting.ts +587 -0
- package/src/validation/ide-integration.ts +845 -0
- package/src/validation/index.ts +353 -0
- package/src/validation/lifecycle-validation.ts +636 -0
- package/src/validation/performance-optimizer.ts +599 -0
- package/src/validation/plugin-registration.ts +249 -0
- package/src/validation/production-bypass.ts +466 -0
- package/src/validation/simple.ts +465 -0
- package/src/viewport/adapters/web-adapter.ts +1385 -0
- package/src/viewport/components.ts +505 -0
- package/src/viewport/environment.ts +173 -0
- package/src/viewport/index.ts +290 -0
- package/src/viewport/platform-detection.ts +431 -0
- package/src/viewport/types.ts +371 -0
- package/src/viewport/viewport-manager.ts +979 -0
|
@@ -0,0 +1,465 @@
|
|
|
1
|
+
import { TachUIValidationError as v } from "./comprehensive.js";
|
|
2
|
+
var b = Object.defineProperty, x = (n, e, t) => e in n ? b(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, s = (n, e, t) => x(n, typeof e != "symbol" ? e + "" : e, t);
|
|
3
|
+
class h extends v {
|
|
4
|
+
constructor(e, t) {
|
|
5
|
+
super(e, t), this.context = t;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Get recovery strategy with proper typing
|
|
9
|
+
*/
|
|
10
|
+
getRecoveryStrategyFromContext() {
|
|
11
|
+
return this.context.recoveryStrategy || "throw";
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Get fallback value with proper typing
|
|
15
|
+
*/
|
|
16
|
+
getFallbackValueFromContext() {
|
|
17
|
+
return this.context.fallbackValue;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Get auto fix with proper typing
|
|
21
|
+
*/
|
|
22
|
+
getAutoFixFromContext() {
|
|
23
|
+
return this.context.autoFix;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Get suggested recovery action
|
|
27
|
+
*/
|
|
28
|
+
getRecoveryStrategy() {
|
|
29
|
+
return this.getRecoveryStrategyFromContext();
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Get fallback value for graceful degradation
|
|
33
|
+
*/
|
|
34
|
+
getFallbackValue() {
|
|
35
|
+
return this.getFallbackValueFromContext();
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Apply automatic fix if available
|
|
39
|
+
*/
|
|
40
|
+
applyAutoFix() {
|
|
41
|
+
const e = this.getAutoFixFromContext();
|
|
42
|
+
if (e)
|
|
43
|
+
return e();
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Enhanced formatted message with recovery options
|
|
47
|
+
*/
|
|
48
|
+
getFormattedMessage() {
|
|
49
|
+
const e = super.getFormattedMessage(), t = this.getRecoveryStrategy();
|
|
50
|
+
let r = "";
|
|
51
|
+
switch (t) {
|
|
52
|
+
case "fallback":
|
|
53
|
+
r = `
|
|
54
|
+
🛡️ Recovery: Using fallback value to continue execution`;
|
|
55
|
+
break;
|
|
56
|
+
case "fix":
|
|
57
|
+
r = `
|
|
58
|
+
🔧 Recovery: Automatic fix applied`;
|
|
59
|
+
break;
|
|
60
|
+
case "ignore":
|
|
61
|
+
r = `
|
|
62
|
+
⚠️ Recovery: Error ignored, continuing with original value`;
|
|
63
|
+
break;
|
|
64
|
+
default:
|
|
65
|
+
r = `
|
|
66
|
+
🚨 Recovery: None available, error will be thrown`;
|
|
67
|
+
}
|
|
68
|
+
return e + r;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
let a = {
|
|
72
|
+
enabled: process.env.NODE_ENV !== "production",
|
|
73
|
+
strictMode: !1,
|
|
74
|
+
errorLevel: "error",
|
|
75
|
+
excludeFiles: [],
|
|
76
|
+
packages: {
|
|
77
|
+
core: !0,
|
|
78
|
+
forms: !0,
|
|
79
|
+
navigation: !0,
|
|
80
|
+
symbols: !0,
|
|
81
|
+
plugins: !0
|
|
82
|
+
},
|
|
83
|
+
performance: {
|
|
84
|
+
enableCaching: !0,
|
|
85
|
+
maxCacheSize: 1e3,
|
|
86
|
+
performanceThreshold: 5
|
|
87
|
+
// 5ms threshold
|
|
88
|
+
},
|
|
89
|
+
recovery: {
|
|
90
|
+
enableRecovery: !0,
|
|
91
|
+
defaultStrategy: "fallback",
|
|
92
|
+
maxRecoveryAttempts: 3
|
|
93
|
+
},
|
|
94
|
+
lifecycle: {
|
|
95
|
+
validateOnMount: !0,
|
|
96
|
+
validateOnUpdate: !1,
|
|
97
|
+
// Too expensive for every update
|
|
98
|
+
validateOnUnmount: !1
|
|
99
|
+
},
|
|
100
|
+
reporting: {
|
|
101
|
+
enhancedMessages: !0,
|
|
102
|
+
includeStackTrace: !1,
|
|
103
|
+
reportToConsole: !0
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
class w {
|
|
107
|
+
// 1 minute TTL
|
|
108
|
+
constructor(e = 1e3) {
|
|
109
|
+
s(this, "cache", /* @__PURE__ */ new Map()), s(this, "maxSize"), s(this, "ttl", 6e4), this.maxSize = e;
|
|
110
|
+
}
|
|
111
|
+
get(e) {
|
|
112
|
+
const t = this.cache.get(e);
|
|
113
|
+
return t ? Date.now() - t.timestamp > this.ttl ? (this.cache.delete(e), null) : t.result : null;
|
|
114
|
+
}
|
|
115
|
+
set(e, t) {
|
|
116
|
+
if (this.cache.size >= this.maxSize) {
|
|
117
|
+
const r = this.cache.keys().next().value;
|
|
118
|
+
r && this.cache.delete(r);
|
|
119
|
+
}
|
|
120
|
+
this.cache.set(e, {
|
|
121
|
+
result: t,
|
|
122
|
+
timestamp: Date.now()
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
clear() {
|
|
126
|
+
this.cache.clear();
|
|
127
|
+
}
|
|
128
|
+
getSize() {
|
|
129
|
+
return this.cache.size;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
class S {
|
|
133
|
+
constructor() {
|
|
134
|
+
s(this, "measurements", []), s(this, "maxMeasurements", 100);
|
|
135
|
+
}
|
|
136
|
+
startMeasurement() {
|
|
137
|
+
const e = performance.now();
|
|
138
|
+
return () => {
|
|
139
|
+
const t = performance.now() - e;
|
|
140
|
+
this.recordMeasurement(t);
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
recordMeasurement(e) {
|
|
144
|
+
this.measurements.push(e), this.measurements.length > this.maxMeasurements && this.measurements.shift();
|
|
145
|
+
}
|
|
146
|
+
getAverageTime() {
|
|
147
|
+
return this.measurements.length === 0 ? 0 : this.measurements.reduce((e, t) => e + t, 0) / this.measurements.length;
|
|
148
|
+
}
|
|
149
|
+
isPerformanceAcceptable() {
|
|
150
|
+
return this.getAverageTime() <= a.performance.performanceThreshold;
|
|
151
|
+
}
|
|
152
|
+
getStats() {
|
|
153
|
+
return {
|
|
154
|
+
averageTime: this.getAverageTime(),
|
|
155
|
+
measurements: this.measurements.length,
|
|
156
|
+
acceptable: this.isPerformanceAcceptable(),
|
|
157
|
+
threshold: a.performance.performanceThreshold
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
reset() {
|
|
161
|
+
this.measurements = [];
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
const u = new w(a.performance.maxCacheSize), m = new S();
|
|
165
|
+
function g(n) {
|
|
166
|
+
a = {
|
|
167
|
+
...a,
|
|
168
|
+
...n,
|
|
169
|
+
performance: { ...a.performance, ...n.performance },
|
|
170
|
+
recovery: { ...a.recovery, ...n.recovery },
|
|
171
|
+
lifecycle: { ...a.lifecycle, ...n.lifecycle },
|
|
172
|
+
reporting: { ...a.reporting, ...n.reporting }
|
|
173
|
+
}, n.performance?.maxCacheSize && u.clear();
|
|
174
|
+
}
|
|
175
|
+
function d() {
|
|
176
|
+
return a.enabled && process.env.NODE_ENV !== "production";
|
|
177
|
+
}
|
|
178
|
+
class V {
|
|
179
|
+
constructor() {
|
|
180
|
+
s(this, "recoveryAttempts", /* @__PURE__ */ new Map());
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Execute validation with recovery options
|
|
184
|
+
*/
|
|
185
|
+
executeWithRecovery(e, t, r = {}) {
|
|
186
|
+
if (process.env.NODE_ENV === "production")
|
|
187
|
+
return t();
|
|
188
|
+
if (a.performance.enableCaching) {
|
|
189
|
+
const o = u.get(e);
|
|
190
|
+
if (o === !0)
|
|
191
|
+
return t();
|
|
192
|
+
if (o === !1 && r.fallbackValue !== void 0)
|
|
193
|
+
return r.fallbackValue;
|
|
194
|
+
}
|
|
195
|
+
const c = m.startMeasurement();
|
|
196
|
+
try {
|
|
197
|
+
const o = t();
|
|
198
|
+
return a.performance.enableCaching && u.set(e, !0), c(), o;
|
|
199
|
+
} catch (o) {
|
|
200
|
+
if (c(), o instanceof h)
|
|
201
|
+
return this.handleValidationError(e, o, r);
|
|
202
|
+
const i = new h(
|
|
203
|
+
o instanceof Error ? o.message : String(o),
|
|
204
|
+
{
|
|
205
|
+
component: "Unknown",
|
|
206
|
+
recoveryStrategy: r.strategy || a.recovery.defaultStrategy,
|
|
207
|
+
fallbackValue: r.fallbackValue,
|
|
208
|
+
autoFix: r.autoFix
|
|
209
|
+
}
|
|
210
|
+
);
|
|
211
|
+
return this.handleValidationError(e, i, r);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* Handle validation error with recovery
|
|
216
|
+
*/
|
|
217
|
+
handleValidationError(e, t, r) {
|
|
218
|
+
const c = r.strategy || t.getRecoveryStrategy(), o = this.recoveryAttempts.get(e) || 0;
|
|
219
|
+
if (o >= a.recovery.maxRecoveryAttempts)
|
|
220
|
+
throw this.reportError(t), t;
|
|
221
|
+
switch (this.recoveryAttempts.set(e, o + 1), a.performance.enableCaching && e && u.set(e, !1), c) {
|
|
222
|
+
case "ignore":
|
|
223
|
+
this.reportError(t, "warn");
|
|
224
|
+
try {
|
|
225
|
+
const f = (r.autoFix || (() => r.fallbackValue))();
|
|
226
|
+
return f !== void 0 ? f : r.fallbackValue;
|
|
227
|
+
} catch {
|
|
228
|
+
return r.fallbackValue;
|
|
229
|
+
}
|
|
230
|
+
case "fallback":
|
|
231
|
+
if (this.reportError(t, "warn"), r.fallbackValue !== void 0)
|
|
232
|
+
return r.fallbackValue;
|
|
233
|
+
throw t;
|
|
234
|
+
case "fix":
|
|
235
|
+
if (this.reportError(t, "info"), r.autoFix)
|
|
236
|
+
try {
|
|
237
|
+
return r.autoFix();
|
|
238
|
+
} catch {
|
|
239
|
+
return r.fallbackValue;
|
|
240
|
+
}
|
|
241
|
+
throw t;
|
|
242
|
+
case "throw":
|
|
243
|
+
default:
|
|
244
|
+
throw this.reportError(t), t;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* Report validation error
|
|
249
|
+
*/
|
|
250
|
+
reportError(e, t = "error") {
|
|
251
|
+
if (!a.reporting.reportToConsole) return;
|
|
252
|
+
const r = a.reporting.enhancedMessages ? e.getFormattedMessage() : e.message;
|
|
253
|
+
if (a.reporting.includeStackTrace ? console[t](r, e.stack) : console[t](r), a.reporting.reportToExternal)
|
|
254
|
+
try {
|
|
255
|
+
a.reporting.reportToExternal(e);
|
|
256
|
+
} catch (c) {
|
|
257
|
+
console.warn("Failed to report validation error to external service:", c);
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* Reset recovery attempts
|
|
262
|
+
*/
|
|
263
|
+
resetRecoveryAttempts() {
|
|
264
|
+
this.recoveryAttempts.clear();
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* Get recovery stats
|
|
268
|
+
*/
|
|
269
|
+
getRecoveryStats() {
|
|
270
|
+
return {
|
|
271
|
+
totalAttempts: Array.from(this.recoveryAttempts.values()).reduce((e, t) => e + t, 0),
|
|
272
|
+
keysWithAttempts: this.recoveryAttempts.size,
|
|
273
|
+
attempts: Object.fromEntries(this.recoveryAttempts)
|
|
274
|
+
};
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
const l = new V();
|
|
278
|
+
class E {
|
|
279
|
+
constructor() {
|
|
280
|
+
s(this, "mountedComponents", /* @__PURE__ */ new WeakSet()), s(this, "componentStates", /* @__PURE__ */ new WeakMap());
|
|
281
|
+
}
|
|
282
|
+
/**
|
|
283
|
+
* Validate component on mount
|
|
284
|
+
*/
|
|
285
|
+
validateOnMount(e, t) {
|
|
286
|
+
if (!a.lifecycle.validateOnMount || !d())
|
|
287
|
+
return;
|
|
288
|
+
const r = `mount-${e.constructor.name}-${JSON.stringify(t)}`;
|
|
289
|
+
l.executeWithRecovery(
|
|
290
|
+
r,
|
|
291
|
+
() => {
|
|
292
|
+
if (!e)
|
|
293
|
+
throw new h("Component instance is null or undefined", {
|
|
294
|
+
component: "Unknown",
|
|
295
|
+
recoveryStrategy: "throw"
|
|
296
|
+
});
|
|
297
|
+
return this.componentStates.set(e, { ...t, mountTime: Date.now() }), this.mountedComponents.add(e), !0;
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
strategy: "fallback",
|
|
301
|
+
fallbackValue: !0
|
|
302
|
+
}
|
|
303
|
+
);
|
|
304
|
+
}
|
|
305
|
+
/**
|
|
306
|
+
* Validate component on update
|
|
307
|
+
*/
|
|
308
|
+
validateOnUpdate(e, t, r) {
|
|
309
|
+
if (!a.lifecycle.validateOnUpdate || !d())
|
|
310
|
+
return;
|
|
311
|
+
if (!this.mountedComponents.has(e)) {
|
|
312
|
+
a.reporting.reportToConsole && console.warn("⚠️ Component update validation: Component not found in mounted components");
|
|
313
|
+
return;
|
|
314
|
+
}
|
|
315
|
+
const c = `update-${e.constructor.name}-${Date.now()}`;
|
|
316
|
+
l.executeWithRecovery(
|
|
317
|
+
c,
|
|
318
|
+
() => {
|
|
319
|
+
if (t && typeof t == "object") {
|
|
320
|
+
for (const [o, i] of Object.entries(t))
|
|
321
|
+
if (i === void 0 && r && r[o] !== void 0)
|
|
322
|
+
throw new h(`Property ${o} changed from defined to undefined`, {
|
|
323
|
+
component: e.constructor.name,
|
|
324
|
+
property: o,
|
|
325
|
+
suggestion: "Ensure prop values remain consistent or use null instead of undefined",
|
|
326
|
+
recoveryStrategy: "ignore"
|
|
327
|
+
});
|
|
328
|
+
}
|
|
329
|
+
return this.componentStates.set(e, { ...t, lastUpdate: Date.now() }), !0;
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
strategy: "ignore",
|
|
333
|
+
fallbackValue: !0
|
|
334
|
+
}
|
|
335
|
+
);
|
|
336
|
+
}
|
|
337
|
+
/**
|
|
338
|
+
* Validate component on unmount
|
|
339
|
+
*/
|
|
340
|
+
validateOnUnmount(e) {
|
|
341
|
+
!a.lifecycle.validateOnUnmount || !d() || this.mountedComponents.has(e) && (this.mountedComponents.delete(e), this.componentStates.delete(e));
|
|
342
|
+
}
|
|
343
|
+
/**
|
|
344
|
+
* Get lifecycle validation stats
|
|
345
|
+
*/
|
|
346
|
+
getStats() {
|
|
347
|
+
let e = 0;
|
|
348
|
+
try {
|
|
349
|
+
e = 0;
|
|
350
|
+
} catch {
|
|
351
|
+
e = 0;
|
|
352
|
+
}
|
|
353
|
+
return {
|
|
354
|
+
mountedComponents: e,
|
|
355
|
+
enabled: a.lifecycle,
|
|
356
|
+
config: a.lifecycle
|
|
357
|
+
};
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
const y = new E(), C = {
|
|
361
|
+
/**
|
|
362
|
+
* Configure enhanced validation
|
|
363
|
+
*/
|
|
364
|
+
configure: g,
|
|
365
|
+
/**
|
|
366
|
+
* Get performance statistics
|
|
367
|
+
*/
|
|
368
|
+
getPerformanceStats() {
|
|
369
|
+
return {
|
|
370
|
+
monitor: m.getStats(),
|
|
371
|
+
cache: {
|
|
372
|
+
size: u.getSize(),
|
|
373
|
+
maxSize: a.performance.maxCacheSize
|
|
374
|
+
},
|
|
375
|
+
recovery: l.getRecoveryStats(),
|
|
376
|
+
lifecycle: y.getStats()
|
|
377
|
+
};
|
|
378
|
+
},
|
|
379
|
+
/**
|
|
380
|
+
* Reset all caches and stats
|
|
381
|
+
*/
|
|
382
|
+
reset() {
|
|
383
|
+
u.clear(), m.reset(), l.resetRecoveryAttempts();
|
|
384
|
+
},
|
|
385
|
+
/**
|
|
386
|
+
* Test enhanced validation system
|
|
387
|
+
*/
|
|
388
|
+
test() {
|
|
389
|
+
console.group("🔍 Enhanced Runtime Validation System Test");
|
|
390
|
+
try {
|
|
391
|
+
const n = m.startMeasurement();
|
|
392
|
+
setTimeout(n, 1);
|
|
393
|
+
const e = l.executeWithRecovery(
|
|
394
|
+
"test-validation",
|
|
395
|
+
() => {
|
|
396
|
+
throw new h("Test error", {
|
|
397
|
+
component: "Test",
|
|
398
|
+
recoveryStrategy: "fallback",
|
|
399
|
+
fallbackValue: "recovered"
|
|
400
|
+
});
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
fallbackValue: "recovered"
|
|
404
|
+
}
|
|
405
|
+
);
|
|
406
|
+
console.info("✅ Smart error recovery:", e === "recovered"), console.info("✅ Performance monitoring: enabled"), console.info("✅ Validation caching: enabled"), console.info("✅ Component lifecycle: enabled"), console.info("✅ Enhanced validation system is working correctly");
|
|
407
|
+
} catch (n) {
|
|
408
|
+
console.error("❌ Enhanced validation test failed:", n);
|
|
409
|
+
}
|
|
410
|
+
console.groupEnd();
|
|
411
|
+
},
|
|
412
|
+
/**
|
|
413
|
+
* Enable production bypass mode
|
|
414
|
+
*/
|
|
415
|
+
enableProductionBypass() {
|
|
416
|
+
process.env.NODE_ENV === "production" && (g({ enabled: !1 }), console.info("✅ Production mode: Validation bypassed for zero overhead"));
|
|
417
|
+
},
|
|
418
|
+
/**
|
|
419
|
+
* Create validated component with enhanced features
|
|
420
|
+
*/
|
|
421
|
+
createEnhancedValidatedComponent(n, e, t, r = "core") {
|
|
422
|
+
return function(...o) {
|
|
423
|
+
if (process.env.NODE_ENV === "production")
|
|
424
|
+
return n.apply(this, o);
|
|
425
|
+
const i = `${r}-${t}-${JSON.stringify(o)}`;
|
|
426
|
+
return l.executeWithRecovery(
|
|
427
|
+
i,
|
|
428
|
+
() => {
|
|
429
|
+
e(o);
|
|
430
|
+
const p = n.apply(this, o);
|
|
431
|
+
return y.validateOnMount(p, o[0]), p;
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
strategy: "fallback",
|
|
435
|
+
fallbackValue: n.apply(this, o),
|
|
436
|
+
autoFix: () => {
|
|
437
|
+
try {
|
|
438
|
+
return n.apply(this, [{}]);
|
|
439
|
+
} catch {
|
|
440
|
+
throw new h("Failed to create component with fallback", {
|
|
441
|
+
component: t,
|
|
442
|
+
package: r,
|
|
443
|
+
recoveryStrategy: "throw"
|
|
444
|
+
});
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
);
|
|
449
|
+
};
|
|
450
|
+
}
|
|
451
|
+
};
|
|
452
|
+
export {
|
|
453
|
+
E as ComponentLifecycleValidator,
|
|
454
|
+
h as EnhancedValidationError,
|
|
455
|
+
C as EnhancedValidationUtils,
|
|
456
|
+
V as SmartValidationExecutor,
|
|
457
|
+
g as configureEnhancedValidation,
|
|
458
|
+
a as enhancedConfig,
|
|
459
|
+
d as isEnhancedValidationEnabled,
|
|
460
|
+
y as lifecycleValidator,
|
|
461
|
+
m as performanceMonitor,
|
|
462
|
+
l as smartValidator,
|
|
463
|
+
u as validationCache
|
|
464
|
+
};
|
|
465
|
+
//# sourceMappingURL=enhanced-runtime.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enhanced-runtime.js","sources":["../../src/validation/enhanced-runtime.ts"],"sourcesContent":["/**\n * Enhanced Runtime Validation System - Phase 1C\n * \n * Smart error recovery, performance optimization, enhanced error reporting,\n * and component lifecycle validation for production-ready validation.\n */\n\nimport type { ComponentInstance } from '../runtime/types'\nimport { TachUIValidationError, type ValidationConfig } from './comprehensive'\n\n/**\n * Recovery strategy for validation errors\n */\nexport type RecoveryStrategy = 'ignore' | 'fallback' | 'fix' | 'throw'\n\n/**\n * Enhanced validation error with recovery options\n */\nexport class EnhancedValidationError extends TachUIValidationError {\n declare context: {\n component: string\n property?: string\n suggestion?: string\n documentation?: string\n example?: { wrong: string; correct: string }\n package?: string\n recoveryStrategy?: RecoveryStrategy\n fallbackValue?: any\n autoFix?: () => any\n }\n\n constructor(\n message: string,\n context: {\n component: string\n property?: string\n suggestion?: string\n documentation?: string\n example?: { wrong: string; correct: string }\n package?: string\n recoveryStrategy?: RecoveryStrategy\n fallbackValue?: any\n autoFix?: () => any\n }\n ) {\n super(message, context)\n this.context = context\n }\n\n /**\n * Get recovery strategy with proper typing\n */\n private getRecoveryStrategyFromContext(): RecoveryStrategy {\n return (this.context as any).recoveryStrategy || 'throw'\n }\n\n /**\n * Get fallback value with proper typing\n */\n private getFallbackValueFromContext(): any {\n return (this.context as any).fallbackValue\n }\n\n /**\n * Get auto fix with proper typing\n */\n private getAutoFixFromContext(): (() => any) | undefined {\n return (this.context as any).autoFix\n }\n\n /**\n * Get suggested recovery action\n */\n getRecoveryStrategy(): RecoveryStrategy {\n return this.getRecoveryStrategyFromContext()\n }\n\n /**\n * Get fallback value for graceful degradation\n */\n getFallbackValue(): any {\n return this.getFallbackValueFromContext()\n }\n\n /**\n * Apply automatic fix if available\n */\n applyAutoFix(): any {\n const autoFix = this.getAutoFixFromContext()\n if (autoFix) {\n return autoFix()\n }\n return undefined\n }\n\n /**\n * Enhanced formatted message with recovery options\n */\n getFormattedMessage(): string {\n const base = super.getFormattedMessage()\n const recovery = this.getRecoveryStrategy()\n \n let recoveryMessage = ''\n switch (recovery) {\n case 'fallback':\n recoveryMessage = '\\n🛡️ Recovery: Using fallback value to continue execution'\n break\n case 'fix':\n recoveryMessage = '\\n🔧 Recovery: Automatic fix applied'\n break\n case 'ignore':\n recoveryMessage = '\\n⚠️ Recovery: Error ignored, continuing with original value'\n break\n default:\n recoveryMessage = '\\n🚨 Recovery: None available, error will be thrown'\n }\n\n return base + recoveryMessage\n }\n}\n\n/**\n * Enhanced validation configuration\n */\nexport interface EnhancedValidationConfig extends ValidationConfig {\n performance: {\n enableCaching: boolean\n maxCacheSize: number\n performanceThreshold: number // ms\n }\n recovery: {\n enableRecovery: boolean\n defaultStrategy: RecoveryStrategy\n maxRecoveryAttempts: number\n }\n lifecycle: {\n validateOnMount: boolean\n validateOnUpdate: boolean\n validateOnUnmount: boolean\n }\n reporting: {\n enhancedMessages: boolean\n includeStackTrace: boolean\n reportToConsole: boolean\n reportToExternal?: (error: EnhancedValidationError) => void\n }\n}\n\n/**\n * Global enhanced validation configuration\n */\nlet enhancedConfig: EnhancedValidationConfig = {\n enabled: process.env.NODE_ENV !== 'production',\n strictMode: false,\n errorLevel: 'error',\n excludeFiles: [],\n packages: {\n core: true,\n forms: true,\n navigation: true,\n symbols: true,\n plugins: true\n },\n performance: {\n enableCaching: true,\n maxCacheSize: 1000,\n performanceThreshold: 5 // 5ms threshold\n },\n recovery: {\n enableRecovery: true,\n defaultStrategy: 'fallback',\n maxRecoveryAttempts: 3\n },\n lifecycle: {\n validateOnMount: true,\n validateOnUpdate: false, // Too expensive for every update\n validateOnUnmount: false\n },\n reporting: {\n enhancedMessages: true,\n includeStackTrace: false,\n reportToConsole: true\n }\n}\n\n/**\n * Validation cache for performance optimization\n */\nclass ValidationCache {\n private cache = new Map<string, { result: boolean; timestamp: number }>()\n private maxSize: number\n private ttl = 60000 // 1 minute TTL\n\n constructor(maxSize: number = 1000) {\n this.maxSize = maxSize\n }\n\n get(key: string): boolean | null {\n const entry = this.cache.get(key)\n if (!entry) return null\n\n // Check TTL\n if (Date.now() - entry.timestamp > this.ttl) {\n this.cache.delete(key)\n return null\n }\n\n return entry.result\n }\n\n set(key: string, result: boolean): void {\n // Cleanup old entries if cache is full\n if (this.cache.size >= this.maxSize) {\n const oldestKey = this.cache.keys().next().value\n if (oldestKey) {\n this.cache.delete(oldestKey)\n }\n }\n\n this.cache.set(key, {\n result,\n timestamp: Date.now()\n })\n }\n\n clear(): void {\n this.cache.clear()\n }\n\n getSize(): number {\n return this.cache.size\n }\n}\n\n/**\n * Performance monitor for validation overhead\n */\nclass ValidationPerformanceMonitor {\n private measurements: number[] = []\n private maxMeasurements = 100\n\n startMeasurement(): () => void {\n const start = performance.now()\n \n return () => {\n const duration = performance.now() - start\n this.recordMeasurement(duration)\n }\n }\n\n private recordMeasurement(duration: number): void {\n this.measurements.push(duration)\n \n // Keep only recent measurements\n if (this.measurements.length > this.maxMeasurements) {\n this.measurements.shift()\n }\n }\n\n getAverageTime(): number {\n if (this.measurements.length === 0) return 0\n return this.measurements.reduce((a, b) => a + b, 0) / this.measurements.length\n }\n\n isPerformanceAcceptable(): boolean {\n return this.getAverageTime() <= enhancedConfig.performance.performanceThreshold\n }\n\n getStats() {\n return {\n averageTime: this.getAverageTime(),\n measurements: this.measurements.length,\n acceptable: this.isPerformanceAcceptable(),\n threshold: enhancedConfig.performance.performanceThreshold\n }\n }\n\n reset(): void {\n this.measurements = []\n }\n}\n\n// Global instances\nconst validationCache = new ValidationCache(enhancedConfig.performance.maxCacheSize)\nconst performanceMonitor = new ValidationPerformanceMonitor()\n\n/**\n * Configure enhanced validation\n */\nexport function configureEnhancedValidation(config: Partial<EnhancedValidationConfig>): void {\n enhancedConfig = {\n ...enhancedConfig,\n ...config,\n performance: { ...enhancedConfig.performance, ...config.performance },\n recovery: { ...enhancedConfig.recovery, ...config.recovery },\n lifecycle: { ...enhancedConfig.lifecycle, ...config.lifecycle },\n reporting: { ...enhancedConfig.reporting, ...config.reporting }\n }\n\n // Update cache size if changed\n if (config.performance?.maxCacheSize) {\n validationCache.clear()\n }\n}\n\n/**\n * Check if enhanced validation is enabled\n */\nexport function isEnhancedValidationEnabled(): boolean {\n return enhancedConfig.enabled && process.env.NODE_ENV !== 'production'\n}\n\n/**\n * Smart validation executor with error recovery\n */\nexport class SmartValidationExecutor {\n private recoveryAttempts = new Map<string, number>()\n\n /**\n * Execute validation with recovery options\n */\n executeWithRecovery<T>(\n validationKey: string,\n validator: () => T,\n recoveryOptions: {\n strategy?: RecoveryStrategy\n fallbackValue?: T\n autoFix?: () => T\n } = {}\n ): T {\n // Skip validation entirely in production\n if (process.env.NODE_ENV === 'production') {\n return validator()\n }\n\n // Check cache first\n if (enhancedConfig.performance.enableCaching) {\n const cached = validationCache.get(validationKey)\n if (cached === true) {\n return validator()\n } else if (cached === false && recoveryOptions.fallbackValue !== undefined) {\n return recoveryOptions.fallbackValue\n }\n }\n\n const endMeasurement = performanceMonitor.startMeasurement()\n \n try {\n const result = validator()\n \n // Cache successful validation\n if (enhancedConfig.performance.enableCaching) {\n validationCache.set(validationKey, true)\n }\n \n endMeasurement()\n return result\n \n } catch (error) {\n endMeasurement()\n \n if (error instanceof EnhancedValidationError) {\n return this.handleValidationError(validationKey, error, recoveryOptions)\n }\n \n // Wrap other errors\n const enhancedError = new EnhancedValidationError(\n error instanceof Error ? error.message : String(error),\n {\n component: 'Unknown',\n recoveryStrategy: recoveryOptions.strategy || enhancedConfig.recovery.defaultStrategy,\n fallbackValue: recoveryOptions.fallbackValue,\n autoFix: recoveryOptions.autoFix\n }\n )\n \n return this.handleValidationError(validationKey, enhancedError, recoveryOptions)\n }\n }\n\n /**\n * Handle validation error with recovery\n */\n private handleValidationError<T>(\n validationKey: string,\n error: EnhancedValidationError,\n recoveryOptions: {\n strategy?: RecoveryStrategy\n fallbackValue?: T\n autoFix?: () => T\n }\n ): T {\n const strategy = recoveryOptions.strategy || error.getRecoveryStrategy()\n \n // Check recovery attempt limits\n const attempts = this.recoveryAttempts.get(validationKey) || 0\n if (attempts >= enhancedConfig.recovery.maxRecoveryAttempts) {\n // Report and throw after max attempts\n this.reportError(error)\n throw error\n }\n\n this.recoveryAttempts.set(validationKey, attempts + 1)\n\n // Cache failed validation\n if (enhancedConfig.performance.enableCaching && validationKey) {\n validationCache.set(validationKey, false)\n }\n\n switch (strategy) {\n case 'ignore':\n this.reportError(error, 'warn')\n // Continue with original execution, but catch any errors\n try {\n const fixFn = recoveryOptions.autoFix || (() => recoveryOptions.fallbackValue)\n const result = fixFn()\n return result !== undefined ? result : recoveryOptions.fallbackValue as T\n } catch {\n return recoveryOptions.fallbackValue as T\n }\n\n case 'fallback':\n this.reportError(error, 'warn')\n if (recoveryOptions.fallbackValue !== undefined) {\n return recoveryOptions.fallbackValue\n }\n throw error\n\n case 'fix':\n this.reportError(error, 'info')\n if (recoveryOptions.autoFix) {\n try {\n return recoveryOptions.autoFix()\n } catch {\n // Fall back to fallback value if fix fails\n return recoveryOptions.fallbackValue as T\n }\n }\n throw error\n\n case 'throw':\n default:\n this.reportError(error)\n throw error\n }\n }\n\n /**\n * Report validation error\n */\n private reportError(error: EnhancedValidationError, level: 'error' | 'warn' | 'info' = 'error'): void {\n if (!enhancedConfig.reporting.reportToConsole) return\n\n const message = enhancedConfig.reporting.enhancedMessages \n ? error.getFormattedMessage()\n : error.message\n\n if (enhancedConfig.reporting.includeStackTrace) {\n console[level](message, error.stack)\n } else {\n console[level](message)\n }\n\n // Report to external service if configured\n if (enhancedConfig.reporting.reportToExternal) {\n try {\n enhancedConfig.reporting.reportToExternal(error)\n } catch (reportingError) {\n console.warn('Failed to report validation error to external service:', reportingError)\n }\n }\n }\n\n /**\n * Reset recovery attempts\n */\n resetRecoveryAttempts(): void {\n this.recoveryAttempts.clear()\n }\n\n /**\n * Get recovery stats\n */\n getRecoveryStats() {\n return {\n totalAttempts: Array.from(this.recoveryAttempts.values()).reduce((a, b) => a + b, 0),\n keysWithAttempts: this.recoveryAttempts.size,\n attempts: Object.fromEntries(this.recoveryAttempts)\n }\n }\n}\n\n// Global smart validator instance\nconst smartValidator = new SmartValidationExecutor()\n\n/**\n * Component lifecycle validator\n */\nexport class ComponentLifecycleValidator {\n private mountedComponents = new WeakSet<ComponentInstance>()\n private componentStates = new WeakMap<ComponentInstance, any>()\n\n /**\n * Validate component on mount\n */\n validateOnMount(component: ComponentInstance, props: any): void {\n if (!enhancedConfig.lifecycle.validateOnMount || !isEnhancedValidationEnabled()) {\n return\n }\n\n const validationKey = `mount-${component.constructor.name}-${JSON.stringify(props)}`\n \n smartValidator.executeWithRecovery(\n validationKey,\n () => {\n // Basic mount validation\n if (!component) {\n throw new EnhancedValidationError('Component instance is null or undefined', {\n component: 'Unknown',\n recoveryStrategy: 'throw'\n })\n }\n\n // Store component state\n this.componentStates.set(component, { ...props, mountTime: Date.now() })\n this.mountedComponents.add(component)\n\n return true\n },\n {\n strategy: 'fallback',\n fallbackValue: true\n }\n )\n }\n\n /**\n * Validate component on update\n */\n validateOnUpdate(component: ComponentInstance, newProps: any, oldProps: any): void {\n if (!enhancedConfig.lifecycle.validateOnUpdate || !isEnhancedValidationEnabled()) {\n return\n }\n\n if (!this.mountedComponents.has(component)) {\n // Component not properly mounted\n if (enhancedConfig.reporting.reportToConsole) {\n console.warn('⚠️ Component update validation: Component not found in mounted components')\n }\n return\n }\n\n const validationKey = `update-${component.constructor.name}-${Date.now()}`\n \n smartValidator.executeWithRecovery(\n validationKey,\n () => {\n // Check for invalid prop changes\n if (newProps && typeof newProps === 'object') {\n for (const [key, value] of Object.entries(newProps)) {\n if (value === undefined && oldProps && oldProps[key] !== undefined) {\n throw new EnhancedValidationError(`Property ${key} changed from defined to undefined`, {\n component: component.constructor.name,\n property: key,\n suggestion: 'Ensure prop values remain consistent or use null instead of undefined',\n recoveryStrategy: 'ignore'\n })\n }\n }\n }\n\n // Update component state\n this.componentStates.set(component, { ...newProps, lastUpdate: Date.now() })\n return true\n },\n {\n strategy: 'ignore',\n fallbackValue: true\n }\n )\n }\n\n /**\n * Validate component on unmount\n */\n validateOnUnmount(component: ComponentInstance): void {\n if (!enhancedConfig.lifecycle.validateOnUnmount || !isEnhancedValidationEnabled()) {\n return\n }\n\n if (this.mountedComponents.has(component)) {\n this.mountedComponents.delete(component)\n this.componentStates.delete(component)\n }\n }\n\n /**\n * Get lifecycle validation stats\n */\n getStats() {\n // WeakMap doesn't have a size property, so we'll use an alternative approach\n let componentCount = 0\n try {\n // This is a workaround since WeakMap doesn't expose size\n componentCount = 0 // We can't get the actual count from WeakMap\n } catch {\n componentCount = 0\n }\n \n return {\n mountedComponents: componentCount,\n enabled: enhancedConfig.lifecycle,\n config: enhancedConfig.lifecycle\n }\n }\n}\n\n// Global lifecycle validator\nconst lifecycleValidator = new ComponentLifecycleValidator()\n\n/**\n * Enhanced validation utilities\n */\nexport const EnhancedValidationUtils = {\n /**\n * Configure enhanced validation\n */\n configure: configureEnhancedValidation,\n\n /**\n * Get performance statistics\n */\n getPerformanceStats() {\n return {\n monitor: performanceMonitor.getStats(),\n cache: {\n size: validationCache.getSize(),\n maxSize: enhancedConfig.performance.maxCacheSize\n },\n recovery: smartValidator.getRecoveryStats(),\n lifecycle: lifecycleValidator.getStats()\n }\n },\n\n /**\n * Reset all caches and stats\n */\n reset() {\n validationCache.clear()\n performanceMonitor.reset()\n smartValidator.resetRecoveryAttempts()\n },\n\n /**\n * Test enhanced validation system\n */\n test() {\n console.group('🔍 Enhanced Runtime Validation System Test')\n \n try {\n // Test performance monitoring\n const endMeasurement = performanceMonitor.startMeasurement()\n setTimeout(endMeasurement, 1)\n \n // Test smart validation\n const result = smartValidator.executeWithRecovery(\n 'test-validation',\n () => {\n throw new EnhancedValidationError('Test error', {\n component: 'Test',\n recoveryStrategy: 'fallback',\n fallbackValue: 'recovered'\n })\n },\n {\n fallbackValue: 'recovered'\n }\n )\n \n console.info('✅ Smart error recovery:', result === 'recovered')\n console.info('✅ Performance monitoring: enabled')\n console.info('✅ Validation caching: enabled')\n console.info('✅ Component lifecycle: enabled')\n console.info('✅ Enhanced validation system is working correctly')\n \n } catch (error) {\n console.error('❌ Enhanced validation test failed:', error)\n }\n \n console.groupEnd()\n },\n\n /**\n * Enable production bypass mode\n */\n enableProductionBypass() {\n if (process.env.NODE_ENV === 'production') {\n configureEnhancedValidation({ enabled: false })\n console.info('✅ Production mode: Validation bypassed for zero overhead')\n }\n },\n\n /**\n * Create validated component with enhanced features\n */\n createEnhancedValidatedComponent<T extends ComponentInstance>(\n originalConstructor: (...args: any[]) => T,\n validator: (args: unknown[]) => void,\n componentType: string,\n packageName: string = 'core'\n ): (...args: any[]) => T {\n \n return function enhancedValidatedConstructor(this: any, ...args: unknown[]): T {\n // Production bypass - zero overhead\n if (process.env.NODE_ENV === 'production') {\n return originalConstructor.apply(this, args as any)\n }\n\n const validationKey = `${packageName}-${componentType}-${JSON.stringify(args)}`\n \n const result = smartValidator.executeWithRecovery(\n validationKey,\n () => {\n // Run validation\n validator(args)\n \n // Create the component\n const instance = originalConstructor.apply(this, args as any)\n \n // Lifecycle validation\n lifecycleValidator.validateOnMount(instance, args[0])\n \n return instance\n },\n {\n strategy: 'fallback',\n fallbackValue: originalConstructor.apply(this, args as any) as T,\n autoFix: () => {\n // Try to create component with default props\n try {\n return originalConstructor.apply(this, [{}] as any)\n } catch {\n throw new EnhancedValidationError('Failed to create component with fallback', {\n component: componentType,\n package: packageName,\n recoveryStrategy: 'throw'\n })\n }\n }\n }\n )\n \n return result as T\n }\n }\n}\n\n// Export global instances for external access\nexport {\n smartValidator,\n lifecycleValidator,\n validationCache,\n performanceMonitor,\n enhancedConfig\n}"],"names":["EnhancedValidationError","TachUIValidationError","message","context","autoFix","base","recovery","recoveryMessage","enhancedConfig","ValidationCache","maxSize","__publicField","key","entry","result","oldestKey","ValidationPerformanceMonitor","start","duration","a","b","validationCache","performanceMonitor","configureEnhancedValidation","config","isEnhancedValidationEnabled","SmartValidationExecutor","validationKey","validator","recoveryOptions","cached","endMeasurement","error","enhancedError","strategy","attempts","level","reportingError","smartValidator","ComponentLifecycleValidator","component","props","newProps","oldProps","value","componentCount","lifecycleValidator","EnhancedValidationUtils","originalConstructor","componentType","packageName","args","instance"],"mappings":";;AAkBO,MAAMA,UAAgCC,EAAsB;AAAA,EAajE,YACEC,GACAC,GAWA;AACA,UAAMD,GAASC,CAAO,GACtB,KAAK,UAAUA;AAAA,EACjB;AAAA;AAAA;AAAA;AAAA,EAKQ,iCAAmD;AACzD,WAAQ,KAAK,QAAgB,oBAAoB;AAAA,EACnD;AAAA;AAAA;AAAA;AAAA,EAKQ,8BAAmC;AACzC,WAAQ,KAAK,QAAgB;AAAA,EAC/B;AAA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eb,EAAe;AAAA,QAC5BX;AAAA,QACA,MAAM;AAEJ,UAAAC,EAAUuB,CAAI;AAGd,gBAAMC,IAAWJ,EAAoB,MAAM,MAAMG,CAAW;AAG5D,iBAAAL,EAAmB,gBAAgBM,GAAUD,EAAK,CAAC,CAAC,GAE7CC;AAAA,QACT;AAAA,QACA;AAAA,UACE,UAAU;AAAA,UACV,eAAeJ,EAAoB,MAAM,MAAMG,CAAW;AAAA,UAC1D,SAAS,MAAM;AAEb,gBAAI;AACF,qBAAOH,EAAoB,MAAM,MAAM,CAAC,CAAA,CAAE,CAAQ;AAAA,YACpD,QAAQ;AACN,oBAAM,IAAIhD,EAAwB,4CAA4C;AAAA,gBAC5E,WAAWiD;AAAA,gBACX,SAASC;AAAA,gBACT,kBAAkB;AAAA,cAAA,CACnB;AAAA,YACH;AAAA,UACF;AAAA,QAAA;AAAA,MACF;AAAA,IAIJ;AAAA,EACF;AACF;"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("./enhanced-runtime.cjs");var y=Object.defineProperty,E=(n,t,e)=>t in n?y(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,c=(n,t,e)=>E(n,typeof t!="symbol"?t+"":t,e);const p={COMPONENT_MISSING_REQUIRED_PARAM:{title:"Missing Required Parameter",description:"The {component} component requires a {parameter} parameter to function correctly.",impact:"Component will not render or may throw runtime errors.",quickFix:"Add the missing {parameter} parameter.",detailedSolution:"Check the component documentation for required parameters and their expected types.",prevention:"Use TypeScript for compile-time validation of required parameters.",emoji:"❌",color:"red"},COMPONENT_INVALID_PARAM_TYPE:{title:"Invalid Parameter Type",description:"The {component} component received {received} but expected {expected}.",impact:"May cause unexpected behavior or runtime errors.",quickFix:"Convert the value to the expected type: {expected}.",detailedSolution:"Ensure all parameters match the expected types. Use type guards or validation.",prevention:"Enable strict TypeScript checking and use proper type annotations.",emoji:"🔄",color:"yellow"},COMPONENT_NULL_UNDEFINED_PARAM:{title:"Null or Undefined Parameter",description:"The {component} component received null or undefined for {parameter}.",impact:"Component may not render correctly or throw errors.",quickFix:"Provide a valid value or use conditional rendering.",detailedSolution:"Check for null/undefined values before passing to components.",prevention:"Use optional chaining (?.) and nullish coalescing (??) operators.",emoji:"⚠️",color:"yellow"},MODIFIER_NOT_EXISTS:{title:"Unknown Modifier",description:"The modifier .{modifier}() does not exist in the tachUI framework.",impact:"Build errors or silent failures in modifier chains.",quickFix:"Check the spelling or use a valid modifier name.",detailedSolution:"Refer to the modifier documentation for available options.",prevention:"Use IDE autocompletion and enable TypeScript strict mode.",emoji:"🔍",color:"red"},MODIFIER_INVALID_COMPONENT:{title:"Invalid Modifier Usage",description:"The modifier .{modifier}() is not valid for {component} components.",impact:"Modifier will be ignored or cause styling issues.",quickFix:"Use this modifier only on compatible components: {validComponents}.",detailedSolution:"Each modifier has specific component compatibility. Check documentation.",prevention:"Learn modifier-component compatibility rules.",emoji:"🚫",color:"yellow"},MODIFIER_WRONG_PARAMS:{title:"Incorrect Modifier Parameters",description:"The modifier .{modifier}() received incorrect parameters.",impact:"Modifier may not work as expected or throw errors.",quickFix:"Use the correct parameter format: {correctFormat}.",detailedSolution:"Check modifier documentation for parameter requirements.",prevention:"Use TypeScript for parameter validation.",emoji:"📝",color:"yellow"},PROP_MISSING_REQUIRED:{title:"Missing Required Property",description:"The {component} component is missing the required {property} property.",impact:"Component may not function correctly without this property.",quickFix:"Add the {property} property to the component props.",detailedSolution:"Required properties are essential for component functionality.",prevention:"Use TypeScript interfaces to enforce required properties.",emoji:"📋",color:"red"},PROP_INVALID_TYPE:{title:"Invalid Property Type",description:"Property {property} expected {expected} but received {received}.",impact:"May cause type errors or unexpected component behavior.",quickFix:"Convert the value to {expected} type.",detailedSolution:"Ensure all props match their expected types.",prevention:"Use proper TypeScript typing for props.",emoji:"🔧",color:"yellow"},LIFECYCLE_INVALID_STATE:{title:"Invalid Component State",description:"Component {component} is in an invalid state during {phase}.",impact:"May cause rendering issues or memory leaks.",quickFix:"Ensure proper component lifecycle management.",detailedSolution:"Review component mounting, updating, and unmounting logic.",prevention:"Follow React/component lifecycle best practices.",emoji:"🔄",color:"yellow"},PERFORMANCE_EXPENSIVE_RENDER:{title:"Expensive Render Operation",description:"Component {component} is performing expensive operations during render.",impact:"May cause UI lag and poor user experience.",quickFix:"Move expensive operations to useEffect or useMemo.",detailedSolution:"Optimize component rendering by avoiding heavy computations.",prevention:"Use performance profiling tools and React DevTools.",emoji:"⚡",color:"blue"},BEST_PRACTICE_DEPRECATED:{title:"Deprecated Usage",description:"Using deprecated {feature} which will be removed in future versions.",impact:"Code may break in future framework updates.",quickFix:"Replace with the recommended alternative: {alternative}.",detailedSolution:"Check migration guide for updated patterns.",prevention:"Stay updated with framework changelog and migration guides.",emoji:"⚠️",color:"blue"}};class l{static generate(t,e,r){const o=this.categories[t],i=e.substring(0,3).toUpperCase(),a=r?r.substring(0,3).toUpperCase():"001",f=Date.now().toString(36).substring(-3).toUpperCase();return`TACH-${o}-${i}-${a}-${f}`}}c(l,"categories",{"component-construction":"CC","modifier-usage":"MU","prop-validation":"PV",lifecycle:"LC",performance:"PF",accessibility:"AC","best-practices":"BP"});const d=class m{constructor(){c(this,"errorHistory",[]),c(this,"maxHistorySize",100)}static getInstance(){return this.instance||(this.instance=new m),this.instance}createError(t,e){const o={component:"Unknown",category:"component-construction",severity:"error",errorCode:l.generate(e.category||"component-construction",e.component||"Unknown",e.property),suggestion:"Please check the component documentation.",documentation:"https://docs.tachui.dev/",fixes:[],examples:{wrong:[],correct:[]},recoveryStrategy:"throw",...e},i=new h.EnhancedValidationError(t,o);return this.recordError(i),i}formatError(t){const e=t.context,r=this.getTemplate(e.errorCode||"UNKNOWN");let o=`${r.emoji} ${r.title}
|
|
2
|
+
`;return o+=`📍 Error Code: ${e.errorCode}
|
|
3
|
+
`,o+=`🏷️ Category: ${e.category} | Severity: ${e.severity}
|
|
4
|
+
|
|
5
|
+
`,o+=`📋 Description:
|
|
6
|
+
${this.substituteVariables(r.description,e)}
|
|
7
|
+
|
|
8
|
+
`,o+=`⚠️ Impact:
|
|
9
|
+
${r.impact}
|
|
10
|
+
|
|
11
|
+
`,r.quickFix&&(o+=`🔧 Quick Fix:
|
|
12
|
+
${this.substituteVariables(r.quickFix,e)}
|
|
13
|
+
|
|
14
|
+
`),e.examples.wrong.length>0&&(o+=`❌ Wrong:
|
|
15
|
+
${e.examples.wrong.map(i=>` ${i}`).join(`
|
|
16
|
+
`)}
|
|
17
|
+
|
|
18
|
+
`),e.examples.correct.length>0&&(o+=`✅ Correct:
|
|
19
|
+
${e.examples.correct.map(i=>` ${i}`).join(`
|
|
20
|
+
`)}
|
|
21
|
+
|
|
22
|
+
`),e.fixes.length>0&&(o+=`🔨 Available Fixes:
|
|
23
|
+
`,e.fixes.forEach((i,a)=>{o+=` ${a+1}. ${i.description} (${i.difficulty})
|
|
24
|
+
`,o+=` ${i.code}
|
|
25
|
+
`}),o+=`
|
|
26
|
+
`),o+=`📚 Documentation: ${e.documentation}
|
|
27
|
+
`,e.commonMistakes&&e.commonMistakes.length>0&&(o+=`💡 Common Mistakes:
|
|
28
|
+
${e.commonMistakes.map(i=>` • ${i}`).join(`
|
|
29
|
+
`)}
|
|
30
|
+
`),o+=`🛡️ Recovery: ${this.getRecoveryDescription(e.recoveryStrategy)}
|
|
31
|
+
`,o}getTemplate(t){const e=t.split("-");if(e.length>=2){const r=e[1],i=Object.keys(p).find(a=>r==="CC"?a.startsWith("COMPONENT_"):r==="MU"?a.startsWith("MODIFIER_"):r==="PV"?a.startsWith("PROP_"):r==="LC"?a.startsWith("LIFECYCLE_"):r==="PF"?a.startsWith("PERFORMANCE_"):r==="BP"?a.startsWith("BEST_PRACTICE_"):!1);if(i)return p[i]}return{title:"Validation Error",description:"A validation error occurred.",impact:"May affect component functionality.",emoji:"❌",color:"red"}}substituteVariables(t,e){return t.replace(/\{component\}/g,e.component).replace(/\{package\}/g,e.package||"Core").replace(/\{property\}/g,e.property||"property").replace(/\{parameter\}/g,e.property||"parameter").replace(/\{modifier\}/g,e.property||"modifier")}getRecoveryDescription(t){switch(t){case"ignore":return"Error will be ignored and execution continues";case"fallback":return"Fallback value will be used";case"fix":return"Automatic fix will be applied if available";case"throw":return"Error will be thrown and must be handled";default:return"No recovery strategy specified"}}recordError(t){this.errorHistory.push(t),this.errorHistory.length>this.maxHistorySize&&this.errorHistory.shift()}getErrorStats(){const t=new Map,e=new Map,r=new Map;return this.errorHistory.forEach(o=>{const i=o.context;t.set(i.category,(t.get(i.category)||0)+1),e.set(i.severity,(e.get(i.severity)||0)+1),r.set(i.component,(r.get(i.component)||0)+1)}),{totalErrors:this.errorHistory.length,categories:Object.fromEntries(t),severities:Object.fromEntries(e),components:Object.fromEntries(r),recentErrors:this.errorHistory.slice(-10).map(o=>({code:o.context.errorCode,component:o.context.component,message:o.message,timestamp:Date.now()}))}}clearHistory(){this.errorHistory=[]}exportErrorReport(){const t=this.getErrorStats(),e={timestamp:new Date().toISOString(),framework:"tachUI",version:"1.0.0",stats:t,errors:this.errorHistory.map(r=>({code:r.context.errorCode,message:r.message,context:r.context,stack:r.stack}))};return JSON.stringify(e,null,2)}};c(d,"instance");let u=d;class g{static generateComponentFixSuggestions(t,e,r){const o=[];return e.includes("requires")&&e.includes("parameter")&&o.push({description:`Add the missing parameter to ${t}`,code:this.generateParameterFix(t,r),difficulty:"easy",autoFix:()=>this.generateParameterFix(t,r)}),e.includes("type")&&e.includes("expected")&&o.push({description:"Convert value to expected type",code:this.generateTypeFix(t,r),difficulty:"medium"}),(e.includes("null")||e.includes("undefined"))&&o.push({description:"Add null check and default value",code:this.generateNullCheckFix(t,r),difficulty:"easy"}),o}static generateParameterFix(t,e){return{Text:'Text("Hello World")',Button:'Button("Click me", () => {})',Image:'Image({ source: "image.jpg" })',Toggle:"Toggle({ isOn: false })",VStack:"VStack({ children: [] })",HStack:"HStack({ children: [] })"}[t]||`${t}({ /* add required props */ })`}static generateTypeFix(t,e){if(e.length>0){const r=e[0];if(typeof r=="number")return`${t}(String(${r})) // Convert number to string`;if(typeof r=="object")return`${t}(JSON.stringify(${JSON.stringify(r)})) // Serialize object`}return`${t}(/* provide correct type */)`}static generateNullCheckFix(t,e){return`${t}(value || "default") // Provide fallback for null/undefined`}}const s=u.getInstance(),v={createError:(n,t)=>s.createError(n,t),formatError:n=>s.formatError(n),getStats:()=>s.getErrorStats(),exportReport:()=>s.exportErrorReport(),generateSuggestions:g.generateComponentFixSuggestions};exports.EnhancedErrorReporter=u;exports.ErrorCodeGenerator=l;exports.ErrorReportingUtils=v;exports.ErrorSuggestionEngine=g;exports.ErrorTemplates=p;exports.errorReporter=s;
|
|
32
|
+
//# sourceMappingURL=error-reporting.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error-reporting.cjs","sources":["../../src/validation/error-reporting.ts"],"sourcesContent":["/**\n * Enhanced Error Reporting System - Phase 1C\n * \n * Rich error message templates, contextual suggestions, fix examples,\n * and comprehensive developer guidance for validation errors.\n */\n\nimport type { RecoveryStrategy } from './enhanced-runtime'\nimport { EnhancedValidationError } from './enhanced-runtime'\n\n/**\n * Error severity levels\n */\nexport type ValidationErrorSeverity = 'critical' | 'error' | 'warning' | 'info'\n\n/**\n * Error category for classification\n */\nexport type ValidationErrorCategory = \n | 'component-construction'\n | 'modifier-usage'\n | 'prop-validation'\n | 'lifecycle'\n | 'performance'\n | 'accessibility'\n | 'best-practices'\n\n/**\n * Fix suggestion with automated repair capability\n */\nexport interface FixSuggestion {\n description: string\n code: string\n autoFix?: () => string\n difficulty: 'easy' | 'medium' | 'hard'\n}\n\n/**\n * Enhanced error context with rich metadata\n */\nexport interface EnhancedErrorContext {\n component: string\n package?: string\n property?: string\n \n // Error classification\n category: ValidationErrorCategory\n severity: ValidationErrorSeverity\n errorCode: string\n \n // Developer guidance\n suggestion: string\n documentation: string\n fixes: FixSuggestion[]\n \n // Examples\n examples: {\n wrong: string[]\n correct: string[]\n }\n \n // Recovery options\n recoveryStrategy: RecoveryStrategy\n fallbackValue?: any\n autoFix?: () => any\n \n // Context information\n location?: {\n file?: string\n line?: number\n column?: number\n }\n \n // Related errors\n relatedErrors?: string[]\n commonMistakes?: string[]\n}\n\n/**\n * Error message template for consistent formatting\n */\nexport interface ErrorMessageTemplate {\n title: string\n description: string\n impact: string\n \n // Developer guidance sections\n quickFix?: string\n detailedSolution?: string\n prevention?: string\n \n // Visual formatting\n emoji: string\n color: 'red' | 'yellow' | 'blue' | 'gray'\n}\n\n/**\n * Comprehensive error templates database\n */\nexport const ErrorTemplates: Record<string, ErrorMessageTemplate> = {\n // Component Construction Errors\n 'COMPONENT_MISSING_REQUIRED_PARAM': {\n title: 'Missing Required Parameter',\n description: 'The {component} component requires a {parameter} parameter to function correctly.',\n impact: 'Component will not render or may throw runtime errors.',\n quickFix: 'Add the missing {parameter} parameter.',\n detailedSolution: 'Check the component documentation for required parameters and their expected types.',\n prevention: 'Use TypeScript for compile-time validation of required parameters.',\n emoji: '❌',\n color: 'red'\n },\n\n 'COMPONENT_INVALID_PARAM_TYPE': {\n title: 'Invalid Parameter Type',\n description: 'The {component} component received {received} but expected {expected}.',\n impact: 'May cause unexpected behavior or runtime errors.',\n quickFix: 'Convert the value to the expected type: {expected}.',\n detailedSolution: 'Ensure all parameters match the expected types. Use type guards or validation.',\n prevention: 'Enable strict TypeScript checking and use proper type annotations.',\n emoji: '🔄',\n color: 'yellow'\n },\n\n 'COMPONENT_NULL_UNDEFINED_PARAM': {\n title: 'Null or Undefined Parameter',\n description: 'The {component} component received null or undefined for {parameter}.',\n impact: 'Component may not render correctly or throw errors.',\n quickFix: 'Provide a valid value or use conditional rendering.',\n detailedSolution: 'Check for null/undefined values before passing to components.',\n prevention: 'Use optional chaining (?.) and nullish coalescing (??) operators.',\n emoji: '⚠️',\n color: 'yellow'\n },\n\n // Modifier Usage Errors\n 'MODIFIER_NOT_EXISTS': {\n title: 'Unknown Modifier',\n description: 'The modifier .{modifier}() does not exist in the tachUI framework.',\n impact: 'Build errors or silent failures in modifier chains.',\n quickFix: 'Check the spelling or use a valid modifier name.',\n detailedSolution: 'Refer to the modifier documentation for available options.',\n prevention: 'Use IDE autocompletion and enable TypeScript strict mode.',\n emoji: '🔍',\n color: 'red'\n },\n\n 'MODIFIER_INVALID_COMPONENT': {\n title: 'Invalid Modifier Usage',\n description: 'The modifier .{modifier}() is not valid for {component} components.',\n impact: 'Modifier will be ignored or cause styling issues.',\n quickFix: 'Use this modifier only on compatible components: {validComponents}.',\n detailedSolution: 'Each modifier has specific component compatibility. Check documentation.',\n prevention: 'Learn modifier-component compatibility rules.',\n emoji: '🚫',\n color: 'yellow'\n },\n\n 'MODIFIER_WRONG_PARAMS': {\n title: 'Incorrect Modifier Parameters',\n description: 'The modifier .{modifier}() received incorrect parameters.',\n impact: 'Modifier may not work as expected or throw errors.',\n quickFix: 'Use the correct parameter format: {correctFormat}.',\n detailedSolution: 'Check modifier documentation for parameter requirements.',\n prevention: 'Use TypeScript for parameter validation.',\n emoji: '📝',\n color: 'yellow'\n },\n\n // Prop Validation Errors\n 'PROP_MISSING_REQUIRED': {\n title: 'Missing Required Property',\n description: 'The {component} component is missing the required {property} property.',\n impact: 'Component may not function correctly without this property.',\n quickFix: 'Add the {property} property to the component props.',\n detailedSolution: 'Required properties are essential for component functionality.',\n prevention: 'Use TypeScript interfaces to enforce required properties.',\n emoji: '📋',\n color: 'red'\n },\n\n 'PROP_INVALID_TYPE': {\n title: 'Invalid Property Type',\n description: 'Property {property} expected {expected} but received {received}.',\n impact: 'May cause type errors or unexpected component behavior.',\n quickFix: 'Convert the value to {expected} type.',\n detailedSolution: 'Ensure all props match their expected types.',\n prevention: 'Use proper TypeScript typing for props.',\n emoji: '🔧',\n color: 'yellow'\n },\n\n // Lifecycle Errors\n 'LIFECYCLE_INVALID_STATE': {\n title: 'Invalid Component State',\n description: 'Component {component} is in an invalid state during {phase}.',\n impact: 'May cause rendering issues or memory leaks.',\n quickFix: 'Ensure proper component lifecycle management.',\n detailedSolution: 'Review component mounting, updating, and unmounting logic.',\n prevention: 'Follow React/component lifecycle best practices.',\n emoji: '🔄',\n color: 'yellow'\n },\n\n // Performance Errors\n 'PERFORMANCE_EXPENSIVE_RENDER': {\n title: 'Expensive Render Operation',\n description: 'Component {component} is performing expensive operations during render.',\n impact: 'May cause UI lag and poor user experience.',\n quickFix: 'Move expensive operations to useEffect or useMemo.',\n detailedSolution: 'Optimize component rendering by avoiding heavy computations.',\n prevention: 'Use performance profiling tools and React DevTools.',\n emoji: '⚡',\n color: 'blue'\n },\n\n // Best Practices\n 'BEST_PRACTICE_DEPRECATED': {\n title: 'Deprecated Usage',\n description: 'Using deprecated {feature} which will be removed in future versions.',\n impact: 'Code may break in future framework updates.',\n quickFix: 'Replace with the recommended alternative: {alternative}.',\n detailedSolution: 'Check migration guide for updated patterns.',\n prevention: 'Stay updated with framework changelog and migration guides.',\n emoji: '⚠️',\n color: 'blue'\n }\n}\n\n/**\n * Error code generator for consistent error identification\n */\nexport class ErrorCodeGenerator {\n private static categories = {\n 'component-construction': 'CC',\n 'modifier-usage': 'MU',\n 'prop-validation': 'PV',\n 'lifecycle': 'LC',\n 'performance': 'PF',\n 'accessibility': 'AC',\n 'best-practices': 'BP'\n }\n\n static generate(category: ValidationErrorCategory, component: string, specific?: string): string {\n const categoryCode = this.categories[category]\n const componentCode = component.substring(0, 3).toUpperCase()\n const specificCode = specific ? specific.substring(0, 3).toUpperCase() : '001'\n const timestamp = Date.now().toString(36).substring(-3).toUpperCase()\n \n return `TACH-${categoryCode}-${componentCode}-${specificCode}-${timestamp}`\n }\n}\n\n/**\n * Enhanced error reporter with rich formatting\n */\nexport class EnhancedErrorReporter {\n private static instance: EnhancedErrorReporter\n private errorHistory: EnhancedValidationError[] = []\n private maxHistorySize = 100\n\n static getInstance(): EnhancedErrorReporter {\n if (!this.instance) {\n this.instance = new EnhancedErrorReporter()\n }\n return this.instance\n }\n\n /**\n * Create enhanced validation error with rich context\n */\n createError(\n message: string,\n context: Partial<EnhancedErrorContext>\n ): EnhancedValidationError {\n const errorCode = ErrorCodeGenerator.generate(\n context.category || 'component-construction',\n context.component || 'Unknown',\n context.property\n )\n\n const enhancedContext: EnhancedErrorContext = {\n component: 'Unknown',\n category: 'component-construction',\n severity: 'error',\n errorCode,\n suggestion: 'Please check the component documentation.',\n documentation: 'https://docs.tachui.dev/',\n fixes: [],\n examples: { wrong: [], correct: [] },\n recoveryStrategy: 'throw',\n ...context\n }\n\n const error = new EnhancedValidationError(message, enhancedContext)\n this.recordError(error)\n return error\n }\n\n /**\n * Format error message with rich context\n */\n formatError(error: EnhancedValidationError): string {\n const context = error.context as any as EnhancedErrorContext\n const template = this.getTemplate(context.errorCode || 'UNKNOWN')\n \n let formatted = `${template.emoji} ${template.title}\\n`\n formatted += `📍 Error Code: ${context.errorCode}\\n`\n formatted += `🏷️ Category: ${context.category} | Severity: ${context.severity}\\n\\n`\n \n // Description with context substitution\n formatted += `📋 Description:\\n${this.substituteVariables(template.description, context)}\\n\\n`\n \n // Impact\n formatted += `⚠️ Impact:\\n${template.impact}\\n\\n`\n \n // Quick fix\n if (template.quickFix) {\n formatted += `🔧 Quick Fix:\\n${this.substituteVariables(template.quickFix, context)}\\n\\n`\n }\n \n // Examples\n if (context.examples.wrong.length > 0) {\n formatted += `❌ Wrong:\\n${context.examples.wrong.map(ex => ` ${ex}`).join('\\n')}\\n\\n`\n }\n \n if (context.examples.correct.length > 0) {\n formatted += `✅ Correct:\\n${context.examples.correct.map(ex => ` ${ex}`).join('\\n')}\\n\\n`\n }\n \n // Fix suggestions\n if (context.fixes.length > 0) {\n formatted += `🔨 Available Fixes:\\n`\n context.fixes.forEach((fix, index) => {\n formatted += ` ${index + 1}. ${fix.description} (${fix.difficulty})\\n`\n formatted += ` ${fix.code}\\n`\n })\n formatted += '\\n'\n }\n \n // Documentation\n formatted += `📚 Documentation: ${context.documentation}\\n`\n \n // Related information\n if (context.commonMistakes && context.commonMistakes.length > 0) {\n formatted += `💡 Common Mistakes:\\n${context.commonMistakes.map(m => ` • ${m}`).join('\\n')}\\n`\n }\n \n // Recovery information\n formatted += `🛡️ Recovery: ${this.getRecoveryDescription(context.recoveryStrategy)}\\n`\n \n return formatted\n }\n\n /**\n * Get error template by code or fallback to default\n */\n private getTemplate(errorCode: string): ErrorMessageTemplate {\n // Extract template key from error code\n const parts = errorCode.split('-')\n if (parts.length >= 2) {\n const category = parts[1]\n const templateKeys = Object.keys(ErrorTemplates)\n const matchingTemplate = templateKeys.find(key => {\n if (category === 'CC') return key.startsWith('COMPONENT_')\n if (category === 'MU') return key.startsWith('MODIFIER_')\n if (category === 'PV') return key.startsWith('PROP_')\n if (category === 'LC') return key.startsWith('LIFECYCLE_')\n if (category === 'PF') return key.startsWith('PERFORMANCE_')\n if (category === 'BP') return key.startsWith('BEST_PRACTICE_')\n return false\n })\n \n if (matchingTemplate) {\n return ErrorTemplates[matchingTemplate]\n }\n }\n \n // Fallback to generic template\n return {\n title: 'Validation Error',\n description: 'A validation error occurred.',\n impact: 'May affect component functionality.',\n emoji: '❌',\n color: 'red'\n }\n }\n\n /**\n * Substitute variables in template strings\n */\n private substituteVariables(template: string, context: EnhancedErrorContext): string {\n return template\n .replace(/\\{component\\}/g, context.component)\n .replace(/\\{package\\}/g, context.package || 'Core')\n .replace(/\\{property\\}/g, context.property || 'property')\n .replace(/\\{parameter\\}/g, context.property || 'parameter')\n .replace(/\\{modifier\\}/g, context.property || 'modifier')\n }\n\n /**\n * Get recovery strategy description\n */\n private getRecoveryDescription(strategy: RecoveryStrategy): string {\n switch (strategy) {\n case 'ignore': return 'Error will be ignored and execution continues'\n case 'fallback': return 'Fallback value will be used'\n case 'fix': return 'Automatic fix will be applied if available'\n case 'throw': return 'Error will be thrown and must be handled'\n default: return 'No recovery strategy specified'\n }\n }\n\n /**\n * Record error in history for analytics\n */\n private recordError(error: EnhancedValidationError): void {\n this.errorHistory.push(error)\n \n // Maintain history size limit\n if (this.errorHistory.length > this.maxHistorySize) {\n this.errorHistory.shift()\n }\n }\n\n /**\n * Get error statistics\n */\n getErrorStats() {\n const categoryCounts = new Map<ValidationErrorCategory, number>()\n const severityCounts = new Map<ValidationErrorSeverity, number>()\n const componentCounts = new Map<string, number>()\n \n this.errorHistory.forEach(error => {\n const context = error.context as EnhancedErrorContext\n \n categoryCounts.set(context.category, (categoryCounts.get(context.category) || 0) + 1)\n severityCounts.set(context.severity, (severityCounts.get(context.severity) || 0) + 1)\n componentCounts.set(context.component, (componentCounts.get(context.component) || 0) + 1)\n })\n \n return {\n totalErrors: this.errorHistory.length,\n categories: Object.fromEntries(categoryCounts),\n severities: Object.fromEntries(severityCounts),\n components: Object.fromEntries(componentCounts),\n recentErrors: this.errorHistory.slice(-10).map(e => ({\n code: (e.context as EnhancedErrorContext).errorCode,\n component: e.context.component,\n message: e.message,\n timestamp: Date.now()\n }))\n }\n }\n\n /**\n * Clear error history\n */\n clearHistory(): void {\n this.errorHistory = []\n }\n\n /**\n * Export error report for debugging\n */\n exportErrorReport(): string {\n const stats = this.getErrorStats()\n const report = {\n timestamp: new Date().toISOString(),\n framework: 'tachUI',\n version: '1.0.0', // Would be dynamic in real implementation\n stats,\n errors: this.errorHistory.map(error => ({\n code: (error.context as EnhancedErrorContext).errorCode,\n message: error.message,\n context: error.context,\n stack: error.stack\n }))\n }\n \n return JSON.stringify(report, null, 2)\n }\n}\n\n/**\n * Error suggestion engine for intelligent fixes\n */\nexport class ErrorSuggestionEngine {\n /**\n * Generate fix suggestions for common component errors\n */\n static generateComponentFixSuggestions(\n component: string,\n error: string,\n _args: unknown[]\n ): FixSuggestion[] {\n const suggestions: FixSuggestion[] = []\n \n // Missing parameter fixes\n if (error.includes('requires') && error.includes('parameter')) {\n suggestions.push({\n description: `Add the missing parameter to ${component}`,\n code: this.generateParameterFix(component, _args),\n difficulty: 'easy',\n autoFix: () => this.generateParameterFix(component, _args)\n })\n }\n \n // Type mismatch fixes\n if (error.includes('type') && error.includes('expected')) {\n suggestions.push({\n description: 'Convert value to expected type',\n code: this.generateTypeFix(component, _args),\n difficulty: 'medium'\n })\n }\n \n // Null/undefined fixes\n if (error.includes('null') || error.includes('undefined')) {\n suggestions.push({\n description: 'Add null check and default value',\n code: this.generateNullCheckFix(component, _args),\n difficulty: 'easy'\n })\n }\n \n return suggestions\n }\n\n /**\n * Generate fix for missing parameters\n */\n private static generateParameterFix(component: string, _args: unknown[]): string {\n const componentDefaults: Record<string, string> = {\n 'Text': 'Text(\"Hello World\")',\n 'Button': 'Button(\"Click me\", () => {})',\n 'Image': 'Image({ source: \"image.jpg\" })',\n 'Toggle': 'Toggle({ isOn: false })',\n 'VStack': 'VStack({ children: [] })',\n 'HStack': 'HStack({ children: [] })'\n }\n \n return componentDefaults[component] || `${component}({ /* add required props */ })`\n }\n\n /**\n * Generate fix for type mismatches\n */\n private static generateTypeFix(component: string, args: unknown[]): string {\n if (args.length > 0) {\n const firstArg = args[0]\n if (typeof firstArg === 'number') {\n return `${component}(String(${firstArg})) // Convert number to string`\n }\n if (typeof firstArg === 'object') {\n return `${component}(JSON.stringify(${JSON.stringify(firstArg)})) // Serialize object`\n }\n }\n return `${component}(/* provide correct type */)`\n }\n\n /**\n * Generate fix for null/undefined values\n */\n private static generateNullCheckFix(component: string, _args: unknown[]): string {\n return `${component}(value || \"default\") // Provide fallback for null/undefined`\n }\n}\n\n// Export singleton instance\nexport const errorReporter = EnhancedErrorReporter.getInstance()\n\n// Export utilities\nexport const ErrorReportingUtils = {\n createError: (message: string, context: Partial<EnhancedErrorContext>) => \n errorReporter.createError(message, context),\n \n formatError: (error: EnhancedValidationError) => \n errorReporter.formatError(error),\n \n getStats: () => \n errorReporter.getErrorStats(),\n \n exportReport: () => \n errorReporter.exportErrorReport(),\n \n generateSuggestions: ErrorSuggestionEngine.generateComponentFixSuggestions\n}"],"names":["ErrorTemplates","ErrorCodeGenerator","category","component","specific","categoryCode","componentCode","specificCode","timestamp","__publicField","_EnhancedErrorReporter","message","context","enhancedContext","error","EnhancedValidationError","template","formatted","ex","fix","index","m","errorCode","parts","matchingTemplate","key","strategy","categoryCounts","severityCounts","componentCounts","e","stats","report","EnhancedErrorReporter","ErrorSuggestionEngine","_args","suggestions","args","firstArg","errorReporter","ErrorReportingUtils"],"mappings":"sRAmGO,MAAMA,EAAuD,CAElE,iCAAoC,CAClC,MAAO,6BACP,YAAa,oFACb,OAAQ,yDACR,SAAU,yCACV,iBAAkB,sFAClB,WAAY,qEACZ,MAAO,IACP,MAAO,KAAA,EAGT,6BAAgC,CAC9B,MAAO,yBACP,YAAa,yEACb,OAAQ,mDACR,SAAU,sDACV,iBAAkB,iFAClB,WAAY,qEACZ,MAAO,KACP,MAAO,QAAA,EAGT,+BAAkC,CAChC,MAAO,8BACP,YAAa,wEACb,OAAQ,sDACR,SAAU,sDACV,iBAAkB,gEAClB,WAAY,oEACZ,MAAO,KACP,MAAO,QAAA,EAIT,oBAAuB,CACrB,MAAO,mBACP,YAAa,qEACb,OAAQ,sDACR,SAAU,mDACV,iBAAkB,6DAClB,WAAY,4DACZ,MAAO,KACP,MAAO,KAAA,EAGT,2BAA8B,CAC5B,MAAO,yBACP,YAAa,sEACb,OAAQ,oDACR,SAAU,sEACV,iBAAkB,2EAClB,WAAY,gDACZ,MAAO,KACP,MAAO,QAAA,EAGT,sBAAyB,CACvB,MAAO,gCACP,YAAa,4DACb,OAAQ,qDACR,SAAU,qDACV,iBAAkB,2DAClB,WAAY,2CACZ,MAAO,KACP,MAAO,QAAA,EAIT,sBAAyB,CACvB,MAAO,4BACP,YAAa,yEACb,OAAQ,8DACR,SAAU,sDACV,iBAAkB,iEAClB,WAAY,4DACZ,MAAO,KACP,MAAO,KAAA,EAGT,kBAAqB,CACnB,MAAO,wBACP,YAAa,mEACb,OAAQ,0DACR,SAAU,wCACV,iBAAkB,+CAClB,WAAY,0CACZ,MAAO,KACP,MAAO,QAAA,EAIT,wBAA2B,CACzB,MAAO,0BACP,YAAa,+DACb,OAAQ,8CACR,S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