@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,37 +0,0 @@
|
|
|
1
|
-
export interface EventWaitResult<T = Event> {
|
|
2
|
-
event: T | null;
|
|
3
|
-
timedOut: boolean;
|
|
4
|
-
cancelled: boolean;
|
|
5
|
-
}
|
|
6
|
-
export interface TransitionWaitResult {
|
|
7
|
-
completed: boolean;
|
|
8
|
-
cancelled: boolean;
|
|
9
|
-
}
|
|
10
|
-
export interface AnimationWaitResult {
|
|
11
|
-
completed: boolean;
|
|
12
|
-
type: 'transition' | 'animation' | 'timeout';
|
|
13
|
-
}
|
|
14
|
-
export declare function waitForEvent<T extends Event = Event>(target: EventTarget, eventName: string, timeout?: number, signal?: AbortSignal): Promise<EventWaitResult<T>>;
|
|
15
|
-
export declare function waitForTime(ms: number): Promise<void>;
|
|
16
|
-
export declare function waitForTransitionEnd(element: HTMLElement, property: string, duration: number): Promise<TransitionWaitResult>;
|
|
17
|
-
export declare function waitForAnimationComplete(element: HTMLElement, computedAnimationTime: number, userTimeout: number): Promise<AnimationWaitResult>;
|
|
18
|
-
export type WaitCondition = {
|
|
19
|
-
type: 'time';
|
|
20
|
-
ms: number;
|
|
21
|
-
} | {
|
|
22
|
-
type: 'event';
|
|
23
|
-
target: EventTarget;
|
|
24
|
-
eventName: string;
|
|
25
|
-
};
|
|
26
|
-
export interface RaceResult {
|
|
27
|
-
winner: WaitCondition;
|
|
28
|
-
result: number | Event;
|
|
29
|
-
}
|
|
30
|
-
export declare function waitForFirst(conditions: WaitCondition[]): Promise<RaceResult>;
|
|
31
|
-
export declare function createGuardedFinisher<T>(cleanup: () => void, resolve: (value: T) => void): (result: T) => void;
|
|
32
|
-
export declare function createOnceGuard<T extends (...args: any[]) => void>(callback: T): (...args: Parameters<T>) => void;
|
|
33
|
-
export declare function createCleanupManager(): {
|
|
34
|
-
add: (fn: () => void) => void;
|
|
35
|
-
cleanup: () => void;
|
|
36
|
-
};
|
|
37
|
-
//# sourceMappingURL=event-waiting.d.ts.map
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export { convertToNumber, getVariableValue, setVariableValue, resolveElementRef, getElementPropertyValue, setElementPropertyValue, getCurrentNumericValue, setTargetValue, } from './variable-access';
|
|
2
|
-
export { getElementProperty, setElementProperty, getElementValue, setElementValue, isEmpty, isPlainObject, } from './element-property-access';
|
|
3
|
-
export { isPropertyOfExpressionNode, isPropertyAccessNode, isPropertyTargetString, resolvePropertyTargetFromNode, resolvePropertyTargetFromAccessNode, resolvePropertyTargetFromString, resolveAnyPropertyTarget, readPropertyTarget, writePropertyTarget, togglePropertyTarget, } from './property-target';
|
|
4
|
-
export type { PropertyTarget, PropertyOfExpressionNode, PropertyAccessNode, } from './property-target';
|
|
5
|
-
export { resolveElement, resolveElements, resolveTargetsFromArgs, asHTMLElement, isContextRef, isCSSSelector, findClosest, findAll, resolvePossessive, } from './element-resolution';
|
|
6
|
-
export type { ResolveTargetsOptions } from './element-resolution';
|
|
7
|
-
export { parseDuration, parseDurationStrict, parseCSSDurations, calculateMaxAnimationTime, camelToKebab, kebabToCamel, formatDuration, } from './duration-parsing';
|
|
8
|
-
export { parseClasses, isValidClassName, normalizeClassName } from './class-manipulation';
|
|
9
|
-
export { isAttributeSyntax, parseAttribute, parseAttributeName, parseAttributeWithValue, } from './attribute-manipulation';
|
|
10
|
-
export { createCustomEvent, parseEventValue, dispatchCustomEvent } from './event-helpers';
|
|
11
|
-
export type { EventOptions } from './event-helpers';
|
|
12
|
-
export { evaluateCondition, isTruthy } from './condition-helpers';
|
|
13
|
-
export { validateUrl, isExternalUrl, isSafeUrl, normalizeUrl, extractSearchParams, buildUrlWithParams, } from './url-validation';
|
|
14
|
-
export { parseCSSProperty, isCSSPropertySyntax, parseToggleableCSSProperty, getComputedStyleValue, setStyleValue, removeStyleProperty, toggleCSSProperty, isDisplayNone, isVisibilityHidden, isOpacityZero, } from './style-manipulation';
|
|
15
|
-
export type { ToggleableCSSProperty, ParsedCSSProperty } from './style-manipulation';
|
|
16
|
-
export { detectSelectorType, isSmartElementTag, isSmartElementSelector, extractSelectorValue, isClassSelectorNode, isIdSelectorNode, isBareSmartElementNode, SMART_ELEMENT_TAGS, evaluateFirstArg, detectInputType, } from './selector-type-detection';
|
|
17
|
-
export type { SelectorType, SmartElementTag, CommandInputType, ParsedFirstArg, } from './selector-type-detection';
|
|
18
|
-
export { validateTargetArray, isValidTargetArray, validateStringArray, isValidStringArray, validateTypeDiscriminator, isValidType, validateDefined, isDefined, validateNonEmptyString, isNonEmptyString, combineValidations, createValidator, } from './input-validator';
|
|
19
|
-
export type { ValidationResult as InputValidationResult } from './input-validator';
|
|
20
|
-
export { detectSmartElementType, resolveSmartElementTargets, toggleDialog, toggleDetails, toggleSelect, toggleSmartElement, isSmartElement, isDialogElement, isDetailsElement, isSelectElement, isSummaryElement, } from './smart-element';
|
|
21
|
-
export type { SmartElementType, DialogMode } from './smart-element';
|
|
22
|
-
export { toInsertPosition, looksLikeHTML, insertContent, insertContentSemantic, insertElementsInOrder, removeElement, removeElements, swapElements, cloneElement, createElementFromHTML, setInnerHTML, setTextContent, clearElement, } from './dom-mutation';
|
|
23
|
-
export type { ContentInsertPosition, SemanticPosition } from './dom-mutation';
|
|
24
|
-
export { batchApply, batchApplyItems, batchAddClasses, batchRemoveClasses, batchToggleClasses, batchSetAttribute, batchRemoveAttribute, batchToggleAttribute, toggleAttribute, batchSetStyles, batchRemoveStyles, } from './batch-dom-operations';
|
|
25
|
-
export { waitForEvent, waitForTime, waitForTransitionEnd, waitForAnimationComplete, waitForFirst, createGuardedFinisher, createOnceGuard, createCleanupManager, } from './event-waiting';
|
|
26
|
-
export type { EventWaitResult, TransitionWaitResult, AnimationWaitResult, WaitCondition, RaceResult, } from './event-waiting';
|
|
27
|
-
export { createReversionFn, setupDurationReversion, setupEventReversion, setupTemporalModifiers, setupTemporalModifiersForElements, } from './temporal-modifiers';
|
|
28
|
-
export type { ToggleType, CleanupFn, TemporalModifierOptions } from './temporal-modifiers';
|
|
29
|
-
export { executeLoop, createForLoopConfig, createTimesLoopConfig, createWhileLoopConfig, createUntilLoopConfig, createUntilEventLoopConfig, createForeverLoopConfig, } from './loop-executor';
|
|
30
|
-
export type { LoopConfig, LoopIterationContext, LoopResult } from './loop-executor';
|
|
31
|
-
export { missingArgument, invalidTarget, noTargetElements, invalidClassName, invalidAttributeName, invalidSelector, invalidUrl, invalidContext, operationFailed, parseError, executionError, unsupportedFeature, toError, throwValidation, } from './error-helpers';
|
|
32
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export interface ValidationResult {
|
|
2
|
-
valid: boolean;
|
|
3
|
-
error?: string;
|
|
4
|
-
}
|
|
5
|
-
export declare function validateTargetArray(targets: unknown[], commandName?: string): ValidationResult;
|
|
6
|
-
export declare function isValidTargetArray(targets: unknown[]): targets is HTMLElement[];
|
|
7
|
-
export declare function validateStringArray(arr: unknown[], fieldName?: string, minLength?: number): ValidationResult;
|
|
8
|
-
export declare function isValidStringArray(arr: unknown[], minLength?: number): arr is string[];
|
|
9
|
-
export declare function validateTypeDiscriminator<T extends string>(type: unknown, allowed: readonly T[], commandName?: string): ValidationResult;
|
|
10
|
-
export declare function isValidType<T extends string>(type: unknown, allowed: readonly T[]): type is T;
|
|
11
|
-
export declare function validateDefined(value: unknown, fieldName: string): ValidationResult;
|
|
12
|
-
export declare function isDefined<T>(value: T | null | undefined): value is T;
|
|
13
|
-
export declare function validateNonEmptyString(value: unknown, fieldName: string): ValidationResult;
|
|
14
|
-
export declare function isNonEmptyString(value: unknown): value is string;
|
|
15
|
-
export declare function combineValidations(...results: ValidationResult[]): ValidationResult;
|
|
16
|
-
export declare function createValidator(commandName: string): {
|
|
17
|
-
targets: (targets: unknown[]) => ValidationResult;
|
|
18
|
-
strings: (arr: unknown[], fieldName: string, minLength?: number) => ValidationResult;
|
|
19
|
-
type: <T extends string>(type: unknown, allowed: readonly T[]) => ValidationResult;
|
|
20
|
-
defined: (value: unknown, fieldName: string) => ValidationResult;
|
|
21
|
-
nonEmptyString: (value: unknown, fieldName: string) => ValidationResult;
|
|
22
|
-
};
|
|
23
|
-
//# sourceMappingURL=input-validator.d.ts.map
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import type { TypedExecutionContext } from '../../types/core';
|
|
2
|
-
import type { ExecutionSignal } from '../../types/result';
|
|
3
|
-
import type { Op } from '../../types/program';
|
|
4
|
-
export interface LoopConfig {
|
|
5
|
-
type: 'for' | 'times' | 'while' | 'until' | 'until-event' | 'forever';
|
|
6
|
-
maxIterations?: number;
|
|
7
|
-
shouldContinue: (ctx: LoopIterationContext) => boolean | Promise<boolean>;
|
|
8
|
-
beforeIteration?: (ctx: LoopIterationContext, context: TypedExecutionContext) => void | Promise<void>;
|
|
9
|
-
eventSetup?: {
|
|
10
|
-
eventName: string;
|
|
11
|
-
target: EventTarget;
|
|
12
|
-
onEvent: () => void;
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
export interface LoopIterationContext {
|
|
16
|
-
index: number;
|
|
17
|
-
item?: unknown;
|
|
18
|
-
collection?: unknown[];
|
|
19
|
-
count?: number;
|
|
20
|
-
conditionExpr?: unknown;
|
|
21
|
-
indexVariable?: string;
|
|
22
|
-
itemVariable?: string;
|
|
23
|
-
eventFired?: boolean;
|
|
24
|
-
}
|
|
25
|
-
export interface LoopResult {
|
|
26
|
-
iterations: number;
|
|
27
|
-
lastResult: unknown;
|
|
28
|
-
interrupted: boolean;
|
|
29
|
-
signal?: ExecutionSignal;
|
|
30
|
-
}
|
|
31
|
-
export declare function executeLoop(config: LoopConfig, context: TypedExecutionContext, iterCtx: LoopIterationContext, body: Op): Promise<LoopResult>;
|
|
32
|
-
export declare function createForLoopConfig(collection: unknown[], itemVariable: string, indexVariable?: string): {
|
|
33
|
-
config: LoopConfig;
|
|
34
|
-
iterCtx: LoopIterationContext;
|
|
35
|
-
};
|
|
36
|
-
export declare function createTimesLoopConfig(count: number, indexVariable?: string): {
|
|
37
|
-
config: LoopConfig;
|
|
38
|
-
iterCtx: LoopIterationContext;
|
|
39
|
-
};
|
|
40
|
-
export declare function createWhileLoopConfig(conditionExpr: unknown, evaluateCondition: (expr: unknown, ctx: TypedExecutionContext) => boolean | Promise<boolean>, context: TypedExecutionContext, indexVariable?: string): {
|
|
41
|
-
config: LoopConfig;
|
|
42
|
-
iterCtx: LoopIterationContext;
|
|
43
|
-
};
|
|
44
|
-
export declare function createUntilLoopConfig(conditionExpr: unknown, evaluateCondition: (expr: unknown, ctx: TypedExecutionContext) => boolean | Promise<boolean>, context: TypedExecutionContext, indexVariable?: string): {
|
|
45
|
-
config: LoopConfig;
|
|
46
|
-
iterCtx: LoopIterationContext;
|
|
47
|
-
};
|
|
48
|
-
export declare function createUntilEventLoopConfig(eventName: string, eventTarget: EventTarget, indexVariable?: string): {
|
|
49
|
-
config: LoopConfig;
|
|
50
|
-
iterCtx: LoopIterationContext;
|
|
51
|
-
};
|
|
52
|
-
export declare function createForeverLoopConfig(indexVariable?: string, maxIterations?: number): {
|
|
53
|
-
config: LoopConfig;
|
|
54
|
-
iterCtx: LoopIterationContext;
|
|
55
|
-
};
|
|
56
|
-
//# sourceMappingURL=loop-executor.d.ts.map
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { ASTNode, ExecutionContext } from '../../types/base-types';
|
|
2
|
-
import type { ExpressionEvaluator } from '../../core/expression-evaluator';
|
|
3
|
-
import { type NodeWriterFn } from '../../parser/extensions';
|
|
4
|
-
export interface NumericTargetRawInput {
|
|
5
|
-
args: ASTNode[];
|
|
6
|
-
modifiers: Record<string, ASTNode>;
|
|
7
|
-
}
|
|
8
|
-
export interface NumericCustomWrite {
|
|
9
|
-
node: ASTNode;
|
|
10
|
-
writer: NodeWriterFn;
|
|
11
|
-
currentValue: number;
|
|
12
|
-
}
|
|
13
|
-
export interface NumericTargetInput {
|
|
14
|
-
target: string | HTMLElement | number | Record<string, unknown>;
|
|
15
|
-
property?: string;
|
|
16
|
-
scope?: 'global' | 'local';
|
|
17
|
-
amount: number;
|
|
18
|
-
customWrite?: NumericCustomWrite;
|
|
19
|
-
}
|
|
20
|
-
export declare function parseNumericTargetInput(raw: NumericTargetRawInput, evaluator: ExpressionEvaluator, context: ExecutionContext, commandName: string): Promise<NumericTargetInput>;
|
|
21
|
-
//# sourceMappingURL=numeric-target-parser.d.ts.map
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { ASTNode, ExecutionContext } from '../../types/base-types';
|
|
2
|
-
import type { PropertyOfExpressionNode, PropertyAccessNode } from '../../ast/nodes';
|
|
3
|
-
import type { ExpressionEvaluator } from '../../core/expression-evaluator';
|
|
4
|
-
export interface PropertyTarget {
|
|
5
|
-
element: HTMLElement;
|
|
6
|
-
property: string;
|
|
7
|
-
}
|
|
8
|
-
export type { PropertyOfExpressionNode, PropertyAccessNode };
|
|
9
|
-
import { isPropertyOfExpressionNode as isPropertyOfExpressionNodeGuard, isPropertyAccessNode as isPropertyAccessNodeGuard } from '../../ast/guards';
|
|
10
|
-
export declare const isPropertyOfExpressionNode: typeof isPropertyOfExpressionNodeGuard;
|
|
11
|
-
export declare const isPropertyAccessNode: typeof isPropertyAccessNodeGuard;
|
|
12
|
-
export declare function isPropertyTargetString(value: unknown): value is string;
|
|
13
|
-
export declare function resolvePropertyTargetFromNode(node: PropertyOfExpressionNode, evaluator: ExpressionEvaluator, context: ExecutionContext): Promise<PropertyTarget | null>;
|
|
14
|
-
export declare function resolvePropertyTargetFromAccessNode(node: PropertyAccessNode, evaluator: ExpressionEvaluator, context: ExecutionContext): Promise<PropertyTarget | null>;
|
|
15
|
-
export declare function resolvePropertyTargetFromString(value: string, context: ExecutionContext): PropertyTarget | null;
|
|
16
|
-
export declare function resolveAnyPropertyTarget(node: ASTNode, evaluator: ExpressionEvaluator, context: ExecutionContext): Promise<PropertyTarget | null>;
|
|
17
|
-
export declare function readPropertyTarget(target: PropertyTarget): unknown;
|
|
18
|
-
export declare function writePropertyTarget(target: PropertyTarget, value: unknown): void;
|
|
19
|
-
export declare function togglePropertyTarget(target: PropertyTarget): unknown;
|
|
20
|
-
//# sourceMappingURL=property-target.d.ts.map
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { ASTNode, ExecutionContext } from '../../types/base-types';
|
|
2
|
-
export type SelectorType = 'class' | 'attribute' | 'css-property' | 'element' | 'identifier' | 'unknown';
|
|
3
|
-
export type SmartElementTag = 'dialog' | 'details' | 'summary' | 'select';
|
|
4
|
-
export declare const SMART_ELEMENT_TAGS: readonly SmartElementTag[];
|
|
5
|
-
export declare function detectSelectorType(value: string): SelectorType;
|
|
6
|
-
export declare function isSmartElementTag(tag: string): tag is SmartElementTag;
|
|
7
|
-
export declare function isSmartElementSelector(selector: string): boolean;
|
|
8
|
-
export declare function extractSelectorValue(node: ASTNode): string | null;
|
|
9
|
-
export declare function isClassSelectorNode(node: ASTNode): boolean;
|
|
10
|
-
export declare function isIdSelectorNode(node: ASTNode): boolean;
|
|
11
|
-
export declare function isCSSPropertySelectorNode(node: ASTNode): boolean;
|
|
12
|
-
export declare function isAttributeSelectorNode(node: ASTNode): boolean;
|
|
13
|
-
export declare function extractAttributeValue(node: ASTNode): string | null;
|
|
14
|
-
export declare function isBareSmartElementNode(node: ASTNode): boolean;
|
|
15
|
-
export type CommandInputType = 'classes' | 'attribute' | 'css-property' | 'element' | 'styles' | 'unknown';
|
|
16
|
-
export interface ParsedFirstArg {
|
|
17
|
-
value: unknown;
|
|
18
|
-
extractedFromNode: boolean;
|
|
19
|
-
}
|
|
20
|
-
export declare function evaluateFirstArg(firstArg: ASTNode, evaluator: {
|
|
21
|
-
evaluate: (node: ASTNode, context: ExecutionContext) => Promise<unknown>;
|
|
22
|
-
}, context: ExecutionContext): Promise<ParsedFirstArg>;
|
|
23
|
-
export declare function detectInputType(value: string): CommandInputType;
|
|
24
|
-
//# sourceMappingURL=selector-type-detection.d.ts.map
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { ExecutionContext, ExpressionNode } from '../../types/core';
|
|
2
|
-
import type { ExpressionEvaluator } from '../../core/expression-evaluator';
|
|
3
|
-
export declare function requireSlot(node: ExpressionNode | undefined, what: string): ExpressionNode;
|
|
4
|
-
export declare function evaluateSlot(evaluator: ExpressionEvaluator, context: ExecutionContext, node: ExpressionNode | undefined, what: string): Promise<unknown>;
|
|
5
|
-
//# sourceMappingURL=slots.d.ts.map
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export type SmartElementType = 'dialog' | 'details' | 'select' | null;
|
|
2
|
-
export type DialogMode = 'modal' | 'non-modal';
|
|
3
|
-
export declare function detectSmartElementType(elements: HTMLElement[]): SmartElementType;
|
|
4
|
-
export declare function resolveSmartElementTargets(elements: HTMLElement[]): HTMLElement[];
|
|
5
|
-
export declare function toggleDialog(dialog: HTMLDialogElement, mode: DialogMode): void;
|
|
6
|
-
export declare function toggleDetails(details: HTMLDetailsElement): void;
|
|
7
|
-
export declare function toggleSelect(select: HTMLSelectElement): void;
|
|
8
|
-
export declare function toggleSmartElement(element: HTMLElement, type: SmartElementType, options?: {
|
|
9
|
-
dialogMode?: DialogMode;
|
|
10
|
-
}): boolean;
|
|
11
|
-
export declare function isSmartElement(element: HTMLElement): boolean;
|
|
12
|
-
export declare function isDialogElement(element: HTMLElement): element is HTMLDialogElement;
|
|
13
|
-
export declare function isDetailsElement(element: HTMLElement): element is HTMLDetailsElement;
|
|
14
|
-
export declare function isSelectElement(element: HTMLElement): element is HTMLSelectElement;
|
|
15
|
-
export declare function isSummaryElement(element: HTMLElement): boolean;
|
|
16
|
-
//# sourceMappingURL=smart-element.d.ts.map
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export type ToggleableCSSProperty = 'display' | 'visibility' | 'opacity';
|
|
2
|
-
export interface ParsedCSSProperty {
|
|
3
|
-
property: string;
|
|
4
|
-
value?: string;
|
|
5
|
-
}
|
|
6
|
-
export declare function parseCSSProperty(expression: string): ParsedCSSProperty | null;
|
|
7
|
-
export declare function isCSSPropertySyntax(value: string): boolean;
|
|
8
|
-
export declare function parseToggleableCSSProperty(expression: string): ToggleableCSSProperty | null;
|
|
9
|
-
export declare function getComputedStyleValue(element: HTMLElement, property: string): string;
|
|
10
|
-
export declare function setStyleValue(element: HTMLElement, property: string, value: string): void;
|
|
11
|
-
export declare function removeStyleProperty(element: HTMLElement, property: string): void;
|
|
12
|
-
export declare function toggleCSSProperty(element: HTMLElement, property: ToggleableCSSProperty): void;
|
|
13
|
-
export declare function isDisplayNone(element: HTMLElement): boolean;
|
|
14
|
-
export declare function isVisibilityHidden(element: HTMLElement): boolean;
|
|
15
|
-
export declare function isOpacityZero(element: HTMLElement): boolean;
|
|
16
|
-
//# sourceMappingURL=style-manipulation.d.ts.map
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare function resolveTargetElements(matches: unknown, selector: unknown, fromQuery?: boolean): unknown;
|
|
2
|
-
export declare function queryTargetElements(selector: string): HTMLElement[];
|
|
3
|
-
export declare function toElementListFiltered(value: unknown): HTMLElement[] | null;
|
|
4
|
-
export declare function toElementListStrict(value: unknown): HTMLElement[] | null;
|
|
5
|
-
//# sourceMappingURL=target-elements.d.ts.map
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export type ToggleType = 'class' | 'attribute';
|
|
2
|
-
export type CleanupFn = () => void;
|
|
3
|
-
export declare function createReversionFn(element: HTMLElement, toggleType: ToggleType, identifier: string): () => void;
|
|
4
|
-
export declare function setupDurationReversion(element: HTMLElement, toggleType: ToggleType, identifier: string, duration: number): CleanupFn;
|
|
5
|
-
export declare function setupEventReversion(element: HTMLElement, toggleType: ToggleType, identifier: string, eventName: string): CleanupFn;
|
|
6
|
-
export interface TemporalModifierOptions {
|
|
7
|
-
element: HTMLElement;
|
|
8
|
-
toggleType: ToggleType;
|
|
9
|
-
identifier: string;
|
|
10
|
-
duration?: number;
|
|
11
|
-
untilEvent?: string;
|
|
12
|
-
}
|
|
13
|
-
export declare function setupTemporalModifiers(options: TemporalModifierOptions): CleanupFn[];
|
|
14
|
-
export declare function setupTemporalModifiersForElements(elements: HTMLElement[], toggleType: ToggleType, identifier: string, duration?: number, untilEvent?: string): CleanupFn;
|
|
15
|
-
//# sourceMappingURL=temporal-modifiers.d.ts.map
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { ExecutionContext, ExpressionNode } from '../../types/core';
|
|
2
|
-
import type { ASTNode } from '../../types/base-types';
|
|
3
|
-
import type { ExpressionEvaluator } from '../../core/expression-evaluator';
|
|
4
|
-
export interface UrlCommandInput {
|
|
5
|
-
url: string;
|
|
6
|
-
title?: string;
|
|
7
|
-
state?: Record<string, unknown>;
|
|
8
|
-
}
|
|
9
|
-
export declare function parseUrlArguments(raw: {
|
|
10
|
-
args: ASTNode[];
|
|
11
|
-
modifiers?: Record<string, ExpressionNode>;
|
|
12
|
-
}, evaluator: ExpressionEvaluator, context: ExecutionContext, commandName: string): Promise<UrlCommandInput>;
|
|
13
|
-
//# sourceMappingURL=url-argument-parser.d.ts.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare function validateUrl(url: unknown, commandName: string, debugInfo?: string): string;
|
|
2
|
-
export declare function isExternalUrl(url: string): boolean;
|
|
3
|
-
export declare function isSafeUrl(url: string): boolean;
|
|
4
|
-
export declare function normalizeUrl(url: string): string;
|
|
5
|
-
export declare function extractSearchParams(url: string): URLSearchParams;
|
|
6
|
-
export declare function buildUrlWithParams(basePath: string, params: Record<string, string> | URLSearchParams | FormData): string;
|
|
7
|
-
//# sourceMappingURL=url-validation.d.ts.map
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { ExecutionContext } from '../../types/base-types';
|
|
2
|
-
export declare function convertToNumber(value: unknown): number;
|
|
3
|
-
export declare function counterAmount(value: unknown): number;
|
|
4
|
-
export declare function counterValue(value: unknown): number;
|
|
5
|
-
export declare function getVariableValue(name: string, context: ExecutionContext, preferredScope?: string): unknown;
|
|
6
|
-
export declare function setVariableValue(name: string, value: unknown, context: ExecutionContext, preferredScope?: string): void;
|
|
7
|
-
export declare function resolveElementRef(elementRef: string, context: ExecutionContext): unknown;
|
|
8
|
-
export declare function getElementPropertyValue(propertyPath: string, context: ExecutionContext): number;
|
|
9
|
-
export declare function setElementPropertyValue(propertyPath: string, value: unknown, context: ExecutionContext): void;
|
|
10
|
-
export declare function isObjectOwner(value: unknown): value is Record<string, unknown>;
|
|
11
|
-
export declare function getCurrentNumericValue(target: string | HTMLElement | number | Record<string, unknown>, property: string | undefined, scope: string | undefined, context: ExecutionContext): number;
|
|
12
|
-
export declare function setTargetValue(target: string | HTMLElement | number | Record<string, unknown>, property: string | undefined, scope: string | undefined, newValue: unknown, context: ExecutionContext): void;
|
|
13
|
-
//# sourceMappingURL=variable-access.d.ts.map
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { ASTNode, ExecutionContext, ExpressionNode } from '../../types/base-types';
|
|
2
|
-
import type { ExpressionEvaluator } from '../../core/expression-evaluator';
|
|
3
|
-
export interface VisibilityRawInput {
|
|
4
|
-
args: ASTNode[];
|
|
5
|
-
modifiers: Record<string, ExpressionNode>;
|
|
6
|
-
}
|
|
7
|
-
export interface VisibilityInput {
|
|
8
|
-
targets: HTMLElement[];
|
|
9
|
-
}
|
|
10
|
-
export declare function parseVisibilityInput(raw: VisibilityRawInput, evaluator: ExpressionEvaluator, context: ExecutionContext, commandName: string): Promise<VisibilityInput>;
|
|
11
|
-
export declare function partitionByCondition(targets: HTMLElement[], condition: ASTNode, evaluator: ExpressionEvaluator, context: ExecutionContext): Promise<{
|
|
12
|
-
matched: HTMLElement[];
|
|
13
|
-
unmatched: HTMLElement[];
|
|
14
|
-
}>;
|
|
15
|
-
//# sourceMappingURL=visibility-target-parser.d.ts.map
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import type { ExecutionContext } from '../../types/core';
|
|
2
|
-
import type { ASTNode } from '../../types/base-types';
|
|
3
|
-
import type { ExpressionEvaluator } from '../../core/expression-evaluator';
|
|
4
|
-
import { type PropertyTarget } from './property-target';
|
|
5
|
-
import { type NodeWriterFn } from '../../parser/extensions';
|
|
6
|
-
export type WriteTarget = {
|
|
7
|
-
kind: 'node-write';
|
|
8
|
-
node: ASTNode;
|
|
9
|
-
writer: NodeWriterFn;
|
|
10
|
-
} | {
|
|
11
|
-
kind: 'selector';
|
|
12
|
-
selector: string;
|
|
13
|
-
} | {
|
|
14
|
-
kind: 'attribute';
|
|
15
|
-
elements: HTMLElement[];
|
|
16
|
-
name: string;
|
|
17
|
-
} | {
|
|
18
|
-
kind: 'style';
|
|
19
|
-
element: HTMLElement;
|
|
20
|
-
property: string;
|
|
21
|
-
} | {
|
|
22
|
-
kind: 'property';
|
|
23
|
-
target: PropertyTarget;
|
|
24
|
-
} | {
|
|
25
|
-
kind: 'member';
|
|
26
|
-
container: Record<string, unknown>;
|
|
27
|
-
property: string;
|
|
28
|
-
} | {
|
|
29
|
-
kind: 'variable';
|
|
30
|
-
name: string;
|
|
31
|
-
scope?: 'element' | 'global';
|
|
32
|
-
};
|
|
33
|
-
export interface WriteTargetOptions {
|
|
34
|
-
scopeElements: () => Promise<HTMLElement[]>;
|
|
35
|
-
nodeWriters?: boolean;
|
|
36
|
-
selectorSource?: boolean;
|
|
37
|
-
styleSplit?: boolean;
|
|
38
|
-
ofAndObjectProperty?: boolean;
|
|
39
|
-
bareReference?: boolean;
|
|
40
|
-
}
|
|
41
|
-
export declare function resolveWriteTarget(node: ASTNode | Record<string, unknown> | undefined, evaluator: ExpressionEvaluator, context: ExecutionContext, options: WriteTargetOptions): Promise<WriteTarget | null>;
|
|
42
|
-
//# sourceMappingURL=write-target.d.ts.map
|