@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.
Files changed (378) hide show
  1. package/README.md +57 -179
  2. package/dist/ast-utils/index.cjs +74 -806
  3. package/dist/ast-utils/index.d.ts +1 -1
  4. package/dist/ast-utils/index.mjs +74 -805
  5. package/dist/ast-utils/interchange/engine-positions.d.ts +3 -0
  6. package/dist/ast-utils/interchange/index.d.ts +1 -2
  7. package/dist/hyperfixi.js +19 -2
  8. package/dist/index.d.ts +2 -22
  9. package/dist/index.mjs +3 -29128
  10. package/dist/lsp-metadata.cjs +77 -73
  11. package/dist/lsp-metadata.d.ts +4 -4
  12. package/dist/lsp-metadata.mjs +77 -73
  13. package/dist/metadata.cjs +34 -266
  14. package/dist/metadata.d.ts +31 -26
  15. package/dist/metadata.mjs +34 -266
  16. package/dist/multilingual/index.cjs +16 -382
  17. package/dist/multilingual/index.d.ts +4 -32
  18. package/dist/multilingual/index.mjs +15 -377
  19. package/dist/reference/index.cjs +67 -216
  20. package/dist/reference/index.d.ts +0 -3
  21. package/dist/reference/index.mjs +68 -216
  22. package/dist/version.d.ts +1 -1
  23. package/package.json +13 -179
  24. package/dist/__test-utils__/context-builders.d.ts +0 -42
  25. package/dist/__test-utils__/error-testing.d.ts +0 -18
  26. package/dist/__test-utils__/index.d.ts +0 -6
  27. package/dist/__test-utils__/mock-types.d.ts +0 -57
  28. package/dist/__test-utils__/parser-context-mock.d.ts +0 -7
  29. package/dist/__test-utils__/parser-helpers.d.ts +0 -38
  30. package/dist/api/hyperscript-api.d.ts +0 -90
  31. package/dist/api/lokascript-api.d.ts +0 -9
  32. package/dist/ast/command-slots.d.ts +0 -140
  33. package/dist/ast/guards.d.ts +0 -15
  34. package/dist/ast/legacy.d.ts +0 -15
  35. package/dist/ast/nodes.d.ts +0 -243
  36. package/dist/ast-utils/interchange/from-core.d.ts +0 -12
  37. package/dist/ast-utils/interchange/to-core.d.ts +0 -8
  38. package/dist/behaviors/boosted.d.ts +0 -29
  39. package/dist/behaviors/history-swap.d.ts +0 -24
  40. package/dist/behaviors/index.cjs +0 -1155
  41. package/dist/behaviors/index.d.ts +0 -4
  42. package/dist/behaviors/index.mjs +0 -1145
  43. package/dist/bundle-generator/executor-core.d.ts +0 -4
  44. package/dist/bundle-generator/generator.d.ts +0 -4
  45. package/dist/bundle-generator/index.cjs +0 -2804
  46. package/dist/bundle-generator/index.d.ts +0 -6
  47. package/dist/bundle-generator/index.mjs +0 -2779
  48. package/dist/bundle-generator/parser-templates.d.ts +0 -6
  49. package/dist/bundle-generator/template-capabilities.d.ts +0 -12
  50. package/dist/bundle-generator/templates.d.ts +0 -12
  51. package/dist/bundle-generator/types.d.ts +0 -34
  52. package/dist/chunks/bridge-CI9SOl8u.js +0 -2
  53. package/dist/chunks/browser-modular-7CpI5VF2.js +0 -2
  54. package/dist/chunks/index-BwXDEK0m.js +0 -2
  55. package/dist/chunks/index-DQi2o8Lk.js +0 -2
  56. package/dist/chunks/index-uCOQ8Qn0.js +0 -2
  57. package/dist/commands/advanced/js.d.ts +0 -40
  58. package/dist/commands/animation/measure.d.ts +0 -43
  59. package/dist/commands/animation/settle.d.ts +0 -38
  60. package/dist/commands/animation/start-view-transition.d.ts +0 -38
  61. package/dist/commands/animation/take.d.ts +0 -41
  62. package/dist/commands/animation/transition.d.ts +0 -49
  63. package/dist/commands/async/fetch.d.ts +0 -61
  64. package/dist/commands/async/wait.d.ts +0 -51
  65. package/dist/commands/behaviors/install.d.ts +0 -40
  66. package/dist/commands/content/append.d.ts +0 -26
  67. package/dist/commands/content/insertion-base.d.ts +0 -60
  68. package/dist/commands/content/prepend.d.ts +0 -26
  69. package/dist/commands/control-flow/break.d.ts +0 -29
  70. package/dist/commands/control-flow/continue.d.ts +0 -29
  71. package/dist/commands/control-flow/exit.d.ts +0 -29
  72. package/dist/commands/control-flow/halt.d.ts +0 -39
  73. package/dist/commands/control-flow/if.d.ts +0 -58
  74. package/dist/commands/control-flow/repeat.d.ts +0 -50
  75. package/dist/commands/control-flow/return.d.ts +0 -33
  76. package/dist/commands/control-flow/signal-base.d.ts +0 -18
  77. package/dist/commands/control-flow/throw.d.ts +0 -34
  78. package/dist/commands/control-flow/unless.d.ts +0 -3
  79. package/dist/commands/data/clear.d.ts +0 -37
  80. package/dist/commands/data/decrement.d.ts +0 -3
  81. package/dist/commands/data/default.d.ts +0 -60
  82. package/dist/commands/data/get.d.ts +0 -35
  83. package/dist/commands/data/increment.d.ts +0 -42
  84. package/dist/commands/data/set.d.ts +0 -76
  85. package/dist/commands/decorators/index.d.ts +0 -14
  86. package/dist/commands/dom/add.d.ts +0 -44
  87. package/dist/commands/dom/close.d.ts +0 -32
  88. package/dist/commands/dom/dom-modification-base.d.ts +0 -48
  89. package/dist/commands/dom/empty.d.ts +0 -32
  90. package/dist/commands/dom/hide.d.ts +0 -28
  91. package/dist/commands/dom/make.d.ts +0 -34
  92. package/dist/commands/dom/open.d.ts +0 -34
  93. package/dist/commands/dom/process-partials.d.ts +0 -51
  94. package/dist/commands/dom/put.d.ts +0 -42
  95. package/dist/commands/dom/remove.d.ts +0 -46
  96. package/dist/commands/dom/reset.d.ts +0 -32
  97. package/dist/commands/dom/select.d.ts +0 -32
  98. package/dist/commands/dom/show.d.ts +0 -29
  99. package/dist/commands/dom/swap.d.ts +0 -65
  100. package/dist/commands/dom/toggle.d.ts +0 -69
  101. package/dist/commands/dom/visibility-base.d.ts +0 -22
  102. package/dist/commands/events/send.d.ts +0 -3
  103. package/dist/commands/events/trigger.d.ts +0 -49
  104. package/dist/commands/execution/blur.d.ts +0 -32
  105. package/dist/commands/execution/call.d.ts +0 -35
  106. package/dist/commands/execution/focus.d.ts +0 -32
  107. package/dist/commands/execution/pseudo-command.d.ts +0 -41
  108. package/dist/commands/helpers/attribute-manipulation.d.ts +0 -11
  109. package/dist/commands/helpers/attribute-target.d.ts +0 -9
  110. package/dist/commands/helpers/batch-dom-operations.d.ts +0 -12
  111. package/dist/commands/helpers/body-ops.d.ts +0 -10
  112. package/dist/commands/helpers/class-manipulation.d.ts +0 -11
  113. package/dist/commands/helpers/condition-helpers.d.ts +0 -4
  114. package/dist/commands/helpers/dom-mutation.d.ts +0 -16
  115. package/dist/commands/helpers/duration-parsing.d.ts +0 -8
  116. package/dist/commands/helpers/element-property-access.d.ts +0 -7
  117. package/dist/commands/helpers/element-resolution.d.ts +0 -16
  118. package/dist/commands/helpers/error-helpers.d.ts +0 -17
  119. package/dist/commands/helpers/event-helpers.d.ts +0 -13
  120. package/dist/commands/helpers/event-waiting.d.ts +0 -37
  121. package/dist/commands/helpers/index.d.ts +0 -32
  122. package/dist/commands/helpers/input-validator.d.ts +0 -23
  123. package/dist/commands/helpers/loop-executor.d.ts +0 -56
  124. package/dist/commands/helpers/numeric-target-parser.d.ts +0 -21
  125. package/dist/commands/helpers/property-target.d.ts +0 -20
  126. package/dist/commands/helpers/selector-type-detection.d.ts +0 -24
  127. package/dist/commands/helpers/slots.d.ts +0 -5
  128. package/dist/commands/helpers/smart-element.d.ts +0 -16
  129. package/dist/commands/helpers/style-manipulation.d.ts +0 -16
  130. package/dist/commands/helpers/target-elements.d.ts +0 -5
  131. package/dist/commands/helpers/temporal-modifiers.d.ts +0 -15
  132. package/dist/commands/helpers/url-argument-parser.d.ts +0 -13
  133. package/dist/commands/helpers/url-validation.d.ts +0 -7
  134. package/dist/commands/helpers/variable-access.d.ts +0 -13
  135. package/dist/commands/helpers/visibility-target-parser.d.ts +0 -15
  136. package/dist/commands/helpers/write-target.d.ts +0 -42
  137. package/dist/commands/index.cjs +0 -24168
  138. package/dist/commands/index.d.ts +0 -171
  139. package/dist/commands/index.mjs +0 -23981
  140. package/dist/commands/manifest.d.ts +0 -17
  141. package/dist/commands/navigation/go.d.ts +0 -58
  142. package/dist/commands/navigation/push-url.d.ts +0 -48
  143. package/dist/commands/navigation/replace-url.d.ts +0 -3
  144. package/dist/commands/navigation/scroll-to.d.ts +0 -43
  145. package/dist/commands/templates/render.d.ts +0 -47
  146. package/dist/commands/utility/beep.d.ts +0 -41
  147. package/dist/commands/utility/breakpoint.d.ts +0 -32
  148. package/dist/commands/utility/copy.d.ts +0 -41
  149. package/dist/commands/utility/log.d.ts +0 -36
  150. package/dist/commands/utility/pick.d.ts +0 -47
  151. package/dist/commands/utility/tell.d.ts +0 -39
  152. package/dist/compatibility/browser-bundle-classic.d.ts +0 -17
  153. package/dist/compatibility/browser-bundle-hybrid-complete.d.ts +0 -22
  154. package/dist/compatibility/browser-bundle-hybrid-hx.d.ts +0 -43
  155. package/dist/compatibility/browser-bundle-lite.d.ts +0 -15
  156. package/dist/compatibility/browser-bundle-modular.d.ts +0 -18
  157. package/dist/compatibility/browser-bundle-multilingual.d.ts +0 -19
  158. package/dist/compatibility/browser-bundle-semantic-complete.d.ts +0 -24
  159. package/dist/compatibility/browser-bundle-textshelf-minimal.d.ts +0 -16
  160. package/dist/compatibility/browser-bundle-textshelf-profile.d.ts +0 -18
  161. package/dist/compatibility/browser-modular.d.ts +0 -42
  162. package/dist/compatibility/browser-tests/helpers/semantic-page.d.ts +0 -3
  163. package/dist/compatibility/browser-tests/test-utils.d.ts +0 -21
  164. package/dist/compatibility/bundle-shell.d.ts +0 -13
  165. package/dist/compatibility/bundle-sources.d.ts +0 -4
  166. package/dist/compatibility/eval-hyperscript.d.ts +0 -16
  167. package/dist/compatibility/hyperscript-adapter.d.ts +0 -38
  168. package/dist/core/ast-property-utils.d.ts +0 -2
  169. package/dist/core/context.d.ts +0 -19
  170. package/dist/core/dom.d.ts +0 -15
  171. package/dist/core/evaluator-types.d.ts +0 -5
  172. package/dist/core/events.d.ts +0 -48
  173. package/dist/core/executor.d.ts +0 -34
  174. package/dist/core/expression-evaluator.d.ts +0 -6
  175. package/dist/core/expression-registry.d.ts +0 -8
  176. package/dist/core/scope-hooks.d.ts +0 -24
  177. package/dist/debug/debug-controller.d.ts +0 -62
  178. package/dist/debug/index.d.ts +0 -5
  179. package/dist/dom/attribute-processor.d.ts +0 -75
  180. package/dist/dom/detect-language.d.ts +0 -3
  181. package/dist/dom/minimal-attribute-processor.d.ts +0 -20
  182. package/dist/expressions/base-expression.d.ts +0 -27
  183. package/dist/expressions/bundles/common-expressions.d.ts +0 -10
  184. package/dist/expressions/bundles/core-expressions.d.ts +0 -8
  185. package/dist/expressions/bundles/full-expressions.d.ts +0 -11
  186. package/dist/expressions/bundles/index.d.ts +0 -7
  187. package/dist/expressions/collection/index.d.ts +0 -10
  188. package/dist/expressions/conversion/index.d.ts +0 -31
  189. package/dist/expressions/expression-tiers.d.ts +0 -13
  190. package/dist/expressions/index.cjs +0 -4331
  191. package/dist/expressions/index.d.ts +0 -13
  192. package/dist/expressions/index.mjs +0 -4312
  193. package/dist/expressions/logical/index.d.ts +0 -61
  194. package/dist/expressions/mathematical/index.d.ts +0 -80
  195. package/dist/expressions/positional/index.d.ts +0 -31
  196. package/dist/expressions/properties/index.d.ts +0 -27
  197. package/dist/expressions/property-access-utils.d.ts +0 -23
  198. package/dist/expressions/references/index.d.ts +0 -39
  199. package/dist/expressions/shared/comparison-utils.d.ts +0 -10
  200. package/dist/expressions/shared/index.d.ts +0 -10
  201. package/dist/expressions/shared/number-utils.d.ts +0 -8
  202. package/dist/expressions/shared/tracking.d.ts +0 -20
  203. package/dist/expressions/shared/validation-utils.d.ts +0 -13
  204. package/dist/expressions/special/index.d.ts +0 -78
  205. package/dist/expressions/type-helpers.d.ts +0 -11
  206. package/dist/expressions/type-registry.d.ts +0 -57
  207. package/dist/expressions/validation-helpers.d.ts +0 -15
  208. package/dist/htmx/hcon.d.ts +0 -9
  209. package/dist/htmx/htmx-attribute-processor.d.ts +0 -120
  210. package/dist/htmx/htmx-translator.d.ts +0 -22
  211. package/dist/htmx/i18n-hooks.d.ts +0 -18
  212. package/dist/htmx/i18n-orchestrator.d.ts +0 -16
  213. package/dist/htmx/index.d.ts +0 -3
  214. package/dist/htmx/lang-resolver.d.ts +0 -3
  215. package/dist/htmx/sse.d.ts +0 -60
  216. package/dist/htmx/ws.d.ts +0 -59
  217. package/dist/hyperfixi-browser-classic-i18n.js +0 -2
  218. package/dist/hyperfixi-browser.js +0 -2
  219. package/dist/hyperfixi-classic-i18n.js +0 -2
  220. package/dist/hyperfixi-hx-v4.js +0 -1
  221. package/dist/hyperfixi-hx.js +0 -1
  222. package/dist/hyperfixi-hybrid-complete.js +0 -1
  223. package/dist/hyperfixi-hybrid-hx.js +0 -1
  224. package/dist/hyperfixi-multilingual.js +0 -2
  225. package/dist/hyperfixi.mjs +0 -2
  226. package/dist/i18n/error-catalog.d.ts +0 -12
  227. package/dist/index.cjs +0 -29159
  228. package/dist/index.min.js +0 -2
  229. package/dist/lib/dom-globals-shim.d.ts +0 -2
  230. package/dist/lib/index.d.ts +0 -4
  231. package/dist/lib/morph-adapter.d.ts +0 -9
  232. package/dist/lib/swap-executor.d.ts +0 -12
  233. package/dist/lib/view-transitions.d.ts +0 -7
  234. package/dist/lokascript-browser-classic-i18n.js +0 -2
  235. package/dist/lokascript-browser.js +0 -2
  236. package/dist/lokascript-hybrid-complete.js +0 -1
  237. package/dist/lokascript-hybrid-hx.js +0 -1
  238. package/dist/lokascript-multilingual.js +0 -2
  239. package/dist/lse/index.cjs +0 -84
  240. package/dist/lse/index.d.ts +0 -15
  241. package/dist/lse/index.mjs +0 -71
  242. package/dist/multilingual/bridge.d.ts +0 -38
  243. package/dist/multilingual/schema-roles.d.ts +0 -3
  244. package/dist/parser/__types__/test-helpers.d.ts +0 -25
  245. package/dist/parser/command-grammar.d.ts +0 -14
  246. package/dist/parser/command-node-builder.d.ts +0 -46
  247. package/dist/parser/command-parsers/animation-commands.d.ts +0 -6
  248. package/dist/parser/command-parsers/async-commands.d.ts +0 -5
  249. package/dist/parser/command-parsers/control-flow-commands.d.ts +0 -7
  250. package/dist/parser/command-parsers/declared-commands.d.ts +0 -6
  251. package/dist/parser/command-parsers/dom-commands.d.ts +0 -11
  252. package/dist/parser/command-parsers/event-commands.d.ts +0 -4
  253. package/dist/parser/command-parsers/navigation-commands.d.ts +0 -6
  254. package/dist/parser/command-parsers/utility-commands.d.ts +0 -14
  255. package/dist/parser/command-parsers/variable-commands.d.ts +0 -12
  256. package/dist/parser/error-handler.d.ts +0 -34
  257. package/dist/parser/extensions.d.ts +0 -43
  258. package/dist/parser/full-parser.cjs +0 -7943
  259. package/dist/parser/full-parser.d.ts +0 -4
  260. package/dist/parser/full-parser.mjs +0 -7940
  261. package/dist/parser/helpers/ast-helpers.d.ts +0 -24
  262. package/dist/parser/helpers/parsing-helpers.d.ts +0 -19
  263. package/dist/parser/helpers/token-helpers.d.ts +0 -28
  264. package/dist/parser/hybrid/aliases.cjs +0 -44
  265. package/dist/parser/hybrid/aliases.d.ts +0 -7
  266. package/dist/parser/hybrid/aliases.mjs +0 -37
  267. package/dist/parser/hybrid/ast-types.cjs +0 -3
  268. package/dist/parser/hybrid/ast-types.d.ts +0 -97
  269. package/dist/parser/hybrid/ast-types.mjs +0 -2
  270. package/dist/parser/hybrid/index.cjs +0 -1185
  271. package/dist/parser/hybrid/index.d.ts +0 -6
  272. package/dist/parser/hybrid/index.mjs +0 -1175
  273. package/dist/parser/hybrid/parser-core.cjs +0 -1171
  274. package/dist/parser/hybrid/parser-core.d.ts +0 -69
  275. package/dist/parser/hybrid/parser-core.mjs +0 -1169
  276. package/dist/parser/hybrid/tokenizer.cjs +0 -255
  277. package/dist/parser/hybrid/tokenizer.d.ts +0 -9
  278. package/dist/parser/hybrid/tokenizer.mjs +0 -252
  279. package/dist/parser/hybrid-parser.cjs +0 -1249
  280. package/dist/parser/hybrid-parser.d.ts +0 -10
  281. package/dist/parser/hybrid-parser.mjs +0 -1242
  282. package/dist/parser/parser-constants.d.ts +0 -100
  283. package/dist/parser/parser-interface.d.ts +0 -12
  284. package/dist/parser/parser-types.d.ts +0 -164
  285. package/dist/parser/parser.d.ts +0 -165
  286. package/dist/parser/pratt-parser.d.ts +0 -41
  287. package/dist/parser/regex-parser.cjs +0 -422
  288. package/dist/parser/regex-parser.d.ts +0 -4
  289. package/dist/parser/regex-parser.mjs +0 -419
  290. package/dist/parser/runtime.d.ts +0 -14
  291. package/dist/parser/semantic-integration.d.ts +0 -17
  292. package/dist/parser/token-consumer.d.ts +0 -34
  293. package/dist/parser/token-predicates.d.ts +0 -77
  294. package/dist/parser/tokenizer.d.ts +0 -28
  295. package/dist/parser/types.d.ts +0 -105
  296. package/dist/performance/expression-cache.d.ts +0 -78
  297. package/dist/performance/integration.d.ts +0 -40
  298. package/dist/performance/production-monitor.d.ts +0 -67
  299. package/dist/registry/browser-types.cjs +0 -81
  300. package/dist/registry/browser-types.d.ts +0 -20
  301. package/dist/registry/browser-types.mjs +0 -76
  302. package/dist/registry/environment.cjs +0 -36
  303. package/dist/registry/environment.d.ts +0 -19
  304. package/dist/registry/environment.mjs +0 -30
  305. package/dist/registry/event-source-registry.d.ts +0 -54
  306. package/dist/registry/examples/server-commands.d.ts +0 -6
  307. package/dist/registry/examples/server-event-source.d.ts +0 -32
  308. package/dist/registry/index.cjs +0 -14055
  309. package/dist/registry/index.d.ts +0 -39
  310. package/dist/registry/index.mjs +0 -14039
  311. package/dist/registry/runtime-integration.d.ts +0 -23
  312. package/dist/registry/universal-types.cjs +0 -91
  313. package/dist/registry/universal-types.d.ts +0 -35
  314. package/dist/registry/universal-types.mjs +0 -86
  315. package/dist/runtime/cleanup-registry.d.ts +0 -47
  316. package/dist/runtime/command-adapter.d.ts +0 -69
  317. package/dist/runtime/environment.d.ts +0 -75
  318. package/dist/runtime/plugin.d.ts +0 -14
  319. package/dist/runtime/runtime-base.d.ts +0 -100
  320. package/dist/runtime/runtime-factory.d.ts +0 -29
  321. package/dist/runtime/runtime.d.ts +0 -20
  322. package/dist/runtime/temporal-modifiers.d.ts +0 -37
  323. package/dist/test-setup.d.ts +0 -28
  324. package/dist/test-utilities.d.ts +0 -39
  325. package/dist/types/base-types.d.ts +0 -231
  326. package/dist/types/code-fix.d.ts +0 -39
  327. package/dist/types/command-metadata.d.ts +0 -57
  328. package/dist/types/command-types.d.ts +0 -262
  329. package/dist/types/context-types.d.ts +0 -106
  330. package/dist/types/core-context.d.ts +0 -22
  331. package/dist/types/core.d.ts +0 -143
  332. package/dist/types/error-codes.d.ts +0 -207
  333. package/dist/types/expression-types.d.ts +0 -155
  334. package/dist/types/hooks.d.ts +0 -45
  335. package/dist/types/index.d.ts +0 -32
  336. package/dist/types/program.d.ts +0 -8
  337. package/dist/types/result.d.ts +0 -73
  338. package/dist/types/template-types.d.ts +0 -162
  339. package/dist/types/type-guards.d.ts +0 -24
  340. package/dist/types/unified-types.d.ts +0 -91
  341. package/dist/utils/beep.d.ts +0 -8
  342. package/dist/utils/debug-events.d.ts +0 -41
  343. package/dist/utils/debug.d.ts +0 -35
  344. package/dist/utils/dom-utils.d.ts +0 -16
  345. package/dist/utils/element-check.d.ts +0 -8
  346. package/dist/utils/keyboard-shortcuts.d.ts +0 -18
  347. package/dist/utils/performance.d.ts +0 -40
  348. package/dist/validation/command-pattern-validator.d.ts +0 -53
  349. package/dist/validation/common-validators.d.ts +0 -24
  350. package/dist/validation/lightweight-validators.d.ts +0 -113
  351. package/dist/validation/partial-validation-types.d.ts +0 -50
  352. package/dist/validation/partial-validator.d.ts +0 -6
  353. package/dist/validation/partial-warning-formatter.d.ts +0 -6
  354. package/dist/validation/validate-cli.d.ts +0 -41
  355. package/vocab/htmx/ar.js +0 -62
  356. package/vocab/htmx/bn.js +0 -65
  357. package/vocab/htmx/de.js +0 -83
  358. package/vocab/htmx/en.js +0 -24
  359. package/vocab/htmx/es.js +0 -79
  360. package/vocab/htmx/fr.js +0 -79
  361. package/vocab/htmx/he.js +0 -61
  362. package/vocab/htmx/hi.js +0 -81
  363. package/vocab/htmx/id.js +0 -76
  364. package/vocab/htmx/it.js +0 -79
  365. package/vocab/htmx/ja.js +0 -85
  366. package/vocab/htmx/ko.js +0 -81
  367. package/vocab/htmx/ms.js +0 -58
  368. package/vocab/htmx/pl.js +0 -80
  369. package/vocab/htmx/pt.js +0 -81
  370. package/vocab/htmx/qu.js +0 -83
  371. package/vocab/htmx/ru.js +0 -82
  372. package/vocab/htmx/sw.js +0 -79
  373. package/vocab/htmx/th.js +0 -67
  374. package/vocab/htmx/tl.js +0 -56
  375. package/vocab/htmx/tr.js +0 -86
  376. package/vocab/htmx/uk.js +0 -82
  377. package/vocab/htmx/vi.js +0 -59
  378. package/vocab/htmx/zh.js +0 -79
