@hyperfixi/core 2.3.0 → 2.4.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 +8 -11
- package/dist/api/dom-processor.d.ts +8 -4
- package/dist/api/hyperscript-api.d.ts +5 -1
- package/dist/ast-utils/index.js +25320 -94
- package/dist/ast-utils/index.mjs +25320 -94
- package/dist/ast-utils/interchange/types.d.ts +7 -1
- package/dist/behaviors/index.js +54 -100
- package/dist/behaviors/index.mjs +54 -100
- package/dist/bundle-generator/index.js +44 -6
- package/dist/bundle-generator/index.mjs +44 -6
- package/dist/bundle-generator/parser-templates.d.ts +1 -1
- package/dist/bundle-generator/template-capabilities.d.ts +1 -1
- package/dist/chunks/bridge-C4d3blZX.js +2 -0
- package/dist/chunks/browser-modular-BwIRlrTM.js +2 -0
- package/dist/chunks/feature-eventsource-BpZvPy_K.js +2 -0
- package/dist/chunks/{feature-sockets-ClOH7vk7.js → feature-sockets-CrYvjZ4j.js} +2 -2
- package/dist/chunks/feature-webworker-BSYguEIW.js +2 -0
- package/dist/chunks/index-Beno_SBy.js +2 -0
- package/dist/commands/advanced/async.d.ts +6 -2
- package/dist/commands/advanced/js.d.ts +1 -1
- package/dist/commands/animation/start-view-transition.d.ts +24 -0
- package/dist/commands/async/fetch.d.ts +6 -1
- package/dist/commands/control-flow/repeat.d.ts +2 -0
- package/dist/commands/data/clear.d.ts +23 -0
- package/dist/commands/data/set.d.ts +6 -0
- package/dist/commands/dom/close.d.ts +19 -0
- package/dist/commands/dom/empty.d.ts +19 -0
- package/dist/commands/dom/open.d.ts +21 -0
- package/dist/commands/dom/reset.d.ts +19 -0
- package/dist/commands/dom/select.d.ts +19 -0
- package/dist/commands/dom/swap.d.ts +7 -4
- package/dist/commands/events/trigger.d.ts +1 -1
- package/dist/commands/execution/blur.d.ts +19 -0
- package/dist/commands/execution/call.d.ts +1 -2
- package/dist/commands/execution/focus.d.ts +19 -0
- package/dist/commands/helpers/element-resolution.d.ts +2 -2
- package/dist/commands/helpers/event-waiting.d.ts +1 -1
- package/dist/commands/helpers/numeric-target-parser.d.ts +7 -0
- package/dist/commands/index.d.ts +34 -2
- package/dist/commands/index.js +19374 -4848
- package/dist/commands/index.mjs +19342 -4849
- package/dist/commands/navigation/go.d.ts +3 -0
- package/dist/commands/navigation/scroll-to.d.ts +26 -0
- package/dist/commands/utility/beep.d.ts +2 -2
- package/dist/commands/utility/breakpoint.d.ts +19 -0
- package/dist/commands/utility/pick.d.ts +11 -2
- package/dist/compatibility/browser-bundle-modular.d.ts +2 -2
- package/dist/compatibility/browser-bundle-multilingual.d.ts +1 -1
- package/dist/compatibility/browser-bundle-semantic-complete.d.ts +3 -3
- package/dist/compatibility/browser-bundle.d.ts +13 -6
- package/dist/compatibility/browser-modular.d.ts +1 -3
- package/dist/core/expression-evaluator.d.ts +4 -4
- package/dist/core/expression-registry.d.ts +8 -0
- package/dist/expressions/bundles/common-expressions.d.ts +2 -2
- package/dist/expressions/bundles/core-expressions.d.ts +2 -2
- package/dist/expressions/bundles/full-expressions.d.ts +2 -2
- package/dist/expressions/bundles/index.d.ts +3 -3
- package/dist/expressions/collection/index.d.ts +35 -0
- package/dist/expressions/conversion/impl/index.d.ts +1 -1
- package/dist/expressions/index.d.ts +4 -3
- package/dist/expressions/index.js +1117 -1590
- package/dist/expressions/index.mjs +1113 -1586
- package/dist/expressions/logical/index.d.ts +2 -0
- package/dist/expressions/mathematical/index.d.ts +11 -0
- package/dist/expressions/shared/index.d.ts +1 -1
- package/dist/expressions/shared/number-utils.d.ts +1 -0
- package/dist/htmx/htmx-attribute-processor.d.ts +37 -1
- package/dist/htmx/htmx-translator.d.ts +2 -0
- package/dist/htmx/i18n-hooks.d.ts +15 -0
- package/dist/htmx/i18n-orchestrator.d.ts +15 -0
- package/dist/htmx/lang-resolver.d.ts +3 -0
- package/dist/htmx/sse.d.ts +60 -0
- package/dist/htmx/ws.d.ts +59 -0
- package/dist/hyperfixi-browser-classic-i18n.js +2 -0
- package/dist/hyperfixi-browser-minimal.js +1 -0
- package/dist/hyperfixi-browser-standard.js +2 -0
- package/dist/hyperfixi-browser.js +2 -0
- package/dist/hyperfixi-classic-i18n.js +1 -1
- package/dist/hyperfixi-hx-v4.js +1 -0
- package/dist/hyperfixi-hx.js +1 -1
- package/dist/hyperfixi-hybrid-complete.js +1 -1
- package/dist/hyperfixi-hybrid-hx.js +1 -0
- package/dist/hyperfixi-minimal.js +1 -1
- package/dist/hyperfixi-multilingual.js +1 -1
- package/dist/hyperfixi-standard.js +1 -1
- package/dist/hyperfixi.js +1 -1
- package/dist/hyperfixi.mjs +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +43613 -45063
- package/dist/index.min.js +1 -1
- package/dist/index.mjs +43610 -45064
- package/dist/lib/index.d.ts +2 -2
- package/dist/lib/morph-adapter.d.ts +0 -13
- package/dist/lib/swap-executor.d.ts +0 -10
- package/dist/lib/view-transitions.d.ts +1 -30
- package/dist/lokascript-browser-classic-i18n.js +1 -1
- package/dist/lokascript-browser-minimal.js +1 -1
- package/dist/lokascript-browser-standard.js +1 -1
- package/dist/lokascript-browser.js +1 -1
- package/dist/lokascript-hybrid-complete.js +1 -1
- package/dist/lokascript-hybrid-hx.js +1 -1
- package/dist/lokascript-multilingual.js +1 -1
- package/dist/lsp-metadata.d.ts +9 -4
- package/dist/lsp-metadata.js +187 -3
- package/dist/lsp-metadata.mjs +185 -4
- package/dist/metadata.d.ts +1 -1
- package/dist/metadata.js +3 -3
- package/dist/metadata.mjs +3 -3
- package/dist/multilingual/bridge.d.ts +1 -1
- package/dist/multilingual/index.js +79 -22
- package/dist/multilingual/index.mjs +79 -22
- package/dist/parser/command-parsers/animation-commands.d.ts +1 -0
- package/dist/parser/command-parsers/utility-commands.d.ts +1 -0
- package/dist/parser/extensions.d.ts +51 -0
- package/dist/parser/full-parser.js +1224 -899
- package/dist/parser/full-parser.mjs +1224 -899
- package/dist/parser/helpers/ast-helpers.d.ts +1 -0
- package/dist/parser/helpers/parsing-helpers.d.ts +4 -0
- package/dist/parser/hybrid/index.js +7 -0
- package/dist/parser/hybrid/index.mjs +7 -0
- package/dist/parser/hybrid/parser-core.js +7 -0
- package/dist/parser/hybrid/parser-core.mjs +7 -0
- package/dist/parser/hybrid/tokenizer.js +7 -0
- package/dist/parser/hybrid/tokenizer.mjs +7 -0
- package/dist/parser/hybrid-parser.js +7 -0
- package/dist/parser/hybrid-parser.mjs +7 -0
- package/dist/parser/parser-types.d.ts +8 -28
- package/dist/parser/parser.d.ts +3 -7
- package/dist/parser/pratt-parser.d.ts +0 -3
- package/dist/parser/runtime.d.ts +4 -0
- package/dist/parser/semantic-integration.d.ts +17 -0
- package/dist/parser/types.d.ts +7 -1
- package/dist/reference/index.js +91 -0
- package/dist/reference/index.mjs +91 -0
- package/dist/registry/index.js +12866 -5876
- package/dist/registry/index.mjs +12866 -5876
- package/dist/registry/universal-types.d.ts +2 -1
- package/dist/runtime/command-adapter.d.ts +23 -16
- package/dist/runtime/plugin.d.ts +14 -0
- package/dist/runtime/runtime-base.d.ts +32 -7
- package/dist/runtime/runtime-factory.d.ts +3 -3
- package/dist/runtime/runtime.d.ts +2 -2
- package/dist/test-setup.d.ts +1 -0
- package/dist/types/base-types.d.ts +3 -0
- package/dist/types/feature-types.d.ts +1 -1
- package/dist/types/index.d.ts +2 -2
- package/package.json +26 -20
- package/vocab/htmx/ar.js +60 -0
- package/vocab/htmx/bn.js +49 -0
- package/vocab/htmx/de.js +60 -0
- package/vocab/htmx/en.js +21 -0
- package/vocab/htmx/es.js +60 -0
- package/vocab/htmx/fr.js +59 -0
- package/vocab/htmx/he.js +40 -0
- package/vocab/htmx/hi.js +60 -0
- package/vocab/htmx/id.js +57 -0
- package/vocab/htmx/it.js +58 -0
- package/vocab/htmx/ja.js +60 -0
- package/vocab/htmx/ko.js +60 -0
- package/vocab/htmx/ms.js +35 -0
- package/vocab/htmx/pl.js +60 -0
- package/vocab/htmx/pt.js +60 -0
- package/vocab/htmx/qu.js +60 -0
- package/vocab/htmx/ru.js +60 -0
- package/vocab/htmx/sw.js +59 -0
- package/vocab/htmx/th.js +49 -0
- package/vocab/htmx/tl.js +33 -0
- package/vocab/htmx/tr.js +60 -0
- package/vocab/htmx/uk.js +60 -0
- package/vocab/htmx/vi.js +51 -0
- package/vocab/htmx/zh.js +60 -0
- package/dist/bundles/test-minimal.d.ts +0 -3
- package/dist/bundles/test-standard.d.ts +0 -3
- package/dist/chunks/bridge-BlRqsZT4.js +0 -2
- package/dist/chunks/browser-modular-AbV0Ql4i.js +0 -2
- package/dist/chunks/feature-eventsource-B5F2-H1r.js +0 -2
- package/dist/chunks/feature-webworker-3bAp0ac9.js +0 -2
- package/dist/chunks/index-BDYQHwCF.js +0 -2
- package/dist/compatibility/browser-bundle-minimal.d.ts +0 -8
- package/dist/compatibility/browser-bundle-standard.d.ts +0 -8
- package/dist/compatibility/hyperscript-tests/test-adapter.d.ts +0 -13
- package/dist/core/base-expression-evaluator.d.ts +0 -74
- package/dist/core/binary-expression-evaluator.d.ts +0 -7
- package/dist/core/call-expression-evaluator.d.ts +0 -7
- package/dist/core/configurable-expression-evaluator.d.ts +0 -5
- package/dist/core/lazy-expression-evaluator.d.ts +0 -22
- package/dist/core/parser.d.ts +0 -21
- package/dist/core/selector-evaluator.d.ts +0 -15
- package/dist/core/template-literal-evaluator.d.ts +0 -5
- package/dist/expressions/comparison/index.d.ts +0 -80
- package/dist/expressions/comparison/utils.d.ts +0 -2
- package/dist/expressions/conversion/impl/bridge.d.ts +0 -117
- package/dist/expressions/logical/impl/pattern-matching.d.ts +0 -58
- package/dist/expressions/positional/impl/bridge.d.ts +0 -95
- package/dist/expressions/property/index.d.ts +0 -55
- package/dist/expressions/references/impl/bridge.d.ts +0 -54
- package/dist/extensions/index.d.ts +0 -3
- package/dist/extensions/tailwind.d.ts +0 -22
- package/dist/mod.d.ts +0 -63
- package/dist/parser/expression-parser.d.ts +0 -6
- package/dist/runtime/runtime-experimental.d.ts +0 -18
- package/dist/scripts/code-generator.d.ts +0 -64
- package/dist/scripts/generate-missing-commands.d.ts +0 -4
package/dist/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { morphAdapter,
|
|
2
|
-
export { withViewTransition,
|
|
1
|
+
export { morphAdapter, type MorphOptions } from './morph-adapter';
|
|
2
|
+
export { withViewTransition, isViewTransitionsSupported, type TransitionCallback, } from './view-transitions';
|
|
3
3
|
export { executeSwap, executeSwapWithTransition, extractContent, detectStrategy, STRATEGY_KEYWORDS, type SwapStrategy, type SwapExecutionOptions, } from './swap-executor';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,19 +1,6 @@
|
|
|
1
1
|
export interface MorphOptions {
|
|
2
2
|
preserveChanges?: boolean;
|
|
3
|
-
beforeNodeVisited?: (fromNode: Node, toNode: Node) => boolean;
|
|
4
|
-
afterNodeVisited?: (fromNode: Node, toNode: Node) => void;
|
|
5
|
-
beforeNodeAdded?: (parent: ParentNode, node: Node, insertionPoint: ChildNode | null) => boolean;
|
|
6
|
-
afterNodeAdded?: (node: Node) => void;
|
|
7
|
-
beforeNodeRemoved?: (node: Node) => boolean;
|
|
8
|
-
afterNodeRemoved?: (node: Node) => void;
|
|
9
3
|
}
|
|
10
|
-
export interface MorphEngine {
|
|
11
|
-
morph(target: Element, content: string | Element, options?: MorphOptions): void;
|
|
12
|
-
morphInner(target: Element, content: string | Element, options?: MorphOptions): void;
|
|
13
|
-
}
|
|
14
|
-
export declare function setMorphEngine(engine: MorphEngine): void;
|
|
15
|
-
export declare function getMorphEngine(): MorphEngine;
|
|
16
|
-
export declare function resetMorphEngine(): void;
|
|
17
4
|
export declare const morphAdapter: {
|
|
18
5
|
morph(target: Element, content: string | Element, options?: MorphOptions): void;
|
|
19
6
|
morphInner(target: Element, content: string | Element, options?: MorphOptions): void;
|
|
@@ -3,20 +3,10 @@ export type SwapStrategy = 'morph' | 'morphOuter' | 'innerHTML' | 'outerHTML' |
|
|
|
3
3
|
export interface SwapExecutionOptions {
|
|
4
4
|
morphOptions?: MorphOptions;
|
|
5
5
|
useViewTransition?: boolean;
|
|
6
|
-
validateContent?: boolean;
|
|
7
|
-
targetSelector?: string;
|
|
8
6
|
}
|
|
9
7
|
export declare const STRATEGY_KEYWORDS: Record<string, SwapStrategy>;
|
|
10
8
|
export declare function detectStrategy(args: string[]): SwapStrategy;
|
|
11
9
|
export declare function executeSwap(target: HTMLElement, content: string | HTMLElement | null, strategy: SwapStrategy, morphOptions?: MorphOptions): void;
|
|
12
10
|
export declare function executeSwapWithTransition(targets: HTMLElement[], content: string | HTMLElement | null, strategy: SwapStrategy, options?: SwapExecutionOptions): Promise<void>;
|
|
13
11
|
export declare function extractContent(value: unknown): string | HTMLElement | null;
|
|
14
|
-
declare const _default: {
|
|
15
|
-
executeSwap: typeof executeSwap;
|
|
16
|
-
executeSwapWithTransition: typeof executeSwapWithTransition;
|
|
17
|
-
extractContent: typeof extractContent;
|
|
18
|
-
detectStrategy: typeof detectStrategy;
|
|
19
|
-
STRATEGY_KEYWORDS: Record<string, SwapStrategy>;
|
|
20
|
-
};
|
|
21
|
-
export default _default;
|
|
22
12
|
//# sourceMappingURL=swap-executor.d.ts.map
|
|
@@ -1,33 +1,4 @@
|
|
|
1
1
|
export type TransitionCallback = () => void | Promise<void>;
|
|
2
|
-
export interface ViewTransitionOptions {
|
|
3
|
-
skipTransition?: boolean;
|
|
4
|
-
transitionName?: string;
|
|
5
|
-
timeout?: number;
|
|
6
|
-
}
|
|
7
2
|
export declare function isViewTransitionsSupported(): boolean;
|
|
8
|
-
export
|
|
9
|
-
enabled: boolean;
|
|
10
|
-
defaultTimeout: number;
|
|
11
|
-
debug: boolean;
|
|
12
|
-
}
|
|
13
|
-
export declare function configureViewTransitions(options: Partial<ViewTransitionsConfig>): void;
|
|
14
|
-
export declare function getViewTransitionsConfig(): ViewTransitionsConfig;
|
|
15
|
-
export declare function withViewTransition(callback: TransitionCallback, options?: ViewTransitionOptions): Promise<void>;
|
|
16
|
-
export declare function withViewTransitionImmediate(callback: TransitionCallback, options?: ViewTransitionOptions): Promise<void>;
|
|
17
|
-
export declare function clearTransitionQueue(): void;
|
|
18
|
-
export declare function getPendingTransitionCount(): number;
|
|
19
|
-
export declare function isTransitioning(): boolean;
|
|
20
|
-
export declare function setTransitionName(element: Element, name: string | null): void;
|
|
21
|
-
declare const _default: {
|
|
22
|
-
isSupported: typeof isViewTransitionsSupported;
|
|
23
|
-
configure: typeof configureViewTransitions;
|
|
24
|
-
getConfig: typeof getViewTransitionsConfig;
|
|
25
|
-
withTransition: typeof withViewTransition;
|
|
26
|
-
withTransitionImmediate: typeof withViewTransitionImmediate;
|
|
27
|
-
clearQueue: typeof clearTransitionQueue;
|
|
28
|
-
getPendingCount: typeof getPendingTransitionCount;
|
|
29
|
-
isTransitioning: typeof isTransitioning;
|
|
30
|
-
setTransitionName: typeof setTransitionName;
|
|
31
|
-
};
|
|
32
|
-
export default _default;
|
|
3
|
+
export declare function withViewTransition(callback: TransitionCallback): Promise<void>;
|
|
33
4
|
//# sourceMappingURL=view-transitions.d.ts.map
|