@hyperfixi/core 2.0.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 (381) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +218 -0
  3. package/dist/__test-utils__/context-builders.d.ts +42 -0
  4. package/dist/__test-utils__/error-testing.d.ts +18 -0
  5. package/dist/__test-utils__/index.d.ts +6 -0
  6. package/dist/__test-utils__/mock-types.d.ts +57 -0
  7. package/dist/__test-utils__/parser-context-mock.d.ts +7 -0
  8. package/dist/__test-utils__/parser-helpers.d.ts +38 -0
  9. package/dist/api/dom-processor.d.ts +17 -0
  10. package/dist/api/hyperscript-api.d.ts +68 -0
  11. package/dist/api/lokascript-api.d.ts +9 -0
  12. package/dist/ast-utils/analyzer.d.ts +19 -0
  13. package/dist/ast-utils/documentation.d.ts +8 -0
  14. package/dist/ast-utils/generator.d.ts +9 -0
  15. package/dist/ast-utils/index.d.ts +12 -0
  16. package/dist/ast-utils/index.js +3366 -0
  17. package/dist/ast-utils/index.mjs +3320 -0
  18. package/dist/ast-utils/interchange/from-core.d.ts +8 -0
  19. package/dist/ast-utils/interchange/index.d.ts +6 -0
  20. package/dist/ast-utils/interchange/lsp.d.ts +108 -0
  21. package/dist/ast-utils/interchange/to-core.d.ts +8 -0
  22. package/dist/ast-utils/interchange/types.d.ts +113 -0
  23. package/dist/ast-utils/query.d.ts +25 -0
  24. package/dist/ast-utils/transformer.d.ts +14 -0
  25. package/dist/ast-utils/types.d.ts +162 -0
  26. package/dist/ast-utils/visitor.d.ts +40 -0
  27. package/dist/behaviors/boosted.d.ts +29 -0
  28. package/dist/behaviors/history-swap.d.ts +24 -0
  29. package/dist/behaviors/index.d.ts +4 -0
  30. package/dist/behaviors/index.js +1149 -0
  31. package/dist/behaviors/index.mjs +1139 -0
  32. package/dist/bundle-generator/generator.d.ts +4 -0
  33. package/dist/bundle-generator/index.d.ts +6 -0
  34. package/dist/bundle-generator/index.js +2294 -0
  35. package/dist/bundle-generator/index.mjs +2271 -0
  36. package/dist/bundle-generator/parser-templates.d.ts +6 -0
  37. package/dist/bundle-generator/template-capabilities.d.ts +10 -0
  38. package/dist/bundle-generator/templates.d.ts +11 -0
  39. package/dist/bundle-generator/types.d.ts +34 -0
  40. package/dist/bundles/test-minimal.d.ts +3 -0
  41. package/dist/bundles/test-standard.d.ts +3 -0
  42. package/dist/chunks/bridge-I6ceoWxV.js +2 -0
  43. package/dist/chunks/browser-modular-Dv6PAV3c.js +2 -0
  44. package/dist/chunks/feature-eventsource-DWb514fy.js +2 -0
  45. package/dist/chunks/feature-sockets-3PFuvCVY.js +2 -0
  46. package/dist/chunks/feature-webworker-DTm_eh-E.js +2 -0
  47. package/dist/commands/advanced/async.d.ts +28 -0
  48. package/dist/commands/advanced/js.d.ts +28 -0
  49. package/dist/commands/animation/measure.d.ts +31 -0
  50. package/dist/commands/animation/settle.d.ts +26 -0
  51. package/dist/commands/animation/take.d.ts +28 -0
  52. package/dist/commands/animation/transition.d.ts +31 -0
  53. package/dist/commands/async/fetch.d.ts +44 -0
  54. package/dist/commands/async/wait.d.ts +41 -0
  55. package/dist/commands/behaviors/install.d.ts +41 -0
  56. package/dist/commands/content/append.d.ts +27 -0
  57. package/dist/commands/control-flow/break.d.ts +15 -0
  58. package/dist/commands/control-flow/continue.d.ts +15 -0
  59. package/dist/commands/control-flow/exit.d.ts +15 -0
  60. package/dist/commands/control-flow/halt.d.ts +25 -0
  61. package/dist/commands/control-flow/if.d.ts +45 -0
  62. package/dist/commands/control-flow/repeat.d.ts +35 -0
  63. package/dist/commands/control-flow/return.d.ts +23 -0
  64. package/dist/commands/control-flow/signal-base.d.ts +25 -0
  65. package/dist/commands/control-flow/throw.d.ts +22 -0
  66. package/dist/commands/control-flow/unless.d.ts +3 -0
  67. package/dist/commands/data/decrement.d.ts +3 -0
  68. package/dist/commands/data/default.d.ts +31 -0
  69. package/dist/commands/data/get.d.ts +23 -0
  70. package/dist/commands/data/increment.d.ts +25 -0
  71. package/dist/commands/data/set.d.ts +56 -0
  72. package/dist/commands/decorators/index.d.ts +30 -0
  73. package/dist/commands/dom/__tests__/add-standalone-helpers.d.ts +11 -0
  74. package/dist/commands/dom/add.d.ts +31 -0
  75. package/dist/commands/dom/dom-modification-base.d.ts +48 -0
  76. package/dist/commands/dom/hide.d.ts +12 -0
  77. package/dist/commands/dom/make.d.ts +21 -0
  78. package/dist/commands/dom/process-partials.d.ts +39 -0
  79. package/dist/commands/dom/put.d.ts +31 -0
  80. package/dist/commands/dom/remove.d.ts +33 -0
  81. package/dist/commands/dom/show.d.ts +13 -0
  82. package/dist/commands/dom/swap.d.ts +38 -0
  83. package/dist/commands/dom/toggle.d.ts +55 -0
  84. package/dist/commands/dom/visibility-base.d.ts +20 -0
  85. package/dist/commands/events/send.d.ts +3 -0
  86. package/dist/commands/events/trigger.d.ts +36 -0
  87. package/dist/commands/execution/call.d.ts +24 -0
  88. package/dist/commands/execution/pseudo-command.d.ts +42 -0
  89. package/dist/commands/helpers/attribute-manipulation.d.ts +11 -0
  90. package/dist/commands/helpers/batch-dom-operations.d.ts +12 -0
  91. package/dist/commands/helpers/class-manipulation.d.ts +11 -0
  92. package/dist/commands/helpers/condition-helpers.d.ts +4 -0
  93. package/dist/commands/helpers/dom-mutation.d.ts +15 -0
  94. package/dist/commands/helpers/duration-parsing.d.ts +8 -0
  95. package/dist/commands/helpers/element-property-access.d.ts +7 -0
  96. package/dist/commands/helpers/element-resolution.d.ts +17 -0
  97. package/dist/commands/helpers/error-helpers.d.ts +17 -0
  98. package/dist/commands/helpers/event-helpers.d.ts +13 -0
  99. package/dist/commands/helpers/event-waiting.d.ts +37 -0
  100. package/dist/commands/helpers/index.d.ts +32 -0
  101. package/dist/commands/helpers/input-validator.d.ts +23 -0
  102. package/dist/commands/helpers/loop-executor.d.ts +53 -0
  103. package/dist/commands/helpers/numeric-target-parser.d.ts +14 -0
  104. package/dist/commands/helpers/property-target.d.ts +30 -0
  105. package/dist/commands/helpers/selector-type-detection.d.ts +24 -0
  106. package/dist/commands/helpers/smart-element.d.ts +16 -0
  107. package/dist/commands/helpers/style-manipulation.d.ts +16 -0
  108. package/dist/commands/helpers/temporal-modifiers.d.ts +15 -0
  109. package/dist/commands/helpers/url-argument-parser.d.ts +10 -0
  110. package/dist/commands/helpers/url-validation.d.ts +7 -0
  111. package/dist/commands/helpers/variable-access.d.ts +10 -0
  112. package/dist/commands/helpers/visibility-target-parser.d.ts +11 -0
  113. package/dist/commands/index.d.ts +139 -0
  114. package/dist/commands/index.js +9186 -0
  115. package/dist/commands/index.mjs +9032 -0
  116. package/dist/commands/navigation/go.d.ts +35 -0
  117. package/dist/commands/navigation/push-url.d.ts +35 -0
  118. package/dist/commands/navigation/replace-url.d.ts +3 -0
  119. package/dist/commands/templates/render.d.ts +48 -0
  120. package/dist/commands/utility/beep.d.ts +32 -0
  121. package/dist/commands/utility/copy.d.ts +29 -0
  122. package/dist/commands/utility/log.d.ts +24 -0
  123. package/dist/commands/utility/pick.d.ts +26 -0
  124. package/dist/commands/utility/tell.d.ts +26 -0
  125. package/dist/compatibility/browser-bundle-animation-generated.d.ts +16 -0
  126. package/dist/compatibility/browser-bundle-classic-i18n.d.ts +63 -0
  127. package/dist/compatibility/browser-bundle-classic.d.ts +17 -0
  128. package/dist/compatibility/browser-bundle-forms-generated.d.ts +16 -0
  129. package/dist/compatibility/browser-bundle-hybrid-complete.d.ts +28 -0
  130. package/dist/compatibility/browser-bundle-hybrid-hx.d.ts +43 -0
  131. package/dist/compatibility/browser-bundle-lite-plus.d.ts +25 -0
  132. package/dist/compatibility/browser-bundle-lite.d.ts +23 -0
  133. package/dist/compatibility/browser-bundle-minimal-generated.d.ts +16 -0
  134. package/dist/compatibility/browser-bundle-minimal-v2.d.ts +17 -0
  135. package/dist/compatibility/browser-bundle-minimal.d.ts +8 -0
  136. package/dist/compatibility/browser-bundle-modular.d.ts +18 -0
  137. package/dist/compatibility/browser-bundle-multilingual.d.ts +19 -0
  138. package/dist/compatibility/browser-bundle-semantic-complete.d.ts +24 -0
  139. package/dist/compatibility/browser-bundle-standard-v2.d.ts +17 -0
  140. package/dist/compatibility/browser-bundle-standard.d.ts +8 -0
  141. package/dist/compatibility/browser-bundle-textshelf-minimal.d.ts +16 -0
  142. package/dist/compatibility/browser-bundle-textshelf-profile.d.ts +18 -0
  143. package/dist/compatibility/browser-bundle.d.ts +140 -0
  144. package/dist/compatibility/browser-modular.d.ts +53 -0
  145. package/dist/compatibility/browser-tests/test-utils.d.ts +21 -0
  146. package/dist/compatibility/eval-hyperscript.d.ts +15 -0
  147. package/dist/compatibility/feature-loader.d.ts +8 -0
  148. package/dist/compatibility/hyperscript-adapter.d.ts +38 -0
  149. package/dist/compatibility/hyperscript-tests/test-adapter.d.ts +13 -0
  150. package/dist/core/ast-property-utils.d.ts +2 -0
  151. package/dist/core/base-expression-evaluator.d.ts +70 -0
  152. package/dist/core/binary-expression-evaluator.d.ts +7 -0
  153. package/dist/core/call-expression-evaluator.d.ts +7 -0
  154. package/dist/core/configurable-expression-evaluator.d.ts +5 -0
  155. package/dist/core/context.d.ts +15 -0
  156. package/dist/core/dom.d.ts +15 -0
  157. package/dist/core/evaluator-types.d.ts +5 -0
  158. package/dist/core/events.d.ts +48 -0
  159. package/dist/core/executor.d.ts +34 -0
  160. package/dist/core/expression-evaluator.d.ts +6 -0
  161. package/dist/core/lazy-expression-evaluator.d.ts +22 -0
  162. package/dist/core/parser.d.ts +21 -0
  163. package/dist/core/selector-evaluator.d.ts +15 -0
  164. package/dist/core/template-literal-evaluator.d.ts +5 -0
  165. package/dist/dom/attribute-processor.d.ts +40 -0
  166. package/dist/dom/minimal-attribute-processor.d.ts +20 -0
  167. package/dist/experimental/binary-tree/accessor.d.ts +10 -0
  168. package/dist/experimental/binary-tree/ast-serializer.d.ts +26 -0
  169. package/dist/experimental/binary-tree/benchmark.d.ts +24 -0
  170. package/dist/experimental/binary-tree/buffer-context.d.ts +27 -0
  171. package/dist/experimental/binary-tree/deserializer.d.ts +17 -0
  172. package/dist/experimental/binary-tree/index.d.ts +22 -0
  173. package/dist/experimental/binary-tree/serializer.d.ts +4 -0
  174. package/dist/experimental/binary-tree/types.d.ts +54 -0
  175. package/dist/expressions/base-expression.d.ts +27 -0
  176. package/dist/expressions/bundles/common-expressions.d.ts +9 -0
  177. package/dist/expressions/bundles/core-expressions.d.ts +7 -0
  178. package/dist/expressions/bundles/full-expressions.d.ts +10 -0
  179. package/dist/expressions/bundles/index.d.ts +7 -0
  180. package/dist/expressions/comparison/index.d.ts +80 -0
  181. package/dist/expressions/comparison/utils.d.ts +2 -0
  182. package/dist/expressions/conversion/impl/bridge.d.ts +117 -0
  183. package/dist/expressions/conversion/impl/index.d.ts +59 -0
  184. package/dist/expressions/conversion/index.d.ts +23 -0
  185. package/dist/expressions/expression-tiers.d.ts +13 -0
  186. package/dist/expressions/index.d.ts +11 -0
  187. package/dist/expressions/index.js +6930 -0
  188. package/dist/expressions/index.mjs +6912 -0
  189. package/dist/expressions/logical/impl/index.d.ts +54 -0
  190. package/dist/expressions/logical/impl/pattern-matching.d.ts +58 -0
  191. package/dist/expressions/logical/index.d.ts +59 -0
  192. package/dist/expressions/mathematical/index.d.ts +69 -0
  193. package/dist/expressions/positional/impl/bridge.d.ts +95 -0
  194. package/dist/expressions/positional/impl/index.d.ts +73 -0
  195. package/dist/expressions/positional/index.d.ts +26 -0
  196. package/dist/expressions/properties/impl/index.d.ts +105 -0
  197. package/dist/expressions/properties/index.d.ts +26 -0
  198. package/dist/expressions/property/index.d.ts +55 -0
  199. package/dist/expressions/property-access-utils.d.ts +23 -0
  200. package/dist/expressions/references/impl/bridge.d.ts +54 -0
  201. package/dist/expressions/references/impl/index.d.ts +65 -0
  202. package/dist/expressions/references/index.d.ts +40 -0
  203. package/dist/expressions/shared/comparison-utils.d.ts +10 -0
  204. package/dist/expressions/shared/index.d.ts +9 -0
  205. package/dist/expressions/shared/number-utils.d.ts +7 -0
  206. package/dist/expressions/shared/validation-utils.d.ts +13 -0
  207. package/dist/expressions/special/index.d.ts +104 -0
  208. package/dist/expressions/type-helpers.d.ts +11 -0
  209. package/dist/expressions/type-registry.d.ts +57 -0
  210. package/dist/expressions/validation-helpers.d.ts +15 -0
  211. package/dist/extensions/index.d.ts +3 -0
  212. package/dist/extensions/tailwind.d.ts +22 -0
  213. package/dist/features/behaviors.d.ts +153 -0
  214. package/dist/features/def.d.ts +135 -0
  215. package/dist/features/eventsource.d.ts +140 -0
  216. package/dist/features/init.d.ts +135 -0
  217. package/dist/features/on.d.ts +131 -0
  218. package/dist/features/predefined-behaviors/dropdown-behavior.d.ts +20 -0
  219. package/dist/features/predefined-behaviors/index.d.ts +12 -0
  220. package/dist/features/predefined-behaviors/modal-behavior.d.ts +18 -0
  221. package/dist/features/predefined-behaviors/toggle-group-behavior.d.ts +23 -0
  222. package/dist/features/predefined-behaviors/types.d.ts +14 -0
  223. package/dist/features/sockets.d.ts +162 -0
  224. package/dist/features/webworker.d.ts +135 -0
  225. package/dist/htmx/htmx-attribute-processor.d.ts +84 -0
  226. package/dist/htmx/htmx-translator.d.ts +19 -0
  227. package/dist/htmx/index.d.ts +3 -0
  228. package/dist/hyperfixi-classic-i18n.js +2 -0
  229. package/dist/hyperfixi-hx.js +1 -0
  230. package/dist/hyperfixi-hybrid-complete.js +1 -0
  231. package/dist/hyperfixi-lite-plus.js +1 -0
  232. package/dist/hyperfixi-lite.js +1 -0
  233. package/dist/hyperfixi-minimal.js +1 -0
  234. package/dist/hyperfixi-multilingual.js +2 -0
  235. package/dist/hyperfixi-standard.js +2 -0
  236. package/dist/hyperfixi.js +2 -0
  237. package/dist/hyperfixi.mjs +2 -0
  238. package/dist/index.d.ts +25 -0
  239. package/dist/index.js +65387 -0
  240. package/dist/index.min.js +2 -0
  241. package/dist/index.mjs +65343 -0
  242. package/dist/lib/index.d.ts +4 -0
  243. package/dist/lib/morph-adapter.d.ts +22 -0
  244. package/dist/lib/swap-executor.d.ts +22 -0
  245. package/dist/lib/view-transitions.d.ts +33 -0
  246. package/dist/lokascript-browser-classic-i18n.js +2 -0
  247. package/dist/lokascript-browser-minimal.js +1 -0
  248. package/dist/lokascript-browser-standard.js +2 -0
  249. package/dist/lokascript-browser.js +2 -0
  250. package/dist/lokascript-hybrid-complete.js +1 -0
  251. package/dist/lokascript-hybrid-hx.js +1 -0
  252. package/dist/lokascript-lite-plus.js +1 -0
  253. package/dist/lokascript-lite.js +1 -0
  254. package/dist/lokascript-multilingual.js +2 -0
  255. package/dist/lsp-metadata.d.ts +25 -0
  256. package/dist/lsp-metadata.js +680 -0
  257. package/dist/lsp-metadata.mjs +670 -0
  258. package/dist/metadata.d.ts +213 -0
  259. package/dist/metadata.js +378 -0
  260. package/dist/metadata.mjs +368 -0
  261. package/dist/mod.d.ts +63 -0
  262. package/dist/multilingual/bridge.d.ts +36 -0
  263. package/dist/multilingual/index.d.ts +32 -0
  264. package/dist/multilingual/index.js +285 -0
  265. package/dist/multilingual/index.mjs +278 -0
  266. package/dist/parser/__types__/test-helpers.d.ts +25 -0
  267. package/dist/parser/command-node-builder.d.ts +45 -0
  268. package/dist/parser/command-parsers/animation-commands.d.ts +5 -0
  269. package/dist/parser/command-parsers/async-commands.d.ts +5 -0
  270. package/dist/parser/command-parsers/control-flow-commands.d.ts +7 -0
  271. package/dist/parser/command-parsers/dom-commands.d.ts +8 -0
  272. package/dist/parser/command-parsers/event-commands.d.ts +4 -0
  273. package/dist/parser/command-parsers/utility-commands.d.ts +9 -0
  274. package/dist/parser/command-parsers/variable-commands.d.ts +12 -0
  275. package/dist/parser/error-handler.d.ts +34 -0
  276. package/dist/parser/expression-parser.d.ts +6 -0
  277. package/dist/parser/full-parser.d.ts +4 -0
  278. package/dist/parser/full-parser.js +6532 -0
  279. package/dist/parser/full-parser.mjs +6529 -0
  280. package/dist/parser/helpers/ast-helpers.d.ts +22 -0
  281. package/dist/parser/helpers/parsing-helpers.d.ts +19 -0
  282. package/dist/parser/helpers/token-helpers.d.ts +28 -0
  283. package/dist/parser/hybrid/aliases.d.ts +7 -0
  284. package/dist/parser/hybrid/aliases.js +44 -0
  285. package/dist/parser/hybrid/aliases.mjs +37 -0
  286. package/dist/parser/hybrid/ast-types.d.ts +97 -0
  287. package/dist/parser/hybrid/ast-types.js +3 -0
  288. package/dist/parser/hybrid/ast-types.mjs +2 -0
  289. package/dist/parser/hybrid/index.d.ts +6 -0
  290. package/dist/parser/hybrid/index.js +1015 -0
  291. package/dist/parser/hybrid/index.mjs +1005 -0
  292. package/dist/parser/hybrid/parser-core.d.ts +57 -0
  293. package/dist/parser/hybrid/parser-core.js +1001 -0
  294. package/dist/parser/hybrid/parser-core.mjs +999 -0
  295. package/dist/parser/hybrid/tokenizer.d.ts +9 -0
  296. package/dist/parser/hybrid/tokenizer.js +242 -0
  297. package/dist/parser/hybrid/tokenizer.mjs +239 -0
  298. package/dist/parser/hybrid-parser.d.ts +10 -0
  299. package/dist/parser/hybrid-parser.js +1078 -0
  300. package/dist/parser/hybrid-parser.mjs +1071 -0
  301. package/dist/parser/parser-constants.d.ts +102 -0
  302. package/dist/parser/parser-interface.d.ts +11 -0
  303. package/dist/parser/parser-types.d.ts +175 -0
  304. package/dist/parser/parser.d.ts +146 -0
  305. package/dist/parser/regex-parser.d.ts +4 -0
  306. package/dist/parser/regex-parser.js +412 -0
  307. package/dist/parser/regex-parser.mjs +409 -0
  308. package/dist/parser/runtime.d.ts +3 -0
  309. package/dist/parser/semantic-integration.d.ts +61 -0
  310. package/dist/parser/token-consumer.d.ts +35 -0
  311. package/dist/parser/token-predicates.d.ts +77 -0
  312. package/dist/parser/tokenizer.d.ts +57 -0
  313. package/dist/parser/types.d.ts +118 -0
  314. package/dist/performance/expression-cache.d.ts +78 -0
  315. package/dist/performance/integration.d.ts +40 -0
  316. package/dist/performance/production-monitor.d.ts +67 -0
  317. package/dist/reference/index.d.ts +41 -0
  318. package/dist/reference/index.js +586 -0
  319. package/dist/reference/index.mjs +577 -0
  320. package/dist/registry/browser-types.d.ts +20 -0
  321. package/dist/registry/browser-types.js +81 -0
  322. package/dist/registry/browser-types.mjs +76 -0
  323. package/dist/registry/context-provider-registry.d.ts +38 -0
  324. package/dist/registry/environment.d.ts +19 -0
  325. package/dist/registry/environment.js +36 -0
  326. package/dist/registry/environment.mjs +30 -0
  327. package/dist/registry/event-source-registry.d.ts +54 -0
  328. package/dist/registry/examples/server-commands.d.ts +6 -0
  329. package/dist/registry/examples/server-event-source.d.ts +32 -0
  330. package/dist/registry/index.d.ts +54 -0
  331. package/dist/registry/index.js +7636 -0
  332. package/dist/registry/index.mjs +7612 -0
  333. package/dist/registry/multilingual/examples.d.ts +16 -0
  334. package/dist/registry/multilingual/index.d.ts +68 -0
  335. package/dist/registry/runtime-integration.d.ts +30 -0
  336. package/dist/registry/universal-types.d.ts +34 -0
  337. package/dist/registry/universal-types.js +91 -0
  338. package/dist/registry/universal-types.mjs +86 -0
  339. package/dist/runtime/cleanup-registry.d.ts +47 -0
  340. package/dist/runtime/command-adapter.d.ts +63 -0
  341. package/dist/runtime/environment.d.ts +75 -0
  342. package/dist/runtime/runtime-base.d.ts +78 -0
  343. package/dist/runtime/runtime-experimental.d.ts +18 -0
  344. package/dist/runtime/runtime-factory.d.ts +30 -0
  345. package/dist/runtime/runtime.d.ts +19 -0
  346. package/dist/runtime/temporal-modifiers.d.ts +37 -0
  347. package/dist/scripts/code-generator.d.ts +64 -0
  348. package/dist/scripts/generate-missing-commands.d.ts +4 -0
  349. package/dist/test-setup.d.ts +45 -0
  350. package/dist/test-utilities.d.ts +52 -0
  351. package/dist/tokenizer.d.ts +49 -0
  352. package/dist/types/base-types.d.ts +336 -0
  353. package/dist/types/code-fix.d.ts +39 -0
  354. package/dist/types/command-metadata.d.ts +57 -0
  355. package/dist/types/command-types.d.ts +272 -0
  356. package/dist/types/context-types.d.ts +106 -0
  357. package/dist/types/core-context.d.ts +21 -0
  358. package/dist/types/core.d.ts +203 -0
  359. package/dist/types/error-codes.d.ts +207 -0
  360. package/dist/types/expression-types.d.ts +155 -0
  361. package/dist/types/feature-types.d.ts +81 -0
  362. package/dist/types/hooks.d.ts +45 -0
  363. package/dist/types/index.d.ts +32 -0
  364. package/dist/types/result.d.ts +72 -0
  365. package/dist/types/template-types.d.ts +162 -0
  366. package/dist/types/type-guards.d.ts +24 -0
  367. package/dist/types/unified-types.d.ts +99 -0
  368. package/dist/utils/debug-events.d.ts +41 -0
  369. package/dist/utils/debug.d.ts +35 -0
  370. package/dist/utils/dom-utils.d.ts +16 -0
  371. package/dist/utils/element-check.d.ts +7 -0
  372. package/dist/utils/keyboard-shortcuts.d.ts +18 -0
  373. package/dist/utils/performance.d.ts +40 -0
  374. package/dist/validation/command-pattern-validator.d.ts +53 -0
  375. package/dist/validation/common-validators.d.ts +24 -0
  376. package/dist/validation/lightweight-validators.d.ts +113 -0
  377. package/dist/validation/partial-validation-types.d.ts +50 -0
  378. package/dist/validation/partial-validator.d.ts +6 -0
  379. package/dist/validation/partial-warning-formatter.d.ts +6 -0
  380. package/dist/validation/validate-cli.d.ts +41 -0
  381. package/package.json +292 -0
