@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.
Files changed (203) hide show
  1. package/README.md +8 -11
  2. package/dist/api/dom-processor.d.ts +8 -4
  3. package/dist/api/hyperscript-api.d.ts +5 -1
  4. package/dist/ast-utils/index.js +25320 -94
  5. package/dist/ast-utils/index.mjs +25320 -94
  6. package/dist/ast-utils/interchange/types.d.ts +7 -1
  7. package/dist/behaviors/index.js +54 -100
  8. package/dist/behaviors/index.mjs +54 -100
  9. package/dist/bundle-generator/index.js +44 -6
  10. package/dist/bundle-generator/index.mjs +44 -6
  11. package/dist/bundle-generator/parser-templates.d.ts +1 -1
  12. package/dist/bundle-generator/template-capabilities.d.ts +1 -1
  13. package/dist/chunks/bridge-C4d3blZX.js +2 -0
  14. package/dist/chunks/browser-modular-BwIRlrTM.js +2 -0
  15. package/dist/chunks/feature-eventsource-BpZvPy_K.js +2 -0
  16. package/dist/chunks/{feature-sockets-ClOH7vk7.js → feature-sockets-CrYvjZ4j.js} +2 -2
  17. package/dist/chunks/feature-webworker-BSYguEIW.js +2 -0
  18. package/dist/chunks/index-Beno_SBy.js +2 -0
  19. package/dist/commands/advanced/async.d.ts +6 -2
  20. package/dist/commands/advanced/js.d.ts +1 -1
  21. package/dist/commands/animation/start-view-transition.d.ts +24 -0
  22. package/dist/commands/async/fetch.d.ts +6 -1
  23. package/dist/commands/control-flow/repeat.d.ts +2 -0
  24. package/dist/commands/data/clear.d.ts +23 -0
  25. package/dist/commands/data/set.d.ts +6 -0
  26. package/dist/commands/dom/close.d.ts +19 -0
  27. package/dist/commands/dom/empty.d.ts +19 -0
  28. package/dist/commands/dom/open.d.ts +21 -0
  29. package/dist/commands/dom/reset.d.ts +19 -0
  30. package/dist/commands/dom/select.d.ts +19 -0
  31. package/dist/commands/dom/swap.d.ts +7 -4
  32. package/dist/commands/events/trigger.d.ts +1 -1
  33. package/dist/commands/execution/blur.d.ts +19 -0
  34. package/dist/commands/execution/call.d.ts +1 -2
  35. package/dist/commands/execution/focus.d.ts +19 -0
  36. package/dist/commands/helpers/element-resolution.d.ts +2 -2
  37. package/dist/commands/helpers/event-waiting.d.ts +1 -1
  38. package/dist/commands/helpers/numeric-target-parser.d.ts +7 -0
  39. package/dist/commands/index.d.ts +34 -2
  40. package/dist/commands/index.js +19374 -4848
  41. package/dist/commands/index.mjs +19342 -4849
  42. package/dist/commands/navigation/go.d.ts +3 -0
  43. package/dist/commands/navigation/scroll-to.d.ts +26 -0
  44. package/dist/commands/utility/beep.d.ts +2 -2
  45. package/dist/commands/utility/breakpoint.d.ts +19 -0
  46. package/dist/commands/utility/pick.d.ts +11 -2
  47. package/dist/compatibility/browser-bundle-modular.d.ts +2 -2
  48. package/dist/compatibility/browser-bundle-multilingual.d.ts +1 -1
  49. package/dist/compatibility/browser-bundle-semantic-complete.d.ts +3 -3
  50. package/dist/compatibility/browser-bundle.d.ts +13 -6
  51. package/dist/compatibility/browser-modular.d.ts +1 -3
  52. package/dist/core/expression-evaluator.d.ts +4 -4
  53. package/dist/core/expression-registry.d.ts +8 -0
  54. package/dist/expressions/bundles/common-expressions.d.ts +2 -2
  55. package/dist/expressions/bundles/core-expressions.d.ts +2 -2
  56. package/dist/expressions/bundles/full-expressions.d.ts +2 -2
  57. package/dist/expressions/bundles/index.d.ts +3 -3
  58. package/dist/expressions/collection/index.d.ts +35 -0
  59. package/dist/expressions/conversion/impl/index.d.ts +1 -1
  60. package/dist/expressions/index.d.ts +4 -3
  61. package/dist/expressions/index.js +1117 -1590
  62. package/dist/expressions/index.mjs +1113 -1586
  63. package/dist/expressions/logical/index.d.ts +2 -0
  64. package/dist/expressions/mathematical/index.d.ts +11 -0
  65. package/dist/expressions/shared/index.d.ts +1 -1
  66. package/dist/expressions/shared/number-utils.d.ts +1 -0
  67. package/dist/htmx/htmx-attribute-processor.d.ts +37 -1
  68. package/dist/htmx/htmx-translator.d.ts +2 -0
  69. package/dist/htmx/i18n-hooks.d.ts +15 -0
  70. package/dist/htmx/i18n-orchestrator.d.ts +15 -0
  71. package/dist/htmx/lang-resolver.d.ts +3 -0
  72. package/dist/htmx/sse.d.ts +60 -0
  73. package/dist/htmx/ws.d.ts +59 -0
  74. package/dist/hyperfixi-browser-classic-i18n.js +2 -0
  75. package/dist/hyperfixi-browser-minimal.js +1 -0
  76. package/dist/hyperfixi-browser-standard.js +2 -0
  77. package/dist/hyperfixi-browser.js +2 -0
  78. package/dist/hyperfixi-classic-i18n.js +1 -1
  79. package/dist/hyperfixi-hx-v4.js +1 -0
  80. package/dist/hyperfixi-hx.js +1 -1
  81. package/dist/hyperfixi-hybrid-complete.js +1 -1
  82. package/dist/hyperfixi-hybrid-hx.js +1 -0
  83. package/dist/hyperfixi-minimal.js +1 -1
  84. package/dist/hyperfixi-multilingual.js +1 -1
  85. package/dist/hyperfixi-standard.js +1 -1
  86. package/dist/hyperfixi.js +1 -1
  87. package/dist/hyperfixi.mjs +1 -1
  88. package/dist/index.d.ts +2 -0
  89. package/dist/index.js +43613 -45063
  90. package/dist/index.min.js +1 -1
  91. package/dist/index.mjs +43610 -45064
  92. package/dist/lib/index.d.ts +2 -2
  93. package/dist/lib/morph-adapter.d.ts +0 -13
  94. package/dist/lib/swap-executor.d.ts +0 -10
  95. package/dist/lib/view-transitions.d.ts +1 -30
  96. package/dist/lokascript-browser-classic-i18n.js +1 -1
  97. package/dist/lokascript-browser-minimal.js +1 -1
  98. package/dist/lokascript-browser-standard.js +1 -1
  99. package/dist/lokascript-browser.js +1 -1
  100. package/dist/lokascript-hybrid-complete.js +1 -1
  101. package/dist/lokascript-hybrid-hx.js +1 -1
  102. package/dist/lokascript-multilingual.js +1 -1
  103. package/dist/lsp-metadata.d.ts +9 -4
  104. package/dist/lsp-metadata.js +187 -3
  105. package/dist/lsp-metadata.mjs +185 -4
  106. package/dist/metadata.d.ts +1 -1
  107. package/dist/metadata.js +3 -3
  108. package/dist/metadata.mjs +3 -3
  109. package/dist/multilingual/bridge.d.ts +1 -1
  110. package/dist/multilingual/index.js +79 -22
  111. package/dist/multilingual/index.mjs +79 -22
  112. package/dist/parser/command-parsers/animation-commands.d.ts +1 -0
  113. package/dist/parser/command-parsers/utility-commands.d.ts +1 -0
  114. package/dist/parser/extensions.d.ts +51 -0
  115. package/dist/parser/full-parser.js +1224 -899
  116. package/dist/parser/full-parser.mjs +1224 -899
  117. package/dist/parser/helpers/ast-helpers.d.ts +1 -0
  118. package/dist/parser/helpers/parsing-helpers.d.ts +4 -0
  119. package/dist/parser/hybrid/index.js +7 -0
  120. package/dist/parser/hybrid/index.mjs +7 -0
  121. package/dist/parser/hybrid/parser-core.js +7 -0
  122. package/dist/parser/hybrid/parser-core.mjs +7 -0
  123. package/dist/parser/hybrid/tokenizer.js +7 -0
  124. package/dist/parser/hybrid/tokenizer.mjs +7 -0
  125. package/dist/parser/hybrid-parser.js +7 -0
  126. package/dist/parser/hybrid-parser.mjs +7 -0
  127. package/dist/parser/parser-types.d.ts +8 -28
  128. package/dist/parser/parser.d.ts +3 -7
  129. package/dist/parser/pratt-parser.d.ts +0 -3
  130. package/dist/parser/runtime.d.ts +4 -0
  131. package/dist/parser/semantic-integration.d.ts +17 -0
  132. package/dist/parser/types.d.ts +7 -1
  133. package/dist/reference/index.js +91 -0
  134. package/dist/reference/index.mjs +91 -0
  135. package/dist/registry/index.js +12866 -5876
  136. package/dist/registry/index.mjs +12866 -5876
  137. package/dist/registry/universal-types.d.ts +2 -1
  138. package/dist/runtime/command-adapter.d.ts +23 -16
  139. package/dist/runtime/plugin.d.ts +14 -0
  140. package/dist/runtime/runtime-base.d.ts +32 -7
  141. package/dist/runtime/runtime-factory.d.ts +3 -3
  142. package/dist/runtime/runtime.d.ts +2 -2
  143. package/dist/test-setup.d.ts +1 -0
  144. package/dist/types/base-types.d.ts +3 -0
  145. package/dist/types/feature-types.d.ts +1 -1
  146. package/dist/types/index.d.ts +2 -2
  147. package/package.json +26 -20
  148. package/vocab/htmx/ar.js +60 -0
  149. package/vocab/htmx/bn.js +49 -0
  150. package/vocab/htmx/de.js +60 -0
  151. package/vocab/htmx/en.js +21 -0
  152. package/vocab/htmx/es.js +60 -0
  153. package/vocab/htmx/fr.js +59 -0
  154. package/vocab/htmx/he.js +40 -0
  155. package/vocab/htmx/hi.js +60 -0
  156. package/vocab/htmx/id.js +57 -0
  157. package/vocab/htmx/it.js +58 -0
  158. package/vocab/htmx/ja.js +60 -0
  159. package/vocab/htmx/ko.js +60 -0
  160. package/vocab/htmx/ms.js +35 -0
  161. package/vocab/htmx/pl.js +60 -0
  162. package/vocab/htmx/pt.js +60 -0
  163. package/vocab/htmx/qu.js +60 -0
  164. package/vocab/htmx/ru.js +60 -0
  165. package/vocab/htmx/sw.js +59 -0
  166. package/vocab/htmx/th.js +49 -0
  167. package/vocab/htmx/tl.js +33 -0
  168. package/vocab/htmx/tr.js +60 -0
  169. package/vocab/htmx/uk.js +60 -0
  170. package/vocab/htmx/vi.js +51 -0
  171. package/vocab/htmx/zh.js +60 -0
  172. package/dist/bundles/test-minimal.d.ts +0 -3
  173. package/dist/bundles/test-standard.d.ts +0 -3
  174. package/dist/chunks/bridge-BlRqsZT4.js +0 -2
  175. package/dist/chunks/browser-modular-AbV0Ql4i.js +0 -2
  176. package/dist/chunks/feature-eventsource-B5F2-H1r.js +0 -2
  177. package/dist/chunks/feature-webworker-3bAp0ac9.js +0 -2
  178. package/dist/chunks/index-BDYQHwCF.js +0 -2
  179. package/dist/compatibility/browser-bundle-minimal.d.ts +0 -8
  180. package/dist/compatibility/browser-bundle-standard.d.ts +0 -8
  181. package/dist/compatibility/hyperscript-tests/test-adapter.d.ts +0 -13
  182. package/dist/core/base-expression-evaluator.d.ts +0 -74
  183. package/dist/core/binary-expression-evaluator.d.ts +0 -7
  184. package/dist/core/call-expression-evaluator.d.ts +0 -7
  185. package/dist/core/configurable-expression-evaluator.d.ts +0 -5
  186. package/dist/core/lazy-expression-evaluator.d.ts +0 -22
  187. package/dist/core/parser.d.ts +0 -21
  188. package/dist/core/selector-evaluator.d.ts +0 -15
  189. package/dist/core/template-literal-evaluator.d.ts +0 -5
  190. package/dist/expressions/comparison/index.d.ts +0 -80
  191. package/dist/expressions/comparison/utils.d.ts +0 -2
  192. package/dist/expressions/conversion/impl/bridge.d.ts +0 -117
  193. package/dist/expressions/logical/impl/pattern-matching.d.ts +0 -58
  194. package/dist/expressions/positional/impl/bridge.d.ts +0 -95
  195. package/dist/expressions/property/index.d.ts +0 -55
  196. package/dist/expressions/references/impl/bridge.d.ts +0 -54
  197. package/dist/extensions/index.d.ts +0 -3
  198. package/dist/extensions/tailwind.d.ts +0 -22
  199. package/dist/mod.d.ts +0 -63
  200. package/dist/parser/expression-parser.d.ts +0 -6
  201. package/dist/runtime/runtime-experimental.d.ts +0 -18
  202. package/dist/scripts/code-generator.d.ts +0 -64
  203. package/dist/scripts/generate-missing-commands.d.ts +0 -4
