@hyperfixi/core 2.3.1 → 2.5.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.
Files changed (194) hide show
  1. package/dist/api/dom-processor.d.ts +8 -4
  2. package/dist/api/hyperscript-api.d.ts +5 -1
  3. package/dist/ast-utils/index.js +25320 -94
  4. package/dist/ast-utils/index.mjs +25320 -94
  5. package/dist/ast-utils/interchange/types.d.ts +7 -1
  6. package/dist/behaviors/index.js +54 -100
  7. package/dist/behaviors/index.mjs +54 -100
  8. package/dist/bundle-generator/index.js +19 -2
  9. package/dist/bundle-generator/index.mjs +19 -2
  10. package/dist/bundle-generator/parser-templates.d.ts +1 -1
  11. package/dist/bundle-generator/template-capabilities.d.ts +1 -1
  12. package/dist/chunks/bridge-Ce2mO-nk.js +2 -0
  13. package/dist/chunks/browser-modular-D5vPrb2X.js +2 -0
  14. package/dist/chunks/feature-eventsource-BpZvPy_K.js +2 -0
  15. package/dist/chunks/{feature-sockets-ClOH7vk7.js → feature-sockets-CrYvjZ4j.js} +2 -2
  16. package/dist/chunks/feature-webworker-BSYguEIW.js +2 -0
  17. package/dist/chunks/index-DsBHN4zW.js +2 -0
  18. package/dist/commands/advanced/async.d.ts +6 -2
  19. package/dist/commands/advanced/js.d.ts +1 -1
  20. package/dist/commands/animation/start-view-transition.d.ts +24 -0
  21. package/dist/commands/async/fetch.d.ts +6 -1
  22. package/dist/commands/control-flow/repeat.d.ts +2 -0
  23. package/dist/commands/data/clear.d.ts +23 -0
  24. package/dist/commands/data/set.d.ts +6 -0
  25. package/dist/commands/dom/close.d.ts +19 -0
  26. package/dist/commands/dom/empty.d.ts +19 -0
  27. package/dist/commands/dom/open.d.ts +21 -0
  28. package/dist/commands/dom/reset.d.ts +19 -0
  29. package/dist/commands/dom/select.d.ts +19 -0
  30. package/dist/commands/dom/swap.d.ts +7 -4
  31. package/dist/commands/events/trigger.d.ts +1 -1
  32. package/dist/commands/execution/blur.d.ts +19 -0
  33. package/dist/commands/execution/call.d.ts +1 -2
  34. package/dist/commands/execution/focus.d.ts +19 -0
  35. package/dist/commands/helpers/element-resolution.d.ts +2 -2
  36. package/dist/commands/helpers/event-waiting.d.ts +1 -1
  37. package/dist/commands/helpers/numeric-target-parser.d.ts +7 -0
  38. package/dist/commands/index.d.ts +34 -2
  39. package/dist/commands/index.js +19353 -4845
  40. package/dist/commands/index.mjs +19321 -4846
  41. package/dist/commands/navigation/go.d.ts +3 -0
  42. package/dist/commands/navigation/scroll-to.d.ts +26 -0
  43. package/dist/commands/utility/beep.d.ts +2 -2
  44. package/dist/commands/utility/breakpoint.d.ts +19 -0
  45. package/dist/commands/utility/pick.d.ts +11 -2
  46. package/dist/compatibility/browser-bundle-modular.d.ts +2 -2
  47. package/dist/compatibility/browser-bundle-multilingual.d.ts +1 -1
  48. package/dist/compatibility/browser-bundle-semantic-complete.d.ts +3 -3
  49. package/dist/compatibility/browser-bundle.d.ts +13 -6
  50. package/dist/compatibility/browser-modular.d.ts +1 -3
  51. package/dist/core/expression-evaluator.d.ts +4 -4
  52. package/dist/core/expression-registry.d.ts +8 -0
  53. package/dist/expressions/bundles/common-expressions.d.ts +2 -2
  54. package/dist/expressions/bundles/core-expressions.d.ts +2 -2
  55. package/dist/expressions/bundles/full-expressions.d.ts +2 -2
  56. package/dist/expressions/bundles/index.d.ts +3 -3
  57. package/dist/expressions/collection/index.d.ts +35 -0
  58. package/dist/expressions/conversion/impl/index.d.ts +1 -1
  59. package/dist/expressions/index.d.ts +4 -3
  60. package/dist/expressions/index.js +1117 -1590
  61. package/dist/expressions/index.mjs +1113 -1586
  62. package/dist/expressions/logical/index.d.ts +2 -0
  63. package/dist/expressions/mathematical/index.d.ts +11 -0
  64. package/dist/expressions/shared/index.d.ts +1 -1
  65. package/dist/expressions/shared/number-utils.d.ts +1 -0
  66. package/dist/htmx/htmx-attribute-processor.d.ts +37 -1
  67. package/dist/htmx/htmx-translator.d.ts +2 -0
  68. package/dist/htmx/i18n-hooks.d.ts +15 -0
  69. package/dist/htmx/i18n-orchestrator.d.ts +15 -0
  70. package/dist/htmx/lang-resolver.d.ts +3 -0
  71. package/dist/htmx/sse.d.ts +60 -0
  72. package/dist/htmx/ws.d.ts +59 -0
  73. package/dist/hyperfixi-browser-classic-i18n.js +2 -0
  74. package/dist/hyperfixi-browser-minimal.js +1 -0
  75. package/dist/hyperfixi-browser-standard.js +2 -0
  76. package/dist/hyperfixi-browser.js +2 -0
  77. package/dist/hyperfixi-classic-i18n.js +1 -1
  78. package/dist/hyperfixi-hx-v4.js +1 -0
  79. package/dist/hyperfixi-hx.js +1 -1
  80. package/dist/hyperfixi-hybrid-complete.js +1 -1
  81. package/dist/hyperfixi-hybrid-hx.js +1 -0
  82. package/dist/hyperfixi-minimal.js +1 -1
  83. package/dist/hyperfixi-multilingual.js +1 -1
  84. package/dist/hyperfixi-standard.js +1 -1
  85. package/dist/hyperfixi.js +1 -1
  86. package/dist/hyperfixi.mjs +1 -1
  87. package/dist/index.d.ts +2 -0
  88. package/dist/index.js +43592 -45060
  89. package/dist/index.min.js +1 -1
  90. package/dist/index.mjs +43589 -45061
  91. package/dist/lib/index.d.ts +2 -2
  92. package/dist/lib/morph-adapter.d.ts +0 -13
  93. package/dist/lib/swap-executor.d.ts +0 -10
  94. package/dist/lib/view-transitions.d.ts +1 -30
  95. package/dist/lokascript-browser-classic-i18n.js +1 -1
  96. package/dist/lokascript-browser-minimal.js +1 -1
  97. package/dist/lokascript-browser-standard.js +1 -1
  98. package/dist/lokascript-browser.js +1 -1
  99. package/dist/lokascript-hybrid-complete.js +1 -1
  100. package/dist/lokascript-hybrid-hx.js +1 -1
  101. package/dist/lokascript-multilingual.js +1 -1
  102. package/dist/lsp-metadata.d.ts +9 -4
  103. package/dist/lsp-metadata.js +187 -3
  104. package/dist/lsp-metadata.mjs +185 -4
  105. package/dist/metadata.d.ts +1 -1
  106. package/dist/metadata.js +3 -3
  107. package/dist/metadata.mjs +3 -3
  108. package/dist/multilingual/bridge.d.ts +1 -1
  109. package/dist/multilingual/index.js +79 -22
  110. package/dist/multilingual/index.mjs +79 -22
  111. package/dist/parser/command-parsers/animation-commands.d.ts +1 -0
  112. package/dist/parser/command-parsers/utility-commands.d.ts +1 -0
  113. package/dist/parser/extensions.d.ts +51 -0
  114. package/dist/parser/full-parser.js +1223 -897
  115. package/dist/parser/full-parser.mjs +1223 -897
  116. package/dist/parser/helpers/ast-helpers.d.ts +1 -0
  117. package/dist/parser/helpers/parsing-helpers.d.ts +4 -0
  118. package/dist/parser/parser-types.d.ts +8 -28
  119. package/dist/parser/parser.d.ts +3 -7
  120. package/dist/parser/pratt-parser.d.ts +0 -3
  121. package/dist/parser/runtime.d.ts +4 -0
  122. package/dist/parser/semantic-integration.d.ts +17 -0
  123. package/dist/parser/types.d.ts +7 -1
  124. package/dist/reference/index.js +91 -0
  125. package/dist/reference/index.mjs +91 -0
  126. package/dist/registry/index.js +12867 -5876
  127. package/dist/registry/index.mjs +12867 -5876
  128. package/dist/registry/universal-types.d.ts +2 -1
  129. package/dist/runtime/command-adapter.d.ts +23 -16
  130. package/dist/runtime/plugin.d.ts +14 -0
  131. package/dist/runtime/runtime-base.d.ts +32 -7
  132. package/dist/runtime/runtime-factory.d.ts +3 -3
  133. package/dist/runtime/runtime.d.ts +2 -2
  134. package/dist/test-setup.d.ts +1 -0
  135. package/dist/types/base-types.d.ts +3 -0
  136. package/dist/types/feature-types.d.ts +1 -1
  137. package/dist/types/index.d.ts +2 -2
  138. package/package.json +29 -23
  139. package/vocab/htmx/ar.js +60 -0
  140. package/vocab/htmx/bn.js +49 -0
  141. package/vocab/htmx/de.js +60 -0
  142. package/vocab/htmx/en.js +21 -0
  143. package/vocab/htmx/es.js +60 -0
  144. package/vocab/htmx/fr.js +59 -0
  145. package/vocab/htmx/he.js +40 -0
  146. package/vocab/htmx/hi.js +60 -0
  147. package/vocab/htmx/id.js +57 -0
  148. package/vocab/htmx/it.js +58 -0
  149. package/vocab/htmx/ja.js +60 -0
  150. package/vocab/htmx/ko.js +60 -0
  151. package/vocab/htmx/ms.js +35 -0
  152. package/vocab/htmx/pl.js +60 -0
  153. package/vocab/htmx/pt.js +60 -0
  154. package/vocab/htmx/qu.js +60 -0
  155. package/vocab/htmx/ru.js +60 -0
  156. package/vocab/htmx/sw.js +59 -0
  157. package/vocab/htmx/th.js +49 -0
  158. package/vocab/htmx/tl.js +33 -0
  159. package/vocab/htmx/tr.js +60 -0
  160. package/vocab/htmx/uk.js +60 -0
  161. package/vocab/htmx/vi.js +51 -0
  162. package/vocab/htmx/zh.js +60 -0
  163. package/dist/bundles/test-minimal.d.ts +0 -3
  164. package/dist/bundles/test-standard.d.ts +0 -3
  165. package/dist/chunks/bridge-Clbh_xAj.js +0 -2
  166. package/dist/chunks/browser-modular-DIOxQqhV.js +0 -2
  167. package/dist/chunks/feature-eventsource-B5F2-H1r.js +0 -2
  168. package/dist/chunks/feature-webworker-3bAp0ac9.js +0 -2
  169. package/dist/chunks/index-DcxoRUBe.js +0 -2
  170. package/dist/compatibility/browser-bundle-minimal.d.ts +0 -8
  171. package/dist/compatibility/browser-bundle-standard.d.ts +0 -8
  172. package/dist/compatibility/hyperscript-tests/test-adapter.d.ts +0 -13
  173. package/dist/core/base-expression-evaluator.d.ts +0 -74
  174. package/dist/core/binary-expression-evaluator.d.ts +0 -7
  175. package/dist/core/call-expression-evaluator.d.ts +0 -7
  176. package/dist/core/configurable-expression-evaluator.d.ts +0 -5
  177. package/dist/core/lazy-expression-evaluator.d.ts +0 -22
  178. package/dist/core/parser.d.ts +0 -21
  179. package/dist/core/selector-evaluator.d.ts +0 -15
  180. package/dist/core/template-literal-evaluator.d.ts +0 -5
  181. package/dist/expressions/comparison/index.d.ts +0 -80
  182. package/dist/expressions/comparison/utils.d.ts +0 -2
  183. package/dist/expressions/conversion/impl/bridge.d.ts +0 -117
  184. package/dist/expressions/logical/impl/pattern-matching.d.ts +0 -58
  185. package/dist/expressions/positional/impl/bridge.d.ts +0 -95
  186. package/dist/expressions/property/index.d.ts +0 -55
  187. package/dist/expressions/references/impl/bridge.d.ts +0 -54
  188. package/dist/extensions/index.d.ts +0 -3
  189. package/dist/extensions/tailwind.d.ts +0 -22
  190. package/dist/mod.d.ts +0 -63
  191. package/dist/parser/expression-parser.d.ts +0 -6
  192. package/dist/runtime/runtime-experimental.d.ts +0 -18
  193. package/dist/scripts/code-generator.d.ts +0 -64
  194. package/dist/scripts/generate-missing-commands.d.ts +0 -4
@@ -1,4 +1,4 @@
1
- export { morphAdapter, setMorphEngine, getMorphEngine, resetMorphEngine, type MorphEngine, type MorphOptions, } from './morph-adapter';
2
- export { withViewTransition, withViewTransitionImmediate, isViewTransitionsSupported, configureViewTransitions, getViewTransitionsConfig, clearTransitionQueue, getPendingTransitionCount, isTransitioning, setTransitionName, type TransitionCallback, type ViewTransitionOptions, type ViewTransitionsConfig, } from './view-transitions';
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 interface ViewTransitionsConfig {
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