@@ -0,0 +1,35 @@
1
+ import type { ExecutionContext, TypedExecutionContext } from '../../types/core';
2
+ import type { ASTNode, ExpressionNode } from '../../types/base-types';
3
+ import type { ExpressionEvaluator } from '../../core/expression-evaluator';
4
+ import { type DecoratedCommand, type CommandMetadata } from '../decorators';
5
+ export interface GoCommandInput {
6
+ args: unknown[];
7
+ }
8
+ export interface GoCommandOutput {
9
+ result: string | HTMLElement;
10
+ type: 'back' | 'url' | 'scroll';
11
+ }
12
+ export declare class GoCommand implements DecoratedCommand {
13
+ readonly name: string;
14
+ readonly metadata: CommandMetadata;
15
+ parseInput(raw: {
16
+ args: ASTNode[];
17
+ modifiers: Record<string, ExpressionNode>;
18
+ }, evaluator: ExpressionEvaluator, context: ExecutionContext): Promise<GoCommandInput>;
19
+ execute(input: GoCommandInput, context: TypedExecutionContext): Promise<GoCommandOutput>;
20
+ private isUrlNavigation;
21
+ private goBack;
22
+ private navigateToUrl;
23
+ private isValidUrl;
24
+ private scrollToElement;
25
+ private mapVerticalPosition;
26
+ private mapHorizontalPosition;
27
+ private parseScrollPosition;
28
+ private parseScrollTarget;
29
+ private parseScrollOffset;
30
+ private resolveScrollTarget;
31
+ private calculateScrollPosition;
32
+ }
33
+ export declare const createGoCommand: () => GoCommand;
34
+ export default GoCommand;
35
+ //# sourceMappingURL=go.d.ts.map
@@ -0,0 +1,35 @@
1
+ import type { ExecutionContext, TypedExecutionContext } from '../../types/core';
2
+ import type { ASTNode, ExpressionNode } from '../../types/base-types';
3
+ import type { ExpressionEvaluator } from '../../core/expression-evaluator';
4
+ import { type DecoratedCommand, type CommandMetadata } from '../decorators';
5
+ import { type UrlCommandInput } from '../helpers/url-argument-parser';
6
+ export type HistoryMode = 'push' | 'replace';
7
+ export interface HistoryCommandInput extends UrlCommandInput {
8
+ mode: HistoryMode;
9
+ }
10
+ export interface HistoryCommandOutput {
11
+ url: string;
12
+ title?: string;
13
+ mode: HistoryMode;
14
+ }
15
+ export declare class HistoryCommand implements DecoratedCommand {
16
+ readonly name: string;
17
+ readonly metadata: CommandMetadata;
18
+ parseInput(raw: {
19
+ args: ASTNode[];
20
+ modifiers: Record<string, ExpressionNode>;
21
+ commandName?: string;
22
+ }, evaluator: ExpressionEvaluator, context: ExecutionContext): Promise<HistoryCommandInput>;
23
+ execute(input: HistoryCommandInput, _context: TypedExecutionContext): Promise<HistoryCommandOutput>;
24
+ }
25
+ export { HistoryCommand as PushUrlCommand };
26
+ export { HistoryCommand as ReplaceUrlCommand };
27
+ export type PushUrlCommandInput = HistoryCommandInput;
28
+ export type ReplaceUrlCommandInput = HistoryCommandInput;
29
+ export type PushUrlCommandOutput = HistoryCommandOutput;
30
+ export type ReplaceUrlCommandOutput = HistoryCommandOutput;
31
+ export declare const createHistoryCommand: () => HistoryCommand;
32
+ export declare const createPushUrlCommand: () => HistoryCommand;
33
+ export declare const createReplaceUrlCommand: () => HistoryCommand;
34
+ export default HistoryCommand;
35
+ //# sourceMappingURL=push-url.d.ts.map
@@ -0,0 +1,3 @@
1
+ export { HistoryCommand as ReplaceUrlCommand, createReplaceUrlCommand, type ReplaceUrlCommandInput, type ReplaceUrlCommandOutput, } from './push-url';
2
+ export { HistoryCommand as default } from './push-url';
3
+ //# sourceMappingURL=replace-url.d.ts.map
@@ -0,0 +1,48 @@
1
+ import type { ExecutionContext, TypedExecutionContext } from '../../types/core';
2
+ import type { ASTNode, ExpressionNode } from '../../types/base-types';
3
+ import type { ExpressionEvaluator } from '../../core/expression-evaluator';
4
+ export interface RenderCommandInput {
5
+ template: unknown;
6
+ variables?: Record<string, unknown>;
7
+ }
8
+ export interface RenderCommandOutput {
9
+ element: Element | null;
10
+ rendered: string;
11
+ directivesProcessed: string[];
12
+ }
13
+ export declare class RenderCommand {
14
+ readonly name = "render";
15
+ static readonly metadata: {
16
+ readonly description: "Render templates with @if, @else, and @repeat directives";
17
+ readonly syntax: readonly ["render <template>", "render <template> with <variables>", "render <template> with (key: value, ...)"];
18
+ readonly examples: readonly ["render myTemplate", "render myTemplate with (name: \"Alice\")", "render \"<template>Hello ${name}!</template>\" with (name: \"World\")", "render template with (items: data)"];
19
+ readonly category: "templates";
20
+ readonly sideEffects: readonly ["dom-creation", "template-execution"];
21
+ };
22
+ get metadata(): {
23
+ readonly description: "Render templates with @if, @else, and @repeat directives";
24
+ readonly syntax: readonly ["render <template>", "render <template> with <variables>", "render <template> with (key: value, ...)"];
25
+ readonly examples: readonly ["render myTemplate", "render myTemplate with (name: \"Alice\")", "render \"<template>Hello ${name}!</template>\" with (name: \"World\")", "render template with (items: data)"];
26
+ readonly category: "templates";
27
+ readonly sideEffects: readonly ["dom-creation", "template-execution"];
28
+ };
29
+ parseInput(raw: {
30
+ args: ASTNode[];
31
+ modifiers: Record<string, ExpressionNode>;
32
+ }, evaluator: ExpressionEvaluator, context: ExecutionContext): Promise<RenderCommandInput>;
33
+ execute(input: RenderCommandInput, context: TypedExecutionContext): Promise<RenderCommandOutput>;
34
+ private extractTemplateContent;
35
+ private createTemplateContext;
36
+ private processTemplate;
37
+ private processRepeatDirective;
38
+ private processIfDirective;
39
+ private extractDirectiveBlock;
40
+ private extractIfElseBlock;
41
+ private processVariableInterpolation;
42
+ private evaluateExpression;
43
+ private resolveVariable;
44
+ private escapeHtml;
45
+ private createDOMElement;
46
+ }
47
+ export declare function createRenderCommand(): RenderCommand;
48
+ //# sourceMappingURL=render.d.ts.map
@@ -0,0 +1,32 @@
1
+ import type { ExecutionContext, TypedExecutionContext } from '../../types/core';
2
+ import type { ASTNode, ExpressionNode } from '../../types/base-types';
3
+ import type { ExpressionEvaluator } from '../../core/expression-evaluator';
4
+ import { type DecoratedCommand, type CommandMetadata } from '../decorators';
5
+ export interface BeepCommandInput {
6
+ expressions?: any[];
7
+ }
8
+ export interface BeepCommandOutput {
9
+ expressionCount: number;
10
+ debugged: boolean;
11
+ outputs: Array<{
12
+ value: any;
13
+ type: string;
14
+ representation: string;
15
+ }>;
16
+ }
17
+ export declare class BeepCommand implements DecoratedCommand {
18
+ readonly name: string;
19
+ readonly metadata: CommandMetadata;
20
+ parseInput(raw: {
21
+ args: ASTNode[];
22
+ modifiers: Record<string, ExpressionNode>;
23
+ }, evaluator: ExpressionEvaluator, context: ExecutionContext): Promise<BeepCommandInput>;
24
+ execute(input: BeepCommandInput, context: TypedExecutionContext): Promise<BeepCommandOutput>;
25
+ private debugContext;
26
+ private debugExpression;
27
+ private getType;
28
+ private getRepresentation;
29
+ }
30
+ export declare const createBeepCommand: () => BeepCommand;
31
+ export default BeepCommand;
32
+ //# sourceMappingURL=beep.d.ts.map
@@ -0,0 +1,29 @@
1
+ import type { ExecutionContext, TypedExecutionContext } from '../../types/core';
2
+ import type { ASTNode, ExpressionNode } from '../../types/base-types';
3
+ import type { ExpressionEvaluator } from '../../core/expression-evaluator';
4
+ import { type DecoratedCommand, type CommandMetadata } from '../decorators';
5
+ export interface CopyCommandInput {
6
+ source: string | HTMLElement;
7
+ format?: 'text' | 'html';
8
+ }
9
+ export interface CopyCommandOutput {
10
+ success: boolean;
11
+ text: string;
12
+ format: 'text' | 'html';
13
+ method: 'clipboard-api' | 'execCommand' | 'fallback';
14
+ }
15
+ export declare class CopyCommand implements DecoratedCommand {
16
+ readonly name: string;
17
+ readonly metadata: CommandMetadata;
18
+ parseInput(raw: {
19
+ args: ASTNode[];
20
+ modifiers: Record<string, ExpressionNode>;
21
+ }, evaluator: ExpressionEvaluator, context: ExecutionContext): Promise<CopyCommandInput>;
22
+ execute(input: CopyCommandInput, context: TypedExecutionContext): Promise<CopyCommandOutput>;
23
+ private extractText;
24
+ private copyUsingExecCommand;
25
+ private dispatchCopyEvent;
26
+ }
27
+ export declare const createCopyCommand: () => CopyCommand;
28
+ export default CopyCommand;
29
+ //# sourceMappingURL=copy.d.ts.map
@@ -0,0 +1,24 @@
1
+ import type { ExecutionContext, TypedExecutionContext } from '../../types/core';
2
+ import type { ASTNode, ExpressionNode } from '../../types/base-types';
3
+ import type { ExpressionEvaluator } from '../../core/expression-evaluator';
4
+ import { type DecoratedCommand, type CommandMetadata } from '../decorators';
5
+ export interface LogCommandInput {
6
+ values: unknown[];
7
+ }
8
+ export interface LogCommandOutput {
9
+ values: unknown[];
10
+ loggedAt: Date;
11
+ }
12
+ export declare class LogCommand implements DecoratedCommand {
13
+ readonly name: string;
14
+ readonly metadata: CommandMetadata;
15
+ parseInput(raw: {
16
+ args: ASTNode[];
17
+ modifiers: Record<string, ExpressionNode>;
18
+ }, evaluator: ExpressionEvaluator, context: ExecutionContext): Promise<LogCommandInput>;
19
+ execute(input: LogCommandInput, _context: TypedExecutionContext): Promise<undefined>;
20
+ validate(input: unknown): input is LogCommandInput;
21
+ }
22
+ export declare const createLogCommand: () => LogCommand;
23
+ export default LogCommand;
24
+ //# sourceMappingURL=log.d.ts.map
@@ -0,0 +1,26 @@
1
+ import type { ExecutionContext, TypedExecutionContext } from '../../types/core';
2
+ import type { ASTNode, ExpressionNode } from '../../types/base-types';
3
+ import type { ExpressionEvaluator } from '../../core/expression-evaluator';
4
+ import { type DecoratedCommand, type CommandMetadata } from '../decorators';
5
+ export interface PickCommandInput {
6
+ items?: unknown[];
7
+ array?: unknown[];
8
+ }
9
+ export interface PickCommandOutput {
10
+ selectedItem: unknown;
11
+ selectedIndex: number;
12
+ sourceLength: number;
13
+ sourceType: 'items' | 'array';
14
+ }
15
+ export declare class PickCommand implements DecoratedCommand {
16
+ readonly name: string;
17
+ readonly metadata: CommandMetadata;
18
+ parseInput(raw: {
19
+ args: ASTNode[];
20
+ modifiers: Record<string, ExpressionNode>;
21
+ }, evaluator: ExpressionEvaluator, context: ExecutionContext): Promise<PickCommandInput>;
22
+ execute(input: PickCommandInput, context: TypedExecutionContext): Promise<PickCommandOutput>;
23
+ }
24
+ export declare const createPickCommand: () => PickCommand;
25
+ export default PickCommand;
26
+ //# sourceMappingURL=pick.d.ts.map
@@ -0,0 +1,26 @@
1
+ import type { ExecutionContext, TypedExecutionContext } from '../../types/core';
2
+ import type { ASTNode, ExpressionNode } from '../../types/base-types';
3
+ import type { ExpressionEvaluator } from '../../core/expression-evaluator';
4
+ import { type DecoratedCommand, type CommandMetadata } from '../decorators';
5
+ export interface TellCommandInput {
6
+ target: HTMLElement | HTMLElement[] | string;
7
+ commands: any[];
8
+ }
9
+ export interface TellCommandOutput {
10
+ targetElements: HTMLElement[];
11
+ commandResults: any[];
12
+ executionCount: number;
13
+ }
14
+ export declare class TellCommand implements DecoratedCommand {
15
+ readonly name: string;
16
+ readonly metadata: CommandMetadata;
17
+ parseInput(raw: {
18
+ args: ASTNode[];
19
+ modifiers: Record<string, ExpressionNode>;
20
+ }, evaluator: ExpressionEvaluator, context: ExecutionContext): Promise<TellCommandInput>;
21
+ execute(input: TellCommandInput, context: TypedExecutionContext): Promise<TellCommandOutput>;
22
+ private executeCommand;
23
+ }
24
+ export declare const createTellCommand: () => TellCommand;
25
+ export default TellCommand;
26
+ //# sourceMappingURL=tell.d.ts.map
@@ -0,0 +1,16 @@
1
+ import type { ASTNode } from '../parser/hybrid/ast-types';
2
+ declare function processElements(root?: Element | Document): void;
3
+ declare const api: {
4
+ version: string;
5
+ parse(code: string): ASTNode;
6
+ execute(code: string, element?: Element): Promise<any>;
7
+ run: (code: string, element?: Element) => Promise<any>;
8
+ eval: (code: string, element?: Element) => Promise<any>;
9
+ init: typeof processElements;
10
+ process: typeof processElements;
11
+ commands: string[];
12
+ parserName: string;
13
+ };
14
+ export default api;
15
+ export { api, processElements };
16
+ //# sourceMappingURL=browser-bundle-animation-generated.d.ts.map
@@ -0,0 +1,63 @@
1
+ import { createContext } from '../core/context';
2
+ import type { KeywordResolver } from '../parser/types';
3
+ import { createKeywordProvider, GrammarTransformer, translate, getProfile, getSupportedLocales } from '@lokascript/i18n/browser';
4
+ declare const api: {
5
+ runtime: {
6
+ parse: (code: string) => import("../parser/parser").ParseResult;
7
+ execute: (code: string, context?: any) => Promise<unknown>;
8
+ };
9
+ parse: (code: string) => import("../parser/parser").ParseResult;
10
+ compile: (code: string) => {
11
+ success: boolean;
12
+ ast: import("..").ASTNode | undefined;
13
+ errors: import("..").ParseError[];
14
+ tokens: import("..").Token[];
15
+ compilationTime: number;
16
+ };
17
+ execute: (codeOrAst: string | any, context?: any) => Promise<unknown>;
18
+ run: (code: string, context?: any) => Promise<unknown>;
19
+ evaluate: (code: string, context?: any) => Promise<unknown>;
20
+ processNode: (element: Element | Document) => void;
21
+ process: (element: Element | Document) => void;
22
+ createContext: typeof createContext;
23
+ attributeProcessor: import("../dom/minimal-attribute-processor").MinimalAttributeProcessor;
24
+ version: string;
25
+ i18n: {
26
+ getLocale(): string;
27
+ setLocale(locale: string): void;
28
+ getAvailableLocales(): string[];
29
+ detectAndSetLocale(): string;
30
+ registerLocale(locale: string, provider: KeywordResolver): void;
31
+ toLocale(code: string, targetLocale?: string): string;
32
+ toEnglish(code: string, sourceLocale?: string): string;
33
+ translate: typeof translate;
34
+ createTransformer(sourceLocale: string, targetLocale: string): GrammarTransformer;
35
+ getProfile: typeof getProfile;
36
+ getSupportedGrammarLocales: typeof getSupportedLocales;
37
+ profiles: Record<string, any>;
38
+ dictionaries: {
39
+ en: {};
40
+ es: any;
41
+ ja: any;
42
+ fr: any;
43
+ de: any;
44
+ ar: any;
45
+ ko: any;
46
+ zh: any;
47
+ tr: any;
48
+ id: any;
49
+ pt: any;
50
+ qu: any;
51
+ sw: any;
52
+ };
53
+ createKeywordProvider: typeof createKeywordProvider;
54
+ };
55
+ commands: string[];
56
+ locales: string[];
57
+ eval: (code: string, context?: any) => Promise<unknown>;
58
+ init: (options?: {
59
+ autoDetectLocale?: boolean;
60
+ }) => void;
61
+ };
62
+ export default api;
63
+ //# sourceMappingURL=browser-bundle-classic-i18n.d.ts.map
@@ -0,0 +1,17 @@
1
+ import { createContext } from '../core/context';
2
+ declare const api: {
3
+ runtime: {
4
+ parse: (code: string) => import("../parser/parser").ParseResult;
5
+ execute: (code: string, context?: any) => Promise<unknown>;
6
+ };
7
+ parse: (code: string) => import("../parser/parser").ParseResult;
8
+ execute: (code: string, context?: any) => Promise<unknown>;
9
+ createContext: typeof createContext;
10
+ attributeProcessor: import("../dom/minimal-attribute-processor").MinimalAttributeProcessor;
11
+ version: string;
12
+ commands: string[];
13
+ eval: (code: string, context?: any) => Promise<unknown>;
14
+ init: () => Promise<void>;
15
+ };
16
+ export default api;
17
+ //# sourceMappingURL=browser-bundle-classic.d.ts.map
@@ -0,0 +1,16 @@
1
+ import type { ASTNode } from '../parser/hybrid/ast-types';
2
+ declare function processElements(root?: Element | Document): void;
3
+ declare const api: {
4
+ version: string;
5
+ parse(code: string): ASTNode;
6
+ execute(code: string, element?: Element): Promise<any>;
7
+ run: (code: string, element?: Element) => Promise<any>;
8
+ eval: (code: string, element?: Element) => Promise<any>;
9
+ init: typeof processElements;
10
+ process: typeof processElements;
11
+ commands: string[];
12
+ parserName: string;
13
+ };
14
+ export default api;
15
+ export { api, processElements };
16
+ //# sourceMappingURL=browser-bundle-forms-generated.d.ts.map
@@ -0,0 +1,28 @@
1
+ import { tokenize } from '../parser/hybrid/tokenizer';
2
+ import type { ASTNode } from '../parser/hybrid/ast-types';
3
+ import { addCommandAliases, addEventAliases } from '../parser/hybrid/aliases';
4
+ export interface Context {
5
+ me: Element;
6
+ event?: Event;
7
+ it?: any;
8
+ you?: Element;
9
+ locals: Map<string, any>;
10
+ globals: Map<string, any>;
11
+ }
12
+ declare function evaluate(node: ASTNode, ctx: Context): Promise<any>;
13
+ declare function processElements(root?: Element | Document): void;
14
+ declare const api: {
15
+ version: string;
16
+ parse(code: string): ASTNode;
17
+ execute(code: string, element?: Element): Promise<any>;
18
+ init: typeof processElements;
19
+ process: typeof processElements;
20
+ addAliases: typeof addCommandAliases;
21
+ addEventAliases: typeof addEventAliases;
22
+ tokenize: typeof tokenize;
23
+ evaluate: typeof evaluate;
24
+ commands: string[];
25
+ blocks: string[];
26
+ };
27
+ export default api;
28
+ //# sourceMappingURL=browser-bundle-hybrid-complete.d.ts.map
@@ -0,0 +1,43 @@
1
+ import { HtmxAttributeProcessor, FIXI_ATTRS, HTMX_ATTRS, type HtmxProcessorOptions, type FxInitEventDetail, type FxConfigEventDetail, type FxAfterEventDetail, type FxFinallyEventDetail } from '../htmx/htmx-attribute-processor.js';
2
+ import { translateToHyperscript, hasHtmxAttributes, hasFxAttributes, hasAnyAttributes, type HtmxConfig } from '../htmx/htmx-translator.js';
3
+ interface HtmxCompatOptions extends HtmxProcessorOptions {
4
+ processHyperscript?: boolean;
5
+ }
6
+ declare function enableHtmxCompatibility(options?: HtmxCompatOptions): void;
7
+ declare function disableHtmxCompatibility(): void;
8
+ declare function getHtmxProcessor(): HtmxAttributeProcessor | null;
9
+ declare function translateHtmx(element: Element): string;
10
+ declare const api: {
11
+ version: string;
12
+ enableHtmxCompatibility: typeof enableHtmxCompatibility;
13
+ disableHtmxCompatibility: typeof disableHtmxCompatibility;
14
+ getHtmxProcessor: typeof getHtmxProcessor;
15
+ translateHtmx: typeof translateHtmx;
16
+ hasHtmxAttributes: typeof hasHtmxAttributes;
17
+ hasFxAttributes: typeof hasFxAttributes;
18
+ hasAnyAttributes: typeof hasAnyAttributes;
19
+ HtmxAttributeProcessor: typeof HtmxAttributeProcessor;
20
+ translateToHyperscript: typeof translateToHyperscript;
21
+ features: {
22
+ htmx: boolean;
23
+ fixi: boolean;
24
+ hyperscript: boolean;
25
+ };
26
+ htmxAttributes: string[];
27
+ fixiAttributes: string[];
28
+ fixiEvents: string[];
29
+ parse(code: string): import("../parser/hybrid-parser.js").HybridASTNode;
30
+ execute(code: string, element?: Element): Promise<any>;
31
+ init: (root?: Element | Document) => void;
32
+ process: (root?: Element | Document) => void;
33
+ addAliases: typeof import("../parser/hybrid/aliases.js").addCommandAliases;
34
+ addEventAliases: typeof import("../parser/hybrid/aliases.js").addEventAliases;
35
+ tokenize: typeof import("../parser/hybrid-parser.js").tokenize;
36
+ evaluate: (node: import("../parser/hybrid-parser.js").HybridASTNode, ctx: import("./browser-bundle-hybrid-complete.js").Context) => Promise<any>;
37
+ commands: string[];
38
+ blocks: string[];
39
+ };
40
+ export default api;
41
+ export { enableHtmxCompatibility, disableHtmxCompatibility, translateHtmx, HtmxAttributeProcessor, hasFxAttributes, hasAnyAttributes, FIXI_ATTRS, HTMX_ATTRS, };
42
+ export type { HtmxConfig, HtmxCompatOptions, HtmxProcessorOptions, FxInitEventDetail, FxConfigEventDetail, FxAfterEventDetail, FxFinallyEventDetail, };
43
+ //# sourceMappingURL=browser-bundle-hybrid-hx.d.ts.map
@@ -0,0 +1,25 @@
1
+ interface LiteCommand {
2
+ name: string;
3
+ args: string[];
4
+ target?: string;
5
+ modifier?: string;
6
+ }
7
+ interface LiteEventHandler {
8
+ event: string;
9
+ filter?: string;
10
+ commands: LiteCommand[];
11
+ }
12
+ declare function parseLite(code: string): LiteEventHandler | LiteCommand[];
13
+ declare function processElements(root?: Element | Document): void;
14
+ declare const api: {
15
+ version: string;
16
+ parse: typeof parseLite;
17
+ execute: (code: string, element?: Element) => Promise<any>;
18
+ init: typeof processElements;
19
+ process: typeof processElements;
20
+ addAliases: (aliases: Record<string, string>) => void;
21
+ addEventAliases: (aliases: Record<string, string>) => void;
22
+ commands: string[];
23
+ };
24
+ export default api;
25
+ //# sourceMappingURL=browser-bundle-lite-plus.d.ts.map
@@ -0,0 +1,23 @@
1
+ interface LiteCommand {
2
+ name: string;
3
+ args: string[];
4
+ target?: string;
5
+ modifier?: string;
6
+ }
7
+ interface LiteEventHandler {
8
+ event: string;
9
+ filter?: string;
10
+ commands: LiteCommand[];
11
+ }
12
+ declare function parseLite(code: string): LiteEventHandler | LiteCommand[];
13
+ declare function processElements(root?: Element | Document): void;
14
+ declare const api: {
15
+ version: string;
16
+ parse: typeof parseLite;
17
+ execute: (code: string, element?: Element) => Promise<any>;
18
+ init: typeof processElements;
19
+ process: typeof processElements;
20
+ commands: string[];
21
+ };
22
+ export default api;
23
+ //# sourceMappingURL=browser-bundle-lite.d.ts.map
@@ -0,0 +1,16 @@
1
+ import type { ASTNode } from '../parser/hybrid/ast-types';
2
+ declare function processElements(root?: Element | Document): void;
3
+ declare const api: {
4
+ version: string;
5
+ parse(code: string): ASTNode;
6
+ execute(code: string, element?: Element): Promise<any>;
7
+ run: (code: string, element?: Element) => Promise<any>;
8
+ eval: (code: string, element?: Element) => Promise<any>;
9
+ init: typeof processElements;
10
+ process: typeof processElements;
11
+ commands: string[];
12
+ parserName: string;
13
+ };
14
+ export default api;
15
+ export { api, processElements };
16
+ //# sourceMappingURL=browser-bundle-minimal-generated.d.ts.map
@@ -0,0 +1,17 @@
1
+ import { createContext } from '../core/context';
2
+ declare const api: {
3
+ runtime: {
4
+ parse: (code: string) => import("../parser/parser").ParseResult;
5
+ execute: (code: string, context?: any) => Promise<unknown>;
6
+ };
7
+ parse: (code: string) => import("../parser/parser").ParseResult;
8
+ execute: (code: string, context?: any) => Promise<unknown>;
9
+ createContext: typeof createContext;
10
+ attributeProcessor: import("../dom/minimal-attribute-processor").MinimalAttributeProcessor;
11
+ version: string;
12
+ commands: string[];
13
+ eval: (code: string, context?: any) => Promise<unknown>;
14
+ init: () => void;
15
+ };
16
+ export default api;
17
+ //# sourceMappingURL=browser-bundle-minimal-v2.d.ts.map
@@ -0,0 +1,8 @@
1
+ import { Runtime } from '../runtime/runtime';
2
+ import { parse } from '../parser/parser';
3
+ import { defaultAttributeProcessor } from '../dom/attribute-processor';
4
+ import { createContext } from '../core/context';
5
+ export declare function createMinimalRuntime(): Runtime;
6
+ declare const runtime: Runtime;
7
+ export { runtime, parse, createContext, defaultAttributeProcessor };
8
+ //# sourceMappingURL=browser-bundle-minimal.d.ts.map
@@ -0,0 +1,18 @@
1
+ import { createRuntime, type LokaScriptRuntime } from '../runtime/runtime-factory';
2
+ import { ConfigurableExpressionEvaluator } from '../core/configurable-expression-evaluator';
3
+ declare const hyperfixi: LokaScriptRuntime;
4
+ declare const api: {
5
+ version: string;
6
+ parse: (code: string) => any;
7
+ execute: (code: string, element?: Element) => Promise<unknown>;
8
+ run: (code: string, element?: Element) => Promise<unknown>;
9
+ init: () => void;
10
+ process: typeof processElements;
11
+ runtime: import("..").RuntimeBase;
12
+ commands: string[];
13
+ parserName: string;
14
+ };
15
+ declare function processElements(root?: Element | Document): void;
16
+ export default api;
17
+ export { hyperfixi, api, processElements, createRuntime, ConfigurableExpressionEvaluator, };
18
+ //# sourceMappingURL=browser-bundle-modular.d.ts.map
@@ -0,0 +1,19 @@
1
+ import { createContext } from '../core/context';
2
+ import type { ASTNode } from '../types/base-types';
3
+ declare const api: {
4
+ execute(code: string, lang: string, context?: any): Promise<any>;
5
+ parse(code: string, lang: string): ASTNode | null;
6
+ translate(code: string, sourceLang: string, targetLang: string): string;
7
+ getAllTranslations(code: string, sourceLang: string): Record<string, string>;
8
+ createContext: typeof createContext;
9
+ runtime: import("../runtime/runtime-experimental").RuntimeExperimental;
10
+ version: string;
11
+ commands: readonly ["hide", "show", "add", "remove", "toggle", "put", "make", "wait", "fetch", "set", "get", "increment", "decrement", "default", "trigger", "send", "go", "if", "repeat", "break", "continue", "halt", "return", "exit", "unless", "throw", "call", "pseudo-command", "append", "transition", "measure", "settle", "take", "js", "async", "log", "tell", "copy", "pick", "beep", "install", "render"];
12
+ supportedLanguages: readonly ["en", "ja", "ar", "es", "ko", "zh", "tr", "pt", "fr", "de", "id", "qu", "sw"];
13
+ bundleType: "multilingual";
14
+ processNode: (element: Element | Document) => Promise<void>;
15
+ process: (element: Element | Document) => Promise<void>;
16
+ };
17
+ export default api;
18
+ export { api as hyperfixi };
19
+ //# sourceMappingURL=browser-bundle-multilingual.d.ts.map
@@ -0,0 +1,24 @@
1
+ import { createContext } from '../core/context';
2
+ import type { ASTNode } from '../types/base-types';
3
+ import { getSupportedLanguages } from '@lokascript/semantic';
4
+ declare const api: {
5
+ execute(code: string, lang: string, context?: any): Promise<any>;
6
+ parse(code: string, lang: string): ASTNode | null;
7
+ translate(code: string, sourceLang: string, targetLang: string): string;
8
+ getAllTranslations(code: string, sourceLang: string): Record<string, string>;
9
+ tokenize(code: string, lang: string): import("@lokascript/semantic").TokenStream;
10
+ isLanguageSupported(lang: string): boolean;
11
+ getTokenizer(lang: string): import("@lokascript/semantic").LanguageTokenizer | undefined;
12
+ createContext: typeof createContext;
13
+ runtime: import("../runtime/runtime-experimental").RuntimeExperimental;
14
+ analyzer: import("@lokascript/semantic").SemanticAnalyzer;
15
+ version: string;
16
+ semanticVersion: string;
17
+ commands: readonly ["hide", "show", "add", "remove", "toggle", "put", "make", "wait", "fetch", "set", "get", "increment", "decrement", "default", "trigger", "send", "go", "if", "repeat", "break", "continue", "halt", "return", "exit", "unless", "throw", "call", "pseudo-command", "append", "transition", "measure", "settle", "take", "js", "async", "log", "tell", "copy", "pick", "beep", "install", "render"];
18
+ supportedLanguages: readonly ["en", "ja", "ar", "es", "ko", "zh", "tr", "pt", "fr", "de", "id", "qu", "sw"];
19
+ getSupportedLanguages: typeof getSupportedLanguages;
20
+ bundleType: "semantic-complete";
21
+ };
22
+ export default api;
23
+ export { api as hyperfixi };
24
+ //# sourceMappingURL=browser-bundle-semantic-complete.d.ts.map
@@ -0,0 +1,17 @@
1
+ import { createContext } from '../core/context';
2
+ declare const api: {
3
+ runtime: {
4
+ parse: (code: string) => import("../parser/parser").ParseResult;
5
+ execute: (code: string, context?: any) => Promise<unknown>;
6
+ };
7
+ parse: (code: string) => import("../parser/parser").ParseResult;
8
+ execute: (code: string, context?: any) => Promise<unknown>;
9
+ createContext: typeof createContext;
10
+ attributeProcessor: import("../dom/minimal-attribute-processor").MinimalAttributeProcessor;
11
+ version: string;
12
+ commands: string[];
13
+ eval: (code: string, context?: any) => Promise<unknown>;
14
+ init: () => void;
15
+ };
16
+ export default api;
17
+ //# sourceMappingURL=browser-bundle-standard-v2.d.ts.map
@@ -0,0 +1,8 @@
1
+ import { Runtime } from '../runtime/runtime';
2
+ import { parse } from '../parser/parser';
3
+ import { defaultAttributeProcessor } from '../dom/attribute-processor';
4
+ import { createContext } from '../core/context';
5
+ export declare function createStandardRuntime(): Runtime;
6
+ declare const runtime: Runtime;
7
+ export { runtime, parse, createContext, defaultAttributeProcessor };
8
+ //# sourceMappingURL=browser-bundle-standard.d.ts.map