@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,213 @@
|
|
|
1
|
+
export declare const packageInfo: {
|
|
2
|
+
readonly name: "@hyperfixi/core";
|
|
3
|
+
readonly version: "2.0.0";
|
|
4
|
+
readonly description: "Modern hyperscript engine with fixi/htmx integration";
|
|
5
|
+
readonly compatibility: "~85% official _hyperscript";
|
|
6
|
+
readonly languages: 24;
|
|
7
|
+
readonly commands: 47;
|
|
8
|
+
readonly repository: "https://github.com/codetalcott/hyperfixi";
|
|
9
|
+
readonly documentation: "https://github.com/codetalcott/hyperfixi/tree/main/packages/core#readme";
|
|
10
|
+
};
|
|
11
|
+
export interface BundleInfo {
|
|
12
|
+
id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
filename: string;
|
|
15
|
+
gzipSize: string;
|
|
16
|
+
rawSize: string;
|
|
17
|
+
commandCount: number;
|
|
18
|
+
parser: 'regex' | 'hybrid' | 'full';
|
|
19
|
+
hasBlocks: boolean;
|
|
20
|
+
hasEventModifiers: boolean;
|
|
21
|
+
hasPositional: boolean;
|
|
22
|
+
hasFetch: boolean;
|
|
23
|
+
hasHtmxCompat: boolean;
|
|
24
|
+
importPath: string;
|
|
25
|
+
cdnUrl: string;
|
|
26
|
+
useCase: string;
|
|
27
|
+
}
|
|
28
|
+
export declare const bundleInfo: BundleInfo[];
|
|
29
|
+
export declare const featureMatrix: {
|
|
30
|
+
readonly 'toggle class': readonly ["lite", "lite-plus", "hybrid-complete", "hybrid-hx", "minimal", "standard", "browser", "multilingual"];
|
|
31
|
+
readonly 'show/hide': readonly ["lite", "lite-plus", "hybrid-complete", "hybrid-hx", "minimal", "standard", "browser", "multilingual"];
|
|
32
|
+
readonly 'add/remove class': readonly ["lite", "lite-plus", "hybrid-complete", "hybrid-hx", "minimal", "standard", "browser", "multilingual"];
|
|
33
|
+
readonly 'set variable': readonly ["lite", "lite-plus", "hybrid-complete", "hybrid-hx", "minimal", "standard", "browser", "multilingual"];
|
|
34
|
+
readonly 'put content': readonly ["lite", "lite-plus", "hybrid-complete", "hybrid-hx", "minimal", "standard", "browser", "multilingual"];
|
|
35
|
+
readonly 'wait duration': readonly ["lite-plus", "hybrid-complete", "hybrid-hx", "minimal", "standard", "browser", "multilingual"];
|
|
36
|
+
readonly 'increment/decrement': readonly ["lite-plus", "hybrid-complete", "hybrid-hx", "minimal", "standard", "browser", "multilingual"];
|
|
37
|
+
readonly 'trigger event': readonly ["lite-plus", "hybrid-complete", "hybrid-hx", "minimal", "standard", "browser", "multilingual"];
|
|
38
|
+
readonly log: readonly ["lite-plus", "hybrid-complete", "hybrid-hx", "minimal", "standard", "browser", "multilingual"];
|
|
39
|
+
readonly 'if/else blocks': readonly ["hybrid-complete", "hybrid-hx", "minimal", "standard", "browser", "multilingual"];
|
|
40
|
+
readonly 'repeat/for loops': readonly ["hybrid-complete", "hybrid-hx", "minimal", "standard", "browser", "multilingual"];
|
|
41
|
+
readonly fetch: readonly ["hybrid-complete", "hybrid-hx", "minimal", "standard", "browser", "multilingual"];
|
|
42
|
+
readonly 'event modifiers': readonly ["hybrid-complete", "hybrid-hx", "minimal", "standard", "browser", "multilingual"];
|
|
43
|
+
readonly 'positional (first/last)': readonly ["hybrid-complete", "hybrid-hx", "minimal", "standard", "browser", "multilingual"];
|
|
44
|
+
readonly 'htmx attributes': readonly ["hybrid-hx"];
|
|
45
|
+
readonly behaviors: readonly ["minimal", "standard", "browser", "multilingual"];
|
|
46
|
+
readonly transitions: readonly ["minimal", "standard", "browser", "multilingual"];
|
|
47
|
+
readonly morph: readonly ["standard", "browser", "multilingual"];
|
|
48
|
+
readonly 'multilingual API': readonly ["multilingual"];
|
|
49
|
+
};
|
|
50
|
+
export declare function getBundleById(id: string): BundleInfo | undefined;
|
|
51
|
+
export declare function getSmallestBundle(options: {
|
|
52
|
+
blocks?: boolean;
|
|
53
|
+
fetch?: boolean;
|
|
54
|
+
eventModifiers?: boolean;
|
|
55
|
+
positional?: boolean;
|
|
56
|
+
htmxCompat?: boolean;
|
|
57
|
+
}): BundleInfo | undefined;
|
|
58
|
+
export declare function getBundlesWithFeature(feature: keyof typeof featureMatrix): BundleInfo[];
|
|
59
|
+
export declare function compareBundles(bundleIds: string[]): Record<string, BundleInfo>;
|
|
60
|
+
export declare const ecosystem: {
|
|
61
|
+
readonly core: {
|
|
62
|
+
readonly name: "@hyperfixi/core";
|
|
63
|
+
readonly description: "Main runtime, parser, 43 commands";
|
|
64
|
+
readonly npm: "https://www.npmjs.com/package/@hyperfixi/core";
|
|
65
|
+
};
|
|
66
|
+
readonly semantic: {
|
|
67
|
+
readonly name: "@lokascript/semantic";
|
|
68
|
+
readonly description: "Semantic multilingual parser (24 languages)";
|
|
69
|
+
readonly npm: "https://www.npmjs.com/package/@lokascript/semantic";
|
|
70
|
+
};
|
|
71
|
+
readonly i18n: {
|
|
72
|
+
readonly name: "@lokascript/i18n";
|
|
73
|
+
readonly description: "Grammar transformation and keyword translation";
|
|
74
|
+
readonly npm: "https://www.npmjs.com/package/@lokascript/i18n";
|
|
75
|
+
};
|
|
76
|
+
readonly vitePlugin: {
|
|
77
|
+
readonly name: "@hyperfixi/vite-plugin";
|
|
78
|
+
readonly description: "Zero-config Vite plugin for automatic minimal bundles";
|
|
79
|
+
readonly npm: "https://www.npmjs.com/package/@hyperfixi/vite-plugin";
|
|
80
|
+
};
|
|
81
|
+
readonly patternsReference: {
|
|
82
|
+
readonly name: "@lokascript/patterns-reference";
|
|
83
|
+
readonly description: "Pattern database with 212 LLM examples";
|
|
84
|
+
readonly npm: "https://www.npmjs.com/package/@lokascript/patterns-reference";
|
|
85
|
+
};
|
|
86
|
+
readonly mcpServer: {
|
|
87
|
+
readonly name: "@lokascript/mcp-server";
|
|
88
|
+
readonly description: "Model Context Protocol server for AI assistants";
|
|
89
|
+
readonly npm: "https://www.npmjs.com/package/@lokascript/mcp-server";
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
export declare const supportedLanguages: readonly [{
|
|
93
|
+
readonly code: "en";
|
|
94
|
+
readonly name: "English";
|
|
95
|
+
readonly native: "English";
|
|
96
|
+
readonly wordOrder: "SVO";
|
|
97
|
+
}, {
|
|
98
|
+
readonly code: "es";
|
|
99
|
+
readonly name: "Spanish";
|
|
100
|
+
readonly native: "Español";
|
|
101
|
+
readonly wordOrder: "SVO";
|
|
102
|
+
}, {
|
|
103
|
+
readonly code: "fr";
|
|
104
|
+
readonly name: "French";
|
|
105
|
+
readonly native: "Français";
|
|
106
|
+
readonly wordOrder: "SVO";
|
|
107
|
+
}, {
|
|
108
|
+
readonly code: "pt";
|
|
109
|
+
readonly name: "Portuguese";
|
|
110
|
+
readonly native: "Português";
|
|
111
|
+
readonly wordOrder: "SVO";
|
|
112
|
+
}, {
|
|
113
|
+
readonly code: "de";
|
|
114
|
+
readonly name: "German";
|
|
115
|
+
readonly native: "Deutsch";
|
|
116
|
+
readonly wordOrder: "V2";
|
|
117
|
+
}, {
|
|
118
|
+
readonly code: "it";
|
|
119
|
+
readonly name: "Italian";
|
|
120
|
+
readonly native: "Italiano";
|
|
121
|
+
readonly wordOrder: "SVO";
|
|
122
|
+
}, {
|
|
123
|
+
readonly code: "ja";
|
|
124
|
+
readonly name: "Japanese";
|
|
125
|
+
readonly native: "日本語";
|
|
126
|
+
readonly wordOrder: "SOV";
|
|
127
|
+
}, {
|
|
128
|
+
readonly code: "ko";
|
|
129
|
+
readonly name: "Korean";
|
|
130
|
+
readonly native: "한국어";
|
|
131
|
+
readonly wordOrder: "SOV";
|
|
132
|
+
}, {
|
|
133
|
+
readonly code: "zh";
|
|
134
|
+
readonly name: "Chinese";
|
|
135
|
+
readonly native: "中文";
|
|
136
|
+
readonly wordOrder: "SVO";
|
|
137
|
+
}, {
|
|
138
|
+
readonly code: "ar";
|
|
139
|
+
readonly name: "Arabic";
|
|
140
|
+
readonly native: "العربية";
|
|
141
|
+
readonly wordOrder: "VSO";
|
|
142
|
+
}, {
|
|
143
|
+
readonly code: "tr";
|
|
144
|
+
readonly name: "Turkish";
|
|
145
|
+
readonly native: "Türkçe";
|
|
146
|
+
readonly wordOrder: "SOV";
|
|
147
|
+
}, {
|
|
148
|
+
readonly code: "ru";
|
|
149
|
+
readonly name: "Russian";
|
|
150
|
+
readonly native: "Русский";
|
|
151
|
+
readonly wordOrder: "SVO";
|
|
152
|
+
}, {
|
|
153
|
+
readonly code: "uk";
|
|
154
|
+
readonly name: "Ukrainian";
|
|
155
|
+
readonly native: "Українська";
|
|
156
|
+
readonly wordOrder: "SVO";
|
|
157
|
+
}, {
|
|
158
|
+
readonly code: "pl";
|
|
159
|
+
readonly name: "Polish";
|
|
160
|
+
readonly native: "Polski";
|
|
161
|
+
readonly wordOrder: "SVO";
|
|
162
|
+
}, {
|
|
163
|
+
readonly code: "id";
|
|
164
|
+
readonly name: "Indonesian";
|
|
165
|
+
readonly native: "Bahasa Indonesia";
|
|
166
|
+
readonly wordOrder: "SVO";
|
|
167
|
+
}, {
|
|
168
|
+
readonly code: "ms";
|
|
169
|
+
readonly name: "Malay";
|
|
170
|
+
readonly native: "Bahasa Melayu";
|
|
171
|
+
readonly wordOrder: "SVO";
|
|
172
|
+
}, {
|
|
173
|
+
readonly code: "th";
|
|
174
|
+
readonly name: "Thai";
|
|
175
|
+
readonly native: "ไทย";
|
|
176
|
+
readonly wordOrder: "SVO";
|
|
177
|
+
}, {
|
|
178
|
+
readonly code: "vi";
|
|
179
|
+
readonly name: "Vietnamese";
|
|
180
|
+
readonly native: "Tiếng Việt";
|
|
181
|
+
readonly wordOrder: "SVO";
|
|
182
|
+
}, {
|
|
183
|
+
readonly code: "tl";
|
|
184
|
+
readonly name: "Tagalog";
|
|
185
|
+
readonly native: "Tagalog";
|
|
186
|
+
readonly wordOrder: "VSO";
|
|
187
|
+
}, {
|
|
188
|
+
readonly code: "hi";
|
|
189
|
+
readonly name: "Hindi";
|
|
190
|
+
readonly native: "हिन्दी";
|
|
191
|
+
readonly wordOrder: "SOV";
|
|
192
|
+
}, {
|
|
193
|
+
readonly code: "bn";
|
|
194
|
+
readonly name: "Bengali";
|
|
195
|
+
readonly native: "বাংলা";
|
|
196
|
+
readonly wordOrder: "SOV";
|
|
197
|
+
}, {
|
|
198
|
+
readonly code: "sw";
|
|
199
|
+
readonly name: "Swahili";
|
|
200
|
+
readonly native: "Kiswahili";
|
|
201
|
+
readonly wordOrder: "SVO";
|
|
202
|
+
}, {
|
|
203
|
+
readonly code: "qu";
|
|
204
|
+
readonly name: "Quechua";
|
|
205
|
+
readonly native: "Runasimi";
|
|
206
|
+
readonly wordOrder: "SOV";
|
|
207
|
+
}, {
|
|
208
|
+
readonly code: "he";
|
|
209
|
+
readonly name: "Hebrew";
|
|
210
|
+
readonly native: "עברית";
|
|
211
|
+
readonly wordOrder: "SVO";
|
|
212
|
+
}];
|
|
213
|
+
//# sourceMappingURL=metadata.d.ts.map
|
package/dist/metadata.js
ADDED
|
@@ -0,0 +1,378 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const packageInfo = {
|
|
4
|
+
name: '@hyperfixi/core',
|
|
5
|
+
version: '2.0.0',
|
|
6
|
+
description: 'Modern hyperscript engine with fixi/htmx integration',
|
|
7
|
+
compatibility: '~85% official _hyperscript',
|
|
8
|
+
languages: 24,
|
|
9
|
+
commands: 47,
|
|
10
|
+
repository: 'https://github.com/codetalcott/hyperfixi',
|
|
11
|
+
documentation: 'https://github.com/codetalcott/hyperfixi/tree/main/packages/core#readme',
|
|
12
|
+
};
|
|
13
|
+
const bundleInfo = [
|
|
14
|
+
{
|
|
15
|
+
id: 'lite',
|
|
16
|
+
name: 'Lite',
|
|
17
|
+
filename: 'hyperfixi-lite.js',
|
|
18
|
+
gzipSize: '1.9 KB',
|
|
19
|
+
rawSize: '5 KB',
|
|
20
|
+
commandCount: 8,
|
|
21
|
+
parser: 'regex',
|
|
22
|
+
hasBlocks: false,
|
|
23
|
+
hasEventModifiers: false,
|
|
24
|
+
hasPositional: false,
|
|
25
|
+
hasFetch: false,
|
|
26
|
+
hasHtmxCompat: false,
|
|
27
|
+
importPath: '@hyperfixi/core/browser/lite',
|
|
28
|
+
cdnUrl: 'https://unpkg.com/@hyperfixi/core/dist/hyperfixi-lite.js',
|
|
29
|
+
useCase: 'Minimal interactivity: toggle, show, hide, add, remove, set, put',
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
id: 'lite-plus',
|
|
33
|
+
name: 'Lite Plus',
|
|
34
|
+
filename: 'hyperfixi-lite-plus.js',
|
|
35
|
+
gzipSize: '2.6 KB',
|
|
36
|
+
rawSize: '7 KB',
|
|
37
|
+
commandCount: 14,
|
|
38
|
+
parser: 'regex',
|
|
39
|
+
hasBlocks: false,
|
|
40
|
+
hasEventModifiers: false,
|
|
41
|
+
hasPositional: false,
|
|
42
|
+
hasFetch: false,
|
|
43
|
+
hasHtmxCompat: false,
|
|
44
|
+
importPath: '@hyperfixi/core/browser/lite-plus',
|
|
45
|
+
cdnUrl: 'https://unpkg.com/@hyperfixi/core/dist/hyperfixi-lite-plus.js',
|
|
46
|
+
useCase: 'Basic interactivity with wait, log, increment, trigger, go',
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
id: 'hybrid-complete',
|
|
50
|
+
name: 'Hybrid Complete',
|
|
51
|
+
filename: 'hyperfixi-hybrid-complete.js',
|
|
52
|
+
gzipSize: '7.2 KB',
|
|
53
|
+
rawSize: '28 KB',
|
|
54
|
+
commandCount: 21,
|
|
55
|
+
parser: 'hybrid',
|
|
56
|
+
hasBlocks: true,
|
|
57
|
+
hasEventModifiers: true,
|
|
58
|
+
hasPositional: true,
|
|
59
|
+
hasFetch: true,
|
|
60
|
+
hasHtmxCompat: false,
|
|
61
|
+
importPath: '@hyperfixi/core/browser/hybrid-complete',
|
|
62
|
+
cdnUrl: 'https://unpkg.com/@hyperfixi/core/dist/hyperfixi-hybrid-complete.js',
|
|
63
|
+
useCase: 'Recommended for most apps - 85% hyperscript coverage',
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
id: 'hybrid-hx',
|
|
67
|
+
name: 'Hybrid HX',
|
|
68
|
+
filename: 'hyperfixi-hx.js',
|
|
69
|
+
gzipSize: '9.7 KB',
|
|
70
|
+
rawSize: '28 KB',
|
|
71
|
+
commandCount: 21,
|
|
72
|
+
parser: 'hybrid',
|
|
73
|
+
hasBlocks: true,
|
|
74
|
+
hasEventModifiers: true,
|
|
75
|
+
hasPositional: true,
|
|
76
|
+
hasFetch: true,
|
|
77
|
+
hasHtmxCompat: true,
|
|
78
|
+
importPath: '@hyperfixi/core/browser/hybrid-hx',
|
|
79
|
+
cdnUrl: 'https://unpkg.com/@hyperfixi/core/dist/hyperfixi-hx.js',
|
|
80
|
+
useCase: 'htmx/fixi drop-in replacement with hx-get, hx-post, hx-target',
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
id: 'minimal',
|
|
84
|
+
name: 'Minimal',
|
|
85
|
+
filename: 'hyperfixi-minimal.js',
|
|
86
|
+
gzipSize: '63.4 KB',
|
|
87
|
+
rawSize: '271 KB',
|
|
88
|
+
commandCount: 30,
|
|
89
|
+
parser: 'full',
|
|
90
|
+
hasBlocks: true,
|
|
91
|
+
hasEventModifiers: true,
|
|
92
|
+
hasPositional: true,
|
|
93
|
+
hasFetch: true,
|
|
94
|
+
hasHtmxCompat: false,
|
|
95
|
+
importPath: '@hyperfixi/core/browser/minimal',
|
|
96
|
+
cdnUrl: 'https://unpkg.com/@hyperfixi/core/dist/hyperfixi-minimal.js',
|
|
97
|
+
useCase: 'Full parser with essential commands',
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
id: 'standard',
|
|
101
|
+
name: 'Standard',
|
|
102
|
+
filename: 'hyperfixi-standard.js',
|
|
103
|
+
gzipSize: '63 KB',
|
|
104
|
+
rawSize: '195 KB',
|
|
105
|
+
commandCount: 35,
|
|
106
|
+
parser: 'full',
|
|
107
|
+
hasBlocks: true,
|
|
108
|
+
hasEventModifiers: true,
|
|
109
|
+
hasPositional: true,
|
|
110
|
+
hasFetch: true,
|
|
111
|
+
hasHtmxCompat: false,
|
|
112
|
+
importPath: '@hyperfixi/core/browser/standard',
|
|
113
|
+
cdnUrl: 'https://unpkg.com/@hyperfixi/core/dist/hyperfixi-standard.js',
|
|
114
|
+
useCase: 'Full parser with common commands',
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
id: 'browser',
|
|
118
|
+
name: 'Full Browser',
|
|
119
|
+
filename: 'hyperfixi.js',
|
|
120
|
+
gzipSize: '199.6 KB',
|
|
121
|
+
rawSize: '943 KB',
|
|
122
|
+
commandCount: 47,
|
|
123
|
+
parser: 'full',
|
|
124
|
+
hasBlocks: true,
|
|
125
|
+
hasEventModifiers: true,
|
|
126
|
+
hasPositional: true,
|
|
127
|
+
hasFetch: true,
|
|
128
|
+
hasHtmxCompat: false,
|
|
129
|
+
importPath: '@hyperfixi/core/browser',
|
|
130
|
+
cdnUrl: 'https://unpkg.com/@hyperfixi/core/dist/hyperfixi.js',
|
|
131
|
+
useCase: 'Complete bundle with all commands and features',
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
id: 'multilingual',
|
|
135
|
+
name: 'Multilingual',
|
|
136
|
+
filename: 'hyperfixi-multilingual.js',
|
|
137
|
+
gzipSize: '64 KB',
|
|
138
|
+
rawSize: '200 KB',
|
|
139
|
+
commandCount: 47,
|
|
140
|
+
parser: 'full',
|
|
141
|
+
hasBlocks: true,
|
|
142
|
+
hasEventModifiers: true,
|
|
143
|
+
hasPositional: true,
|
|
144
|
+
hasFetch: true,
|
|
145
|
+
hasHtmxCompat: false,
|
|
146
|
+
importPath: '@hyperfixi/core/browser/multilingual',
|
|
147
|
+
cdnUrl: 'https://unpkg.com/@hyperfixi/core/dist/hyperfixi-multilingual.js',
|
|
148
|
+
useCase: 'Full features with multilingual API (requires @lokascript/semantic)',
|
|
149
|
+
},
|
|
150
|
+
];
|
|
151
|
+
const featureMatrix = {
|
|
152
|
+
'toggle class': [
|
|
153
|
+
'lite',
|
|
154
|
+
'lite-plus',
|
|
155
|
+
'hybrid-complete',
|
|
156
|
+
'hybrid-hx',
|
|
157
|
+
'minimal',
|
|
158
|
+
'standard',
|
|
159
|
+
'browser',
|
|
160
|
+
'multilingual',
|
|
161
|
+
],
|
|
162
|
+
'show/hide': [
|
|
163
|
+
'lite',
|
|
164
|
+
'lite-plus',
|
|
165
|
+
'hybrid-complete',
|
|
166
|
+
'hybrid-hx',
|
|
167
|
+
'minimal',
|
|
168
|
+
'standard',
|
|
169
|
+
'browser',
|
|
170
|
+
'multilingual',
|
|
171
|
+
],
|
|
172
|
+
'add/remove class': [
|
|
173
|
+
'lite',
|
|
174
|
+
'lite-plus',
|
|
175
|
+
'hybrid-complete',
|
|
176
|
+
'hybrid-hx',
|
|
177
|
+
'minimal',
|
|
178
|
+
'standard',
|
|
179
|
+
'browser',
|
|
180
|
+
'multilingual',
|
|
181
|
+
],
|
|
182
|
+
'set variable': [
|
|
183
|
+
'lite',
|
|
184
|
+
'lite-plus',
|
|
185
|
+
'hybrid-complete',
|
|
186
|
+
'hybrid-hx',
|
|
187
|
+
'minimal',
|
|
188
|
+
'standard',
|
|
189
|
+
'browser',
|
|
190
|
+
'multilingual',
|
|
191
|
+
],
|
|
192
|
+
'put content': [
|
|
193
|
+
'lite',
|
|
194
|
+
'lite-plus',
|
|
195
|
+
'hybrid-complete',
|
|
196
|
+
'hybrid-hx',
|
|
197
|
+
'minimal',
|
|
198
|
+
'standard',
|
|
199
|
+
'browser',
|
|
200
|
+
'multilingual',
|
|
201
|
+
],
|
|
202
|
+
'wait duration': [
|
|
203
|
+
'lite-plus',
|
|
204
|
+
'hybrid-complete',
|
|
205
|
+
'hybrid-hx',
|
|
206
|
+
'minimal',
|
|
207
|
+
'standard',
|
|
208
|
+
'browser',
|
|
209
|
+
'multilingual',
|
|
210
|
+
],
|
|
211
|
+
'increment/decrement': [
|
|
212
|
+
'lite-plus',
|
|
213
|
+
'hybrid-complete',
|
|
214
|
+
'hybrid-hx',
|
|
215
|
+
'minimal',
|
|
216
|
+
'standard',
|
|
217
|
+
'browser',
|
|
218
|
+
'multilingual',
|
|
219
|
+
],
|
|
220
|
+
'trigger event': [
|
|
221
|
+
'lite-plus',
|
|
222
|
+
'hybrid-complete',
|
|
223
|
+
'hybrid-hx',
|
|
224
|
+
'minimal',
|
|
225
|
+
'standard',
|
|
226
|
+
'browser',
|
|
227
|
+
'multilingual',
|
|
228
|
+
],
|
|
229
|
+
log: [
|
|
230
|
+
'lite-plus',
|
|
231
|
+
'hybrid-complete',
|
|
232
|
+
'hybrid-hx',
|
|
233
|
+
'minimal',
|
|
234
|
+
'standard',
|
|
235
|
+
'browser',
|
|
236
|
+
'multilingual',
|
|
237
|
+
],
|
|
238
|
+
'if/else blocks': [
|
|
239
|
+
'hybrid-complete',
|
|
240
|
+
'hybrid-hx',
|
|
241
|
+
'minimal',
|
|
242
|
+
'standard',
|
|
243
|
+
'browser',
|
|
244
|
+
'multilingual',
|
|
245
|
+
],
|
|
246
|
+
'repeat/for loops': [
|
|
247
|
+
'hybrid-complete',
|
|
248
|
+
'hybrid-hx',
|
|
249
|
+
'minimal',
|
|
250
|
+
'standard',
|
|
251
|
+
'browser',
|
|
252
|
+
'multilingual',
|
|
253
|
+
],
|
|
254
|
+
fetch: ['hybrid-complete', 'hybrid-hx', 'minimal', 'standard', 'browser', 'multilingual'],
|
|
255
|
+
'event modifiers': [
|
|
256
|
+
'hybrid-complete',
|
|
257
|
+
'hybrid-hx',
|
|
258
|
+
'minimal',
|
|
259
|
+
'standard',
|
|
260
|
+
'browser',
|
|
261
|
+
'multilingual',
|
|
262
|
+
],
|
|
263
|
+
'positional (first/last)': [
|
|
264
|
+
'hybrid-complete',
|
|
265
|
+
'hybrid-hx',
|
|
266
|
+
'minimal',
|
|
267
|
+
'standard',
|
|
268
|
+
'browser',
|
|
269
|
+
'multilingual',
|
|
270
|
+
],
|
|
271
|
+
'htmx attributes': ['hybrid-hx'],
|
|
272
|
+
behaviors: ['minimal', 'standard', 'browser', 'multilingual'],
|
|
273
|
+
transitions: ['minimal', 'standard', 'browser', 'multilingual'],
|
|
274
|
+
morph: ['standard', 'browser', 'multilingual'],
|
|
275
|
+
'multilingual API': ['multilingual'],
|
|
276
|
+
};
|
|
277
|
+
function getBundleById(id) {
|
|
278
|
+
return bundleInfo.find(b => b.id === id);
|
|
279
|
+
}
|
|
280
|
+
function getSmallestBundle(options) {
|
|
281
|
+
const sorted = [...bundleInfo].sort((a, b) => parseFloat(a.gzipSize) - parseFloat(b.gzipSize));
|
|
282
|
+
return sorted.find(bundle => {
|
|
283
|
+
if (options.blocks && !bundle.hasBlocks)
|
|
284
|
+
return false;
|
|
285
|
+
if (options.fetch && !bundle.hasFetch)
|
|
286
|
+
return false;
|
|
287
|
+
if (options.eventModifiers && !bundle.hasEventModifiers)
|
|
288
|
+
return false;
|
|
289
|
+
if (options.positional && !bundle.hasPositional)
|
|
290
|
+
return false;
|
|
291
|
+
if (options.htmxCompat && !bundle.hasHtmxCompat)
|
|
292
|
+
return false;
|
|
293
|
+
return true;
|
|
294
|
+
});
|
|
295
|
+
}
|
|
296
|
+
function getBundlesWithFeature(feature) {
|
|
297
|
+
const bundleIds = featureMatrix[feature];
|
|
298
|
+
return bundleInfo.filter(b => bundleIds.includes(b.id));
|
|
299
|
+
}
|
|
300
|
+
function compareBundles(bundleIds) {
|
|
301
|
+
const result = {};
|
|
302
|
+
for (const id of bundleIds) {
|
|
303
|
+
const bundle = getBundleById(id);
|
|
304
|
+
if (bundle) {
|
|
305
|
+
result[id] = bundle;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
return result;
|
|
309
|
+
}
|
|
310
|
+
const ecosystem = {
|
|
311
|
+
core: {
|
|
312
|
+
name: '@hyperfixi/core',
|
|
313
|
+
description: 'Main runtime, parser, 43 commands',
|
|
314
|
+
npm: 'https://www.npmjs.com/package/@hyperfixi/core',
|
|
315
|
+
},
|
|
316
|
+
semantic: {
|
|
317
|
+
name: '@lokascript/semantic',
|
|
318
|
+
description: 'Semantic multilingual parser (24 languages)',
|
|
319
|
+
npm: 'https://www.npmjs.com/package/@lokascript/semantic',
|
|
320
|
+
},
|
|
321
|
+
i18n: {
|
|
322
|
+
name: '@lokascript/i18n',
|
|
323
|
+
description: 'Grammar transformation and keyword translation',
|
|
324
|
+
npm: 'https://www.npmjs.com/package/@lokascript/i18n',
|
|
325
|
+
},
|
|
326
|
+
vitePlugin: {
|
|
327
|
+
name: '@hyperfixi/vite-plugin',
|
|
328
|
+
description: 'Zero-config Vite plugin for automatic minimal bundles',
|
|
329
|
+
npm: 'https://www.npmjs.com/package/@hyperfixi/vite-plugin',
|
|
330
|
+
},
|
|
331
|
+
patternsReference: {
|
|
332
|
+
name: '@lokascript/patterns-reference',
|
|
333
|
+
description: 'Pattern database with 212 LLM examples',
|
|
334
|
+
npm: 'https://www.npmjs.com/package/@lokascript/patterns-reference',
|
|
335
|
+
},
|
|
336
|
+
mcpServer: {
|
|
337
|
+
name: '@lokascript/mcp-server',
|
|
338
|
+
description: 'Model Context Protocol server for AI assistants',
|
|
339
|
+
npm: 'https://www.npmjs.com/package/@lokascript/mcp-server',
|
|
340
|
+
},
|
|
341
|
+
};
|
|
342
|
+
const supportedLanguages = [
|
|
343
|
+
{ code: 'en', name: 'English', native: 'English', wordOrder: 'SVO' },
|
|
344
|
+
{ code: 'es', name: 'Spanish', native: 'Español', wordOrder: 'SVO' },
|
|
345
|
+
{ code: 'fr', name: 'French', native: 'Français', wordOrder: 'SVO' },
|
|
346
|
+
{ code: 'pt', name: 'Portuguese', native: 'Português', wordOrder: 'SVO' },
|
|
347
|
+
{ code: 'de', name: 'German', native: 'Deutsch', wordOrder: 'V2' },
|
|
348
|
+
{ code: 'it', name: 'Italian', native: 'Italiano', wordOrder: 'SVO' },
|
|
349
|
+
{ code: 'ja', name: 'Japanese', native: '日本語', wordOrder: 'SOV' },
|
|
350
|
+
{ code: 'ko', name: 'Korean', native: '한국어', wordOrder: 'SOV' },
|
|
351
|
+
{ code: 'zh', name: 'Chinese', native: '中文', wordOrder: 'SVO' },
|
|
352
|
+
{ code: 'ar', name: 'Arabic', native: 'العربية', wordOrder: 'VSO' },
|
|
353
|
+
{ code: 'tr', name: 'Turkish', native: 'Türkçe', wordOrder: 'SOV' },
|
|
354
|
+
{ code: 'ru', name: 'Russian', native: 'Русский', wordOrder: 'SVO' },
|
|
355
|
+
{ code: 'uk', name: 'Ukrainian', native: 'Українська', wordOrder: 'SVO' },
|
|
356
|
+
{ code: 'pl', name: 'Polish', native: 'Polski', wordOrder: 'SVO' },
|
|
357
|
+
{ code: 'id', name: 'Indonesian', native: 'Bahasa Indonesia', wordOrder: 'SVO' },
|
|
358
|
+
{ code: 'ms', name: 'Malay', native: 'Bahasa Melayu', wordOrder: 'SVO' },
|
|
359
|
+
{ code: 'th', name: 'Thai', native: 'ไทย', wordOrder: 'SVO' },
|
|
360
|
+
{ code: 'vi', name: 'Vietnamese', native: 'Tiếng Việt', wordOrder: 'SVO' },
|
|
361
|
+
{ code: 'tl', name: 'Tagalog', native: 'Tagalog', wordOrder: 'VSO' },
|
|
362
|
+
{ code: 'hi', name: 'Hindi', native: 'हिन्दी', wordOrder: 'SOV' },
|
|
363
|
+
{ code: 'bn', name: 'Bengali', native: 'বাংলা', wordOrder: 'SOV' },
|
|
364
|
+
{ code: 'sw', name: 'Swahili', native: 'Kiswahili', wordOrder: 'SVO' },
|
|
365
|
+
{ code: 'qu', name: 'Quechua', native: 'Runasimi', wordOrder: 'SOV' },
|
|
366
|
+
{ code: 'he', name: 'Hebrew', native: 'עברית', wordOrder: 'SVO' },
|
|
367
|
+
];
|
|
368
|
+
|
|
369
|
+
exports.bundleInfo = bundleInfo;
|
|
370
|
+
exports.compareBundles = compareBundles;
|
|
371
|
+
exports.ecosystem = ecosystem;
|
|
372
|
+
exports.featureMatrix = featureMatrix;
|
|
373
|
+
exports.getBundleById = getBundleById;
|
|
374
|
+
exports.getBundlesWithFeature = getBundlesWithFeature;
|
|
375
|
+
exports.getSmallestBundle = getSmallestBundle;
|
|
376
|
+
exports.packageInfo = packageInfo;
|
|
377
|
+
exports.supportedLanguages = supportedLanguages;
|
|
378
|
+
//# sourceMappingURL=metadata.js.map
|