@hyperfixi/core 3.3.0 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +57 -179
- package/dist/ast-utils/index.cjs +74 -806
- package/dist/ast-utils/index.d.ts +1 -1
- package/dist/ast-utils/index.mjs +74 -805
- package/dist/ast-utils/interchange/engine-positions.d.ts +3 -0
- package/dist/ast-utils/interchange/index.d.ts +1 -2
- package/dist/hyperfixi.js +19 -2
- package/dist/index.d.ts +2 -22
- package/dist/index.mjs +3 -29128
- package/dist/lsp-metadata.cjs +77 -73
- package/dist/lsp-metadata.d.ts +4 -4
- package/dist/lsp-metadata.mjs +77 -73
- package/dist/metadata.cjs +34 -266
- package/dist/metadata.d.ts +31 -26
- package/dist/metadata.mjs +34 -266
- package/dist/multilingual/index.cjs +16 -382
- package/dist/multilingual/index.d.ts +4 -32
- package/dist/multilingual/index.mjs +15 -377
- package/dist/reference/index.cjs +67 -216
- package/dist/reference/index.d.ts +0 -3
- package/dist/reference/index.mjs +68 -216
- package/dist/version.d.ts +1 -1
- package/package.json +13 -179
- package/dist/__test-utils__/context-builders.d.ts +0 -42
- package/dist/__test-utils__/error-testing.d.ts +0 -18
- package/dist/__test-utils__/index.d.ts +0 -6
- package/dist/__test-utils__/mock-types.d.ts +0 -57
- package/dist/__test-utils__/parser-context-mock.d.ts +0 -7
- package/dist/__test-utils__/parser-helpers.d.ts +0 -38
- package/dist/api/hyperscript-api.d.ts +0 -90
- package/dist/api/lokascript-api.d.ts +0 -9
- package/dist/ast/command-slots.d.ts +0 -140
- package/dist/ast/guards.d.ts +0 -15
- package/dist/ast/legacy.d.ts +0 -15
- package/dist/ast/nodes.d.ts +0 -243
- package/dist/ast-utils/interchange/from-core.d.ts +0 -12
- package/dist/ast-utils/interchange/to-core.d.ts +0 -8
- package/dist/behaviors/boosted.d.ts +0 -29
- package/dist/behaviors/history-swap.d.ts +0 -24
- package/dist/behaviors/index.cjs +0 -1155
- package/dist/behaviors/index.d.ts +0 -4
- package/dist/behaviors/index.mjs +0 -1145
- package/dist/bundle-generator/executor-core.d.ts +0 -4
- package/dist/bundle-generator/generator.d.ts +0 -4
- package/dist/bundle-generator/index.cjs +0 -2804
- package/dist/bundle-generator/index.d.ts +0 -6
- package/dist/bundle-generator/index.mjs +0 -2779
- package/dist/bundle-generator/parser-templates.d.ts +0 -6
- package/dist/bundle-generator/template-capabilities.d.ts +0 -12
- package/dist/bundle-generator/templates.d.ts +0 -12
- package/dist/bundle-generator/types.d.ts +0 -34
- package/dist/chunks/bridge-CI9SOl8u.js +0 -2
- package/dist/chunks/browser-modular-7CpI5VF2.js +0 -2
- package/dist/chunks/index-BwXDEK0m.js +0 -2
- package/dist/chunks/index-DQi2o8Lk.js +0 -2
- package/dist/chunks/index-uCOQ8Qn0.js +0 -2
- package/dist/commands/advanced/js.d.ts +0 -40
- package/dist/commands/animation/measure.d.ts +0 -43
- package/dist/commands/animation/settle.d.ts +0 -38
- package/dist/commands/animation/start-view-transition.d.ts +0 -38
- package/dist/commands/animation/take.d.ts +0 -41
- package/dist/commands/animation/transition.d.ts +0 -49
- package/dist/commands/async/fetch.d.ts +0 -61
- package/dist/commands/async/wait.d.ts +0 -51
- package/dist/commands/behaviors/install.d.ts +0 -40
- package/dist/commands/content/append.d.ts +0 -26
- package/dist/commands/content/insertion-base.d.ts +0 -60
- package/dist/commands/content/prepend.d.ts +0 -26
- package/dist/commands/control-flow/break.d.ts +0 -29
- package/dist/commands/control-flow/continue.d.ts +0 -29
- package/dist/commands/control-flow/exit.d.ts +0 -29
- package/dist/commands/control-flow/halt.d.ts +0 -39
- package/dist/commands/control-flow/if.d.ts +0 -58
- package/dist/commands/control-flow/repeat.d.ts +0 -50
- package/dist/commands/control-flow/return.d.ts +0 -33
- package/dist/commands/control-flow/signal-base.d.ts +0 -18
- package/dist/commands/control-flow/throw.d.ts +0 -34
- package/dist/commands/control-flow/unless.d.ts +0 -3
- package/dist/commands/data/clear.d.ts +0 -37
- package/dist/commands/data/decrement.d.ts +0 -3
- package/dist/commands/data/default.d.ts +0 -60
- package/dist/commands/data/get.d.ts +0 -35
- package/dist/commands/data/increment.d.ts +0 -42
- package/dist/commands/data/set.d.ts +0 -76
- package/dist/commands/decorators/index.d.ts +0 -14
- package/dist/commands/dom/add.d.ts +0 -44
- package/dist/commands/dom/close.d.ts +0 -32
- package/dist/commands/dom/dom-modification-base.d.ts +0 -48
- package/dist/commands/dom/empty.d.ts +0 -32
- package/dist/commands/dom/hide.d.ts +0 -28
- package/dist/commands/dom/make.d.ts +0 -34
- package/dist/commands/dom/open.d.ts +0 -34
- package/dist/commands/dom/process-partials.d.ts +0 -51
- package/dist/commands/dom/put.d.ts +0 -42
- package/dist/commands/dom/remove.d.ts +0 -46
- package/dist/commands/dom/reset.d.ts +0 -32
- package/dist/commands/dom/select.d.ts +0 -32
- package/dist/commands/dom/show.d.ts +0 -29
- package/dist/commands/dom/swap.d.ts +0 -65
- package/dist/commands/dom/toggle.d.ts +0 -69
- package/dist/commands/dom/visibility-base.d.ts +0 -22
- package/dist/commands/events/send.d.ts +0 -3
- package/dist/commands/events/trigger.d.ts +0 -49
- package/dist/commands/execution/blur.d.ts +0 -32
- package/dist/commands/execution/call.d.ts +0 -35
- package/dist/commands/execution/focus.d.ts +0 -32
- package/dist/commands/execution/pseudo-command.d.ts +0 -41
- package/dist/commands/helpers/attribute-manipulation.d.ts +0 -11
- package/dist/commands/helpers/attribute-target.d.ts +0 -9
- package/dist/commands/helpers/batch-dom-operations.d.ts +0 -12
- package/dist/commands/helpers/body-ops.d.ts +0 -10
- package/dist/commands/helpers/class-manipulation.d.ts +0 -11
- package/dist/commands/helpers/condition-helpers.d.ts +0 -4
- package/dist/commands/helpers/dom-mutation.d.ts +0 -16
- package/dist/commands/helpers/duration-parsing.d.ts +0 -8
- package/dist/commands/helpers/element-property-access.d.ts +0 -7
- package/dist/commands/helpers/element-resolution.d.ts +0 -16
- package/dist/commands/helpers/error-helpers.d.ts +0 -17
- package/dist/commands/helpers/event-helpers.d.ts +0 -13
- package/dist/commands/helpers/event-waiting.d.ts +0 -37
- package/dist/commands/helpers/index.d.ts +0 -32
- package/dist/commands/helpers/input-validator.d.ts +0 -23
- package/dist/commands/helpers/loop-executor.d.ts +0 -56
- package/dist/commands/helpers/numeric-target-parser.d.ts +0 -21
- package/dist/commands/helpers/property-target.d.ts +0 -20
- package/dist/commands/helpers/selector-type-detection.d.ts +0 -24
- package/dist/commands/helpers/slots.d.ts +0 -5
- package/dist/commands/helpers/smart-element.d.ts +0 -16
- package/dist/commands/helpers/style-manipulation.d.ts +0 -16
- package/dist/commands/helpers/target-elements.d.ts +0 -5
- package/dist/commands/helpers/temporal-modifiers.d.ts +0 -15
- package/dist/commands/helpers/url-argument-parser.d.ts +0 -13
- package/dist/commands/helpers/url-validation.d.ts +0 -7
- package/dist/commands/helpers/variable-access.d.ts +0 -13
- package/dist/commands/helpers/visibility-target-parser.d.ts +0 -15
- package/dist/commands/helpers/write-target.d.ts +0 -42
- package/dist/commands/index.cjs +0 -24168
- package/dist/commands/index.d.ts +0 -171
- package/dist/commands/index.mjs +0 -23981
- package/dist/commands/manifest.d.ts +0 -17
- package/dist/commands/navigation/go.d.ts +0 -58
- package/dist/commands/navigation/push-url.d.ts +0 -48
- package/dist/commands/navigation/replace-url.d.ts +0 -3
- package/dist/commands/navigation/scroll-to.d.ts +0 -43
- package/dist/commands/templates/render.d.ts +0 -47
- package/dist/commands/utility/beep.d.ts +0 -41
- package/dist/commands/utility/breakpoint.d.ts +0 -32
- package/dist/commands/utility/copy.d.ts +0 -41
- package/dist/commands/utility/log.d.ts +0 -36
- package/dist/commands/utility/pick.d.ts +0 -47
- package/dist/commands/utility/tell.d.ts +0 -39
- package/dist/compatibility/browser-bundle-classic.d.ts +0 -17
- package/dist/compatibility/browser-bundle-hybrid-complete.d.ts +0 -22
- package/dist/compatibility/browser-bundle-hybrid-hx.d.ts +0 -43
- package/dist/compatibility/browser-bundle-lite.d.ts +0 -15
- package/dist/compatibility/browser-bundle-modular.d.ts +0 -18
- package/dist/compatibility/browser-bundle-multilingual.d.ts +0 -19
- package/dist/compatibility/browser-bundle-semantic-complete.d.ts +0 -24
- package/dist/compatibility/browser-bundle-textshelf-minimal.d.ts +0 -16
- package/dist/compatibility/browser-bundle-textshelf-profile.d.ts +0 -18
- package/dist/compatibility/browser-modular.d.ts +0 -42
- package/dist/compatibility/browser-tests/helpers/semantic-page.d.ts +0 -3
- package/dist/compatibility/browser-tests/test-utils.d.ts +0 -21
- package/dist/compatibility/bundle-shell.d.ts +0 -13
- package/dist/compatibility/bundle-sources.d.ts +0 -4
- package/dist/compatibility/eval-hyperscript.d.ts +0 -16
- package/dist/compatibility/hyperscript-adapter.d.ts +0 -38
- package/dist/core/ast-property-utils.d.ts +0 -2
- package/dist/core/context.d.ts +0 -19
- package/dist/core/dom.d.ts +0 -15
- package/dist/core/evaluator-types.d.ts +0 -5
- package/dist/core/events.d.ts +0 -48
- package/dist/core/executor.d.ts +0 -34
- package/dist/core/expression-evaluator.d.ts +0 -6
- package/dist/core/expression-registry.d.ts +0 -8
- package/dist/core/scope-hooks.d.ts +0 -24
- package/dist/debug/debug-controller.d.ts +0 -62
- package/dist/debug/index.d.ts +0 -5
- package/dist/dom/attribute-processor.d.ts +0 -75
- package/dist/dom/detect-language.d.ts +0 -3
- package/dist/dom/minimal-attribute-processor.d.ts +0 -20
- package/dist/expressions/base-expression.d.ts +0 -27
- package/dist/expressions/bundles/common-expressions.d.ts +0 -10
- package/dist/expressions/bundles/core-expressions.d.ts +0 -8
- package/dist/expressions/bundles/full-expressions.d.ts +0 -11
- package/dist/expressions/bundles/index.d.ts +0 -7
- package/dist/expressions/collection/index.d.ts +0 -10
- package/dist/expressions/conversion/index.d.ts +0 -31
- package/dist/expressions/expression-tiers.d.ts +0 -13
- package/dist/expressions/index.cjs +0 -4331
- package/dist/expressions/index.d.ts +0 -13
- package/dist/expressions/index.mjs +0 -4312
- package/dist/expressions/logical/index.d.ts +0 -61
- package/dist/expressions/mathematical/index.d.ts +0 -80
- package/dist/expressions/positional/index.d.ts +0 -31
- package/dist/expressions/properties/index.d.ts +0 -27
- package/dist/expressions/property-access-utils.d.ts +0 -23
- package/dist/expressions/references/index.d.ts +0 -39
- package/dist/expressions/shared/comparison-utils.d.ts +0 -10
- package/dist/expressions/shared/index.d.ts +0 -10
- package/dist/expressions/shared/number-utils.d.ts +0 -8
- package/dist/expressions/shared/tracking.d.ts +0 -20
- package/dist/expressions/shared/validation-utils.d.ts +0 -13
- package/dist/expressions/special/index.d.ts +0 -78
- package/dist/expressions/type-helpers.d.ts +0 -11
- package/dist/expressions/type-registry.d.ts +0 -57
- package/dist/expressions/validation-helpers.d.ts +0 -15
- package/dist/htmx/hcon.d.ts +0 -9
- package/dist/htmx/htmx-attribute-processor.d.ts +0 -120
- package/dist/htmx/htmx-translator.d.ts +0 -22
- package/dist/htmx/i18n-hooks.d.ts +0 -18
- package/dist/htmx/i18n-orchestrator.d.ts +0 -16
- package/dist/htmx/index.d.ts +0 -3
- package/dist/htmx/lang-resolver.d.ts +0 -3
- package/dist/htmx/sse.d.ts +0 -60
- package/dist/htmx/ws.d.ts +0 -59
- package/dist/hyperfixi-browser-classic-i18n.js +0 -2
- package/dist/hyperfixi-browser.js +0 -2
- package/dist/hyperfixi-classic-i18n.js +0 -2
- package/dist/hyperfixi-hx-v4.js +0 -1
- package/dist/hyperfixi-hx.js +0 -1
- package/dist/hyperfixi-hybrid-complete.js +0 -1
- package/dist/hyperfixi-hybrid-hx.js +0 -1
- package/dist/hyperfixi-multilingual.js +0 -2
- package/dist/hyperfixi.mjs +0 -2
- package/dist/i18n/error-catalog.d.ts +0 -12
- package/dist/index.cjs +0 -29159
- package/dist/index.min.js +0 -2
- package/dist/lib/dom-globals-shim.d.ts +0 -2
- package/dist/lib/index.d.ts +0 -4
- package/dist/lib/morph-adapter.d.ts +0 -9
- package/dist/lib/swap-executor.d.ts +0 -12
- package/dist/lib/view-transitions.d.ts +0 -7
- package/dist/lokascript-browser-classic-i18n.js +0 -2
- package/dist/lokascript-browser.js +0 -2
- package/dist/lokascript-hybrid-complete.js +0 -1
- package/dist/lokascript-hybrid-hx.js +0 -1
- package/dist/lokascript-multilingual.js +0 -2
- package/dist/lse/index.cjs +0 -84
- package/dist/lse/index.d.ts +0 -15
- package/dist/lse/index.mjs +0 -71
- package/dist/multilingual/bridge.d.ts +0 -38
- package/dist/multilingual/schema-roles.d.ts +0 -3
- package/dist/parser/__types__/test-helpers.d.ts +0 -25
- package/dist/parser/command-grammar.d.ts +0 -14
- package/dist/parser/command-node-builder.d.ts +0 -46
- package/dist/parser/command-parsers/animation-commands.d.ts +0 -6
- package/dist/parser/command-parsers/async-commands.d.ts +0 -5
- package/dist/parser/command-parsers/control-flow-commands.d.ts +0 -7
- package/dist/parser/command-parsers/declared-commands.d.ts +0 -6
- package/dist/parser/command-parsers/dom-commands.d.ts +0 -11
- package/dist/parser/command-parsers/event-commands.d.ts +0 -4
- package/dist/parser/command-parsers/navigation-commands.d.ts +0 -6
- package/dist/parser/command-parsers/utility-commands.d.ts +0 -14
- package/dist/parser/command-parsers/variable-commands.d.ts +0 -12
- package/dist/parser/error-handler.d.ts +0 -34
- package/dist/parser/extensions.d.ts +0 -43
- package/dist/parser/full-parser.cjs +0 -7943
- package/dist/parser/full-parser.d.ts +0 -4
- package/dist/parser/full-parser.mjs +0 -7940
- package/dist/parser/helpers/ast-helpers.d.ts +0 -24
- package/dist/parser/helpers/parsing-helpers.d.ts +0 -19
- package/dist/parser/helpers/token-helpers.d.ts +0 -28
- package/dist/parser/hybrid/aliases.cjs +0 -44
- package/dist/parser/hybrid/aliases.d.ts +0 -7
- package/dist/parser/hybrid/aliases.mjs +0 -37
- package/dist/parser/hybrid/ast-types.cjs +0 -3
- package/dist/parser/hybrid/ast-types.d.ts +0 -97
- package/dist/parser/hybrid/ast-types.mjs +0 -2
- package/dist/parser/hybrid/index.cjs +0 -1185
- package/dist/parser/hybrid/index.d.ts +0 -6
- package/dist/parser/hybrid/index.mjs +0 -1175
- package/dist/parser/hybrid/parser-core.cjs +0 -1171
- package/dist/parser/hybrid/parser-core.d.ts +0 -69
- package/dist/parser/hybrid/parser-core.mjs +0 -1169
- package/dist/parser/hybrid/tokenizer.cjs +0 -255
- package/dist/parser/hybrid/tokenizer.d.ts +0 -9
- package/dist/parser/hybrid/tokenizer.mjs +0 -252
- package/dist/parser/hybrid-parser.cjs +0 -1249
- package/dist/parser/hybrid-parser.d.ts +0 -10
- package/dist/parser/hybrid-parser.mjs +0 -1242
- package/dist/parser/parser-constants.d.ts +0 -100
- package/dist/parser/parser-interface.d.ts +0 -12
- package/dist/parser/parser-types.d.ts +0 -164
- package/dist/parser/parser.d.ts +0 -165
- package/dist/parser/pratt-parser.d.ts +0 -41
- package/dist/parser/regex-parser.cjs +0 -422
- package/dist/parser/regex-parser.d.ts +0 -4
- package/dist/parser/regex-parser.mjs +0 -419
- package/dist/parser/runtime.d.ts +0 -14
- package/dist/parser/semantic-integration.d.ts +0 -17
- package/dist/parser/token-consumer.d.ts +0 -34
- package/dist/parser/token-predicates.d.ts +0 -77
- package/dist/parser/tokenizer.d.ts +0 -28
- package/dist/parser/types.d.ts +0 -105
- package/dist/performance/expression-cache.d.ts +0 -78
- package/dist/performance/integration.d.ts +0 -40
- package/dist/performance/production-monitor.d.ts +0 -67
- package/dist/registry/browser-types.cjs +0 -81
- package/dist/registry/browser-types.d.ts +0 -20
- package/dist/registry/browser-types.mjs +0 -76
- package/dist/registry/environment.cjs +0 -36
- package/dist/registry/environment.d.ts +0 -19
- package/dist/registry/environment.mjs +0 -30
- package/dist/registry/event-source-registry.d.ts +0 -54
- package/dist/registry/examples/server-commands.d.ts +0 -6
- package/dist/registry/examples/server-event-source.d.ts +0 -32
- package/dist/registry/index.cjs +0 -14055
- package/dist/registry/index.d.ts +0 -39
- package/dist/registry/index.mjs +0 -14039
- package/dist/registry/runtime-integration.d.ts +0 -23
- package/dist/registry/universal-types.cjs +0 -91
- package/dist/registry/universal-types.d.ts +0 -35
- package/dist/registry/universal-types.mjs +0 -86
- package/dist/runtime/cleanup-registry.d.ts +0 -47
- package/dist/runtime/command-adapter.d.ts +0 -69
- package/dist/runtime/environment.d.ts +0 -75
- package/dist/runtime/plugin.d.ts +0 -14
- package/dist/runtime/runtime-base.d.ts +0 -100
- package/dist/runtime/runtime-factory.d.ts +0 -29
- package/dist/runtime/runtime.d.ts +0 -20
- package/dist/runtime/temporal-modifiers.d.ts +0 -37
- package/dist/test-setup.d.ts +0 -28
- package/dist/test-utilities.d.ts +0 -39
- package/dist/types/base-types.d.ts +0 -231
- package/dist/types/code-fix.d.ts +0 -39
- package/dist/types/command-metadata.d.ts +0 -57
- package/dist/types/command-types.d.ts +0 -262
- package/dist/types/context-types.d.ts +0 -106
- package/dist/types/core-context.d.ts +0 -22
- package/dist/types/core.d.ts +0 -143
- package/dist/types/error-codes.d.ts +0 -207
- package/dist/types/expression-types.d.ts +0 -155
- package/dist/types/hooks.d.ts +0 -45
- package/dist/types/index.d.ts +0 -32
- package/dist/types/program.d.ts +0 -8
- package/dist/types/result.d.ts +0 -73
- package/dist/types/template-types.d.ts +0 -162
- package/dist/types/type-guards.d.ts +0 -24
- package/dist/types/unified-types.d.ts +0 -91
- package/dist/utils/beep.d.ts +0 -8
- package/dist/utils/debug-events.d.ts +0 -41
- package/dist/utils/debug.d.ts +0 -35
- package/dist/utils/dom-utils.d.ts +0 -16
- package/dist/utils/element-check.d.ts +0 -8
- package/dist/utils/keyboard-shortcuts.d.ts +0 -18
- package/dist/utils/performance.d.ts +0 -40
- package/dist/validation/command-pattern-validator.d.ts +0 -53
- package/dist/validation/common-validators.d.ts +0 -24
- package/dist/validation/lightweight-validators.d.ts +0 -113
- package/dist/validation/partial-validation-types.d.ts +0 -50
- package/dist/validation/partial-validator.d.ts +0 -6
- package/dist/validation/partial-warning-formatter.d.ts +0 -6
- package/dist/validation/validate-cli.d.ts +0 -41
- package/vocab/htmx/ar.js +0 -62
- package/vocab/htmx/bn.js +0 -65
- package/vocab/htmx/de.js +0 -83
- package/vocab/htmx/en.js +0 -24
- package/vocab/htmx/es.js +0 -79
- package/vocab/htmx/fr.js +0 -79
- package/vocab/htmx/he.js +0 -61
- package/vocab/htmx/hi.js +0 -81
- package/vocab/htmx/id.js +0 -76
- package/vocab/htmx/it.js +0 -79
- package/vocab/htmx/ja.js +0 -85
- package/vocab/htmx/ko.js +0 -81
- package/vocab/htmx/ms.js +0 -58
- package/vocab/htmx/pl.js +0 -80
- package/vocab/htmx/pt.js +0 -81
- package/vocab/htmx/qu.js +0 -83
- package/vocab/htmx/ru.js +0 -82
- package/vocab/htmx/sw.js +0 -79
- package/vocab/htmx/th.js +0 -67
- package/vocab/htmx/tl.js +0 -56
- package/vocab/htmx/tr.js +0 -86
- package/vocab/htmx/uk.js +0 -82
- package/vocab/htmx/vi.js +0 -59
- package/vocab/htmx/zh.js +0 -79
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { CommandCategory } from '../types/command-metadata';
|
|
2
|
-
export type CommandTier = 'lite' | 'lite-plus' | 'hybrid' | 'full';
|
|
3
|
-
export type UpstreamOrExtension = 'upstream' | 'extension' | 'unknown';
|
|
4
|
-
export interface CommandManifestEntry {
|
|
5
|
-
readonly name: string;
|
|
6
|
-
readonly category: CommandCategory;
|
|
7
|
-
readonly tier: CommandTier;
|
|
8
|
-
readonly upstreamOrExtension: UpstreamOrExtension;
|
|
9
|
-
readonly consolidationAliasOf?: string;
|
|
10
|
-
readonly multiword: boolean;
|
|
11
|
-
}
|
|
12
|
-
export declare const COMMAND_NAMES: readonly ["add", "append", "beep", "blur", "break", "breakpoint", "call", "clear", "close", "continue", "copy", "decrement", "default", "empty", "exit", "fetch", "focus", "get", "go", "halt", "hide", "if", "increment", "install", "js", "log", "make", "measure", "morph", "open", "pick", "prepend", "process", "pseudo-command", "push", "put", "remove", "render", "repeat", "replace", "reset", "return", "scroll", "select", "send", "set", "settle", "show", "start", "swap", "take", "tell", "throw", "toggle", "transition", "trigger", "unless", "wait"];
|
|
13
|
-
export type CommandName = (typeof COMMAND_NAMES)[number];
|
|
14
|
-
export declare const COMMAND_MANIFEST: readonly CommandManifestEntry[];
|
|
15
|
-
export declare const COMMAND_LIST_SPELLINGS: Readonly<Record<string, string>>;
|
|
16
|
-
export declare function toRegisteredName(listSpelling: string): string;
|
|
17
|
-
//# sourceMappingURL=manifest.d.ts.map
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import type { ExecutionContext, TypedExecutionContext } from '../../types/core';
|
|
2
|
-
import type { ExpressionEvaluator } from '../../core/expression-evaluator';
|
|
3
|
-
import { type DecoratedCommand } from '../decorators';
|
|
4
|
-
import type { CommandRaw } from '../../ast/command-slots';
|
|
5
|
-
export type GoCommandInput = {
|
|
6
|
-
kind: 'back';
|
|
7
|
-
} | {
|
|
8
|
-
kind: 'forward';
|
|
9
|
-
} | {
|
|
10
|
-
kind: 'url';
|
|
11
|
-
url: string;
|
|
12
|
-
newWindow: boolean;
|
|
13
|
-
} | {
|
|
14
|
-
kind: 'scroll';
|
|
15
|
-
target: HTMLElement;
|
|
16
|
-
position: {
|
|
17
|
-
vertical: string;
|
|
18
|
-
horizontal: string;
|
|
19
|
-
};
|
|
20
|
-
offset: number;
|
|
21
|
-
behavior: ScrollBehavior;
|
|
22
|
-
};
|
|
23
|
-
export interface GoCommandOutput {
|
|
24
|
-
result: string | HTMLElement;
|
|
25
|
-
type: 'back' | 'url' | 'scroll';
|
|
26
|
-
}
|
|
27
|
-
export declare class GoCommand implements DecoratedCommand {
|
|
28
|
-
static readonly metadata: {
|
|
29
|
-
readonly description: "Navigation functionality including URL navigation, element scrolling, and browser history";
|
|
30
|
-
readonly syntax: readonly ["go back", "go to url <url> [in new window]", "go to [position] [of] <element>"];
|
|
31
|
-
readonly examples: readonly ["go back", "go to url \"https://example.com\"", "go to url \"https://example.com\" in new window", "go to top of #header", "go to bottom of #footer smoothly"];
|
|
32
|
-
readonly sideEffects: readonly ["navigation", "scrolling"];
|
|
33
|
-
readonly category: "navigation";
|
|
34
|
-
readonly compatibility: "standard";
|
|
35
|
-
};
|
|
36
|
-
get metadata(): {
|
|
37
|
-
readonly description: "Navigation functionality including URL navigation, element scrolling, and browser history";
|
|
38
|
-
readonly syntax: readonly ["go back", "go to url <url> [in new window]", "go to [position] [of] <element>"];
|
|
39
|
-
readonly examples: readonly ["go back", "go to url \"https://example.com\"", "go to url \"https://example.com\" in new window", "go to top of #header", "go to bottom of #footer smoothly"];
|
|
40
|
-
readonly sideEffects: readonly ["navigation", "scrolling"];
|
|
41
|
-
readonly category: "navigation";
|
|
42
|
-
readonly compatibility: "standard";
|
|
43
|
-
};
|
|
44
|
-
readonly name: string;
|
|
45
|
-
parseInput(raw: CommandRaw<'go'>, evaluator: ExpressionEvaluator, context: ExecutionContext): Promise<GoCommandInput>;
|
|
46
|
-
execute(input: GoCommandInput, _context: TypedExecutionContext): Promise<GoCommandOutput>;
|
|
47
|
-
private isBareUrl;
|
|
48
|
-
private navigate;
|
|
49
|
-
private goHistory;
|
|
50
|
-
private isValidUrl;
|
|
51
|
-
private mapVerticalPosition;
|
|
52
|
-
private mapHorizontalPosition;
|
|
53
|
-
private calculateScrollPosition;
|
|
54
|
-
private resolveScrollTarget;
|
|
55
|
-
}
|
|
56
|
-
export declare const createGoCommand: () => GoCommand;
|
|
57
|
-
export default GoCommand;
|
|
58
|
-
//# sourceMappingURL=go.d.ts.map
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import type { ExecutionContext, TypedExecutionContext } from '../../types/core';
|
|
2
|
-
import type { ExpressionEvaluator } from '../../core/expression-evaluator';
|
|
3
|
-
import { type DecoratedCommand } from '../decorators';
|
|
4
|
-
import { type UrlCommandInput } from '../helpers/url-argument-parser';
|
|
5
|
-
import type { CommandRaw } from '../../ast/command-slots';
|
|
6
|
-
export type HistoryMode = 'push' | 'replace';
|
|
7
|
-
export interface HistoryCommandInput extends UrlCommandInput {
|
|
8
|
-
mode: HistoryMode;
|
|
9
|
-
}
|
|
10
|
-
export interface HistoryCommandOutput {
|
|
11
|
-
url: string;
|
|
12
|
-
title?: string;
|
|
13
|
-
mode: HistoryMode;
|
|
14
|
-
}
|
|
15
|
-
export declare class HistoryCommand implements DecoratedCommand {
|
|
16
|
-
static readonly metadata: {
|
|
17
|
-
readonly description: "Modify browser history URL without page reload";
|
|
18
|
-
readonly syntax: readonly ["push url <url>", "push url <url> with title <title>", "replace url <url>", "replace url <url> with title <title>"];
|
|
19
|
-
readonly examples: readonly ["push url \"/page/2\"", "push url \"/search\" with title \"Search Results\"", "replace url \"/search?q=test\"", "replace url \"/page\" with title \"Updated Page\""];
|
|
20
|
-
readonly sideEffects: readonly ["navigation"];
|
|
21
|
-
readonly aliases: readonly ["replace"];
|
|
22
|
-
readonly category: "navigation";
|
|
23
|
-
readonly compatibility: "lokascript-extension";
|
|
24
|
-
};
|
|
25
|
-
get metadata(): {
|
|
26
|
-
readonly description: "Modify browser history URL without page reload";
|
|
27
|
-
readonly syntax: readonly ["push url <url>", "push url <url> with title <title>", "replace url <url>", "replace url <url> with title <title>"];
|
|
28
|
-
readonly examples: readonly ["push url \"/page/2\"", "push url \"/search\" with title \"Search Results\"", "replace url \"/search?q=test\"", "replace url \"/page\" with title \"Updated Page\""];
|
|
29
|
-
readonly sideEffects: readonly ["navigation"];
|
|
30
|
-
readonly aliases: readonly ["replace"];
|
|
31
|
-
readonly category: "navigation";
|
|
32
|
-
readonly compatibility: "lokascript-extension";
|
|
33
|
-
};
|
|
34
|
-
readonly name: string;
|
|
35
|
-
parseInput(raw: CommandRaw<'push'>, evaluator: ExpressionEvaluator, context: ExecutionContext): Promise<HistoryCommandInput>;
|
|
36
|
-
execute(input: HistoryCommandInput, _context: TypedExecutionContext): Promise<HistoryCommandOutput>;
|
|
37
|
-
}
|
|
38
|
-
export { HistoryCommand as PushUrlCommand };
|
|
39
|
-
export { HistoryCommand as ReplaceUrlCommand };
|
|
40
|
-
export type PushUrlCommandInput = HistoryCommandInput;
|
|
41
|
-
export type ReplaceUrlCommandInput = HistoryCommandInput;
|
|
42
|
-
export type PushUrlCommandOutput = HistoryCommandOutput;
|
|
43
|
-
export type ReplaceUrlCommandOutput = HistoryCommandOutput;
|
|
44
|
-
export declare const createHistoryCommand: () => HistoryCommand;
|
|
45
|
-
export declare const createPushUrlCommand: () => HistoryCommand;
|
|
46
|
-
export declare const createReplaceUrlCommand: () => HistoryCommand;
|
|
47
|
-
export default HistoryCommand;
|
|
48
|
-
//# sourceMappingURL=push-url.d.ts.map
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import type { ExecutionContext, TypedExecutionContext } from '../../types/core';
|
|
2
|
-
import type { ExpressionEvaluator } from '../../core/expression-evaluator';
|
|
3
|
-
import { type DecoratedCommand } from '../decorators';
|
|
4
|
-
import type { CommandRaw } from '../../ast/command-slots';
|
|
5
|
-
export interface ScrollCommandInput {
|
|
6
|
-
target: HTMLElement;
|
|
7
|
-
position?: string;
|
|
8
|
-
behavior?: ScrollBehavior;
|
|
9
|
-
direction?: 'up' | 'down' | 'left' | 'right';
|
|
10
|
-
offset?: number;
|
|
11
|
-
}
|
|
12
|
-
export interface ScrollCommandOutput {
|
|
13
|
-
element: HTMLElement;
|
|
14
|
-
position: ScrollLogicalPosition;
|
|
15
|
-
smooth: boolean;
|
|
16
|
-
}
|
|
17
|
-
export declare class ScrollCommand implements DecoratedCommand {
|
|
18
|
-
static readonly metadata: {
|
|
19
|
-
readonly description: "Scroll an element into view (upstream _hyperscript 0.9.90)";
|
|
20
|
-
readonly syntax: readonly ["scroll to <target>", "scroll to top of <target>", "scroll to <target> smoothly", "scroll [<target>] [up|down|left|right] by <n> [px]"];
|
|
21
|
-
readonly examples: readonly ["scroll to #top", "scroll to bottom of #chat", "scroll to me smoothly", "scroll down by 200"];
|
|
22
|
-
readonly sideEffects: readonly ["scrolling"];
|
|
23
|
-
readonly category: "navigation";
|
|
24
|
-
readonly compatibility: "standard";
|
|
25
|
-
};
|
|
26
|
-
get metadata(): {
|
|
27
|
-
readonly description: "Scroll an element into view (upstream _hyperscript 0.9.90)";
|
|
28
|
-
readonly syntax: readonly ["scroll to <target>", "scroll to top of <target>", "scroll to <target> smoothly", "scroll [<target>] [up|down|left|right] by <n> [px]"];
|
|
29
|
-
readonly examples: readonly ["scroll to #top", "scroll to bottom of #chat", "scroll to me smoothly", "scroll down by 200"];
|
|
30
|
-
readonly sideEffects: readonly ["scrolling"];
|
|
31
|
-
readonly category: "navigation";
|
|
32
|
-
readonly compatibility: "standard";
|
|
33
|
-
};
|
|
34
|
-
readonly name: string;
|
|
35
|
-
parseInput(raw: CommandRaw<'scroll'>, evaluator: ExpressionEvaluator, context: ExecutionContext): Promise<ScrollCommandInput>;
|
|
36
|
-
execute(input: ScrollCommandInput, _context: TypedExecutionContext): Promise<ScrollCommandOutput>;
|
|
37
|
-
private executeScrollBy;
|
|
38
|
-
private scrollOptions;
|
|
39
|
-
private resolveTarget;
|
|
40
|
-
}
|
|
41
|
-
export declare const createScrollCommand: () => ScrollCommand;
|
|
42
|
-
export default ScrollCommand;
|
|
43
|
-
//# sourceMappingURL=scroll-to.d.ts.map
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import type { ExecutionContext, TypedExecutionContext } from '../../types/core';
|
|
2
|
-
import type { ExpressionEvaluator } from '../../core/expression-evaluator';
|
|
3
|
-
import type { CommandRaw } from '../../ast/command-slots';
|
|
4
|
-
export interface RenderCommandInput {
|
|
5
|
-
template: unknown;
|
|
6
|
-
variables?: Record<string, unknown>;
|
|
7
|
-
}
|
|
8
|
-
export interface RenderCommandOutput {
|
|
9
|
-
element: Element | null;
|
|
10
|
-
rendered: string;
|
|
11
|
-
directivesProcessed: string[];
|
|
12
|
-
}
|
|
13
|
-
export declare class RenderCommand {
|
|
14
|
-
readonly name = "render";
|
|
15
|
-
static readonly metadata: {
|
|
16
|
-
readonly description: "Render templates with @if, @else, and @repeat directives";
|
|
17
|
-
readonly syntax: readonly ["render <template>", "render <template> with <name>: <value>, ..."];
|
|
18
|
-
readonly examples: readonly ["render myTemplate", "render myTemplate with name: \"Alice\"", "render \"<template>Hello ${name}!</template>\" with name: \"World\"", "render template with items: data"];
|
|
19
|
-
readonly category: "templates";
|
|
20
|
-
readonly compatibility: "standard";
|
|
21
|
-
readonly sideEffects: readonly ["dom-creation", "template-execution"];
|
|
22
|
-
};
|
|
23
|
-
get metadata(): {
|
|
24
|
-
readonly description: "Render templates with @if, @else, and @repeat directives";
|
|
25
|
-
readonly syntax: readonly ["render <template>", "render <template> with <name>: <value>, ..."];
|
|
26
|
-
readonly examples: readonly ["render myTemplate", "render myTemplate with name: \"Alice\"", "render \"<template>Hello ${name}!</template>\" with name: \"World\"", "render template with items: data"];
|
|
27
|
-
readonly category: "templates";
|
|
28
|
-
readonly compatibility: "standard";
|
|
29
|
-
readonly sideEffects: readonly ["dom-creation", "template-execution"];
|
|
30
|
-
};
|
|
31
|
-
parseInput(raw: CommandRaw<'render'>, evaluator: ExpressionEvaluator, context: ExecutionContext): Promise<RenderCommandInput>;
|
|
32
|
-
execute(input: RenderCommandInput, context: TypedExecutionContext): Promise<RenderCommandOutput>;
|
|
33
|
-
private extractTemplateContent;
|
|
34
|
-
private createTemplateContext;
|
|
35
|
-
private processTemplate;
|
|
36
|
-
private processRepeatDirective;
|
|
37
|
-
private processIfDirective;
|
|
38
|
-
private extractDirectiveBlock;
|
|
39
|
-
private extractIfElseBlock;
|
|
40
|
-
private processVariableInterpolation;
|
|
41
|
-
private evaluateExpression;
|
|
42
|
-
private resolveVariable;
|
|
43
|
-
private escapeHtml;
|
|
44
|
-
private createDOMElement;
|
|
45
|
-
}
|
|
46
|
-
export declare function createRenderCommand(): RenderCommand;
|
|
47
|
-
//# sourceMappingURL=render.d.ts.map
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import type { ExecutionContext, TypedExecutionContext } from '../../types/core';
|
|
2
|
-
import type { ExpressionEvaluator } from '../../core/expression-evaluator';
|
|
3
|
-
import { type DecoratedCommand } from '../decorators';
|
|
4
|
-
import type { CommandRaw } from '../../ast/command-slots';
|
|
5
|
-
export interface BeepCommandInput {
|
|
6
|
-
expressions?: unknown[];
|
|
7
|
-
}
|
|
8
|
-
export interface BeepCommandOutput {
|
|
9
|
-
expressionCount: number;
|
|
10
|
-
debugged: boolean;
|
|
11
|
-
outputs: Array<{
|
|
12
|
-
value: unknown;
|
|
13
|
-
type: string;
|
|
14
|
-
representation: string;
|
|
15
|
-
}>;
|
|
16
|
-
}
|
|
17
|
-
export declare class BeepCommand implements DecoratedCommand {
|
|
18
|
-
static readonly metadata: {
|
|
19
|
-
readonly description: "Debug output for expressions with type information";
|
|
20
|
-
readonly syntax: readonly ["beep!", "beep! <expression>", "beep! <expression>, <expression>, ..."];
|
|
21
|
-
readonly examples: readonly ["beep!", "beep! myValue", "beep! me.id, me.className"];
|
|
22
|
-
readonly sideEffects: readonly ["console-output", "debugging"];
|
|
23
|
-
readonly category: "utility";
|
|
24
|
-
readonly compatibility: "lokascript-extension";
|
|
25
|
-
};
|
|
26
|
-
get metadata(): {
|
|
27
|
-
readonly description: "Debug output for expressions with type information";
|
|
28
|
-
readonly syntax: readonly ["beep!", "beep! <expression>", "beep! <expression>, <expression>, ..."];
|
|
29
|
-
readonly examples: readonly ["beep!", "beep! myValue", "beep! me.id, me.className"];
|
|
30
|
-
readonly sideEffects: readonly ["console-output", "debugging"];
|
|
31
|
-
readonly category: "utility";
|
|
32
|
-
readonly compatibility: "lokascript-extension";
|
|
33
|
-
};
|
|
34
|
-
readonly name: string;
|
|
35
|
-
parseInput(raw: CommandRaw<'beep'>, evaluator: ExpressionEvaluator, context: ExecutionContext): Promise<BeepCommandInput>;
|
|
36
|
-
execute(input: BeepCommandInput, context: TypedExecutionContext): Promise<BeepCommandOutput>;
|
|
37
|
-
private debugContext;
|
|
38
|
-
}
|
|
39
|
-
export declare const createBeepCommand: () => BeepCommand;
|
|
40
|
-
export default BeepCommand;
|
|
41
|
-
//# sourceMappingURL=beep.d.ts.map
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { ExecutionContext, TypedExecutionContext } from '../../types/base-types';
|
|
2
|
-
import type { ExpressionEvaluator } from '../../core/expression-evaluator';
|
|
3
|
-
import { type DecoratedCommand } from '../decorators';
|
|
4
|
-
import type { CommandRaw } from '../../ast/command-slots';
|
|
5
|
-
export interface BreakpointCommandInput {
|
|
6
|
-
_tag?: 'breakpoint';
|
|
7
|
-
}
|
|
8
|
-
export declare class BreakpointCommand implements DecoratedCommand {
|
|
9
|
-
static readonly metadata: {
|
|
10
|
-
readonly description: "Drop into the debugger (emits a debugger; statement)";
|
|
11
|
-
readonly syntax: readonly ["breakpoint"];
|
|
12
|
-
readonly examples: readonly ["breakpoint", "on click breakpoint"];
|
|
13
|
-
readonly sideEffects: readonly ["debugging"];
|
|
14
|
-
readonly category: "utility";
|
|
15
|
-
readonly compatibility: "standard";
|
|
16
|
-
};
|
|
17
|
-
get metadata(): {
|
|
18
|
-
readonly description: "Drop into the debugger (emits a debugger; statement)";
|
|
19
|
-
readonly syntax: readonly ["breakpoint"];
|
|
20
|
-
readonly examples: readonly ["breakpoint", "on click breakpoint"];
|
|
21
|
-
readonly sideEffects: readonly ["debugging"];
|
|
22
|
-
readonly category: "utility";
|
|
23
|
-
readonly compatibility: "standard";
|
|
24
|
-
};
|
|
25
|
-
readonly name: string;
|
|
26
|
-
parseInput(_raw: CommandRaw<'breakpoint'>, _evaluator: ExpressionEvaluator, _context: ExecutionContext): Promise<BreakpointCommandInput>;
|
|
27
|
-
execute(_input: BreakpointCommandInput, _context: TypedExecutionContext): Promise<void>;
|
|
28
|
-
validate(input: unknown): input is BreakpointCommandInput;
|
|
29
|
-
}
|
|
30
|
-
export declare const createBreakpointCommand: () => BreakpointCommand;
|
|
31
|
-
export default BreakpointCommand;
|
|
32
|
-
//# sourceMappingURL=breakpoint.d.ts.map
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import type { ExecutionContext, TypedExecutionContext } from '../../types/core';
|
|
2
|
-
import type { ExpressionEvaluator } from '../../core/expression-evaluator';
|
|
3
|
-
import { type DecoratedCommand } from '../decorators';
|
|
4
|
-
import type { CommandRaw } from '../../ast/command-slots';
|
|
5
|
-
export interface CopyCommandInput {
|
|
6
|
-
source: string | HTMLElement;
|
|
7
|
-
format?: 'text' | 'html';
|
|
8
|
-
}
|
|
9
|
-
export interface CopyCommandOutput {
|
|
10
|
-
success: boolean;
|
|
11
|
-
text: string;
|
|
12
|
-
format: 'text' | 'html';
|
|
13
|
-
method: 'clipboard-api' | 'execCommand' | 'fallback';
|
|
14
|
-
}
|
|
15
|
-
export declare class CopyCommand implements DecoratedCommand {
|
|
16
|
-
static readonly metadata: {
|
|
17
|
-
readonly description: "Copy text or element content to the clipboard";
|
|
18
|
-
readonly syntax: readonly ["copy <source>", "copy <source> to clipboard"];
|
|
19
|
-
readonly examples: readonly ["copy \"Hello World\"", "copy #code-snippet", "copy my textContent"];
|
|
20
|
-
readonly sideEffects: readonly ["clipboard-write", "custom-events"];
|
|
21
|
-
readonly category: "utility";
|
|
22
|
-
readonly compatibility: "lokascript-extension";
|
|
23
|
-
};
|
|
24
|
-
get metadata(): {
|
|
25
|
-
readonly description: "Copy text or element content to the clipboard";
|
|
26
|
-
readonly syntax: readonly ["copy <source>", "copy <source> to clipboard"];
|
|
27
|
-
readonly examples: readonly ["copy \"Hello World\"", "copy #code-snippet", "copy my textContent"];
|
|
28
|
-
readonly sideEffects: readonly ["clipboard-write", "custom-events"];
|
|
29
|
-
readonly category: "utility";
|
|
30
|
-
readonly compatibility: "lokascript-extension";
|
|
31
|
-
};
|
|
32
|
-
readonly name: string;
|
|
33
|
-
parseInput(raw: CommandRaw<'copy'>, evaluator: ExpressionEvaluator, context: ExecutionContext): Promise<CopyCommandInput>;
|
|
34
|
-
execute(input: CopyCommandInput, context: TypedExecutionContext): Promise<CopyCommandOutput>;
|
|
35
|
-
private extractText;
|
|
36
|
-
private copyUsingExecCommand;
|
|
37
|
-
private dispatchCopyEvent;
|
|
38
|
-
}
|
|
39
|
-
export declare const createCopyCommand: () => CopyCommand;
|
|
40
|
-
export default CopyCommand;
|
|
41
|
-
//# sourceMappingURL=copy.d.ts.map
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import type { ExecutionContext, TypedExecutionContext } from '../../types/core';
|
|
2
|
-
import type { ExpressionEvaluator } from '../../core/expression-evaluator';
|
|
3
|
-
import { type DecoratedCommand } from '../decorators';
|
|
4
|
-
import type { CommandRaw } from '../../ast/command-slots';
|
|
5
|
-
export interface LogCommandInput {
|
|
6
|
-
values: unknown[];
|
|
7
|
-
}
|
|
8
|
-
export interface LogCommandOutput {
|
|
9
|
-
values: unknown[];
|
|
10
|
-
loggedAt: Date;
|
|
11
|
-
}
|
|
12
|
-
export declare class LogCommand implements DecoratedCommand {
|
|
13
|
-
static readonly metadata: {
|
|
14
|
-
readonly description: "Log values to the console";
|
|
15
|
-
readonly syntax: "log [<values...>]";
|
|
16
|
-
readonly examples: readonly ["log \"Hello World\"", "log me.value", "log x y z", "log \"Result:\" result"];
|
|
17
|
-
readonly sideEffects: readonly ["console-output"];
|
|
18
|
-
readonly category: "utility";
|
|
19
|
-
readonly compatibility: "standard";
|
|
20
|
-
};
|
|
21
|
-
get metadata(): {
|
|
22
|
-
readonly description: "Log values to the console";
|
|
23
|
-
readonly syntax: "log [<values...>]";
|
|
24
|
-
readonly examples: readonly ["log \"Hello World\"", "log me.value", "log x y z", "log \"Result:\" result"];
|
|
25
|
-
readonly sideEffects: readonly ["console-output"];
|
|
26
|
-
readonly category: "utility";
|
|
27
|
-
readonly compatibility: "standard";
|
|
28
|
-
};
|
|
29
|
-
readonly name: string;
|
|
30
|
-
parseInput(raw: CommandRaw<'log'>, evaluator: ExpressionEvaluator, context: ExecutionContext): Promise<LogCommandInput>;
|
|
31
|
-
execute(input: LogCommandInput, _context: TypedExecutionContext): Promise<undefined>;
|
|
32
|
-
validate(input: unknown): input is LogCommandInput;
|
|
33
|
-
}
|
|
34
|
-
export declare const createLogCommand: () => LogCommand;
|
|
35
|
-
export default LogCommand;
|
|
36
|
-
//# sourceMappingURL=log.d.ts.map
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import type { ExecutionContext, TypedExecutionContext } from '../../types/core';
|
|
2
|
-
import type { ExpressionEvaluator } from '../../core/expression-evaluator';
|
|
3
|
-
import { type DecoratedCommand } from '../decorators';
|
|
4
|
-
import type { CommandRaw } from '../../ast/command-slots';
|
|
5
|
-
export interface PickCommandInput {
|
|
6
|
-
variant?: 'first' | 'last' | 'random' | 'range' | 'match' | 'matches';
|
|
7
|
-
items?: unknown[];
|
|
8
|
-
array?: unknown[];
|
|
9
|
-
count?: number;
|
|
10
|
-
rangeStart?: number | 'start';
|
|
11
|
-
rangeEnd?: number | 'end';
|
|
12
|
-
rangeMode?: 'default' | 'inclusive' | 'exclusive';
|
|
13
|
-
source?: string;
|
|
14
|
-
regex?: string;
|
|
15
|
-
flags?: string;
|
|
16
|
-
}
|
|
17
|
-
export interface PickCommandOutput {
|
|
18
|
-
selectedItem: unknown;
|
|
19
|
-
selectedIndex?: number;
|
|
20
|
-
sourceLength: number;
|
|
21
|
-
sourceType: 'items' | 'array' | 'string';
|
|
22
|
-
variant: PickCommandInput['variant'];
|
|
23
|
-
}
|
|
24
|
-
export declare class PickCommand implements DecoratedCommand {
|
|
25
|
-
static readonly metadata: {
|
|
26
|
-
readonly description: "Select from a collection (first/last/random/range/regex match)";
|
|
27
|
-
readonly syntax: readonly ["pick first <count> of <expr>", "pick last <count> of <expr>", "pick random [<count>] of <expr>", "pick items <i> to <j> of <expr>", "pick match of <regex> from <expr>", "pick from <array>", "pick <item1>, <item2>, ..."];
|
|
28
|
-
readonly examples: readonly ["pick first 3 of items", "pick last 2 of items", "pick random 2 of items", "pick items 1 to 3 of items", "pick match of \"[0-9]+\" from text", "pick from colors", "pick \"red\", \"green\", \"blue\""];
|
|
29
|
-
readonly sideEffects: readonly ["random-selection"];
|
|
30
|
-
readonly category: "utility";
|
|
31
|
-
readonly compatibility: "standard";
|
|
32
|
-
};
|
|
33
|
-
get metadata(): {
|
|
34
|
-
readonly description: "Select from a collection (first/last/random/range/regex match)";
|
|
35
|
-
readonly syntax: readonly ["pick first <count> of <expr>", "pick last <count> of <expr>", "pick random [<count>] of <expr>", "pick items <i> to <j> of <expr>", "pick match of <regex> from <expr>", "pick from <array>", "pick <item1>, <item2>, ..."];
|
|
36
|
-
readonly examples: readonly ["pick first 3 of items", "pick last 2 of items", "pick random 2 of items", "pick items 1 to 3 of items", "pick match of \"[0-9]+\" from text", "pick from colors", "pick \"red\", \"green\", \"blue\""];
|
|
37
|
-
readonly sideEffects: readonly ["random-selection"];
|
|
38
|
-
readonly category: "utility";
|
|
39
|
-
readonly compatibility: "standard";
|
|
40
|
-
};
|
|
41
|
-
readonly name: string;
|
|
42
|
-
parseInput(raw: CommandRaw<'pick'>, evaluator: ExpressionEvaluator, context: ExecutionContext): Promise<PickCommandInput>;
|
|
43
|
-
execute(input: PickCommandInput, context: TypedExecutionContext): Promise<PickCommandOutput>;
|
|
44
|
-
}
|
|
45
|
-
export declare const createPickCommand: () => PickCommand;
|
|
46
|
-
export default PickCommand;
|
|
47
|
-
//# sourceMappingURL=pick.d.ts.map
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import type { ExecutionContext, TypedExecutionContext } from '../../types/core';
|
|
2
|
-
import type { ExpressionEvaluator } from '../../core/expression-evaluator';
|
|
3
|
-
import { type DecoratedCommand } from '../decorators';
|
|
4
|
-
import type { CommandRaw } from '../../ast/command-slots';
|
|
5
|
-
import type { ExecutionSignal } from '../../types/result';
|
|
6
|
-
import type { Op } from '../../types/program';
|
|
7
|
-
export interface TellCommandInput {
|
|
8
|
-
target: HTMLElement | HTMLElement[] | string;
|
|
9
|
-
commands: Op[];
|
|
10
|
-
}
|
|
11
|
-
export interface TellCommandOutput {
|
|
12
|
-
targetElements: HTMLElement[];
|
|
13
|
-
commandResults: any[];
|
|
14
|
-
executionCount: number;
|
|
15
|
-
}
|
|
16
|
-
export declare class TellCommand implements DecoratedCommand {
|
|
17
|
-
static readonly metadata: {
|
|
18
|
-
readonly description: "Execute commands in the context of target elements";
|
|
19
|
-
readonly syntax: readonly ["tell <target> <command> [<command> ...]"];
|
|
20
|
-
readonly examples: readonly ["tell #sidebar hide", "tell .buttons add .disabled", "tell closest <form/> submit"];
|
|
21
|
-
readonly sideEffects: readonly ["context-switching", "command-execution"];
|
|
22
|
-
readonly category: "utility";
|
|
23
|
-
readonly compatibility: "standard";
|
|
24
|
-
};
|
|
25
|
-
get metadata(): {
|
|
26
|
-
readonly description: "Execute commands in the context of target elements";
|
|
27
|
-
readonly syntax: readonly ["tell <target> <command> [<command> ...]"];
|
|
28
|
-
readonly examples: readonly ["tell #sidebar hide", "tell .buttons add .disabled", "tell closest <form/> submit"];
|
|
29
|
-
readonly sideEffects: readonly ["context-switching", "command-execution"];
|
|
30
|
-
readonly category: "utility";
|
|
31
|
-
readonly compatibility: "standard";
|
|
32
|
-
};
|
|
33
|
-
readonly name: string;
|
|
34
|
-
parseInput(raw: CommandRaw<'tell'>, evaluator: ExpressionEvaluator, context: ExecutionContext): Promise<TellCommandInput>;
|
|
35
|
-
execute(input: TellCommandInput, context: TypedExecutionContext): Promise<TellCommandOutput | ExecutionSignal>;
|
|
36
|
-
}
|
|
37
|
-
export declare const createTellCommand: () => TellCommand;
|
|
38
|
-
export default TellCommand;
|
|
39
|
-
//# sourceMappingURL=tell.d.ts.map
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { createContext } from '../core/context';
|
|
2
|
-
declare const api: {
|
|
3
|
-
runtime: {
|
|
4
|
-
parse: (code: string) => import("../parser/parser").ParseResult;
|
|
5
|
-
execute: (code: string, context?: any) => Promise<unknown>;
|
|
6
|
-
};
|
|
7
|
-
parse: (code: string) => import("../parser/parser").ParseResult;
|
|
8
|
-
execute: (code: string, context?: any) => Promise<unknown>;
|
|
9
|
-
createContext: typeof createContext;
|
|
10
|
-
attributeProcessor: import("../dom/minimal-attribute-processor").MinimalAttributeProcessor;
|
|
11
|
-
version: string;
|
|
12
|
-
commands: string[];
|
|
13
|
-
eval: (code: string, context?: any) => Promise<unknown>;
|
|
14
|
-
init: () => Promise<void>;
|
|
15
|
-
};
|
|
16
|
-
export default api;
|
|
17
|
-
//# sourceMappingURL=browser-bundle-classic.d.ts.map
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { tokenize } from '../parser/hybrid/tokenizer';
|
|
2
|
-
import type { ASTNode } from '../parser/hybrid/ast-types';
|
|
3
|
-
import { addCommandAliases, addEventAliases } from '../parser/hybrid/aliases';
|
|
4
|
-
import { type BundleShellApi } from './bundle-shell';
|
|
5
|
-
interface HybridCompleteExtras {
|
|
6
|
-
addAliases: typeof addCommandAliases;
|
|
7
|
-
addEventAliases: typeof addEventAliases;
|
|
8
|
-
tokenize: typeof tokenize;
|
|
9
|
-
evaluate: typeof evaluate;
|
|
10
|
-
}
|
|
11
|
-
export interface Context {
|
|
12
|
-
me: Element;
|
|
13
|
-
event?: Event;
|
|
14
|
-
it?: any;
|
|
15
|
-
you?: Element;
|
|
16
|
-
locals: Map<string, any>;
|
|
17
|
-
globals: Map<string, any>;
|
|
18
|
-
}
|
|
19
|
-
declare function evaluate(node: ASTNode, ctx: Context): Promise<any>;
|
|
20
|
-
declare const api: BundleShellApi<ASTNode> & HybridCompleteExtras;
|
|
21
|
-
export default api;
|
|
22
|
-
//# sourceMappingURL=browser-bundle-hybrid-complete.d.ts.map
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { HtmxAttributeProcessor, FIXI_ATTRS, HTMX_ATTRS, type HtmxProcessorOptions, type FxInitEventDetail, type FxConfigEventDetail, type FxAfterEventDetail, type FxFinallyEventDetail } from '../htmx/htmx-attribute-processor.js';
|
|
2
|
-
import { translateToHyperscript, hasHtmxAttributes, hasFxAttributes, hasAnyAttributes, type HtmxConfig } from '../htmx/htmx-translator.js';
|
|
3
|
-
interface HtmxCompatOptions extends HtmxProcessorOptions {
|
|
4
|
-
processHyperscript?: boolean;
|
|
5
|
-
}
|
|
6
|
-
declare function enableHtmxCompatibility(options?: HtmxCompatOptions): void;
|
|
7
|
-
declare function disableHtmxCompatibility(): void;
|
|
8
|
-
declare function getHtmxProcessor(): HtmxAttributeProcessor | null;
|
|
9
|
-
declare function translateHtmx(element: Element): string;
|
|
10
|
-
declare const api: {
|
|
11
|
-
version: string;
|
|
12
|
-
enableHtmxCompatibility: typeof enableHtmxCompatibility;
|
|
13
|
-
disableHtmxCompatibility: typeof disableHtmxCompatibility;
|
|
14
|
-
getHtmxProcessor: typeof getHtmxProcessor;
|
|
15
|
-
translateHtmx: typeof translateHtmx;
|
|
16
|
-
hasHtmxAttributes: typeof hasHtmxAttributes;
|
|
17
|
-
hasFxAttributes: typeof hasFxAttributes;
|
|
18
|
-
hasAnyAttributes: typeof hasAnyAttributes;
|
|
19
|
-
HtmxAttributeProcessor: typeof HtmxAttributeProcessor;
|
|
20
|
-
translateToHyperscript: typeof translateToHyperscript;
|
|
21
|
-
features: {
|
|
22
|
-
htmx: boolean;
|
|
23
|
-
fixi: boolean;
|
|
24
|
-
hyperscript: boolean;
|
|
25
|
-
};
|
|
26
|
-
htmxAttributes: string[];
|
|
27
|
-
fixiAttributes: string[];
|
|
28
|
-
fixiEvents: string[];
|
|
29
|
-
parse: (code: string) => import("../parser/hybrid-parser.js").HybridASTNode;
|
|
30
|
-
execute: (code: string, element?: Element) => Promise<unknown>;
|
|
31
|
-
init: (root?: Element | Document) => void;
|
|
32
|
-
process: (root?: Element | Document) => void;
|
|
33
|
-
commands: string[];
|
|
34
|
-
blocks?: string[];
|
|
35
|
-
addAliases: typeof import("../parser/hybrid/aliases.js").addCommandAliases;
|
|
36
|
-
addEventAliases: typeof import("../parser/hybrid/aliases.js").addEventAliases;
|
|
37
|
-
tokenize: typeof import("../parser/hybrid-parser.js").tokenize;
|
|
38
|
-
evaluate: (node: import("../parser/hybrid-parser.js").HybridASTNode, ctx: import("./browser-bundle-hybrid-complete.js").Context) => Promise<any>;
|
|
39
|
-
};
|
|
40
|
-
export default api;
|
|
41
|
-
export { enableHtmxCompatibility, disableHtmxCompatibility, translateHtmx, HtmxAttributeProcessor, hasFxAttributes, hasAnyAttributes, FIXI_ATTRS, HTMX_ATTRS, };
|
|
42
|
-
export type { HtmxConfig, HtmxCompatOptions, HtmxProcessorOptions, FxInitEventDetail, FxConfigEventDetail, FxAfterEventDetail, FxFinallyEventDetail, };
|
|
43
|
-
//# sourceMappingURL=browser-bundle-hybrid-hx.d.ts.map
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { type BundleShellApi } from './bundle-shell';
|
|
2
|
-
interface LiteCommand {
|
|
3
|
-
name: string;
|
|
4
|
-
args: string[];
|
|
5
|
-
target?: string;
|
|
6
|
-
modifier?: string;
|
|
7
|
-
}
|
|
8
|
-
interface LiteEventHandler {
|
|
9
|
-
event: string;
|
|
10
|
-
filter?: string;
|
|
11
|
-
commands: LiteCommand[];
|
|
12
|
-
}
|
|
13
|
-
declare const api: BundleShellApi<LiteEventHandler | LiteCommand[]>;
|
|
14
|
-
export default api;
|
|
15
|
-
//# sourceMappingURL=browser-bundle-lite.d.ts.map
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { createRuntime, type LokaScriptRuntime } from '../runtime/runtime-factory';
|
|
2
|
-
import { createExpressionRegistry } from '../core/expression-registry';
|
|
3
|
-
declare const hyperfixi: LokaScriptRuntime;
|
|
4
|
-
declare const api: {
|
|
5
|
-
version: string;
|
|
6
|
-
parse: (code: string) => any;
|
|
7
|
-
execute: (code: string, element?: Element) => Promise<unknown>;
|
|
8
|
-
run: (code: string, element?: Element) => Promise<unknown>;
|
|
9
|
-
init: () => void;
|
|
10
|
-
process: typeof processElements;
|
|
11
|
-
runtime: import("..").RuntimeBase;
|
|
12
|
-
commands: string[];
|
|
13
|
-
parserName: string;
|
|
14
|
-
};
|
|
15
|
-
declare function processElements(root?: Element | Document): void;
|
|
16
|
-
export default api;
|
|
17
|
-
export { hyperfixi, api, processElements, createRuntime, createExpressionRegistry, };
|
|
18
|
-
//# sourceMappingURL=browser-bundle-modular.d.ts.map
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { createContext } from '../core/context';
|
|
2
|
-
import type { ASTNode } from '../types/base-types';
|
|
3
|
-
declare const api: {
|
|
4
|
-
execute(code: string, lang: string, context?: any): Promise<any>;
|
|
5
|
-
parse(code: string, lang: string): ASTNode | null;
|
|
6
|
-
translate(code: string, sourceLang: string, targetLang: string): string;
|
|
7
|
-
getAllTranslations(code: string, sourceLang: string): Record<string, string>;
|
|
8
|
-
createContext: typeof createContext;
|
|
9
|
-
runtime: import("..").RuntimeBase;
|
|
10
|
-
version: string;
|
|
11
|
-
commands: readonly ["hide", "show", "add", "remove", "toggle", "put", "make", "wait", "fetch", "set", "get", "increment", "decrement", "default", "trigger", "send", "go", "if", "repeat", "break", "continue", "halt", "return", "exit", "unless", "throw", "call", "pseudo-command", "append", "prepend", "transition", "measure", "settle", "take", "js", "log", "tell", "copy", "pick", "beep", "install", "render"];
|
|
12
|
-
supportedLanguages: readonly ["en", "ja", "ar", "es", "ko", "zh", "tr", "pt", "fr", "de", "id", "qu", "sw"];
|
|
13
|
-
bundleType: "multilingual";
|
|
14
|
-
processNode: (element: Element | Document) => Promise<void>;
|
|
15
|
-
process: (element: Element | Document) => Promise<void>;
|
|
16
|
-
};
|
|
17
|
-
export default api;
|
|
18
|
-
export { api as hyperfixi };
|
|
19
|
-
//# sourceMappingURL=browser-bundle-multilingual.d.ts.map
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { createContext } from '../core/context';
|
|
2
|
-
import type { ASTNode } from '../types/base-types';
|
|
3
|
-
import { parseSemantic, getSupportedLanguages } from '@lokascript/semantic';
|
|
4
|
-
declare const api: {
|
|
5
|
-
execute(code: string, lang: string, context?: any): Promise<any>;
|
|
6
|
-
parse(code: string, lang: string): ASTNode | null;
|
|
7
|
-
translate(code: string, sourceLang: string, targetLang: string): string;
|
|
8
|
-
getAllTranslations(code: string, sourceLang: string): Record<string, string>;
|
|
9
|
-
tokenize(code: string, lang: string): import("@lokascript/semantic").TokenStream;
|
|
10
|
-
isLanguageSupported(lang: string): boolean;
|
|
11
|
-
getTokenizer(lang: string): import("@lokascript/semantic").LanguageTokenizer | undefined;
|
|
12
|
-
createContext: typeof createContext;
|
|
13
|
-
runtime: import("..").RuntimeBase;
|
|
14
|
-
parseSemantic: typeof parseSemantic;
|
|
15
|
-
version: string;
|
|
16
|
-
semanticVersion: string;
|
|
17
|
-
commands: readonly ["hide", "show", "add", "remove", "toggle", "put", "make", "wait", "fetch", "set", "get", "increment", "decrement", "default", "trigger", "send", "go", "if", "repeat", "break", "continue", "halt", "return", "exit", "unless", "throw", "call", "pseudo-command", "append", "prepend", "transition", "measure", "settle", "take", "js", "log", "tell", "copy", "pick", "beep", "install", "render"];
|
|
18
|
-
supportedLanguages: readonly ["en", "ja", "ar", "es", "ko", "zh", "tr", "pt", "fr", "de", "id", "qu", "sw"];
|
|
19
|
-
getSupportedLanguages: typeof getSupportedLanguages;
|
|
20
|
-
bundleType: "semantic-complete";
|
|
21
|
-
};
|
|
22
|
-
export default api;
|
|
23
|
-
export { api as hyperfixi };
|
|
24
|
-
//# sourceMappingURL=browser-bundle-semantic-complete.d.ts.map
|