@@ -1,140 +0,0 @@
1
- import type { ASTNode, ExpressionNode } from '../types/core';
2
- import type { BodyOps } from '../types/program';
3
- export declare const GENERIC_SLOT_KEYS: readonly ["when", "where", "debounce", "throttle"];
4
- export type GenericSlotKey = (typeof GENERIC_SLOT_KEYS)[number];
5
- export declare const COMMAND_SLOTS: {
6
- readonly add: readonly ["to"];
7
- readonly append: readonly ["to"];
8
- readonly beep: readonly [];
9
- readonly blur: readonly [];
10
- readonly break: readonly [];
11
- readonly breakpoint: readonly [];
12
- readonly call: readonly [];
13
- readonly clear: readonly [];
14
- readonly close: readonly [];
15
- readonly continue: readonly [];
16
- readonly copy: readonly ["to"];
17
- readonly decrement: readonly ["by"];
18
- readonly default: readonly ["to"];
19
- readonly empty: readonly [];
20
- readonly exit: readonly [];
21
- readonly fetch: readonly ["as", "body", "doNotThrow", "with"];
22
- readonly focus: readonly [];
23
- readonly get: readonly [];
24
- readonly go: readonly ["back", "behavior", "by", "forward", "in", "of", "position", "url"];
25
- readonly halt: readonly ["the"];
26
- readonly hide: readonly ["with"];
27
- readonly if: readonly [];
28
- readonly increment: readonly ["by"];
29
- readonly install: readonly ["on"];
30
- readonly js: readonly [];
31
- readonly log: readonly [];
32
- readonly make: readonly ["a", "an", "called", "from"];
33
- readonly measure: readonly ["of", "set"];
34
- readonly morph: readonly ["on", "strategy", "viewTransition", "with"];
35
- readonly open: readonly ["as"];
36
- readonly pick: readonly ["count", "flags", "rangeEnd", "rangeMode", "rangeStart", "regex", "variant"];
37
- readonly prepend: readonly ["to"];
38
- readonly process: readonly ["viewTransition"];
39
- readonly 'pseudo-command': readonly ["at", "from", "into", "on", "to", "with"];
40
- readonly push: readonly ["title"];
41
- readonly put: readonly ["after", "at", "at end of", "at start of", "before", "into", "viewTransition"];
42
- readonly remove: readonly ["from"];
43
- readonly render: readonly ["with"];
44
- readonly repeat: readonly ["bottomTested", "event", "for", "from", "in", "index", "loopType", "times", "until", "while"];
45
- readonly replace: readonly ["title"];
46
- readonly reset: readonly [];
47
- readonly return: readonly [];
48
- readonly scroll: readonly ["behavior", "by", "direction", "of", "position"];
49
- readonly select: readonly [];
50
- readonly send: readonly ["detail", "on", "to", "with"];
51
- readonly set: readonly ["on", "to"];
52
- readonly settle: readonly ["for"];
53
- readonly show: readonly ["with"];
54
- readonly start: readonly ["transitionName"];
55
- readonly swap: readonly ["strategy", "viewTransition", "with"];
56
- readonly take: readonly ["for", "from"];
57
- readonly tell: readonly [];
58
- readonly throw: readonly [];
59
- readonly toggle: readonly ["as", "between", "for", "from", "on", "until"];
60
- readonly unless: readonly [];
61
- readonly transition: readonly ["from", "on", "over", "pairs", "to", "using", "with"];
62
- readonly trigger: readonly ["on", "to", "with"];
63
- readonly wait: readonly [];
64
- };
65
- export type SlottedCommandName = keyof typeof COMMAND_SLOTS;
66
- export declare const COMMAND_ARITY: {
67
- readonly add: readonly [1, 2];
68
- readonly append: readonly [1, 1];
69
- readonly beep: readonly [0, null];
70
- readonly blur: readonly [0, 1];
71
- readonly break: readonly [0, 0];
72
- readonly breakpoint: readonly [0, 0];
73
- readonly call: readonly [1, 1];
74
- readonly clear: readonly [1, 1];
75
- readonly close: readonly [0, 1];
76
- readonly continue: readonly [0, 0];
77
- readonly copy: readonly [1, 1];
78
- readonly decrement: readonly [1, 2];
79
- readonly default: readonly [1, 2];
80
- readonly empty: readonly [0, 1];
81
- readonly exit: readonly [0, 0];
82
- readonly fetch: readonly [1, 1];
83
- readonly focus: readonly [0, 1];
84
- readonly get: readonly [1, 1];
85
- readonly go: readonly [0, 1];
86
- readonly halt: readonly [0, 1];
87
- readonly hide: readonly [0, 1];
88
- readonly if: readonly [2, 3];
89
- readonly increment: readonly [1, 2];
90
- readonly install: readonly [1, 2];
91
- readonly js: readonly [2, 2];
92
- readonly log: readonly [0, null];
93
- readonly make: readonly [0, 1];
94
- readonly measure: readonly [0, 2];
95
- readonly morph: readonly [1, 3];
96
- readonly open: readonly [0, 1];
97
- readonly pick: readonly [1, null];
98
- readonly prepend: readonly [1, 1];
99
- readonly process: readonly [1, 1];
100
- readonly 'pseudo-command': readonly [1, 3];
101
- readonly push: readonly [1, 1];
102
- readonly put: readonly [1, 2];
103
- readonly remove: readonly [0, 1];
104
- readonly render: readonly [1, 1];
105
- readonly repeat: readonly [1, 2];
106
- readonly replace: readonly [1, 1];
107
- readonly reset: readonly [0, 1];
108
- readonly return: readonly [0, 1];
109
- readonly scroll: readonly [0, 1];
110
- readonly select: readonly [0, 1];
111
- readonly send: readonly [1, 1];
112
- readonly set: readonly [1, 2];
113
- readonly settle: readonly [0, 1];
114
- readonly show: readonly [0, 1];
115
- readonly start: readonly [1, null];
116
- readonly swap: readonly [1, 3];
117
- readonly take: readonly [1, 1];
118
- readonly tell: readonly [2, null];
119
- readonly throw: readonly [0, 1];
120
- readonly toggle: readonly [0, 2];
121
- readonly transition: readonly [1, 2];
122
- readonly trigger: readonly [1, 1];
123
- readonly unless: readonly [2, 3];
124
- readonly wait: readonly [1, 2];
125
- };
126
- export type SlotKey<K extends SlottedCommandName> = (typeof COMMAND_SLOTS)[K][number] | GenericSlotKey;
127
- export type SlotMap<K extends SlottedCommandName> = Partial<Record<SlotKey<K>, ExpressionNode>>;
128
- type Repeat<T, N extends number, R extends T[] = []> = R['length'] extends N ? R : Repeat<T, N, [...R, T]>;
129
- type TupleRange<T, Min extends number, Max extends number, R extends T[] = Repeat<T, Min>> = R['length'] extends Max ? R : R | TupleRange<T, Min, Max, [...R, T]>;
130
- export type ArgsOf<K extends SlottedCommandName> = [K] extends [
131
- (typeof COMMAND_ARITY)[K] extends readonly [number, number] ? K : never
132
- ] ? (typeof COMMAND_ARITY)[K] extends readonly [number, infer Max extends number] ? TupleRange<ASTNode, 0, Max> : ASTNode[] : ASTNode[];
133
- export interface CommandRaw<K extends SlottedCommandName> {
134
- args: ArgsOf<K>;
135
- modifiers: Partial<Record<SlotKey<K>, ExpressionNode>>;
136
- commandName?: string;
137
- bodies?: BodyOps;
138
- }
139
- export {};
140
- //# sourceMappingURL=command-slots.d.ts.map
@@ -1,15 +0,0 @@
1
- import type { SyntaxNode, SyntaxKind, IdentifierNode, LiteralNode, SelectorNode, CommandNode, PropertyOfExpressionNode, PropertyAccessNode } from './nodes';
2
- export declare function isNode(value: unknown): value is SyntaxNode;
3
- export declare function isNodeOfKind<K extends SyntaxKind>(value: unknown, kind: K): value is Extract<SyntaxNode, {
4
- type: K;
5
- }>;
6
- export declare function assertNodeOfKind<K extends SyntaxKind>(value: unknown, kind: K): Extract<SyntaxNode, {
7
- type: K;
8
- }>;
9
- export declare function isIdentifierNode(value: unknown): value is IdentifierNode;
10
- export declare function isLiteralNode(value: unknown): value is LiteralNode;
11
- export declare function isSelectorNode(value: unknown): value is SelectorNode;
12
- export declare function isCommandNode(value: unknown): value is CommandNode;
13
- export declare function isPropertyOfExpressionNode(value: unknown): value is PropertyOfExpressionNode;
14
- export declare function isPropertyAccessNode(value: unknown): value is PropertyAccessNode;
15
- //# sourceMappingURL=guards.d.ts.map
@@ -1,15 +0,0 @@
1
- import type { ASTNode, ExpressionNode } from '../types/base-types';
2
- import type { CommandNode as LegacyCommandNode } from '../types/core';
3
- import type { Expr, Stmt, SyntaxNode } from './nodes';
4
- export type AnyNode = SyntaxNode | ASTNode;
5
- export declare function toLegacyNode(node: AnyNode): ASTNode;
6
- export declare function toLegacyNodes(nodes: readonly AnyNode[]): ASTNode[];
7
- export declare function toLegacyExpression(node: Expr): ExpressionNode;
8
- export declare function toLegacyExpressions(nodes: Expr[]): ExpressionNode[];
9
- export declare function toLegacyExpressionMap(modifiers: Record<string, Expr>): Record<string, ExpressionNode>;
10
- export declare function fromLegacyCommands(nodes: ReadonlyArray<LegacyCommandNode | ASTNode>): Stmt[];
11
- export declare function fromLegacyExpression(node: ASTNode): Expr;
12
- export declare function fromHybridStatements(body: ReadonlyArray<{
13
- readonly type: string;
14
- }>): Stmt[];
15
- //# sourceMappingURL=legacy.d.ts.map
@@ -1,243 +0,0 @@
1
- import type { ParseDiagnostic } from '../types/base-types';
2
- import type { SlotKey, SlottedCommandName } from './command-slots';
3
- export interface BaseNode {
4
- readonly type: string;
5
- readonly start?: number;
6
- readonly end?: number;
7
- readonly line?: number;
8
- readonly column?: number;
9
- readonly raw?: string;
10
- readonly diagnostics?: readonly ParseDiagnostic[];
11
- }
12
- export interface LiteralNode extends BaseNode {
13
- readonly type: 'literal';
14
- readonly value: unknown;
15
- readonly raw?: string;
16
- readonly dataType?: 'string' | 'number' | 'boolean' | 'duration';
17
- }
18
- export interface StringNode extends BaseNode {
19
- readonly type: 'string';
20
- readonly value: string;
21
- }
22
- export interface IdentifierNode extends BaseNode {
23
- readonly type: 'identifier';
24
- readonly name: string;
25
- readonly scope?: 'local' | 'element' | 'global';
26
- }
27
- export interface SelectorNode extends BaseNode {
28
- readonly type: 'selector';
29
- readonly value: string;
30
- readonly selector?: string;
31
- readonly selectorType?: string;
32
- readonly fromQuery?: boolean;
33
- readonly raw?: string;
34
- }
35
- export interface AttributeAccessNode extends BaseNode {
36
- readonly type: 'attributeAccess';
37
- readonly attributeName: string;
38
- }
39
- export interface CssPropertyNode extends BaseNode {
40
- readonly type: 'cssProperty';
41
- readonly name: string;
42
- }
43
- export interface BinaryExpressionNode extends BaseNode {
44
- readonly type: 'binaryExpression';
45
- readonly operator: string;
46
- readonly left: Expr;
47
- readonly right: Expr;
48
- readonly coerceNumeric?: boolean;
49
- readonly ignoringCase?: boolean;
50
- }
51
- export interface UnaryExpressionNode extends BaseNode {
52
- readonly type: 'unaryExpression';
53
- readonly operator: string;
54
- readonly operand: Expr;
55
- readonly argument?: Expr;
56
- readonly prefix?: boolean;
57
- }
58
- export interface CallExpressionNode extends BaseNode {
59
- readonly type: 'callExpression';
60
- readonly callee: Expr;
61
- readonly arguments: Expr[];
62
- readonly isConstructor?: boolean;
63
- readonly closestTo?: Expr;
64
- }
65
- export interface MemberExpressionNode extends BaseNode {
66
- readonly type: 'memberExpression';
67
- readonly object: Expr;
68
- readonly property: Expr;
69
- readonly computed: boolean;
70
- }
71
- export interface PossessiveExpressionNode extends BaseNode {
72
- readonly type: 'possessiveExpression';
73
- readonly object: Expr;
74
- readonly property: Expr;
75
- }
76
- export interface PropertyOfExpressionNode extends BaseNode {
77
- readonly type: 'propertyOfExpression';
78
- readonly property: Expr;
79
- readonly target: Expr;
80
- }
81
- export interface ArrayLiteralNode extends BaseNode {
82
- readonly type: 'arrayLiteral';
83
- readonly elements: Expr[];
84
- }
85
- export interface ObjectLiteralNode extends BaseNode {
86
- readonly type: 'objectLiteral';
87
- readonly properties: ReadonlyArray<{
88
- readonly key: Expr & {
89
- readonly valueType?: string;
90
- };
91
- readonly value: Expr;
92
- }>;
93
- }
94
- export interface TemplateLiteralNode extends BaseNode {
95
- readonly type: 'templateLiteral';
96
- readonly value: string;
97
- }
98
- export interface AsExpressionNode extends BaseNode {
99
- readonly type: 'asExpression';
100
- readonly expression: Expr;
101
- readonly targetType: Expr | string;
102
- }
103
- export interface BetweenExpressionNode extends BaseNode {
104
- readonly type: 'betweenExpression';
105
- readonly value: Expr;
106
- readonly min: Expr;
107
- readonly max: Expr;
108
- readonly negated?: boolean;
109
- readonly ignoringCase?: boolean;
110
- }
111
- export interface TypeCheckExpressionNode extends BaseNode {
112
- readonly type: 'typeCheckExpression';
113
- readonly value: Expr;
114
- readonly typeName: string;
115
- readonly nullOk?: boolean;
116
- readonly negated?: boolean;
117
- }
118
- export interface CollectionExpressionNode extends BaseNode {
119
- readonly type: 'collectionExpression';
120
- readonly operator: string;
121
- readonly collection: Expr;
122
- readonly right: Expr;
123
- readonly order?: 'asc' | 'desc';
124
- }
125
- export interface ConditionalExpressionNode extends BaseNode {
126
- readonly type: 'conditionalExpression';
127
- readonly test: Expr;
128
- readonly consequent: Expr;
129
- readonly alternate?: Expr;
130
- }
131
- export interface StringPostfixNode extends BaseNode {
132
- readonly type: 'stringPostfix';
133
- readonly expression: Expr;
134
- readonly unit: string;
135
- }
136
- export interface BlockLiteralNode extends BaseNode {
137
- readonly type: 'blockLiteral';
138
- readonly parameters: string[];
139
- readonly body: Expr;
140
- }
141
- export interface FunctionCallNode extends BaseNode {
142
- readonly type: 'functionCall';
143
- readonly name: string;
144
- readonly args: Expr[];
145
- }
146
- export interface PropertyAccessNode extends BaseNode {
147
- readonly type: 'propertyAccess';
148
- readonly object: Expr;
149
- readonly property: string | {
150
- readonly name: string;
151
- };
152
- }
153
- export interface ContextReferenceNode extends BaseNode {
154
- readonly type: 'contextReference';
155
- readonly contextType: string;
156
- }
157
- export interface GenericExpressionNode extends BaseNode {
158
- readonly type: 'expression';
159
- readonly value?: unknown;
160
- readonly operator?: string;
161
- readonly operands?: Expr[];
162
- }
163
- export interface CommandNode<K extends SlottedCommandName = SlottedCommandName> extends BaseNode {
164
- readonly type: 'command';
165
- readonly name: string;
166
- readonly args: Expr[];
167
- readonly isBlocking: boolean;
168
- readonly body?: Stmt[];
169
- readonly modifiers?: Partial<Record<SlotKey<K>, Expr>>;
170
- readonly implicitTarget?: Expr;
171
- readonly originalCommand?: string;
172
- readonly semanticRoles?: Record<string, Expr>;
173
- readonly partial?: boolean;
174
- }
175
- export interface BlockNode extends BaseNode {
176
- readonly type: 'block';
177
- readonly commands: Stmt[];
178
- }
179
- export interface EventHandlerNode extends BaseNode {
180
- readonly type: 'eventHandler';
181
- readonly event: string;
182
- readonly commands: Stmt[];
183
- readonly events?: string[];
184
- readonly condition?: Expr;
185
- readonly target?: string;
186
- readonly targetExpression?: Expr;
187
- readonly selector?: string;
188
- readonly args?: string[];
189
- readonly attributeName?: string;
190
- readonly watchTarget?: Expr;
191
- readonly customEventSource?: string;
192
- readonly errorSymbol?: string;
193
- readonly errorHandler?: Stmt[];
194
- readonly finallyHandler?: Stmt[];
195
- readonly modifiers?: {
196
- readonly once?: boolean;
197
- readonly prevent?: boolean;
198
- readonly stop?: boolean;
199
- readonly debounce?: number;
200
- readonly throttle?: number;
201
- };
202
- }
203
- export interface BehaviorNode extends BaseNode {
204
- readonly type: 'behavior';
205
- readonly name: string;
206
- readonly parameters: string[];
207
- readonly eventHandlers: EventHandlerNode[];
208
- readonly initBlock?: Stmt;
209
- }
210
- export interface DefNode extends BaseNode {
211
- readonly type: 'def';
212
- readonly name: string;
213
- readonly params: string[];
214
- readonly body: Stmt[];
215
- readonly errorSymbol?: string;
216
- readonly errorHandler?: Stmt[];
217
- readonly finallyHandler?: Stmt[];
218
- }
219
- export interface InitBlockNode extends BaseNode {
220
- readonly type: 'initBlock';
221
- readonly commands: Stmt[];
222
- }
223
- export interface CommandSequenceNode extends BaseNode {
224
- readonly type: 'CommandSequence';
225
- readonly commands: Stmt[];
226
- }
227
- export interface ProgramNode extends BaseNode {
228
- readonly type: 'Program';
229
- readonly statements: Stmt[];
230
- }
231
- export interface ErrorNode extends BaseNode {
232
- readonly type: 'error';
233
- readonly message?: string;
234
- }
235
- export interface PluginNode extends BaseNode {
236
- readonly type: string;
237
- readonly payload?: unknown;
238
- }
239
- export type Expr = LiteralNode | StringNode | IdentifierNode | SelectorNode | AttributeAccessNode | CssPropertyNode | BinaryExpressionNode | UnaryExpressionNode | CallExpressionNode | MemberExpressionNode | PossessiveExpressionNode | PropertyOfExpressionNode | ArrayLiteralNode | ObjectLiteralNode | TemplateLiteralNode | AsExpressionNode | BetweenExpressionNode | TypeCheckExpressionNode | CollectionExpressionNode | ConditionalExpressionNode | StringPostfixNode | BlockLiteralNode | FunctionCallNode | PropertyAccessNode | ContextReferenceNode | GenericExpressionNode;
240
- export type Stmt = CommandNode | BlockNode | EventHandlerNode | BehaviorNode | DefNode | InitBlockNode | CommandSequenceNode | ProgramNode | ErrorNode;
241
- export type SyntaxNode = Expr | Stmt;
242
- export type SyntaxKind = SyntaxNode['type'];
243
- //# sourceMappingURL=nodes.d.ts.map
@@ -1,12 +0,0 @@
1
- import type { InterchangeNode } from './types';
2
- interface CoreNode {
3
- type: string;
4
- [key: string]: unknown;
5
- }
6
- export type RoleInferrer = (name: string, args: readonly InterchangeNode[], modifiers: Readonly<Record<string, unknown>> | undefined, target: InterchangeNode | undefined) => Readonly<Record<string, InterchangeNode>> | null;
7
- export interface FromCoreOptions {
8
- readonly inferRoles?: RoleInferrer;
9
- }
10
- export declare function fromCoreAST(node: CoreNode, options?: FromCoreOptions): InterchangeNode;
11
- export {};
12
- //# sourceMappingURL=from-core.d.ts.map
@@ -1,8 +0,0 @@
1
- import type { InterchangeNode } from './types';
2
- interface CoreNode {
3
- type: string;
4
- [key: string]: unknown;
5
- }
6
- export declare function toCoreAST(node: InterchangeNode): CoreNode;
7
- export {};
8
- //# sourceMappingURL=to-core.d.ts.map
@@ -1,29 +0,0 @@
1
- import type { SwapStrategy } from '../commands/dom/swap';
2
- export interface BoostedConfig {
3
- container: HTMLElement;
4
- target?: string | HTMLElement;
5
- linkSelector?: string;
6
- formSelector?: string;
7
- boostForms?: boolean;
8
- strategy?: SwapStrategy;
9
- pushUrl?: boolean;
10
- useViewTransition?: boolean;
11
- fetchOptions?: RequestInit;
12
- onBeforeFetch?: (url: string, method: string) => void | boolean | Promise<void | boolean>;
13
- onAfterSwap?: (url: string, content: string) => void | Promise<void>;
14
- onError?: (error: Error, url: string) => void;
15
- }
16
- export interface BoostedInstance {
17
- destroy: () => void;
18
- config: BoostedConfig;
19
- boost: (url: string, method?: string, body?: FormData | null) => Promise<void>;
20
- }
21
- export declare function createBoosted(config: BoostedConfig): BoostedInstance;
22
- export declare const BoostedBehavior: {
23
- name: string;
24
- init(element: HTMLElement, params?: Record<string, unknown>): BoostedInstance;
25
- destroy(instance: BoostedInstance): void;
26
- };
27
- export declare function registerBoosted(registry: Map<string, unknown> | any): void;
28
- export declare const boostedHyperscript = "\nbehavior Boosted(target, pushHistory)\n init\n if no target then set target to document.body end\n if no pushHistory then set pushHistory to true end\n end\n\n on click from <a[href]/> in me\n -- Skip if modifier keys pressed\n if event.metaKey or event.ctrlKey or event.shiftKey or event.altKey then exit end\n\n -- Skip external links\n set href to the @href of the target\n if href starts with 'http' and not (href starts with location.origin) then exit end\n\n -- Skip links with target attribute\n if the target has @target then exit end\n\n halt the event\n add .hx-swapping to target\n fetch href as html\n swap target with it\n remove .hx-swapping from target\n if pushHistory then push url href end\n end\nend\n";
29
- //# sourceMappingURL=boosted.d.ts.map
@@ -1,24 +0,0 @@
1
- import type { SwapStrategy } from '../commands/dom/swap';
2
- export interface HistorySwapConfig {
3
- target: string | HTMLElement;
4
- strategy?: SwapStrategy;
5
- useViewTransition?: boolean;
6
- fetchOptions?: RequestInit;
7
- transformUrl?: (url: string) => string;
8
- onBeforeFetch?: (url: string) => void | Promise<void>;
9
- onAfterSwap?: (url: string, content: string) => void | Promise<void>;
10
- onError?: (error: Error, url: string) => void;
11
- }
12
- export interface HistorySwapInstance {
13
- destroy: () => void;
14
- config: HistorySwapConfig;
15
- }
16
- export declare function createHistorySwap(config: HistorySwapConfig): HistorySwapInstance;
17
- export declare const HistorySwapBehavior: {
18
- name: string;
19
- init(element: HTMLElement, params?: Record<string, unknown>): HistorySwapInstance;
20
- destroy(instance: HistorySwapInstance): void;
21
- };
22
- export declare function registerHistorySwap(registry: Map<string, unknown> | any): void;
23
- export declare const historySwapHyperscript = "\nbehavior HistorySwap(target, strategy)\n init\n if no target then set target to me end\n if no strategy then set strategy to 'morph' end\n end\n\n on popstate from window\n add .hx-swapping to target\n fetch location.href as html\n if strategy is 'morph' then\n swap target with it\n else if strategy is 'innerHTML' then\n swap innerHTML of target with it\n else\n swap target with it\n end\n remove .hx-swapping from target\n end\nend\n";
24
- //# sourceMappingURL=history-swap.d.ts.map