@@ -0,0 +1,60 @@
1
+ // Auto-generated by packages/core/scripts/gen-htmx-vocab.mjs — do not edit by hand.
2
+ // Localized htmx-compat attribute vocab for language: qu
3
+ // Re-generate after editing packages/semantic/src/generators/profiles/quechua.ts
4
+ // or packages/i18n/src/dictionaries/qu.ts.
5
+ (function () {
6
+ if (typeof window === 'undefined' || !window.__hyperfixi_i18n) {
7
+ if (typeof console !== 'undefined') {
8
+ console.warn(
9
+ '[hyperfixi-i18n] Vocab for "qu" loaded before the htmx-compat orchestrator. ' +
10
+ 'Move the hyperfixi-hx-v4 (or core) <script> above the vocab <script>.'
11
+ );
12
+ }
13
+ return;
14
+ }
15
+ window.__hyperfixi_i18n.register('qu', {
16
+ hyperfixi: {
17
+ attrs: {
18
+ "hx-taripay": "hx-get",
19
+ "hx-churay": "hx-put",
20
+ "hx-ñawpaqman": "hx-target",
21
+ "hx-t'inkuy": "hx-swap",
22
+ "hx-kuyuchiy": "hx-trigger",
23
+ "hx-chaypim": "hx-on",
24
+ "hx-kawsachkaq": "hx-live",
25
+ "sse-tinkiy": "sse-connect",
26
+ "sse-t'inkuy": "sse-swap",
27
+ "ws-tinkiy": "ws-connect",
28
+ "ws-kachay": "ws-send"
29
+ },
30
+ events: {
31
+ "ñitiy": "click",
32
+ "iskay_ñitiy": "dblclick",
33
+ "rat_ñitiy": "mousedown",
34
+ "rat_huqariy": "mouseup",
35
+ "rat_yaykuy": "mouseenter",
36
+ "rat_lluqsiy": "mouseleave",
37
+ "rat_hawapi": "mouseover",
38
+ "rat_hawamanta": "mouseout",
39
+ "rat_kuyuy": "mousemove",
40
+ "yupana_ñitiy": "keydown",
41
+ "yupana_huqariy": "keyup",
42
+ "yupana_ñitana": "keypress",
43
+ "qhaway": "focus",
44
+ "paqariy": "blur",
45
+ "tikray": "change",
46
+ "yaykuchiy": "input",
47
+ "kachay": "submit",
48
+ "qallariy": "reset",
49
+ "apakuy": "load",
50
+ "urmay": "unload",
51
+ "hatun_kay": "resize",
52
+ "kunray": "scroll",
53
+ "llamiy_qallay": "touchstart",
54
+ "llamiy_tukuy": "touchend",
55
+ "llamiy_kuyuy": "touchmove",
56
+ "llamiy_hark_ay": "touchcancel"
57
+ },
58
+ },
59
+ });
60
+ })();
@@ -0,0 +1,60 @@
1
+ // Auto-generated by packages/core/scripts/gen-htmx-vocab.mjs — do not edit by hand.
2
+ // Localized htmx-compat attribute vocab for language: ru
3
+ // Re-generate after editing packages/semantic/src/generators/profiles/russian.ts
4
+ // or packages/i18n/src/dictionaries/ru.ts.
5
+ (function () {
6
+ if (typeof window === 'undefined' || !window.__hyperfixi_i18n) {
7
+ if (typeof console !== 'undefined') {
8
+ console.warn(
9
+ '[hyperfixi-i18n] Vocab for "ru" loaded before the htmx-compat orchestrator. ' +
10
+ 'Move the hyperfixi-hx-v4 (or core) <script> above the vocab <script>.'
11
+ );
12
+ }
13
+ return;
14
+ }
15
+ window.__hyperfixi_i18n.register('ru', {
16
+ hyperfixi: {
17
+ attrs: {
18
+ "hx-получить": "hx-get",
19
+ "hx-положить": "hx-put",
20
+ "hx-цель": "hx-target",
21
+ "hx-поменять": "hx-swap",
22
+ "hx-инициировать": "hx-trigger",
23
+ "hx-при": "hx-on",
24
+ "hx-в-прямом-эфире": "hx-live",
25
+ "sse-подключить": "sse-connect",
26
+ "sse-поменять": "sse-swap",
27
+ "ws-подключить": "ws-connect",
28
+ "ws-отправить": "ws-send"
29
+ },
30
+ events: {
31
+ "клик": "click",
32
+ "двойной_клик": "dblclick",
33
+ "мышь_вниз": "mousedown",
34
+ "мышь_вверх": "mouseup",
35
+ "мышь_вход": "mouseenter",
36
+ "мышь_выход": "mouseleave",
37
+ "наведение": "mouseover",
38
+ "уход": "mouseout",
39
+ "движение_мыши": "mousemove",
40
+ "клавиша_вниз": "keydown",
41
+ "клавиша_вверх": "keyup",
42
+ "нажатие_клавиши": "keypress",
43
+ "фокус": "focus",
44
+ "потеря_фокуса": "blur",
45
+ "изменение": "change",
46
+ "ввод": "input",
47
+ "отправка": "submit",
48
+ "сброс": "reset",
49
+ "загрузка": "load",
50
+ "выгрузка": "unload",
51
+ "изменение_размера": "resize",
52
+ "прокрутка": "scroll",
53
+ "касание_начало": "touchstart",
54
+ "касание_конец": "touchend",
55
+ "касание_движение": "touchmove",
56
+ "касание_отмена": "touchcancel"
57
+ },
58
+ },
59
+ });
60
+ })();
@@ -0,0 +1,59 @@
1
+ // Auto-generated by packages/core/scripts/gen-htmx-vocab.mjs — do not edit by hand.
2
+ // Localized htmx-compat attribute vocab for language: sw
3
+ // Re-generate after editing packages/semantic/src/generators/profiles/swahili.ts
4
+ // or packages/i18n/src/dictionaries/sw.ts.
5
+ (function () {
6
+ if (typeof window === 'undefined' || !window.__hyperfixi_i18n) {
7
+ if (typeof console !== 'undefined') {
8
+ console.warn(
9
+ '[hyperfixi-i18n] Vocab for "sw" loaded before the htmx-compat orchestrator. ' +
10
+ 'Move the hyperfixi-hx-v4 (or core) <script> above the vocab <script>.'
11
+ );
12
+ }
13
+ return;
14
+ }
15
+ window.__hyperfixi_i18n.register('sw', {
16
+ hyperfixi: {
17
+ attrs: {
18
+ "hx-pata": "hx-get",
19
+ "hx-weka": "hx-put",
20
+ "hx-lengo": "hx-target",
21
+ "hx-badilishana": "hx-swap",
22
+ "hx-chochea": "hx-trigger",
23
+ "hx-unapo": "hx-on",
24
+ "hx-moja-kwa-moja": "hx-live",
25
+ "sse-unganisha": "sse-connect",
26
+ "sse-badilishana": "sse-swap",
27
+ "ws-unganisha": "ws-connect",
28
+ "ws-tuma": "ws-send"
29
+ },
30
+ events: {
31
+ "bonyeza": "click",
32
+ "bonyeza_mara_mbili": "dblclick",
33
+ "panya_shuka": "mousedown",
34
+ "panya_juu": "mouseover",
35
+ "panya_ingia": "mouseenter",
36
+ "panya_toka": "mouseleave",
37
+ "panya_nje": "mouseout",
38
+ "panya_sogea": "mousemove",
39
+ "kitufe_shuka": "keydown",
40
+ "kitufe_juu": "keyup",
41
+ "kitufe_bonyeza": "keypress",
42
+ "zingatia": "focus",
43
+ "poteza_macho": "blur",
44
+ "badilisha": "change",
45
+ "ingizo": "input",
46
+ "wasilisha": "submit",
47
+ "weka_upya": "reset",
48
+ "pakia": "load",
49
+ "shuka": "unload",
50
+ "badilisha_ukubwa": "resize",
51
+ "sogeza": "scroll",
52
+ "gusa_anza": "touchstart",
53
+ "gusa_mwisho": "touchend",
54
+ "gusa_sogea": "touchmove",
55
+ "gusa_ghairi": "touchcancel"
56
+ },
57
+ },
58
+ });
59
+ })();
@@ -0,0 +1,49 @@
1
+ // Auto-generated by packages/core/scripts/gen-htmx-vocab.mjs — do not edit by hand.
2
+ // Localized htmx-compat attribute vocab for language: th
3
+ // Re-generate after editing packages/semantic/src/generators/profiles/thai.ts
4
+ // or packages/i18n/src/dictionaries/th.ts.
5
+ (function () {
6
+ if (typeof window === 'undefined' || !window.__hyperfixi_i18n) {
7
+ if (typeof console !== 'undefined') {
8
+ console.warn(
9
+ '[hyperfixi-i18n] Vocab for "th" loaded before the htmx-compat orchestrator. ' +
10
+ 'Move the hyperfixi-hx-v4 (or core) <script> above the vocab <script>.'
11
+ );
12
+ }
13
+ return;
14
+ }
15
+ window.__hyperfixi_i18n.register('th', {
16
+ hyperfixi: {
17
+ attrs: {
18
+ "hx-รับค่า": "hx-get",
19
+ "hx-ใส่": "hx-put",
20
+ "hx-เป้าหมาย": "hx-target",
21
+ "hx-สลับที่": "hx-swap",
22
+ "hx-ทริกเกอร์": "hx-trigger",
23
+ "hx-เมื่อ": "hx-on",
24
+ "hx-ไลฟ์": "hx-live",
25
+ "sse-เชื่อมต่อ": "sse-connect",
26
+ "sse-สลับที่": "sse-swap",
27
+ "ws-เชื่อมต่อ": "ws-connect",
28
+ "ws-ส่ง": "ws-send"
29
+ },
30
+ events: {
31
+ "คลิก": "click",
32
+ "เปลี่ยนแปลง": "change",
33
+ "อินพุต": "input",
34
+ "ส่ง": "submit",
35
+ "โหลด": "load",
36
+ "โฟกัส": "focus",
37
+ "เบลอ": "blur",
38
+ "รีเซ็ต": "reset",
39
+ "กดคีย์": "keydown",
40
+ "ปล่อยคีย์": "keyup",
41
+ "เมาส์เข้า": "mouseover",
42
+ "เมาส์ออก": "mouseout",
43
+ "เลื่อน": "scroll",
44
+ "ปรับขนาด": "resize",
45
+ "ทุก": "every"
46
+ },
47
+ },
48
+ });
49
+ })();
@@ -0,0 +1,33 @@
1
+ // Auto-generated by packages/core/scripts/gen-htmx-vocab.mjs — do not edit by hand.
2
+ // Localized htmx-compat attribute vocab for language: tl
3
+ // Re-generate after editing packages/semantic/src/generators/profiles/tagalog.ts
4
+ // or packages/i18n/src/dictionaries/tl.ts.
5
+ (function () {
6
+ if (typeof window === 'undefined' || !window.__hyperfixi_i18n) {
7
+ if (typeof console !== 'undefined') {
8
+ console.warn(
9
+ '[hyperfixi-i18n] Vocab for "tl" loaded before the htmx-compat orchestrator. ' +
10
+ 'Move the hyperfixi-hx-v4 (or core) <script> above the vocab <script>.'
11
+ );
12
+ }
13
+ return;
14
+ }
15
+ window.__hyperfixi_i18n.register('tl', {
16
+ hyperfixi: {
17
+ attrs: {
18
+ "hx-kunin": "hx-get",
19
+ "hx-ilagay": "hx-put",
20
+ "hx-palitan_pwesto": "hx-swap",
21
+ "hx-palitawin": "hx-trigger",
22
+ "hx-kapag": "hx-on",
23
+ "sse-ikonekta": "sse-connect",
24
+ "sse-palitan_pwesto": "sse-swap",
25
+ "ws-ikonekta": "ws-connect",
26
+ "ws-ipadala": "ws-send"
27
+ },
28
+ events: {
29
+ "bawat": "every"
30
+ },
31
+ },
32
+ });
33
+ })();
@@ -0,0 +1,60 @@
1
+ // Auto-generated by packages/core/scripts/gen-htmx-vocab.mjs — do not edit by hand.
2
+ // Localized htmx-compat attribute vocab for language: tr
3
+ // Re-generate after editing packages/semantic/src/generators/profiles/turkish.ts
4
+ // or packages/i18n/src/dictionaries/tr.ts.
5
+ (function () {
6
+ if (typeof window === 'undefined' || !window.__hyperfixi_i18n) {
7
+ if (typeof console !== 'undefined') {
8
+ console.warn(
9
+ '[hyperfixi-i18n] Vocab for "tr" loaded before the htmx-compat orchestrator. ' +
10
+ 'Move the hyperfixi-hx-v4 (or core) <script> above the vocab <script>.'
11
+ );
12
+ }
13
+ return;
14
+ }
15
+ window.__hyperfixi_i18n.register('tr', {
16
+ hyperfixi: {
17
+ attrs: {
18
+ "hx-al": "hx-get",
19
+ "hx-koy": "hx-put",
20
+ "hx-hedef": "hx-target",
21
+ "hx-takas": "hx-swap",
22
+ "hx-tetikle": "hx-trigger",
23
+ "hx-üzerinde": "hx-on",
24
+ "hx-canlı": "hx-live",
25
+ "sse-bağlan": "sse-connect",
26
+ "sse-takas": "sse-swap",
27
+ "ws-bağlan": "ws-connect",
28
+ "ws-gönder": "ws-send"
29
+ },
30
+ events: {
31
+ "tıklama": "click",
32
+ "çift_tıklama": "dblclick",
33
+ "fare_bas": "mousedown",
34
+ "fare_bırak": "mouseup",
35
+ "fare_gir": "mouseenter",
36
+ "fare_çık": "mouseleave",
37
+ "fare_üstü": "mouseover",
38
+ "fare_dışı": "mouseout",
39
+ "fare_hareket": "mousemove",
40
+ "tuş_bas": "keydown",
41
+ "tuş_bırak": "keyup",
42
+ "tuş_basım": "keypress",
43
+ "odak": "focus",
44
+ "bulanık": "blur",
45
+ "değişim": "change",
46
+ "giriş": "input",
47
+ "gönder": "submit",
48
+ "sıfırla": "reset",
49
+ "yükle": "load",
50
+ "yükle_kaldır": "unload",
51
+ "boyut_değiştir": "resize",
52
+ "kaydır": "scroll",
53
+ "dokunma_başla": "touchstart",
54
+ "dokunma_bitir": "touchend",
55
+ "dokunma_hareket": "touchmove",
56
+ "dokunma_iptal": "touchcancel"
57
+ },
58
+ },
59
+ });
60
+ })();
@@ -0,0 +1,60 @@
1
+ // Auto-generated by packages/core/scripts/gen-htmx-vocab.mjs — do not edit by hand.
2
+ // Localized htmx-compat attribute vocab for language: uk
3
+ // Re-generate after editing packages/semantic/src/generators/profiles/ukrainian.ts
4
+ // or packages/i18n/src/dictionaries/uk.ts.
5
+ (function () {
6
+ if (typeof window === 'undefined' || !window.__hyperfixi_i18n) {
7
+ if (typeof console !== 'undefined') {
8
+ console.warn(
9
+ '[hyperfixi-i18n] Vocab for "uk" loaded before the htmx-compat orchestrator. ' +
10
+ 'Move the hyperfixi-hx-v4 (or core) <script> above the vocab <script>.'
11
+ );
12
+ }
13
+ return;
14
+ }
15
+ window.__hyperfixi_i18n.register('uk', {
16
+ hyperfixi: {
17
+ attrs: {
18
+ "hx-отримати": "hx-get",
19
+ "hx-покласти": "hx-put",
20
+ "hx-ціль": "hx-target",
21
+ "hx-поміняти": "hx-swap",
22
+ "hx-ініціювати": "hx-trigger",
23
+ "hx-при": "hx-on",
24
+ "hx-наживо": "hx-live",
25
+ "sse-підключити": "sse-connect",
26
+ "sse-поміняти": "sse-swap",
27
+ "ws-підключити": "ws-connect",
28
+ "ws-надіслати": "ws-send"
29
+ },
30
+ events: {
31
+ "клік": "click",
32
+ "подвійний_клік": "dblclick",
33
+ "миша_вниз": "mousedown",
34
+ "миша_вгору": "mouseup",
35
+ "миша_вхід": "mouseenter",
36
+ "миша_вихід": "mouseleave",
37
+ "наведення": "mouseover",
38
+ "відведення": "mouseout",
39
+ "рух_миші": "mousemove",
40
+ "клавіша_вниз": "keydown",
41
+ "клавіша_вгору": "keyup",
42
+ "натискання_клавіші": "keypress",
43
+ "фокус": "focus",
44
+ "розфокус": "blur",
45
+ "зміна": "change",
46
+ "введення": "input",
47
+ "надсилання": "submit",
48
+ "скидання": "reset",
49
+ "завантаження": "load",
50
+ "вивантаження": "unload",
51
+ "зміна_розміру": "resize",
52
+ "прокрутка": "scroll",
53
+ "дотик_початок": "touchstart",
54
+ "дотик_кінець": "touchend",
55
+ "дотик_рух": "touchmove",
56
+ "дотик_скасування": "touchcancel"
57
+ },
58
+ },
59
+ });
60
+ })();
@@ -0,0 +1,51 @@
1
+ // Auto-generated by packages/core/scripts/gen-htmx-vocab.mjs — do not edit by hand.
2
+ // Localized htmx-compat attribute vocab for language: vi
3
+ // Re-generate after editing packages/semantic/src/generators/profiles/vietnamese.ts
4
+ // or packages/i18n/src/dictionaries/vi.ts.
5
+ (function () {
6
+ if (typeof window === 'undefined' || !window.__hyperfixi_i18n) {
7
+ if (typeof console !== 'undefined') {
8
+ console.warn(
9
+ '[hyperfixi-i18n] Vocab for "vi" loaded before the htmx-compat orchestrator. ' +
10
+ 'Move the hyperfixi-hx-v4 (or core) <script> above the vocab <script>.'
11
+ );
12
+ }
13
+ return;
14
+ }
15
+ window.__hyperfixi_i18n.register('vi', {
16
+ hyperfixi: {
17
+ attrs: {
18
+ "hx-lấy giá trị": "hx-get",
19
+ "hx-đặt": "hx-put",
20
+ "hx-mục tiêu": "hx-target",
21
+ "hx-hoán đổi": "hx-swap",
22
+ "hx-kích hoạt": "hx-trigger",
23
+ "hx-khi": "hx-on",
24
+ "hx-trực-tiếp": "hx-live",
25
+ "sse-kết-nối": "sse-connect",
26
+ "sse-hoán đổi": "sse-swap",
27
+ "ws-kết-nối": "ws-connect",
28
+ "ws-gửi": "ws-send"
29
+ },
30
+ events: {
31
+ "nhấp": "click",
32
+ "nhấp đúp": "dblclick",
33
+ "nhập": "input",
34
+ "thay đổi": "change",
35
+ "gửi": "submit",
36
+ "phím xuống": "keydown",
37
+ "phím lên": "keyup",
38
+ "nhấn phím": "keypress",
39
+ "chuột vào": "mouseenter",
40
+ "chuột ra": "mouseout",
41
+ "chuột rời": "mouseleave",
42
+ "tập trung": "focus",
43
+ "mất tập trung": "blur",
44
+ "đặt-lại": "reset",
45
+ "tải": "load",
46
+ "cuộn": "scroll",
47
+ "đổi kích thước": "resize"
48
+ },
49
+ },
50
+ });
51
+ })();
@@ -0,0 +1,60 @@
1
+ // Auto-generated by packages/core/scripts/gen-htmx-vocab.mjs — do not edit by hand.
2
+ // Localized htmx-compat attribute vocab for language: zh
3
+ // Re-generate after editing packages/semantic/src/generators/profiles/chinese.ts
4
+ // or packages/i18n/src/dictionaries/zh.ts.
5
+ (function () {
6
+ if (typeof window === 'undefined' || !window.__hyperfixi_i18n) {
7
+ if (typeof console !== 'undefined') {
8
+ console.warn(
9
+ '[hyperfixi-i18n] Vocab for "zh" loaded before the htmx-compat orchestrator. ' +
10
+ 'Move the hyperfixi-hx-v4 (or core) <script> above the vocab <script>.'
11
+ );
12
+ }
13
+ return;
14
+ }
15
+ window.__hyperfixi_i18n.register('zh', {
16
+ hyperfixi: {
17
+ attrs: {
18
+ "hx-获取": "hx-get",
19
+ "hx-放置": "hx-put",
20
+ "hx-目标": "hx-target",
21
+ "hx-交换": "hx-swap",
22
+ "hx-触发": "hx-trigger",
23
+ "hx-当": "hx-on",
24
+ "hx-实时": "hx-live",
25
+ "sse-连接": "sse-connect",
26
+ "sse-交换": "sse-swap",
27
+ "ws-连接": "ws-connect",
28
+ "ws-发送": "ws-send"
29
+ },
30
+ events: {
31
+ "点击": "click",
32
+ "双击": "dblclick",
33
+ "鼠标按下": "mousedown",
34
+ "鼠标抬起": "mouseup",
35
+ "鼠标进入": "mouseenter",
36
+ "鼠标离开": "mouseleave",
37
+ "鼠标悬停": "mouseover",
38
+ "鼠标移出": "mouseout",
39
+ "鼠标移动": "mousemove",
40
+ "按键按下": "keydown",
41
+ "按键抬起": "keyup",
42
+ "按键": "keypress",
43
+ "聚焦": "focus",
44
+ "失焦": "blur",
45
+ "改变": "change",
46
+ "输入": "input",
47
+ "提交": "submit",
48
+ "重置": "reset",
49
+ "加载": "load",
50
+ "卸载": "unload",
51
+ "调整大小": "resize",
52
+ "滚动": "scroll",
53
+ "触摸开始": "touchstart",
54
+ "触摸结束": "touchend",
55
+ "触摸移动": "touchmove",
56
+ "触摸取消": "touchcancel"
57
+ },
58
+ },
59
+ });
60
+ })();
@@ -1,3 +0,0 @@
1
- export declare const runtime: import("../runtime/runtime-experimental").RuntimeExperimental;
2
- export default runtime;
3
- //# sourceMappingURL=test-minimal.d.ts.map
@@ -1,3 +0,0 @@
1
- export declare const runtime: import("../runtime/runtime-experimental").RuntimeExperimental;
2
- export default runtime;
3
- //# sourceMappingURL=test-standard.d.ts.map
@@ -1,2 +0,0 @@
1
- import{D as n}from"./browser-modular-AbV0Ql4i.js";import"./feature-sockets-ClOH7vk7.js";let e=null;async function t(){return e||(e=await import("./browser-modular-AbV0Ql4i.js").then(function(n){return n.o})),e}class a{constructor(e={}){this.analyzer=null,this.config={confidenceThreshold:e.confidenceThreshold??n,fallbackOnLowConfidence:e.fallbackOnLowConfidence??!0}}async initialize(){const n=await t();this.analyzer=n.createSemanticAnalyzer()}isInitialized(){return null!==this.analyzer}async transform(n,e,a){if(this.isInitialized()||await this.initialize(),e===a)return{output:n,usedSemantic:!1,confidence:1,sourceLang:e,targetLang:a};const i=await t();try{const t=i.translate(n,e,a);if(t!==n)return{output:t,usedSemantic:!0,confidence:.9,sourceLang:e,targetLang:a}}catch{}return{output:n,usedSemantic:!1,confidence:0,sourceLang:e,targetLang:a}}async parse(n,e){if(this.isInitialized()||await this.initialize(),!this.analyzer)return null;return this.analyzer.analyze(n,e).node??null}async render(n,e){return(await t()).render(n,e)}async parseToAST(n,e){if(this.isInitialized()||await this.initialize(),!this.analyzer)return null;const a=this.analyzer.analyze(n,e);if(a.confidence>=this.config.confidenceThreshold&&a.node){const n=await t();try{return n.buildAST(a.node).ast}catch(n){}}return null}async parseToASTWithDetails(n,e){if(this.isInitialized()||await this.initialize(),!this.analyzer)return{ast:null,usedDirectPath:!1,confidence:0,lang:e,fallbackText:null};const a=this.analyzer.analyze(n,e),i=await t();if(a.confidence>=this.config.confidenceThreshold&&a.node)try{const n=i.buildAST(a.node);return{ast:n.ast,usedDirectPath:!0,confidence:a.confidence,lang:e,fallbackText:null,warnings:n.warnings}}catch{}if(a.node&&this.config.fallbackOnLowConfidence){const n=i.render(a.node,"en");return{ast:null,usedDirectPath:!1,confidence:a.confidence,lang:e,fallbackText:n}}return{ast:null,usedDirectPath:!1,confidence:a.confidence,lang:e,fallbackText:null}}async getAllTranslations(n,e){const a=(await t()).getSupportedLanguages(),i={};for(const t of a)i[t]=await this.transform(n,e,t);return i}}export{a as SemanticGrammarBridge};
2
- //# sourceMappingURL=bridge-BlRqsZT4.js.map