@hyperfixi/core 2.0.0
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 +21 -0
- package/README.md +218 -0
- package/dist/__test-utils__/context-builders.d.ts +42 -0
- package/dist/__test-utils__/error-testing.d.ts +18 -0
- package/dist/__test-utils__/index.d.ts +6 -0
- package/dist/__test-utils__/mock-types.d.ts +57 -0
- package/dist/__test-utils__/parser-context-mock.d.ts +7 -0
- package/dist/__test-utils__/parser-helpers.d.ts +38 -0
- package/dist/api/dom-processor.d.ts +17 -0
- package/dist/api/hyperscript-api.d.ts +68 -0
- package/dist/api/lokascript-api.d.ts +9 -0
- package/dist/ast-utils/analyzer.d.ts +19 -0
- package/dist/ast-utils/documentation.d.ts +8 -0
- package/dist/ast-utils/generator.d.ts +9 -0
- package/dist/ast-utils/index.d.ts +12 -0
- package/dist/ast-utils/index.js +3366 -0
- package/dist/ast-utils/index.mjs +3320 -0
- package/dist/ast-utils/interchange/from-core.d.ts +8 -0
- package/dist/ast-utils/interchange/index.d.ts +6 -0
- package/dist/ast-utils/interchange/lsp.d.ts +108 -0
- package/dist/ast-utils/interchange/to-core.d.ts +8 -0
- package/dist/ast-utils/interchange/types.d.ts +113 -0
- package/dist/ast-utils/query.d.ts +25 -0
- package/dist/ast-utils/transformer.d.ts +14 -0
- package/dist/ast-utils/types.d.ts +162 -0
- package/dist/ast-utils/visitor.d.ts +40 -0
- package/dist/behaviors/boosted.d.ts +29 -0
- package/dist/behaviors/history-swap.d.ts +24 -0
- package/dist/behaviors/index.d.ts +4 -0
- package/dist/behaviors/index.js +1149 -0
- package/dist/behaviors/index.mjs +1139 -0
- package/dist/bundle-generator/generator.d.ts +4 -0
- package/dist/bundle-generator/index.d.ts +6 -0
- package/dist/bundle-generator/index.js +2294 -0
- package/dist/bundle-generator/index.mjs +2271 -0
- package/dist/bundle-generator/parser-templates.d.ts +6 -0
- package/dist/bundle-generator/template-capabilities.d.ts +10 -0
- package/dist/bundle-generator/templates.d.ts +11 -0
- package/dist/bundle-generator/types.d.ts +34 -0
- package/dist/bundles/test-minimal.d.ts +3 -0
- package/dist/bundles/test-standard.d.ts +3 -0
- package/dist/chunks/bridge-I6ceoWxV.js +2 -0
- package/dist/chunks/browser-modular-Dv6PAV3c.js +2 -0
- package/dist/chunks/feature-eventsource-DWb514fy.js +2 -0
- package/dist/chunks/feature-sockets-3PFuvCVY.js +2 -0
- package/dist/chunks/feature-webworker-DTm_eh-E.js +2 -0
- package/dist/commands/advanced/async.d.ts +28 -0
- package/dist/commands/advanced/js.d.ts +28 -0
- package/dist/commands/animation/measure.d.ts +31 -0
- package/dist/commands/animation/settle.d.ts +26 -0
- package/dist/commands/animation/take.d.ts +28 -0
- package/dist/commands/animation/transition.d.ts +31 -0
- package/dist/commands/async/fetch.d.ts +44 -0
- package/dist/commands/async/wait.d.ts +41 -0
- package/dist/commands/behaviors/install.d.ts +41 -0
- package/dist/commands/content/append.d.ts +27 -0
- package/dist/commands/control-flow/break.d.ts +15 -0
- package/dist/commands/control-flow/continue.d.ts +15 -0
- package/dist/commands/control-flow/exit.d.ts +15 -0
- package/dist/commands/control-flow/halt.d.ts +25 -0
- package/dist/commands/control-flow/if.d.ts +45 -0
- package/dist/commands/control-flow/repeat.d.ts +35 -0
- package/dist/commands/control-flow/return.d.ts +23 -0
- package/dist/commands/control-flow/signal-base.d.ts +25 -0
- package/dist/commands/control-flow/throw.d.ts +22 -0
- package/dist/commands/control-flow/unless.d.ts +3 -0
- package/dist/commands/data/decrement.d.ts +3 -0
- package/dist/commands/data/default.d.ts +31 -0
- package/dist/commands/data/get.d.ts +23 -0
- package/dist/commands/data/increment.d.ts +25 -0
- package/dist/commands/data/set.d.ts +56 -0
- package/dist/commands/decorators/index.d.ts +30 -0
- package/dist/commands/dom/__tests__/add-standalone-helpers.d.ts +11 -0
- package/dist/commands/dom/add.d.ts +31 -0
- package/dist/commands/dom/dom-modification-base.d.ts +48 -0
- package/dist/commands/dom/hide.d.ts +12 -0
- package/dist/commands/dom/make.d.ts +21 -0
- package/dist/commands/dom/process-partials.d.ts +39 -0
- package/dist/commands/dom/put.d.ts +31 -0
- package/dist/commands/dom/remove.d.ts +33 -0
- package/dist/commands/dom/show.d.ts +13 -0
- package/dist/commands/dom/swap.d.ts +38 -0
- package/dist/commands/dom/toggle.d.ts +55 -0
- package/dist/commands/dom/visibility-base.d.ts +20 -0
- package/dist/commands/events/send.d.ts +3 -0
- package/dist/commands/events/trigger.d.ts +36 -0
- package/dist/commands/execution/call.d.ts +24 -0
- package/dist/commands/execution/pseudo-command.d.ts +42 -0
- package/dist/commands/helpers/attribute-manipulation.d.ts +11 -0
- package/dist/commands/helpers/batch-dom-operations.d.ts +12 -0
- package/dist/commands/helpers/class-manipulation.d.ts +11 -0
- package/dist/commands/helpers/condition-helpers.d.ts +4 -0
- package/dist/commands/helpers/dom-mutation.d.ts +15 -0
- package/dist/commands/helpers/duration-parsing.d.ts +8 -0
- package/dist/commands/helpers/element-property-access.d.ts +7 -0
- package/dist/commands/helpers/element-resolution.d.ts +17 -0
- package/dist/commands/helpers/error-helpers.d.ts +17 -0
- package/dist/commands/helpers/event-helpers.d.ts +13 -0
- package/dist/commands/helpers/event-waiting.d.ts +37 -0
- package/dist/commands/helpers/index.d.ts +32 -0
- package/dist/commands/helpers/input-validator.d.ts +23 -0
- package/dist/commands/helpers/loop-executor.d.ts +53 -0
- package/dist/commands/helpers/numeric-target-parser.d.ts +14 -0
- package/dist/commands/helpers/property-target.d.ts +30 -0
- package/dist/commands/helpers/selector-type-detection.d.ts +24 -0
- package/dist/commands/helpers/smart-element.d.ts +16 -0
- package/dist/commands/helpers/style-manipulation.d.ts +16 -0
- package/dist/commands/helpers/temporal-modifiers.d.ts +15 -0
- package/dist/commands/helpers/url-argument-parser.d.ts +10 -0
- package/dist/commands/helpers/url-validation.d.ts +7 -0
- package/dist/commands/helpers/variable-access.d.ts +10 -0
- package/dist/commands/helpers/visibility-target-parser.d.ts +11 -0
- package/dist/commands/index.d.ts +139 -0
- package/dist/commands/index.js +9186 -0
- package/dist/commands/index.mjs +9032 -0
- package/dist/commands/navigation/go.d.ts +35 -0
- package/dist/commands/navigation/push-url.d.ts +35 -0
- package/dist/commands/navigation/replace-url.d.ts +3 -0
- package/dist/commands/templates/render.d.ts +48 -0
- package/dist/commands/utility/beep.d.ts +32 -0
- package/dist/commands/utility/copy.d.ts +29 -0
- package/dist/commands/utility/log.d.ts +24 -0
- package/dist/commands/utility/pick.d.ts +26 -0
- package/dist/commands/utility/tell.d.ts +26 -0
- package/dist/compatibility/browser-bundle-animation-generated.d.ts +16 -0
- package/dist/compatibility/browser-bundle-classic-i18n.d.ts +63 -0
- package/dist/compatibility/browser-bundle-classic.d.ts +17 -0
- package/dist/compatibility/browser-bundle-forms-generated.d.ts +16 -0
- package/dist/compatibility/browser-bundle-hybrid-complete.d.ts +28 -0
- package/dist/compatibility/browser-bundle-hybrid-hx.d.ts +43 -0
- package/dist/compatibility/browser-bundle-lite-plus.d.ts +25 -0
- package/dist/compatibility/browser-bundle-lite.d.ts +23 -0
- package/dist/compatibility/browser-bundle-minimal-generated.d.ts +16 -0
- package/dist/compatibility/browser-bundle-minimal-v2.d.ts +17 -0
- package/dist/compatibility/browser-bundle-minimal.d.ts +8 -0
- package/dist/compatibility/browser-bundle-modular.d.ts +18 -0
- package/dist/compatibility/browser-bundle-multilingual.d.ts +19 -0
- package/dist/compatibility/browser-bundle-semantic-complete.d.ts +24 -0
- package/dist/compatibility/browser-bundle-standard-v2.d.ts +17 -0
- package/dist/compatibility/browser-bundle-standard.d.ts +8 -0
- package/dist/compatibility/browser-bundle-textshelf-minimal.d.ts +16 -0
- package/dist/compatibility/browser-bundle-textshelf-profile.d.ts +18 -0
- package/dist/compatibility/browser-bundle.d.ts +140 -0
- package/dist/compatibility/browser-modular.d.ts +53 -0
- package/dist/compatibility/browser-tests/test-utils.d.ts +21 -0
- package/dist/compatibility/eval-hyperscript.d.ts +15 -0
- package/dist/compatibility/feature-loader.d.ts +8 -0
- package/dist/compatibility/hyperscript-adapter.d.ts +38 -0
- package/dist/compatibility/hyperscript-tests/test-adapter.d.ts +13 -0
- package/dist/core/ast-property-utils.d.ts +2 -0
- package/dist/core/base-expression-evaluator.d.ts +70 -0
- package/dist/core/binary-expression-evaluator.d.ts +7 -0
- package/dist/core/call-expression-evaluator.d.ts +7 -0
- package/dist/core/configurable-expression-evaluator.d.ts +5 -0
- package/dist/core/context.d.ts +15 -0
- package/dist/core/dom.d.ts +15 -0
- package/dist/core/evaluator-types.d.ts +5 -0
- package/dist/core/events.d.ts +48 -0
- package/dist/core/executor.d.ts +34 -0
- package/dist/core/expression-evaluator.d.ts +6 -0
- package/dist/core/lazy-expression-evaluator.d.ts +22 -0
- package/dist/core/parser.d.ts +21 -0
- package/dist/core/selector-evaluator.d.ts +15 -0
- package/dist/core/template-literal-evaluator.d.ts +5 -0
- package/dist/dom/attribute-processor.d.ts +40 -0
- package/dist/dom/minimal-attribute-processor.d.ts +20 -0
- package/dist/experimental/binary-tree/accessor.d.ts +10 -0
- package/dist/experimental/binary-tree/ast-serializer.d.ts +26 -0
- package/dist/experimental/binary-tree/benchmark.d.ts +24 -0
- package/dist/experimental/binary-tree/buffer-context.d.ts +27 -0
- package/dist/experimental/binary-tree/deserializer.d.ts +17 -0
- package/dist/experimental/binary-tree/index.d.ts +22 -0
- package/dist/experimental/binary-tree/serializer.d.ts +4 -0
- package/dist/experimental/binary-tree/types.d.ts +54 -0
- package/dist/expressions/base-expression.d.ts +27 -0
- package/dist/expressions/bundles/common-expressions.d.ts +9 -0
- package/dist/expressions/bundles/core-expressions.d.ts +7 -0
- package/dist/expressions/bundles/full-expressions.d.ts +10 -0
- package/dist/expressions/bundles/index.d.ts +7 -0
- package/dist/expressions/comparison/index.d.ts +80 -0
- package/dist/expressions/comparison/utils.d.ts +2 -0
- package/dist/expressions/conversion/impl/bridge.d.ts +117 -0
- package/dist/expressions/conversion/impl/index.d.ts +59 -0
- package/dist/expressions/conversion/index.d.ts +23 -0
- package/dist/expressions/expression-tiers.d.ts +13 -0
- package/dist/expressions/index.d.ts +11 -0
- package/dist/expressions/index.js +6930 -0
- package/dist/expressions/index.mjs +6912 -0
- package/dist/expressions/logical/impl/index.d.ts +54 -0
- package/dist/expressions/logical/impl/pattern-matching.d.ts +58 -0
- package/dist/expressions/logical/index.d.ts +59 -0
- package/dist/expressions/mathematical/index.d.ts +69 -0
- package/dist/expressions/positional/impl/bridge.d.ts +95 -0
- package/dist/expressions/positional/impl/index.d.ts +73 -0
- package/dist/expressions/positional/index.d.ts +26 -0
- package/dist/expressions/properties/impl/index.d.ts +105 -0
- package/dist/expressions/properties/index.d.ts +26 -0
- package/dist/expressions/property/index.d.ts +55 -0
- package/dist/expressions/property-access-utils.d.ts +23 -0
- package/dist/expressions/references/impl/bridge.d.ts +54 -0
- package/dist/expressions/references/impl/index.d.ts +65 -0
- package/dist/expressions/references/index.d.ts +40 -0
- package/dist/expressions/shared/comparison-utils.d.ts +10 -0
- package/dist/expressions/shared/index.d.ts +9 -0
- package/dist/expressions/shared/number-utils.d.ts +7 -0
- package/dist/expressions/shared/validation-utils.d.ts +13 -0
- package/dist/expressions/special/index.d.ts +104 -0
- package/dist/expressions/type-helpers.d.ts +11 -0
- package/dist/expressions/type-registry.d.ts +57 -0
- package/dist/expressions/validation-helpers.d.ts +15 -0
- package/dist/extensions/index.d.ts +3 -0
- package/dist/extensions/tailwind.d.ts +22 -0
- package/dist/features/behaviors.d.ts +153 -0
- package/dist/features/def.d.ts +135 -0
- package/dist/features/eventsource.d.ts +140 -0
- package/dist/features/init.d.ts +135 -0
- package/dist/features/on.d.ts +131 -0
- package/dist/features/predefined-behaviors/dropdown-behavior.d.ts +20 -0
- package/dist/features/predefined-behaviors/index.d.ts +12 -0
- package/dist/features/predefined-behaviors/modal-behavior.d.ts +18 -0
- package/dist/features/predefined-behaviors/toggle-group-behavior.d.ts +23 -0
- package/dist/features/predefined-behaviors/types.d.ts +14 -0
- package/dist/features/sockets.d.ts +162 -0
- package/dist/features/webworker.d.ts +135 -0
- package/dist/htmx/htmx-attribute-processor.d.ts +84 -0
- package/dist/htmx/htmx-translator.d.ts +19 -0
- package/dist/htmx/index.d.ts +3 -0
- package/dist/hyperfixi-classic-i18n.js +2 -0
- package/dist/hyperfixi-hx.js +1 -0
- package/dist/hyperfixi-hybrid-complete.js +1 -0
- package/dist/hyperfixi-lite-plus.js +1 -0
- package/dist/hyperfixi-lite.js +1 -0
- package/dist/hyperfixi-minimal.js +1 -0
- package/dist/hyperfixi-multilingual.js +2 -0
- package/dist/hyperfixi-standard.js +2 -0
- package/dist/hyperfixi.js +2 -0
- package/dist/hyperfixi.mjs +2 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.js +65387 -0
- package/dist/index.min.js +2 -0
- package/dist/index.mjs +65343 -0
- package/dist/lib/index.d.ts +4 -0
- package/dist/lib/morph-adapter.d.ts +22 -0
- package/dist/lib/swap-executor.d.ts +22 -0
- package/dist/lib/view-transitions.d.ts +33 -0
- package/dist/lokascript-browser-classic-i18n.js +2 -0
- package/dist/lokascript-browser-minimal.js +1 -0
- package/dist/lokascript-browser-standard.js +2 -0
- package/dist/lokascript-browser.js +2 -0
- package/dist/lokascript-hybrid-complete.js +1 -0
- package/dist/lokascript-hybrid-hx.js +1 -0
- package/dist/lokascript-lite-plus.js +1 -0
- package/dist/lokascript-lite.js +1 -0
- package/dist/lokascript-multilingual.js +2 -0
- package/dist/lsp-metadata.d.ts +25 -0
- package/dist/lsp-metadata.js +680 -0
- package/dist/lsp-metadata.mjs +670 -0
- package/dist/metadata.d.ts +213 -0
- package/dist/metadata.js +378 -0
- package/dist/metadata.mjs +368 -0
- package/dist/mod.d.ts +63 -0
- package/dist/multilingual/bridge.d.ts +36 -0
- package/dist/multilingual/index.d.ts +32 -0
- package/dist/multilingual/index.js +285 -0
- package/dist/multilingual/index.mjs +278 -0
- package/dist/parser/__types__/test-helpers.d.ts +25 -0
- package/dist/parser/command-node-builder.d.ts +45 -0
- package/dist/parser/command-parsers/animation-commands.d.ts +5 -0
- package/dist/parser/command-parsers/async-commands.d.ts +5 -0
- package/dist/parser/command-parsers/control-flow-commands.d.ts +7 -0
- package/dist/parser/command-parsers/dom-commands.d.ts +8 -0
- package/dist/parser/command-parsers/event-commands.d.ts +4 -0
- package/dist/parser/command-parsers/utility-commands.d.ts +9 -0
- package/dist/parser/command-parsers/variable-commands.d.ts +12 -0
- package/dist/parser/error-handler.d.ts +34 -0
- package/dist/parser/expression-parser.d.ts +6 -0
- package/dist/parser/full-parser.d.ts +4 -0
- package/dist/parser/full-parser.js +6532 -0
- package/dist/parser/full-parser.mjs +6529 -0
- package/dist/parser/helpers/ast-helpers.d.ts +22 -0
- package/dist/parser/helpers/parsing-helpers.d.ts +19 -0
- package/dist/parser/helpers/token-helpers.d.ts +28 -0
- package/dist/parser/hybrid/aliases.d.ts +7 -0
- package/dist/parser/hybrid/aliases.js +44 -0
- package/dist/parser/hybrid/aliases.mjs +37 -0
- package/dist/parser/hybrid/ast-types.d.ts +97 -0
- package/dist/parser/hybrid/ast-types.js +3 -0
- package/dist/parser/hybrid/ast-types.mjs +2 -0
- package/dist/parser/hybrid/index.d.ts +6 -0
- package/dist/parser/hybrid/index.js +1015 -0
- package/dist/parser/hybrid/index.mjs +1005 -0
- package/dist/parser/hybrid/parser-core.d.ts +57 -0
- package/dist/parser/hybrid/parser-core.js +1001 -0
- package/dist/parser/hybrid/parser-core.mjs +999 -0
- package/dist/parser/hybrid/tokenizer.d.ts +9 -0
- package/dist/parser/hybrid/tokenizer.js +242 -0
- package/dist/parser/hybrid/tokenizer.mjs +239 -0
- package/dist/parser/hybrid-parser.d.ts +10 -0
- package/dist/parser/hybrid-parser.js +1078 -0
- package/dist/parser/hybrid-parser.mjs +1071 -0
- package/dist/parser/parser-constants.d.ts +102 -0
- package/dist/parser/parser-interface.d.ts +11 -0
- package/dist/parser/parser-types.d.ts +175 -0
- package/dist/parser/parser.d.ts +146 -0
- package/dist/parser/regex-parser.d.ts +4 -0
- package/dist/parser/regex-parser.js +412 -0
- package/dist/parser/regex-parser.mjs +409 -0
- package/dist/parser/runtime.d.ts +3 -0
- package/dist/parser/semantic-integration.d.ts +61 -0
- package/dist/parser/token-consumer.d.ts +35 -0
- package/dist/parser/token-predicates.d.ts +77 -0
- package/dist/parser/tokenizer.d.ts +57 -0
- package/dist/parser/types.d.ts +118 -0
- package/dist/performance/expression-cache.d.ts +78 -0
- package/dist/performance/integration.d.ts +40 -0
- package/dist/performance/production-monitor.d.ts +67 -0
- package/dist/reference/index.d.ts +41 -0
- package/dist/reference/index.js +586 -0
- package/dist/reference/index.mjs +577 -0
- package/dist/registry/browser-types.d.ts +20 -0
- package/dist/registry/browser-types.js +81 -0
- package/dist/registry/browser-types.mjs +76 -0
- package/dist/registry/context-provider-registry.d.ts +38 -0
- package/dist/registry/environment.d.ts +19 -0
- package/dist/registry/environment.js +36 -0
- package/dist/registry/environment.mjs +30 -0
- package/dist/registry/event-source-registry.d.ts +54 -0
- package/dist/registry/examples/server-commands.d.ts +6 -0
- package/dist/registry/examples/server-event-source.d.ts +32 -0
- package/dist/registry/index.d.ts +54 -0
- package/dist/registry/index.js +7636 -0
- package/dist/registry/index.mjs +7612 -0
- package/dist/registry/multilingual/examples.d.ts +16 -0
- package/dist/registry/multilingual/index.d.ts +68 -0
- package/dist/registry/runtime-integration.d.ts +30 -0
- package/dist/registry/universal-types.d.ts +34 -0
- package/dist/registry/universal-types.js +91 -0
- package/dist/registry/universal-types.mjs +86 -0
- package/dist/runtime/cleanup-registry.d.ts +47 -0
- package/dist/runtime/command-adapter.d.ts +63 -0
- package/dist/runtime/environment.d.ts +75 -0
- package/dist/runtime/runtime-base.d.ts +78 -0
- package/dist/runtime/runtime-experimental.d.ts +18 -0
- package/dist/runtime/runtime-factory.d.ts +30 -0
- package/dist/runtime/runtime.d.ts +19 -0
- package/dist/runtime/temporal-modifiers.d.ts +37 -0
- package/dist/scripts/code-generator.d.ts +64 -0
- package/dist/scripts/generate-missing-commands.d.ts +4 -0
- package/dist/test-setup.d.ts +45 -0
- package/dist/test-utilities.d.ts +52 -0
- package/dist/tokenizer.d.ts +49 -0
- package/dist/types/base-types.d.ts +336 -0
- package/dist/types/code-fix.d.ts +39 -0
- package/dist/types/command-metadata.d.ts +57 -0
- package/dist/types/command-types.d.ts +272 -0
- package/dist/types/context-types.d.ts +106 -0
- package/dist/types/core-context.d.ts +21 -0
- package/dist/types/core.d.ts +203 -0
- package/dist/types/error-codes.d.ts +207 -0
- package/dist/types/expression-types.d.ts +155 -0
- package/dist/types/feature-types.d.ts +81 -0
- package/dist/types/hooks.d.ts +45 -0
- package/dist/types/index.d.ts +32 -0
- package/dist/types/result.d.ts +72 -0
- package/dist/types/template-types.d.ts +162 -0
- package/dist/types/type-guards.d.ts +24 -0
- package/dist/types/unified-types.d.ts +99 -0
- package/dist/utils/debug-events.d.ts +41 -0
- package/dist/utils/debug.d.ts +35 -0
- package/dist/utils/dom-utils.d.ts +16 -0
- package/dist/utils/element-check.d.ts +7 -0
- package/dist/utils/keyboard-shortcuts.d.ts +18 -0
- package/dist/utils/performance.d.ts +40 -0
- package/dist/validation/command-pattern-validator.d.ts +53 -0
- package/dist/validation/common-validators.d.ts +24 -0
- package/dist/validation/lightweight-validators.d.ts +113 -0
- package/dist/validation/partial-validation-types.d.ts +50 -0
- package/dist/validation/partial-validator.d.ts +6 -0
- package/dist/validation/partial-warning-formatter.d.ts +6 -0
- package/dist/validation/validate-cli.d.ts +41 -0
- package/package.json +292 -0
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import type { ValidationResult, LLMDocumentation, EvaluationType, ExecutionContext } from '../types/base-types';
|
|
2
|
+
import type { ContextMetadata } from '../types/context-types';
|
|
3
|
+
import type { EvaluationResult } from '../types/command-types';
|
|
4
|
+
export declare const DefInputSchema: import("../validation/lightweight-validators").RuntimeValidator<{
|
|
5
|
+
[x: string]: unknown;
|
|
6
|
+
}>;
|
|
7
|
+
export declare const DefOutputSchema: import("../validation/lightweight-validators").RuntimeValidator<{
|
|
8
|
+
[x: string]: unknown;
|
|
9
|
+
}>;
|
|
10
|
+
export type DefInput = any;
|
|
11
|
+
export type DefOutput = any;
|
|
12
|
+
export interface FunctionDefinition {
|
|
13
|
+
name: string;
|
|
14
|
+
namespace?: string;
|
|
15
|
+
parameters: string[];
|
|
16
|
+
body: any[];
|
|
17
|
+
catchBlock?: {
|
|
18
|
+
parameter: string;
|
|
19
|
+
body: any[];
|
|
20
|
+
};
|
|
21
|
+
finallyBlock?: any[];
|
|
22
|
+
isAsync: boolean;
|
|
23
|
+
returnType?: string;
|
|
24
|
+
context: ExecutionContext;
|
|
25
|
+
metadata: FunctionMetadata;
|
|
26
|
+
}
|
|
27
|
+
export interface FunctionMetadata {
|
|
28
|
+
name: string;
|
|
29
|
+
namespace?: string;
|
|
30
|
+
parameters: string[];
|
|
31
|
+
isAsync: boolean;
|
|
32
|
+
returnType?: string;
|
|
33
|
+
complexity: number;
|
|
34
|
+
createdAt: number;
|
|
35
|
+
callCount: number;
|
|
36
|
+
averageExecutionTime: number;
|
|
37
|
+
}
|
|
38
|
+
export interface FunctionCall {
|
|
39
|
+
functionName: string;
|
|
40
|
+
parameters: any[];
|
|
41
|
+
context: ExecutionContext;
|
|
42
|
+
timestamp: number;
|
|
43
|
+
result?: any;
|
|
44
|
+
error?: Error;
|
|
45
|
+
executionTime: number;
|
|
46
|
+
}
|
|
47
|
+
export declare class TypedDefFeatureImplementation {
|
|
48
|
+
readonly name = "defFeature";
|
|
49
|
+
readonly category: "Universal";
|
|
50
|
+
readonly description = "Type-safe function definition feature with parameter validation, closure support, and async execution";
|
|
51
|
+
readonly inputSchema: import("../validation/lightweight-validators").RuntimeValidator<{
|
|
52
|
+
[x: string]: unknown;
|
|
53
|
+
}>;
|
|
54
|
+
readonly outputType: EvaluationType;
|
|
55
|
+
private evaluationHistory;
|
|
56
|
+
private functions;
|
|
57
|
+
private callHistory;
|
|
58
|
+
private namespaces;
|
|
59
|
+
readonly metadata: ContextMetadata;
|
|
60
|
+
readonly documentation: LLMDocumentation;
|
|
61
|
+
initialize(input: DefInput): Promise<EvaluationResult<DefOutput>>;
|
|
62
|
+
validate(input: unknown): ValidationResult;
|
|
63
|
+
private initializeConfig;
|
|
64
|
+
private registerFunction;
|
|
65
|
+
private createFunctionDefiner;
|
|
66
|
+
private createFunctionCaller;
|
|
67
|
+
private createFunctionChecker;
|
|
68
|
+
private createFunctionRemover;
|
|
69
|
+
private createFunctionLister;
|
|
70
|
+
private createMetadataGetter;
|
|
71
|
+
private createParameterValidator;
|
|
72
|
+
private createParameterBinder;
|
|
73
|
+
private createSignatureGetter;
|
|
74
|
+
private createFunctionInvoker;
|
|
75
|
+
private createAsyncInvoker;
|
|
76
|
+
private createClosureCreator;
|
|
77
|
+
private createCallStackGetter;
|
|
78
|
+
private createTypeChecker;
|
|
79
|
+
private createTypeInferrer;
|
|
80
|
+
private createTypeValidator;
|
|
81
|
+
private createTypeAnnotator;
|
|
82
|
+
private createErrorHandler;
|
|
83
|
+
private createCatchBlockGetter;
|
|
84
|
+
private createFinallyBlockGetter;
|
|
85
|
+
private executeFunction;
|
|
86
|
+
private executeAsyncFunction;
|
|
87
|
+
private executeCatchBlock;
|
|
88
|
+
private executeFinallyBlock;
|
|
89
|
+
private calculateComplexity;
|
|
90
|
+
dispose(): void;
|
|
91
|
+
private trackPerformance;
|
|
92
|
+
getPerformanceMetrics(): {
|
|
93
|
+
totalInitializations: number;
|
|
94
|
+
successRate: number;
|
|
95
|
+
averageDuration: number;
|
|
96
|
+
lastEvaluationTime: number;
|
|
97
|
+
evaluationHistory: {
|
|
98
|
+
input: DefInput;
|
|
99
|
+
output?: DefOutput;
|
|
100
|
+
success: boolean;
|
|
101
|
+
duration: number;
|
|
102
|
+
timestamp: number;
|
|
103
|
+
}[];
|
|
104
|
+
totalFunctions: number;
|
|
105
|
+
totalNamespaces: number;
|
|
106
|
+
totalCalls: number;
|
|
107
|
+
averageCallTime: number;
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
export declare function createDefFeature(): TypedDefFeatureImplementation;
|
|
111
|
+
export declare function createDef(definition: Partial<DefInput['definition']>, options?: Partial<DefInput>): Promise<EvaluationResult<DefOutput>>;
|
|
112
|
+
export declare class DefFeature {
|
|
113
|
+
private static instance;
|
|
114
|
+
private functions;
|
|
115
|
+
readonly name = "def";
|
|
116
|
+
readonly description = "Function definition feature for hyperscript";
|
|
117
|
+
static getInstance(): DefFeature;
|
|
118
|
+
defineFunction(name: string, parameters: string[], body: any[], context: ExecutionContext, catchBlock?: {
|
|
119
|
+
parameter: string;
|
|
120
|
+
body: any[];
|
|
121
|
+
}, finallyBlock?: any[], force?: boolean): void;
|
|
122
|
+
hasFunction(name: string): boolean;
|
|
123
|
+
getFunctionNames(): string[];
|
|
124
|
+
getFunction(name: string): FunctionDefinition | undefined;
|
|
125
|
+
getFunctionsByNamespace(namespace: string): FunctionDefinition[];
|
|
126
|
+
executeFunction(name: string, args: any[], context: ExecutionContext): Promise<any>;
|
|
127
|
+
private evaluateExpression;
|
|
128
|
+
defineAsyncFunction(name: string, parameters: string[], body: any[], context: ExecutionContext): void;
|
|
129
|
+
removeFunction(name: string): boolean;
|
|
130
|
+
getJavaScriptFunction(name: string, context?: ExecutionContext): Function;
|
|
131
|
+
getFunctionMetadata(name: string): FunctionMetadata | null;
|
|
132
|
+
clear(): void;
|
|
133
|
+
}
|
|
134
|
+
export declare const enhancedDefImplementation: TypedDefFeatureImplementation;
|
|
135
|
+
//# sourceMappingURL=def.d.ts.map
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import type { ContextMetadata, EvaluationResult } from '../types/context-types';
|
|
2
|
+
import type { ValidationResult, EvaluationType } from '../types/base-types';
|
|
3
|
+
import type { LLMDocumentation } from '../types/command-types';
|
|
4
|
+
export declare const EventSourceInputSchema: import("../validation/lightweight-validators").RuntimeValidator<{
|
|
5
|
+
[x: string]: unknown;
|
|
6
|
+
}>;
|
|
7
|
+
export declare const EventSourceOutputSchema: import("../validation/lightweight-validators").RuntimeValidator<{
|
|
8
|
+
[x: string]: unknown;
|
|
9
|
+
}>;
|
|
10
|
+
export type EventSourceInput = any;
|
|
11
|
+
export type EventSourceOutput = any;
|
|
12
|
+
export interface EventSourceConnection {
|
|
13
|
+
id: string;
|
|
14
|
+
url: string;
|
|
15
|
+
eventSource: EventSource | null;
|
|
16
|
+
state: 'connecting' | 'connected' | 'disconnecting' | 'disconnected' | 'error';
|
|
17
|
+
createdAt: number;
|
|
18
|
+
connectedAt?: number;
|
|
19
|
+
disconnectedAt?: number;
|
|
20
|
+
lastMessageTime: number;
|
|
21
|
+
messageCount: number;
|
|
22
|
+
errorCount: number;
|
|
23
|
+
retryAttempts: number;
|
|
24
|
+
maxRetryAttempts: number;
|
|
25
|
+
}
|
|
26
|
+
export interface SSEMessage {
|
|
27
|
+
id: string;
|
|
28
|
+
connectionId: string;
|
|
29
|
+
event: string;
|
|
30
|
+
data: any;
|
|
31
|
+
timestamp: number;
|
|
32
|
+
format: 'text' | 'json' | 'raw';
|
|
33
|
+
lastEventId?: string;
|
|
34
|
+
retry?: number;
|
|
35
|
+
origin?: string;
|
|
36
|
+
}
|
|
37
|
+
export interface SSEEventHandler {
|
|
38
|
+
id: string;
|
|
39
|
+
connectionId: string;
|
|
40
|
+
eventType: string;
|
|
41
|
+
commands: any[];
|
|
42
|
+
filter?: string;
|
|
43
|
+
options?: {
|
|
44
|
+
throttle?: number;
|
|
45
|
+
debounce?: number;
|
|
46
|
+
};
|
|
47
|
+
isActive: boolean;
|
|
48
|
+
executionCount: number;
|
|
49
|
+
lastExecutionTime: number;
|
|
50
|
+
}
|
|
51
|
+
export interface MessageBuffer {
|
|
52
|
+
connectionId: string;
|
|
53
|
+
messages: SSEMessage[];
|
|
54
|
+
maxSize: number;
|
|
55
|
+
flushInterval: number;
|
|
56
|
+
lastFlushTime: number;
|
|
57
|
+
autoFlushTimer?: number;
|
|
58
|
+
}
|
|
59
|
+
export declare class TypedEventSourceFeatureImplementation {
|
|
60
|
+
readonly name = "eventsourceFeature";
|
|
61
|
+
readonly category: "Frontend";
|
|
62
|
+
readonly description = "Type-safe Server-Sent Events management feature with connection handling, message processing, and comprehensive error recovery";
|
|
63
|
+
readonly inputSchema: import("../validation/lightweight-validators").RuntimeValidator<{
|
|
64
|
+
[x: string]: unknown;
|
|
65
|
+
}>;
|
|
66
|
+
readonly outputType: EvaluationType;
|
|
67
|
+
private evaluationHistory;
|
|
68
|
+
private connections;
|
|
69
|
+
private messageHistory;
|
|
70
|
+
private eventHandlers;
|
|
71
|
+
private messageBuffers;
|
|
72
|
+
private errorHistory;
|
|
73
|
+
private throttleTimers;
|
|
74
|
+
private debounceTimers;
|
|
75
|
+
private filterCache;
|
|
76
|
+
readonly metadata: ContextMetadata;
|
|
77
|
+
readonly documentation: LLMDocumentation;
|
|
78
|
+
initialize(input: EventSourceInput): Promise<EvaluationResult<EventSourceOutput>>;
|
|
79
|
+
validate(input: unknown): ValidationResult;
|
|
80
|
+
private initializeConfig;
|
|
81
|
+
private createConnection;
|
|
82
|
+
private handleConnectionOpen;
|
|
83
|
+
private handleMessage;
|
|
84
|
+
private handleConnectionError;
|
|
85
|
+
private scheduleReconnection;
|
|
86
|
+
private attemptReconnection;
|
|
87
|
+
private processEventHandlers;
|
|
88
|
+
private executeEventHandler;
|
|
89
|
+
private executeCommands;
|
|
90
|
+
private executeBasicCommand;
|
|
91
|
+
private isValidEventSourceURL;
|
|
92
|
+
private detectMessageFormat;
|
|
93
|
+
private testEventFilter;
|
|
94
|
+
private isThrottled;
|
|
95
|
+
private applyDebounce;
|
|
96
|
+
private createConnectionEstablisher;
|
|
97
|
+
private createConnectionDisconnector;
|
|
98
|
+
private createConnectionReconnector;
|
|
99
|
+
private createStateGetter;
|
|
100
|
+
private createConnectionInfoGetter;
|
|
101
|
+
private createConnectionChecker;
|
|
102
|
+
private createEventHandlerAdder;
|
|
103
|
+
private createEventHandlerRemover;
|
|
104
|
+
private createEventHandlerGetter;
|
|
105
|
+
private createEventEmitter;
|
|
106
|
+
private createMessageHistoryGetter;
|
|
107
|
+
private createBufferGetter;
|
|
108
|
+
private createBufferFlusher;
|
|
109
|
+
private createHistoryClearer;
|
|
110
|
+
private createMessageSubscriber;
|
|
111
|
+
private createMessageUnsubscriber;
|
|
112
|
+
private createErrorHandler;
|
|
113
|
+
private createErrorHistoryGetter;
|
|
114
|
+
private createErrorClearer;
|
|
115
|
+
private createErrorHandlerSetter;
|
|
116
|
+
dispose(): void;
|
|
117
|
+
private trackPerformance;
|
|
118
|
+
getPerformanceMetrics(): {
|
|
119
|
+
totalInitializations: number;
|
|
120
|
+
successRate: number;
|
|
121
|
+
averageDuration: number;
|
|
122
|
+
lastEvaluationTime: number;
|
|
123
|
+
evaluationHistory: {
|
|
124
|
+
input: EventSourceInput;
|
|
125
|
+
output?: EventSourceOutput;
|
|
126
|
+
success: boolean;
|
|
127
|
+
duration: number;
|
|
128
|
+
timestamp: number;
|
|
129
|
+
}[];
|
|
130
|
+
totalConnections: number;
|
|
131
|
+
totalMessages: number;
|
|
132
|
+
totalErrors: number;
|
|
133
|
+
totalEventHandlers: number;
|
|
134
|
+
bufferedMessages: number;
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
export declare function createEventSourceFeature(): TypedEventSourceFeatureImplementation;
|
|
138
|
+
export declare function createEventSource(source: Partial<EventSourceInput['source']>, options?: Partial<EventSourceInput>): Promise<EvaluationResult<EventSourceOutput>>;
|
|
139
|
+
export declare const enhancedEventSourceImplementation: TypedEventSourceFeatureImplementation;
|
|
140
|
+
//# sourceMappingURL=eventsource.d.ts.map
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import type { ContextMetadata, EvaluationResult } from '../types/context-types';
|
|
2
|
+
import type { ValidationResult, EvaluationType } from '../types/base-types';
|
|
3
|
+
import type { LLMDocumentation } from '../types/command-types';
|
|
4
|
+
export declare const InitInputSchema: import("../validation/lightweight-validators").RuntimeValidator<{
|
|
5
|
+
[x: string]: unknown;
|
|
6
|
+
}>;
|
|
7
|
+
export declare const InitOutputSchema: import("../validation/lightweight-validators").RuntimeValidator<{
|
|
8
|
+
[x: string]: unknown;
|
|
9
|
+
}>;
|
|
10
|
+
export type InitInput = any;
|
|
11
|
+
export type InitOutput = any;
|
|
12
|
+
export interface InitRegistration {
|
|
13
|
+
id: string;
|
|
14
|
+
element: HTMLElement;
|
|
15
|
+
selector?: string;
|
|
16
|
+
commands: any[];
|
|
17
|
+
timing: {
|
|
18
|
+
immediate: boolean;
|
|
19
|
+
delay: number;
|
|
20
|
+
defer: boolean;
|
|
21
|
+
};
|
|
22
|
+
lifecycle: {
|
|
23
|
+
runOnce: boolean;
|
|
24
|
+
resetOnRemoval: boolean;
|
|
25
|
+
propagateToChildren: boolean;
|
|
26
|
+
};
|
|
27
|
+
execution: {
|
|
28
|
+
parallel: boolean;
|
|
29
|
+
stopOnError: boolean;
|
|
30
|
+
timeout: number;
|
|
31
|
+
};
|
|
32
|
+
state: 'pending' | 'running' | 'completed' | 'error';
|
|
33
|
+
createdAt: number;
|
|
34
|
+
processedAt?: number;
|
|
35
|
+
executionCount: number;
|
|
36
|
+
lastError?: Error;
|
|
37
|
+
}
|
|
38
|
+
export interface InitExecution {
|
|
39
|
+
id: string;
|
|
40
|
+
registrationId: string;
|
|
41
|
+
element: HTMLElement;
|
|
42
|
+
commands: any[];
|
|
43
|
+
startTime: number;
|
|
44
|
+
endTime?: number;
|
|
45
|
+
duration?: number;
|
|
46
|
+
success: boolean;
|
|
47
|
+
error?: Error;
|
|
48
|
+
result?: any;
|
|
49
|
+
}
|
|
50
|
+
export interface InitLifecycleEvent {
|
|
51
|
+
type: 'element-added' | 'element-removed' | 'dom-ready' | 'init-start' | 'init-complete' | 'init-error';
|
|
52
|
+
element?: HTMLElement;
|
|
53
|
+
registration?: InitRegistration;
|
|
54
|
+
timestamp: number;
|
|
55
|
+
data?: any;
|
|
56
|
+
}
|
|
57
|
+
export declare class TypedInitFeatureImplementation {
|
|
58
|
+
readonly name = "initFeature";
|
|
59
|
+
readonly category: "Frontend";
|
|
60
|
+
readonly description = "Type-safe element initialization feature with lifecycle management, error handling, and performance optimization";
|
|
61
|
+
readonly inputSchema: import("../validation/lightweight-validators").RuntimeValidator<{
|
|
62
|
+
[x: string]: unknown;
|
|
63
|
+
}>;
|
|
64
|
+
readonly outputType: EvaluationType;
|
|
65
|
+
private evaluationHistory;
|
|
66
|
+
private registrations;
|
|
67
|
+
private elementRegistrations;
|
|
68
|
+
private executionHistory;
|
|
69
|
+
private lifecycleEvents;
|
|
70
|
+
private errorHistory;
|
|
71
|
+
private processedElements;
|
|
72
|
+
private domObserver?;
|
|
73
|
+
readonly metadata: ContextMetadata;
|
|
74
|
+
readonly documentation: LLMDocumentation;
|
|
75
|
+
initialize(input: InitInput): Promise<EvaluationResult<InitOutput>>;
|
|
76
|
+
validate(input: unknown): ValidationResult;
|
|
77
|
+
private initializeConfig;
|
|
78
|
+
private registerElement;
|
|
79
|
+
private processRegistration;
|
|
80
|
+
private createExecutionContext;
|
|
81
|
+
private executeCommandsSequential;
|
|
82
|
+
private executeCommandsParallel;
|
|
83
|
+
private executeCommand;
|
|
84
|
+
private setupDOMObserver;
|
|
85
|
+
private handleElementAdded;
|
|
86
|
+
private handleElementRemoved;
|
|
87
|
+
private emitLifecycleEvent;
|
|
88
|
+
private isValidSelector;
|
|
89
|
+
private createElementRegistrar;
|
|
90
|
+
private createElementUnregistrar;
|
|
91
|
+
private createElementProcessor;
|
|
92
|
+
private createAllElementsProcessor;
|
|
93
|
+
private createRegistrationChecker;
|
|
94
|
+
private createProcessingChecker;
|
|
95
|
+
private createRegistrationGetter;
|
|
96
|
+
private createRegisteredElementsLister;
|
|
97
|
+
private createCommandExecutor;
|
|
98
|
+
private createParallelExecutor;
|
|
99
|
+
private createRetryExecutor;
|
|
100
|
+
private createExecutionHistoryGetter;
|
|
101
|
+
private createHistoryClearer;
|
|
102
|
+
private createElementAddedHandler;
|
|
103
|
+
private createElementRemovedHandler;
|
|
104
|
+
private createDOMReadyHandler;
|
|
105
|
+
private createSystemResetter;
|
|
106
|
+
private createErrorHandler;
|
|
107
|
+
private createErrorHistoryGetter;
|
|
108
|
+
private createErrorClearer;
|
|
109
|
+
private createErrorHandlerSetter;
|
|
110
|
+
dispose(): void;
|
|
111
|
+
private trackPerformance;
|
|
112
|
+
getPerformanceMetrics(): {
|
|
113
|
+
totalInitializations: number;
|
|
114
|
+
successRate: number;
|
|
115
|
+
averageDuration: number;
|
|
116
|
+
lastEvaluationTime: number;
|
|
117
|
+
evaluationHistory: {
|
|
118
|
+
input: InitInput;
|
|
119
|
+
output?: InitOutput;
|
|
120
|
+
success: boolean;
|
|
121
|
+
duration: number;
|
|
122
|
+
timestamp: number;
|
|
123
|
+
}[];
|
|
124
|
+
totalRegistrations: number;
|
|
125
|
+
totalExecutions: number;
|
|
126
|
+
totalErrors: number;
|
|
127
|
+
processedElementsCount: number;
|
|
128
|
+
lifecycleEventsCount: number;
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
export declare function createInitFeature(): TypedInitFeatureImplementation;
|
|
132
|
+
export declare function createInit(target: HTMLElement | string, commands: any[], options?: Partial<InitInput>): Promise<EvaluationResult<InitOutput>>;
|
|
133
|
+
export declare const enhancedInitImplementation: TypedInitFeatureImplementation;
|
|
134
|
+
export { TypedInitFeatureImplementation as InitFeature };
|
|
135
|
+
//# sourceMappingURL=init.d.ts.map
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import type { ValidationResult, LLMDocumentation, EvaluationType, ExecutionContext } from '../types/base-types';
|
|
2
|
+
import type { ContextMetadata } from '../types/context-types';
|
|
3
|
+
import type { EvaluationResult } from '../types/command-types';
|
|
4
|
+
export declare const EnhancedOnInputSchema: import("../validation/lightweight-validators").RuntimeValidator<{
|
|
5
|
+
[x: string]: unknown;
|
|
6
|
+
}>;
|
|
7
|
+
export declare const EnhancedOnOutputSchema: import("../validation/lightweight-validators").RuntimeValidator<{
|
|
8
|
+
[x: string]: unknown;
|
|
9
|
+
}>;
|
|
10
|
+
export type EnhancedOnInput = any;
|
|
11
|
+
export type EnhancedOnOutput = any;
|
|
12
|
+
export interface EventListener {
|
|
13
|
+
id: string;
|
|
14
|
+
eventType: string;
|
|
15
|
+
target: string | HTMLElement;
|
|
16
|
+
commands: any[];
|
|
17
|
+
context: ExecutionContext;
|
|
18
|
+
options: EventListenerOptions & {
|
|
19
|
+
once?: boolean;
|
|
20
|
+
passive?: boolean;
|
|
21
|
+
capture?: boolean;
|
|
22
|
+
delegated?: boolean;
|
|
23
|
+
filter?: string;
|
|
24
|
+
inSelector?: string;
|
|
25
|
+
every?: boolean;
|
|
26
|
+
throttle?: number;
|
|
27
|
+
debounce?: number;
|
|
28
|
+
};
|
|
29
|
+
isActive: boolean;
|
|
30
|
+
isPaused: boolean;
|
|
31
|
+
executionCount: number;
|
|
32
|
+
lastExecutionTime: number;
|
|
33
|
+
averageExecutionTime: number;
|
|
34
|
+
}
|
|
35
|
+
export interface EventExecution {
|
|
36
|
+
listenerId: string;
|
|
37
|
+
eventType: string;
|
|
38
|
+
timestamp: number;
|
|
39
|
+
event: Event;
|
|
40
|
+
commands: any[];
|
|
41
|
+
result?: any;
|
|
42
|
+
error?: Error;
|
|
43
|
+
executionTime: number;
|
|
44
|
+
preventDefault: boolean;
|
|
45
|
+
stopPropagation: boolean;
|
|
46
|
+
}
|
|
47
|
+
export interface EventFilter {
|
|
48
|
+
id: string;
|
|
49
|
+
expression: string;
|
|
50
|
+
compiled: Function;
|
|
51
|
+
isActive: boolean;
|
|
52
|
+
}
|
|
53
|
+
export declare class TypedOnFeatureImplementation {
|
|
54
|
+
readonly name = "onFeature";
|
|
55
|
+
readonly category: "Frontend";
|
|
56
|
+
readonly description = "Type-safe event handling feature with advanced filtering, throttling, and execution control";
|
|
57
|
+
readonly inputSchema: import("../validation/lightweight-validators").RuntimeValidator<{
|
|
58
|
+
[x: string]: unknown;
|
|
59
|
+
}>;
|
|
60
|
+
readonly outputType: EvaluationType;
|
|
61
|
+
private evaluationHistory;
|
|
62
|
+
private listeners;
|
|
63
|
+
private executionHistory;
|
|
64
|
+
private filters;
|
|
65
|
+
private errorHistory;
|
|
66
|
+
private throttleTimers;
|
|
67
|
+
private debounceTimers;
|
|
68
|
+
private filterCache;
|
|
69
|
+
readonly metadata: ContextMetadata;
|
|
70
|
+
readonly documentation: LLMDocumentation;
|
|
71
|
+
initialize(input: EnhancedOnInput): Promise<EvaluationResult<EnhancedOnOutput>>;
|
|
72
|
+
validate(input: unknown): ValidationResult;
|
|
73
|
+
private initializeConfig;
|
|
74
|
+
private registerEventListener;
|
|
75
|
+
private attachDOMListener;
|
|
76
|
+
private createDOMEventHandler;
|
|
77
|
+
private executeEventHandler;
|
|
78
|
+
private executeCommands;
|
|
79
|
+
private executeBasicCommand;
|
|
80
|
+
private isValidEventType;
|
|
81
|
+
private testEventFilter;
|
|
82
|
+
private testInSelectorFilter;
|
|
83
|
+
private isThrottled;
|
|
84
|
+
private applyDebounce;
|
|
85
|
+
private createEventListener;
|
|
86
|
+
private createEventUnlistener;
|
|
87
|
+
private createEventTrigger;
|
|
88
|
+
private createListenerGetter;
|
|
89
|
+
private createListenerPauser;
|
|
90
|
+
private createListenerResumer;
|
|
91
|
+
private createCommandExecutor;
|
|
92
|
+
private createAsyncExecutor;
|
|
93
|
+
private createExecutionHistoryGetter;
|
|
94
|
+
private createHistoryClearer;
|
|
95
|
+
private createFilterAdder;
|
|
96
|
+
private createFilterRemover;
|
|
97
|
+
private createFilterTester;
|
|
98
|
+
private createFilterGetter;
|
|
99
|
+
private createThrottleController;
|
|
100
|
+
private createDebounceController;
|
|
101
|
+
private createThrottleDelaySetter;
|
|
102
|
+
private createDebounceDelaySetter;
|
|
103
|
+
private createErrorHandler;
|
|
104
|
+
private createErrorHistoryGetter;
|
|
105
|
+
private createErrorClearer;
|
|
106
|
+
private createErrorHandlerSetter;
|
|
107
|
+
dispose(): void;
|
|
108
|
+
private trackPerformance;
|
|
109
|
+
getPerformanceMetrics(): {
|
|
110
|
+
totalInitializations: number;
|
|
111
|
+
successRate: number;
|
|
112
|
+
averageDuration: number;
|
|
113
|
+
lastEvaluationTime: number;
|
|
114
|
+
evaluationHistory: {
|
|
115
|
+
input: EnhancedOnInput;
|
|
116
|
+
output?: EnhancedOnOutput;
|
|
117
|
+
success: boolean;
|
|
118
|
+
duration: number;
|
|
119
|
+
timestamp: number;
|
|
120
|
+
}[];
|
|
121
|
+
totalListeners: number;
|
|
122
|
+
totalExecutions: number;
|
|
123
|
+
totalErrors: number;
|
|
124
|
+
averageExecutionTime: number;
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
export declare function createOnFeature(_eventManager?: unknown): TypedOnFeatureImplementation;
|
|
128
|
+
export declare function createOn(event: Partial<EnhancedOnInput['event']>, commands: any[], options?: Partial<EnhancedOnInput>): Promise<EvaluationResult<EnhancedOnOutput>>;
|
|
129
|
+
export declare const enhancedOnImplementation: TypedOnFeatureImplementation;
|
|
130
|
+
export { TypedOnFeatureImplementation as OnFeature };
|
|
131
|
+
//# sourceMappingURL=on.d.ts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { BehaviorDefinition } from './types';
|
|
2
|
+
export interface DropdownBehaviorOptions {
|
|
3
|
+
closeOnClickOutside?: boolean;
|
|
4
|
+
closeOnClickInside?: boolean;
|
|
5
|
+
closeOnEscape?: boolean;
|
|
6
|
+
openClass?: string;
|
|
7
|
+
animationDuration?: number;
|
|
8
|
+
}
|
|
9
|
+
export declare const dropdownBehaviorDefinition: BehaviorDefinition;
|
|
10
|
+
export declare function createDropdownBehavior(element: HTMLDetailsElement, options?: DropdownBehaviorOptions): void;
|
|
11
|
+
declare global {
|
|
12
|
+
interface HTMLDetailsElement {
|
|
13
|
+
openDropdown(): void;
|
|
14
|
+
closeDropdown(): void;
|
|
15
|
+
toggleDropdown(): void;
|
|
16
|
+
isDropdownOpen(): boolean;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export default dropdownBehaviorDefinition;
|
|
20
|
+
//# sourceMappingURL=dropdown-behavior.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { modalBehaviorDefinition, createModalBehavior, type ModalBehaviorOptions, } from './modal-behavior';
|
|
2
|
+
export { dropdownBehaviorDefinition, createDropdownBehavior, type DropdownBehaviorOptions, } from './dropdown-behavior';
|
|
3
|
+
export { toggleGroupBehaviorDefinition, createToggleGroupBehavior, type ToggleGroupBehaviorOptions, } from './toggle-group-behavior';
|
|
4
|
+
export type { BehaviorDefinition, BehaviorRegistry } from './types';
|
|
5
|
+
export declare const predefinedBehaviors: {
|
|
6
|
+
readonly 'modal-behavior': () => Promise<import("./types").BehaviorDefinition>;
|
|
7
|
+
readonly 'dropdown-behavior': () => Promise<import("./types").BehaviorDefinition>;
|
|
8
|
+
readonly 'toggle-group-behavior': () => Promise<import("./types").BehaviorDefinition>;
|
|
9
|
+
};
|
|
10
|
+
export declare function getBehavior(name: string): Promise<import("./types").BehaviorDefinition>;
|
|
11
|
+
export declare function listBehaviors(): string[];
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { BehaviorDefinition } from './types';
|
|
2
|
+
export interface ModalBehaviorOptions {
|
|
3
|
+
closeOnBackdropClick?: boolean;
|
|
4
|
+
closeOnEscape?: boolean;
|
|
5
|
+
backdropClass?: string;
|
|
6
|
+
modal?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const modalBehaviorDefinition: BehaviorDefinition;
|
|
9
|
+
export declare function createModalBehavior(element: HTMLDialogElement, options?: ModalBehaviorOptions): void;
|
|
10
|
+
declare global {
|
|
11
|
+
interface HTMLDialogElement {
|
|
12
|
+
openModal(): void;
|
|
13
|
+
closeModal(returnValue?: string): void;
|
|
14
|
+
isModalOpen(): boolean;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
export default modalBehaviorDefinition;
|
|
18
|
+
//# sourceMappingURL=modal-behavior.d.ts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { BehaviorDefinition } from './types';
|
|
2
|
+
export interface ToggleGroupBehaviorOptions {
|
|
3
|
+
name?: string;
|
|
4
|
+
itemSelector?: string;
|
|
5
|
+
activeClass?: string;
|
|
6
|
+
allowNone?: boolean;
|
|
7
|
+
keyboardNavigation?: boolean;
|
|
8
|
+
initialActive?: string | number;
|
|
9
|
+
}
|
|
10
|
+
export declare const toggleGroupBehaviorDefinition: BehaviorDefinition;
|
|
11
|
+
export declare function createToggleGroupBehavior(element: HTMLElement, options?: ToggleGroupBehaviorOptions): void;
|
|
12
|
+
declare global {
|
|
13
|
+
interface HTMLElement {
|
|
14
|
+
activateItem(item: HTMLElement | string | number): void;
|
|
15
|
+
deactivateAll(): void;
|
|
16
|
+
getActiveItem(): HTMLElement | null;
|
|
17
|
+
getActiveValue(): string | null;
|
|
18
|
+
next(): void;
|
|
19
|
+
previous(): void;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
export default toggleGroupBehaviorDefinition;
|
|
23
|
+
//# sourceMappingURL=toggle-group-behavior.d.ts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface BehaviorDefinition {
|
|
2
|
+
name: string;
|
|
3
|
+
parameters?: string[];
|
|
4
|
+
init(element: HTMLElement, options?: Record<string, any>): void;
|
|
5
|
+
destroy(element: HTMLElement): void;
|
|
6
|
+
}
|
|
7
|
+
export interface BehaviorRegistry {
|
|
8
|
+
register(definition: BehaviorDefinition): void;
|
|
9
|
+
unregister(name: string): void;
|
|
10
|
+
get(name: string): BehaviorDefinition | undefined;
|
|
11
|
+
has(name: string): boolean;
|
|
12
|
+
list(): string[];
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=types.d.ts.map
|