@hyperfixi/core 3.2.0 → 4.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/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 -29119
- 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 +29 -263
- package/dist/metadata.d.ts +23 -23
- package/dist/metadata.mjs +29 -263
- 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 -2800
- package/dist/bundle-generator/index.d.ts +0 -6
- package/dist/bundle-generator/index.mjs +0 -2775
- 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-Cnj8dQFV.js +0 -2
- package/dist/chunks/browser-modular-BNDYF6Dq.js +0 -2
- package/dist/chunks/index-DQi2o8Lk.js +0 -2
- package/dist/chunks/index-LLuwEQp0.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 -24159
- package/dist/commands/index.d.ts +0 -171
- package/dist/commands/index.mjs +0 -23972
- 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 -29150
- 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 -7934
- package/dist/parser/full-parser.d.ts +0 -4
- package/dist/parser/full-parser.mjs +0 -7931
- 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 -14046
- package/dist/registry/index.d.ts +0 -39
- package/dist/registry/index.mjs +0 -14030
- 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,2 +0,0 @@
|
|
|
1
|
-
let t=null;async function n(){if(!t)try{t=await(import("./index-DQi2o8Lk.js"))}catch{throw Error("@lokascript/framework is required for LSE support. Install it: npm install @lokascript/framework")}return t}function r(){if(t)return!0;try{return require.resolve("@lokascript/framework"),!0}catch{return!1}}async function a(t,r){return(await n()).parseExplicit(t,r)}async function i(t){return(await n()).isExplicitSyntax(t)}async function o(t){return(await n()).renderExplicit(t)}async function e(t){return(await n()).fromInterchangeNode(t)}async function c(t){return(await n()).toProtocolJSON(t)}async function u(t){return(await n()).fromProtocolJSON(t)}async function s(t){return(await n()).validateProtocolJSON(t)}async function f(t){return(await n()).toEnvelopeJSON(t)}async function l(t){return(await n()).fromEnvelopeJSON(t)}async function w(t){return(await n()).isEnvelope(t)}async function p(t){return(await n()).semanticNodeToRuntimeAST(t)}export{l as fromEnvelopeJSON,e as fromInterchangeNode,u as fromProtocolJSON,w as isEnvelope,i as isExplicitSyntax,r as isLSEAvailable,a as parseExplicit,o as renderExplicit,p as semanticNodeToRuntimeAST,f as toEnvelopeJSON,c as toProtocolJSON,s as validateProtocolJSON};
|
|
2
|
-
//# sourceMappingURL=index-uCOQ8Qn0.js.map
|
|
@@ -1,40 +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 JsCommandInput {
|
|
6
|
-
code: string;
|
|
7
|
-
parameters?: string[];
|
|
8
|
-
}
|
|
9
|
-
export interface JsCommandOutput {
|
|
10
|
-
result: unknown;
|
|
11
|
-
executed: boolean;
|
|
12
|
-
codeLength: number;
|
|
13
|
-
parameters?: string[];
|
|
14
|
-
preserveArrayResult: true;
|
|
15
|
-
}
|
|
16
|
-
export declare class JsCommand implements DecoratedCommand {
|
|
17
|
-
static readonly metadata: {
|
|
18
|
-
readonly description: "Execute inline JavaScript code with access to hyperscript context";
|
|
19
|
-
readonly syntax: readonly ["js <code> end", "js(param1, param2) <code> end"];
|
|
20
|
-
readonly examples: readonly ["js console.log(\"Hello\") end", "js(x, y) return x + y end", "js me.style.color = \"red\" end"];
|
|
21
|
-
readonly sideEffects: readonly ["code-execution", "data-mutation"];
|
|
22
|
-
readonly category: "advanced";
|
|
23
|
-
readonly compatibility: "standard";
|
|
24
|
-
};
|
|
25
|
-
get metadata(): {
|
|
26
|
-
readonly description: "Execute inline JavaScript code with access to hyperscript context";
|
|
27
|
-
readonly syntax: readonly ["js <code> end", "js(param1, param2) <code> end"];
|
|
28
|
-
readonly examples: readonly ["js console.log(\"Hello\") end", "js(x, y) return x + y end", "js me.style.color = \"red\" end"];
|
|
29
|
-
readonly sideEffects: readonly ["code-execution", "data-mutation"];
|
|
30
|
-
readonly category: "advanced";
|
|
31
|
-
readonly compatibility: "standard";
|
|
32
|
-
};
|
|
33
|
-
readonly name: string;
|
|
34
|
-
parseInput(raw: CommandRaw<'js'>, _evaluator: ExpressionEvaluator, _context: ExecutionContext): Promise<JsCommandInput>;
|
|
35
|
-
execute(input: JsCommandInput, context: TypedExecutionContext): Promise<JsCommandOutput>;
|
|
36
|
-
private createExecutionContext;
|
|
37
|
-
}
|
|
38
|
-
export declare const createJsCommand: () => JsCommand;
|
|
39
|
-
export default JsCommand;
|
|
40
|
-
//# sourceMappingURL=js.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 MeasureCommandInput {
|
|
6
|
-
target?: string | HTMLElement;
|
|
7
|
-
property?: string;
|
|
8
|
-
variable?: string;
|
|
9
|
-
}
|
|
10
|
-
export interface MeasureCommandOutput {
|
|
11
|
-
result: number;
|
|
12
|
-
wasAsync: boolean;
|
|
13
|
-
element: HTMLElement;
|
|
14
|
-
property: string;
|
|
15
|
-
value: number;
|
|
16
|
-
unit: string;
|
|
17
|
-
stored?: boolean;
|
|
18
|
-
}
|
|
19
|
-
export declare class MeasureCommand implements DecoratedCommand {
|
|
20
|
-
static readonly metadata: {
|
|
21
|
-
readonly description: "Measure DOM element dimensions, positions, and properties";
|
|
22
|
-
readonly syntax: readonly ["measure", "measure <property>", "measure <target> <property>"];
|
|
23
|
-
readonly examples: readonly ["measure", "measure width", "measure #element height", "measure x and set dragX"];
|
|
24
|
-
readonly sideEffects: readonly ["data-mutation"];
|
|
25
|
-
readonly category: "animation";
|
|
26
|
-
readonly compatibility: "standard";
|
|
27
|
-
};
|
|
28
|
-
get metadata(): {
|
|
29
|
-
readonly description: "Measure DOM element dimensions, positions, and properties";
|
|
30
|
-
readonly syntax: readonly ["measure", "measure <property>", "measure <target> <property>"];
|
|
31
|
-
readonly examples: readonly ["measure", "measure width", "measure #element height", "measure x and set dragX"];
|
|
32
|
-
readonly sideEffects: readonly ["data-mutation"];
|
|
33
|
-
readonly category: "animation";
|
|
34
|
-
readonly compatibility: "standard";
|
|
35
|
-
};
|
|
36
|
-
readonly name: string;
|
|
37
|
-
parseInput(raw: CommandRaw<'measure'>, evaluator: ExpressionEvaluator, context: ExecutionContext): Promise<MeasureCommandInput>;
|
|
38
|
-
execute(input: MeasureCommandInput, context: TypedExecutionContext): Promise<MeasureCommandOutput>;
|
|
39
|
-
private getMeasurement;
|
|
40
|
-
}
|
|
41
|
-
export declare const createMeasureCommand: () => MeasureCommand;
|
|
42
|
-
export default MeasureCommand;
|
|
43
|
-
//# sourceMappingURL=measure.d.ts.map
|
|
@@ -1,38 +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 SettleCommandInput {
|
|
6
|
-
target?: string | HTMLElement;
|
|
7
|
-
timeout?: number | string;
|
|
8
|
-
}
|
|
9
|
-
export interface SettleCommandOutput {
|
|
10
|
-
element: HTMLElement;
|
|
11
|
-
settled: boolean;
|
|
12
|
-
timeout: number;
|
|
13
|
-
duration: number;
|
|
14
|
-
}
|
|
15
|
-
export declare class SettleCommand implements DecoratedCommand {
|
|
16
|
-
static readonly metadata: {
|
|
17
|
-
readonly description: "Wait for CSS transitions and animations to complete";
|
|
18
|
-
readonly syntax: "settle [<target>] [for <timeout>]";
|
|
19
|
-
readonly examples: readonly ["settle", "settle #animated-element", "settle for 3000"];
|
|
20
|
-
readonly sideEffects: readonly ["timing"];
|
|
21
|
-
readonly category: "animation";
|
|
22
|
-
readonly compatibility: "standard";
|
|
23
|
-
};
|
|
24
|
-
get metadata(): {
|
|
25
|
-
readonly description: "Wait for CSS transitions and animations to complete";
|
|
26
|
-
readonly syntax: "settle [<target>] [for <timeout>]";
|
|
27
|
-
readonly examples: readonly ["settle", "settle #animated-element", "settle for 3000"];
|
|
28
|
-
readonly sideEffects: readonly ["timing"];
|
|
29
|
-
readonly category: "animation";
|
|
30
|
-
readonly compatibility: "standard";
|
|
31
|
-
};
|
|
32
|
-
readonly name: string;
|
|
33
|
-
parseInput(raw: CommandRaw<'settle'>, evaluator: ExpressionEvaluator, context: ExecutionContext): Promise<SettleCommandInput>;
|
|
34
|
-
execute(input: SettleCommandInput, context: TypedExecutionContext): Promise<SettleCommandOutput>;
|
|
35
|
-
}
|
|
36
|
-
export declare const createSettleCommand: () => SettleCommand;
|
|
37
|
-
export default SettleCommand;
|
|
38
|
-
//# sourceMappingURL=settle.d.ts.map
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import type { ExecutionSignal } from '../../types/result';
|
|
2
|
-
import type { Op } from '../../types/program';
|
|
3
|
-
import type { ExecutionContext, TypedExecutionContext } from '../../types/core';
|
|
4
|
-
import type { ExpressionEvaluator } from '../../core/expression-evaluator';
|
|
5
|
-
import { type DecoratedCommand } from '../decorators';
|
|
6
|
-
import type { CommandRaw } from '../../ast/command-slots';
|
|
7
|
-
export interface StartViewTransitionInput {
|
|
8
|
-
transitionName?: string;
|
|
9
|
-
body: Op[];
|
|
10
|
-
}
|
|
11
|
-
export interface StartViewTransitionOutput {
|
|
12
|
-
usedViewTransition: boolean;
|
|
13
|
-
commandsExecuted: number;
|
|
14
|
-
}
|
|
15
|
-
export declare class StartViewTransitionCommand implements DecoratedCommand {
|
|
16
|
-
static readonly metadata: {
|
|
17
|
-
readonly description: "Wrap a block of commands in document.startViewTransition()";
|
|
18
|
-
readonly syntax: readonly ["start view transition [using <type>] <body> end"];
|
|
19
|
-
readonly examples: readonly ["start view transition add .highlight to me end", "start view transition using \"slide\" add .active to #panel end", "start view transition using \"slide\" then put result into #panel end"];
|
|
20
|
-
readonly sideEffects: readonly ["animation", "dom-mutation"];
|
|
21
|
-
readonly category: "animation";
|
|
22
|
-
readonly compatibility: "standard";
|
|
23
|
-
};
|
|
24
|
-
get metadata(): {
|
|
25
|
-
readonly description: "Wrap a block of commands in document.startViewTransition()";
|
|
26
|
-
readonly syntax: readonly ["start view transition [using <type>] <body> end"];
|
|
27
|
-
readonly examples: readonly ["start view transition add .highlight to me end", "start view transition using \"slide\" add .active to #panel end", "start view transition using \"slide\" then put result into #panel end"];
|
|
28
|
-
readonly sideEffects: readonly ["animation", "dom-mutation"];
|
|
29
|
-
readonly category: "animation";
|
|
30
|
-
readonly compatibility: "standard";
|
|
31
|
-
};
|
|
32
|
-
readonly name: string;
|
|
33
|
-
parseInput(raw: CommandRaw<'start'>, evaluator: ExpressionEvaluator, context: ExecutionContext): Promise<StartViewTransitionInput>;
|
|
34
|
-
execute(input: StartViewTransitionInput, context: TypedExecutionContext): Promise<StartViewTransitionOutput | ExecutionSignal>;
|
|
35
|
-
}
|
|
36
|
-
export declare const createStartViewTransitionCommand: () => StartViewTransitionCommand;
|
|
37
|
-
export default StartViewTransitionCommand;
|
|
38
|
-
//# sourceMappingURL=start-view-transition.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 TakeCommandInput {
|
|
6
|
-
property: string;
|
|
7
|
-
source?: unknown;
|
|
8
|
-
target?: unknown;
|
|
9
|
-
}
|
|
10
|
-
export interface TakeCommandOutput {
|
|
11
|
-
targetElement: HTMLElement;
|
|
12
|
-
property: string;
|
|
13
|
-
value: unknown;
|
|
14
|
-
}
|
|
15
|
-
export declare class TakeCommand implements DecoratedCommand {
|
|
16
|
-
static readonly metadata: {
|
|
17
|
-
readonly description: "Move classes, attributes, and properties from one element to another";
|
|
18
|
-
readonly syntax: readonly ["take <class> [from <source>] [for <recipient>]", "take <property> from <source>", "take <property> from <source> and put it on <target>"];
|
|
19
|
-
readonly examples: readonly ["take .active from .tab for me", "take class from <#source/>", "take @data-value from <.source/> and put it on <#target/>"];
|
|
20
|
-
readonly sideEffects: readonly ["dom-mutation", "property-transfer"];
|
|
21
|
-
readonly category: "animation";
|
|
22
|
-
readonly compatibility: "standard";
|
|
23
|
-
};
|
|
24
|
-
get metadata(): {
|
|
25
|
-
readonly description: "Move classes, attributes, and properties from one element to another";
|
|
26
|
-
readonly syntax: readonly ["take <class> [from <source>] [for <recipient>]", "take <property> from <source>", "take <property> from <source> and put it on <target>"];
|
|
27
|
-
readonly examples: readonly ["take .active from .tab for me", "take class from <#source/>", "take @data-value from <.source/> and put it on <#target/>"];
|
|
28
|
-
readonly sideEffects: readonly ["dom-mutation", "property-transfer"];
|
|
29
|
-
readonly category: "animation";
|
|
30
|
-
readonly compatibility: "standard";
|
|
31
|
-
};
|
|
32
|
-
readonly name: string;
|
|
33
|
-
parseInput(raw: CommandRaw<'take'>, evaluator: ExpressionEvaluator, context: ExecutionContext): Promise<TakeCommandInput>;
|
|
34
|
-
execute(input: TakeCommandInput, context: TypedExecutionContext): Promise<TakeCommandOutput>;
|
|
35
|
-
private firstOf;
|
|
36
|
-
private takeProperty;
|
|
37
|
-
private putProperty;
|
|
38
|
-
}
|
|
39
|
-
export declare const createTakeCommand: () => TakeCommand;
|
|
40
|
-
export default TakeCommand;
|
|
41
|
-
//# sourceMappingURL=take.d.ts.map
|
|
@@ -1,49 +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 TransitionPairInput {
|
|
6
|
-
target?: string | HTMLElement | HTMLElement[];
|
|
7
|
-
property: string;
|
|
8
|
-
value: string | number;
|
|
9
|
-
from?: string | number;
|
|
10
|
-
}
|
|
11
|
-
export interface TransitionCommandInput extends TransitionPairInput {
|
|
12
|
-
duration?: number | string;
|
|
13
|
-
timingFunction?: string;
|
|
14
|
-
using?: string;
|
|
15
|
-
pairs?: TransitionPairInput[];
|
|
16
|
-
}
|
|
17
|
-
export interface TransitionCommandOutput {
|
|
18
|
-
element: HTMLElement;
|
|
19
|
-
property: string;
|
|
20
|
-
fromValue: string;
|
|
21
|
-
toValue: string;
|
|
22
|
-
duration: number;
|
|
23
|
-
completed: boolean;
|
|
24
|
-
}
|
|
25
|
-
export declare class TransitionCommand implements DecoratedCommand {
|
|
26
|
-
static readonly metadata: {
|
|
27
|
-
readonly description: "Animate CSS properties using CSS transitions";
|
|
28
|
-
readonly syntax: "transition <property> [from <value>] to <value> [<property> … to <value>]… [over <duration>] [using <css> | with <timing>]";
|
|
29
|
-
readonly examples: readonly ["transition opacity to 0.5", "transition my *opacity to 0 over 200ms", "transition #box's *opacity to 0 over 200ms", "transition left to 100px over 500ms", "transition background-color to red over 1s with ease-in-out", "transition *width to 100px *height to 50px over 300ms", "transition *opacity of #panel from 0 to 1 over 200ms", "transition my *opacity to 0 using \"opacity 1s ease-in\""];
|
|
30
|
-
readonly sideEffects: readonly ["style-change", "timing"];
|
|
31
|
-
readonly category: "animation";
|
|
32
|
-
readonly compatibility: "standard";
|
|
33
|
-
};
|
|
34
|
-
get metadata(): {
|
|
35
|
-
readonly description: "Animate CSS properties using CSS transitions";
|
|
36
|
-
readonly syntax: "transition <property> [from <value>] to <value> [<property> … to <value>]… [over <duration>] [using <css> | with <timing>]";
|
|
37
|
-
readonly examples: readonly ["transition opacity to 0.5", "transition my *opacity to 0 over 200ms", "transition #box's *opacity to 0 over 200ms", "transition left to 100px over 500ms", "transition background-color to red over 1s with ease-in-out", "transition *width to 100px *height to 50px over 300ms", "transition *opacity of #panel from 0 to 1 over 200ms", "transition my *opacity to 0 using \"opacity 1s ease-in\""];
|
|
38
|
-
readonly sideEffects: readonly ["style-change", "timing"];
|
|
39
|
-
readonly category: "animation";
|
|
40
|
-
readonly compatibility: "standard";
|
|
41
|
-
};
|
|
42
|
-
readonly name: string;
|
|
43
|
-
parseInput(raw: CommandRaw<'transition'>, evaluator: ExpressionEvaluator, context: ExecutionContext): Promise<TransitionCommandInput>;
|
|
44
|
-
private laterPairs;
|
|
45
|
-
execute(input: TransitionCommandInput, context: TypedExecutionContext): Promise<TransitionCommandOutput>;
|
|
46
|
-
}
|
|
47
|
-
export declare const createTransitionCommand: () => TransitionCommand;
|
|
48
|
-
export default TransitionCommand;
|
|
49
|
-
//# sourceMappingURL=transition.d.ts.map
|
|
@@ -1,61 +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 FetchResponseType = 'text' | 'json' | 'html' | 'response' | 'blob' | 'arrayBuffer';
|
|
6
|
-
export interface FetchResponseTypeConfig {
|
|
7
|
-
accept?: string;
|
|
8
|
-
handler: (response: Response, context: TypedExecutionContext) => Promise<unknown>;
|
|
9
|
-
}
|
|
10
|
-
export declare function registerFetchResponseType(name: string, config: FetchResponseTypeConfig): void;
|
|
11
|
-
export declare function getCustomResponseType(name: string): FetchResponseTypeConfig | undefined;
|
|
12
|
-
export declare function registerFetchThrowsOn(patterns: RegExp[]): void;
|
|
13
|
-
export declare function resetFetchThrowsOn(): void;
|
|
14
|
-
export declare function shouldThrowOnStatus(status: number): boolean;
|
|
15
|
-
export interface FetchCommandInput {
|
|
16
|
-
url: string;
|
|
17
|
-
responseType: string;
|
|
18
|
-
options: RequestInit;
|
|
19
|
-
throwOnError?: boolean;
|
|
20
|
-
}
|
|
21
|
-
export type FetchResponseData = string | Response | Blob | ArrayBuffer | DocumentFragment | HTMLElement | null | unknown;
|
|
22
|
-
export interface FetchCommandOutput {
|
|
23
|
-
status: number;
|
|
24
|
-
statusText: string;
|
|
25
|
-
headers: Headers;
|
|
26
|
-
data: FetchResponseData;
|
|
27
|
-
url: string;
|
|
28
|
-
duration: number;
|
|
29
|
-
}
|
|
30
|
-
export declare class FetchCommand implements DecoratedCommand {
|
|
31
|
-
static readonly metadata: {
|
|
32
|
-
readonly description: "Make HTTP requests with lifecycle event support";
|
|
33
|
-
readonly syntax: readonly ["fetch <url>", "fetch <url> as <type>", "fetch <url> with <options>"];
|
|
34
|
-
readonly examples: readonly ["fetch \"/api/data\"", "fetch \"/api/users\" as json", "fetch \"/api/save\" with { method:\"POST\" }", "fetch \"/api/optional\" as json do not throw"];
|
|
35
|
-
readonly sideEffects: readonly ["network", "event-dispatching"];
|
|
36
|
-
readonly category: "async";
|
|
37
|
-
readonly compatibility: "standard";
|
|
38
|
-
};
|
|
39
|
-
get metadata(): {
|
|
40
|
-
readonly description: "Make HTTP requests with lifecycle event support";
|
|
41
|
-
readonly syntax: readonly ["fetch <url>", "fetch <url> as <type>", "fetch <url> with <options>"];
|
|
42
|
-
readonly examples: readonly ["fetch \"/api/data\"", "fetch \"/api/users\" as json", "fetch \"/api/save\" with { method:\"POST\" }", "fetch \"/api/optional\" as json do not throw"];
|
|
43
|
-
readonly sideEffects: readonly ["network", "event-dispatching"];
|
|
44
|
-
readonly category: "async";
|
|
45
|
-
readonly compatibility: "standard";
|
|
46
|
-
};
|
|
47
|
-
readonly name: string;
|
|
48
|
-
parseInput(raw: CommandRaw<'fetch'>, evaluator: ExpressionEvaluator, context: ExecutionContext): Promise<FetchCommandInput>;
|
|
49
|
-
execute(input: FetchCommandInput, context: TypedExecutionContext): Promise<FetchCommandOutput>;
|
|
50
|
-
private parseURL;
|
|
51
|
-
private parseResponseType;
|
|
52
|
-
private parseRequestOptions;
|
|
53
|
-
private parseHeaders;
|
|
54
|
-
private parseBody;
|
|
55
|
-
private handleResponse;
|
|
56
|
-
private parseHTML;
|
|
57
|
-
private dispatchEvent;
|
|
58
|
-
}
|
|
59
|
-
export declare const createFetchCommand: () => FetchCommand;
|
|
60
|
-
export default FetchCommand;
|
|
61
|
-
//# sourceMappingURL=fetch.d.ts.map
|
|
@@ -1,51 +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 WaitTimeInput {
|
|
6
|
-
type: 'time';
|
|
7
|
-
milliseconds: number;
|
|
8
|
-
}
|
|
9
|
-
export interface WaitEventInput {
|
|
10
|
-
type: 'event';
|
|
11
|
-
eventName: string;
|
|
12
|
-
target?: EventTarget;
|
|
13
|
-
destructure?: string[];
|
|
14
|
-
}
|
|
15
|
-
export interface WaitRaceInput {
|
|
16
|
-
type: 'race';
|
|
17
|
-
conditions: (WaitTimeInput | WaitEventInput)[];
|
|
18
|
-
}
|
|
19
|
-
export type WaitCommandInput = WaitTimeInput | WaitEventInput | WaitRaceInput;
|
|
20
|
-
export interface WaitCommandOutput {
|
|
21
|
-
type: 'time' | 'event';
|
|
22
|
-
result: number | Event;
|
|
23
|
-
duration: number;
|
|
24
|
-
}
|
|
25
|
-
export declare class WaitCommand implements DecoratedCommand {
|
|
26
|
-
static readonly metadata: {
|
|
27
|
-
readonly description: "Wait for time delay, event, or race condition";
|
|
28
|
-
readonly syntax: readonly ["wait <time>", "wait for <event>", "wait for <event> or <condition>"];
|
|
29
|
-
readonly examples: readonly ["wait 2s", "wait for click", "wait for click or 1s", "wait for mousemove(clientX, clientY)"];
|
|
30
|
-
readonly sideEffects: readonly ["time", "event-listening"];
|
|
31
|
-
readonly category: "async";
|
|
32
|
-
readonly compatibility: "standard";
|
|
33
|
-
};
|
|
34
|
-
get metadata(): {
|
|
35
|
-
readonly description: "Wait for time delay, event, or race condition";
|
|
36
|
-
readonly syntax: readonly ["wait <time>", "wait for <event>", "wait for <event> or <condition>"];
|
|
37
|
-
readonly examples: readonly ["wait 2s", "wait for click", "wait for click or 1s", "wait for mousemove(clientX, clientY)"];
|
|
38
|
-
readonly sideEffects: readonly ["time", "event-listening"];
|
|
39
|
-
readonly category: "async";
|
|
40
|
-
readonly compatibility: "standard";
|
|
41
|
-
};
|
|
42
|
-
readonly name: string;
|
|
43
|
-
parseInput(raw: CommandRaw<'wait'>, evaluator: ExpressionEvaluator, context: ExecutionContext): Promise<WaitCommandInput>;
|
|
44
|
-
execute(input: WaitCommandInput, context: TypedExecutionContext): Promise<WaitCommandOutput>;
|
|
45
|
-
private parseTimeWait;
|
|
46
|
-
private parseEventArrayWait;
|
|
47
|
-
private executeRace;
|
|
48
|
-
}
|
|
49
|
-
export declare const createWaitCommand: () => WaitCommand;
|
|
50
|
-
export default WaitCommand;
|
|
51
|
-
//# sourceMappingURL=wait.d.ts.map
|
|
@@ -1,40 +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 InstallCommandInput {
|
|
5
|
-
behaviorName: string;
|
|
6
|
-
parameters?: Record<string, unknown>;
|
|
7
|
-
target?: unknown;
|
|
8
|
-
}
|
|
9
|
-
export interface InstallCommandOutput {
|
|
10
|
-
success: boolean;
|
|
11
|
-
behaviorName: string;
|
|
12
|
-
installedCount: number;
|
|
13
|
-
instances: unknown[];
|
|
14
|
-
}
|
|
15
|
-
export declare class InstallCommand {
|
|
16
|
-
readonly name = "install";
|
|
17
|
-
static readonly metadata: {
|
|
18
|
-
readonly description: "Install a behavior on an element with optional parameters";
|
|
19
|
-
readonly syntax: readonly ["install <BehaviorName>", "install <BehaviorName> on <element>", "install <BehaviorName>(param: value)", "install <BehaviorName>(param: value) on <element>"];
|
|
20
|
-
readonly examples: readonly ["install Removable", "install Draggable on #box", "install Tooltip(text: \"Help\", position: \"top\")", "install Sortable(axis: \"y\") on .list", "install MyBehavior(foo: 42) on the first <div/>"];
|
|
21
|
-
readonly category: "behaviors";
|
|
22
|
-
readonly compatibility: "standard";
|
|
23
|
-
readonly sideEffects: readonly ["behavior-installation", "element-modification"];
|
|
24
|
-
};
|
|
25
|
-
get metadata(): {
|
|
26
|
-
readonly description: "Install a behavior on an element with optional parameters";
|
|
27
|
-
readonly syntax: readonly ["install <BehaviorName>", "install <BehaviorName> on <element>", "install <BehaviorName>(param: value)", "install <BehaviorName>(param: value) on <element>"];
|
|
28
|
-
readonly examples: readonly ["install Removable", "install Draggable on #box", "install Tooltip(text: \"Help\", position: \"top\")", "install Sortable(axis: \"y\") on .list", "install MyBehavior(foo: 42) on the first <div/>"];
|
|
29
|
-
readonly category: "behaviors";
|
|
30
|
-
readonly compatibility: "standard";
|
|
31
|
-
readonly sideEffects: readonly ["behavior-installation", "element-modification"];
|
|
32
|
-
};
|
|
33
|
-
parseInput(raw: CommandRaw<'install'>, evaluator: ExpressionEvaluator, context: ExecutionContext): Promise<InstallCommandInput>;
|
|
34
|
-
execute(input: InstallCommandInput, context: TypedExecutionContext): Promise<InstallCommandOutput>;
|
|
35
|
-
private resolveTarget;
|
|
36
|
-
private behaviorExists;
|
|
37
|
-
private installBehavior;
|
|
38
|
-
}
|
|
39
|
-
export declare function createInstallCommand(): InstallCommand;
|
|
40
|
-
//# sourceMappingURL=install.d.ts.map
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { ContentInsertionCommand, type InsertionCommandInput, type InsertionCommandOutput } from './insertion-base';
|
|
2
|
-
export type AppendCommandInput = InsertionCommandInput;
|
|
3
|
-
export type AppendCommandOutput = InsertionCommandOutput;
|
|
4
|
-
export declare class AppendCommand extends ContentInsertionCommand {
|
|
5
|
-
static readonly metadata: {
|
|
6
|
-
readonly description: "Add content to the end of a string, array, Set, or HTML element";
|
|
7
|
-
readonly syntax: readonly ["append <content>", "append <content> to <target>"];
|
|
8
|
-
readonly examples: readonly ["append \"Hello\"", "append \"World\" to greeting", "append item to myArray", "append \"<p>New</p>\" to #content", "append \" (edited)\" to #title's textContent"];
|
|
9
|
-
readonly sideEffects: readonly ["data-mutation", "dom-mutation"];
|
|
10
|
-
readonly category: "content";
|
|
11
|
-
readonly compatibility: "standard";
|
|
12
|
-
};
|
|
13
|
-
get metadata(): {
|
|
14
|
-
readonly description: "Add content to the end of a string, array, Set, or HTML element";
|
|
15
|
-
readonly syntax: readonly ["append <content>", "append <content> to <target>"];
|
|
16
|
-
readonly examples: readonly ["append \"Hello\"", "append \"World\" to greeting", "append item to myArray", "append \"<p>New</p>\" to #content", "append \" (edited)\" to #title's textContent"];
|
|
17
|
-
readonly sideEffects: readonly ["data-mutation", "dom-mutation"];
|
|
18
|
-
readonly category: "content";
|
|
19
|
-
readonly compatibility: "standard";
|
|
20
|
-
};
|
|
21
|
-
readonly name: string;
|
|
22
|
-
constructor();
|
|
23
|
-
}
|
|
24
|
-
export declare const createAppendCommand: () => AppendCommand;
|
|
25
|
-
export default AppendCommand;
|
|
26
|
-
//# sourceMappingURL=append.d.ts.map
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import type { ExecutionContext, TypedExecutionContext } from '../../types/core';
|
|
2
|
-
import type { ExpressionEvaluator } from '../../core/expression-evaluator';
|
|
3
|
-
import { type SemanticPosition } from '../helpers/dom-mutation';
|
|
4
|
-
import { type PropertyTarget } from '../helpers/property-target';
|
|
5
|
-
import type { DecoratedCommand, CommandMetadata } from '../decorators';
|
|
6
|
-
import type { CommandRaw } from '../../ast/command-slots';
|
|
7
|
-
export type InsertionPosition = Extract<SemanticPosition, 'append' | 'prepend'>;
|
|
8
|
-
export type InsertionCommandInput = {
|
|
9
|
-
kind: 'selector';
|
|
10
|
-
selector: string;
|
|
11
|
-
content: unknown;
|
|
12
|
-
} | {
|
|
13
|
-
kind: 'elements';
|
|
14
|
-
elements: HTMLElement[];
|
|
15
|
-
content: unknown;
|
|
16
|
-
} | {
|
|
17
|
-
kind: 'attribute';
|
|
18
|
-
elements: HTMLElement[];
|
|
19
|
-
name: string;
|
|
20
|
-
content: unknown;
|
|
21
|
-
} | {
|
|
22
|
-
kind: 'property';
|
|
23
|
-
property: PropertyTarget;
|
|
24
|
-
content: unknown;
|
|
25
|
-
} | {
|
|
26
|
-
kind: 'variable';
|
|
27
|
-
name: string;
|
|
28
|
-
scope?: 'element' | 'global';
|
|
29
|
-
content: unknown;
|
|
30
|
-
} | {
|
|
31
|
-
kind: 'value';
|
|
32
|
-
target: unknown;
|
|
33
|
-
content: unknown;
|
|
34
|
-
} | {
|
|
35
|
-
kind: 'implicit';
|
|
36
|
-
content: unknown;
|
|
37
|
-
};
|
|
38
|
-
export interface InsertionCommandOutput {
|
|
39
|
-
target: unknown;
|
|
40
|
-
value: unknown;
|
|
41
|
-
targetType: 'element' | 'attribute' | 'property' | 'variable' | 'array' | 'set' | 'result';
|
|
42
|
-
}
|
|
43
|
-
export declare abstract class ContentInsertionCommand implements DecoratedCommand {
|
|
44
|
-
protected readonly position: InsertionPosition;
|
|
45
|
-
readonly name: string;
|
|
46
|
-
abstract readonly metadata: CommandMetadata;
|
|
47
|
-
protected constructor(position: InsertionPosition);
|
|
48
|
-
private concat;
|
|
49
|
-
private pushInto;
|
|
50
|
-
parseInput(raw: CommandRaw<'append' | 'prepend'>, evaluator: ExpressionEvaluator, context: ExecutionContext): Promise<InsertionCommandInput>;
|
|
51
|
-
execute(input: InsertionCommandInput, context: TypedExecutionContext): Promise<InsertionCommandOutput>;
|
|
52
|
-
private insertIntoSelector;
|
|
53
|
-
private insertIntoEach;
|
|
54
|
-
private combineValue;
|
|
55
|
-
private targetTypeOf;
|
|
56
|
-
private executeVariable;
|
|
57
|
-
private execImplicit;
|
|
58
|
-
private done;
|
|
59
|
-
}
|
|
60
|
-
//# sourceMappingURL=insertion-base.d.ts.map
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { ContentInsertionCommand, type InsertionCommandInput, type InsertionCommandOutput } from './insertion-base';
|
|
2
|
-
export type PrependCommandInput = InsertionCommandInput;
|
|
3
|
-
export type PrependCommandOutput = InsertionCommandOutput;
|
|
4
|
-
export declare class PrependCommand extends ContentInsertionCommand {
|
|
5
|
-
static readonly metadata: {
|
|
6
|
-
readonly description: "Add content to the start of a string, array, Set, or HTML element";
|
|
7
|
-
readonly syntax: readonly ["prepend <content>", "prepend <content> to <target>"];
|
|
8
|
-
readonly examples: readonly ["prepend \"Hello\"", "prepend \"World\" to greeting", "prepend item to myArray", "prepend \"<p>First</p>\" to #content"];
|
|
9
|
-
readonly sideEffects: readonly ["data-mutation", "dom-mutation"];
|
|
10
|
-
readonly category: "content";
|
|
11
|
-
readonly compatibility: "lokascript-extension";
|
|
12
|
-
};
|
|
13
|
-
get metadata(): {
|
|
14
|
-
readonly description: "Add content to the start of a string, array, Set, or HTML element";
|
|
15
|
-
readonly syntax: readonly ["prepend <content>", "prepend <content> to <target>"];
|
|
16
|
-
readonly examples: readonly ["prepend \"Hello\"", "prepend \"World\" to greeting", "prepend item to myArray", "prepend \"<p>First</p>\" to #content"];
|
|
17
|
-
readonly sideEffects: readonly ["data-mutation", "dom-mutation"];
|
|
18
|
-
readonly category: "content";
|
|
19
|
-
readonly compatibility: "lokascript-extension";
|
|
20
|
-
};
|
|
21
|
-
readonly name: string;
|
|
22
|
-
constructor();
|
|
23
|
-
}
|
|
24
|
-
export declare const createPrependCommand: () => PrependCommand;
|
|
25
|
-
export default PrependCommand;
|
|
26
|
-
//# sourceMappingURL=prepend.d.ts.map
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { ControlFlowSignalBase } from './signal-base';
|
|
2
|
-
export interface BreakCommandInput {
|
|
3
|
-
}
|
|
4
|
-
export interface BreakCommandOutput {
|
|
5
|
-
broken: true;
|
|
6
|
-
timestamp: number;
|
|
7
|
-
}
|
|
8
|
-
export declare class BreakCommand extends ControlFlowSignalBase {
|
|
9
|
-
static readonly metadata: {
|
|
10
|
-
readonly description: "Exit from the current loop (repeat, for, while, until)";
|
|
11
|
-
readonly syntax: readonly ["break"];
|
|
12
|
-
readonly examples: readonly ["break", "if found then break", "repeat for item in items { if item == target then break }"];
|
|
13
|
-
readonly sideEffects: readonly ["control-flow"];
|
|
14
|
-
readonly category: "control-flow";
|
|
15
|
-
readonly compatibility: "standard";
|
|
16
|
-
};
|
|
17
|
-
get metadata(): {
|
|
18
|
-
readonly description: "Exit from the current loop (repeat, for, while, until)";
|
|
19
|
-
readonly syntax: readonly ["break"];
|
|
20
|
-
readonly examples: readonly ["break", "if found then break", "repeat for item in items { if item == target then break }"];
|
|
21
|
-
readonly sideEffects: readonly ["control-flow"];
|
|
22
|
-
readonly category: "control-flow";
|
|
23
|
-
readonly compatibility: "standard";
|
|
24
|
-
};
|
|
25
|
-
protected readonly signalType: "break";
|
|
26
|
-
}
|
|
27
|
-
export declare const createBreakCommand: () => BreakCommand;
|
|
28
|
-
export default BreakCommand;
|
|
29
|
-
//# sourceMappingURL=break.d.ts.map
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { ControlFlowSignalBase } from './signal-base';
|
|
2
|
-
export interface ContinueCommandInput {
|
|
3
|
-
}
|
|
4
|
-
export interface ContinueCommandOutput {
|
|
5
|
-
continued: true;
|
|
6
|
-
timestamp: number;
|
|
7
|
-
}
|
|
8
|
-
export declare class ContinueCommand extends ControlFlowSignalBase {
|
|
9
|
-
static readonly metadata: {
|
|
10
|
-
readonly description: "Skip to the next iteration of the current loop";
|
|
11
|
-
readonly syntax: readonly ["continue"];
|
|
12
|
-
readonly examples: readonly ["continue", "if item.isInvalid then continue", "repeat for item in items { if item.skip then continue; process item }"];
|
|
13
|
-
readonly sideEffects: readonly ["control-flow"];
|
|
14
|
-
readonly category: "control-flow";
|
|
15
|
-
readonly compatibility: "standard";
|
|
16
|
-
};
|
|
17
|
-
get metadata(): {
|
|
18
|
-
readonly description: "Skip to the next iteration of the current loop";
|
|
19
|
-
readonly syntax: readonly ["continue"];
|
|
20
|
-
readonly examples: readonly ["continue", "if item.isInvalid then continue", "repeat for item in items { if item.skip then continue; process item }"];
|
|
21
|
-
readonly sideEffects: readonly ["control-flow"];
|
|
22
|
-
readonly category: "control-flow";
|
|
23
|
-
readonly compatibility: "standard";
|
|
24
|
-
};
|
|
25
|
-
protected readonly signalType: "continue";
|
|
26
|
-
}
|
|
27
|
-
export declare const createContinueCommand: () => ContinueCommand;
|
|
28
|
-
export default ContinueCommand;
|
|
29
|
-
//# sourceMappingURL=continue.d.ts.map
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { ControlFlowSignalBase } from './signal-base';
|
|
2
|
-
export interface ExitCommandInput {
|
|
3
|
-
}
|
|
4
|
-
export interface ExitCommandOutput {
|
|
5
|
-
exited: boolean;
|
|
6
|
-
timestamp: number;
|
|
7
|
-
}
|
|
8
|
-
export declare class ExitCommand extends ControlFlowSignalBase {
|
|
9
|
-
static readonly metadata: {
|
|
10
|
-
readonly description: "Immediately terminate execution of the current event handler or behavior";
|
|
11
|
-
readonly syntax: readonly ["exit"];
|
|
12
|
-
readonly examples: readonly ["exit", "if no draggedItem exit", "on click if disabled exit"];
|
|
13
|
-
readonly sideEffects: readonly ["control-flow"];
|
|
14
|
-
readonly category: "control-flow";
|
|
15
|
-
readonly compatibility: "standard";
|
|
16
|
-
};
|
|
17
|
-
get metadata(): {
|
|
18
|
-
readonly description: "Immediately terminate execution of the current event handler or behavior";
|
|
19
|
-
readonly syntax: readonly ["exit"];
|
|
20
|
-
readonly examples: readonly ["exit", "if no draggedItem exit", "on click if disabled exit"];
|
|
21
|
-
readonly sideEffects: readonly ["control-flow"];
|
|
22
|
-
readonly category: "control-flow";
|
|
23
|
-
readonly compatibility: "standard";
|
|
24
|
-
};
|
|
25
|
-
protected readonly signalType: "exit";
|
|
26
|
-
}
|
|
27
|
-
export declare const createExitCommand: () => ExitCommand;
|
|
28
|
-
export default ExitCommand;
|
|
29
|
-
//# sourceMappingURL=exit.d.ts.map
|