@hyperfixi/core 3.1.1 → 3.3.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 (97) hide show
  1. package/README.md +28 -36
  2. package/dist/ast/command-slots.d.ts +1 -1
  3. package/dist/ast/nodes.d.ts +2 -0
  4. package/dist/ast-utils/index.cjs +193 -48
  5. package/dist/ast-utils/index.mjs +193 -48
  6. package/dist/ast-utils/interchange/types.d.ts +19 -1
  7. package/dist/behaviors/index.cjs +19 -0
  8. package/dist/behaviors/index.mjs +19 -0
  9. package/dist/bundle-generator/index.cjs +36 -17
  10. package/dist/bundle-generator/index.mjs +36 -17
  11. package/dist/bundle-generator/parser-templates.d.ts +1 -1
  12. package/dist/chunks/bridge-CI9SOl8u.js +2 -0
  13. package/dist/chunks/browser-modular-7CpI5VF2.js +2 -0
  14. package/dist/chunks/index-BwXDEK0m.js +2 -0
  15. package/dist/chunks/index-DQi2o8Lk.js +2 -0
  16. package/dist/chunks/index-uCOQ8Qn0.js +2 -0
  17. package/dist/commands/animation/transition.d.ts +12 -6
  18. package/dist/commands/helpers/loop-executor.d.ts +2 -2
  19. package/dist/commands/helpers/numeric-target-parser.d.ts +1 -1
  20. package/dist/commands/helpers/variable-access.d.ts +5 -2
  21. package/dist/commands/helpers/write-target.d.ts +5 -0
  22. package/dist/commands/index.cjs +938 -425
  23. package/dist/commands/index.mjs +938 -425
  24. package/dist/commands/templates/render.d.ts +4 -4
  25. package/dist/commands/utility/beep.d.ts +0 -3
  26. package/dist/expressions/index.cjs +7 -13
  27. package/dist/expressions/index.mjs +7 -13
  28. package/dist/htmx/i18n-hooks.d.ts +4 -1
  29. package/dist/hyperfixi-browser-classic-i18n.js +1 -1
  30. package/dist/hyperfixi-browser.js +1 -1
  31. package/dist/hyperfixi-classic-i18n.js +1 -1
  32. package/dist/hyperfixi-hx-v4.js +1 -1
  33. package/dist/hyperfixi-hx.js +1 -1
  34. package/dist/hyperfixi-hybrid-complete.js +1 -1
  35. package/dist/hyperfixi-hybrid-hx.js +1 -1
  36. package/dist/hyperfixi-multilingual.js +1 -1
  37. package/dist/hyperfixi.js +1 -1
  38. package/dist/hyperfixi.mjs +1 -1
  39. package/dist/index.cjs +1149 -485
  40. package/dist/index.min.js +1 -1
  41. package/dist/index.mjs +1149 -485
  42. package/dist/lib/swap-executor.d.ts +1 -1
  43. package/dist/lokascript-browser-classic-i18n.js +1 -1
  44. package/dist/lokascript-browser.js +1 -1
  45. package/dist/lokascript-hybrid-complete.js +1 -1
  46. package/dist/lokascript-hybrid-hx.js +1 -1
  47. package/dist/lokascript-multilingual.js +1 -1
  48. package/dist/metadata.cjs +9 -9
  49. package/dist/metadata.d.ts +1 -1
  50. package/dist/metadata.mjs +9 -9
  51. package/dist/parser/command-grammar.d.ts +1 -0
  52. package/dist/parser/full-parser.cjs +396 -153
  53. package/dist/parser/full-parser.mjs +396 -153
  54. package/dist/parser/helpers/parsing-helpers.d.ts +3 -0
  55. package/dist/parser/hybrid/index.cjs +3 -0
  56. package/dist/parser/hybrid/index.mjs +3 -0
  57. package/dist/parser/hybrid/parser-core.cjs +3 -0
  58. package/dist/parser/hybrid/parser-core.mjs +3 -0
  59. package/dist/parser/hybrid-parser.cjs +3 -0
  60. package/dist/parser/hybrid-parser.mjs +3 -0
  61. package/dist/parser/parser-types.d.ts +2 -0
  62. package/dist/parser/parser.d.ts +9 -0
  63. package/dist/parser/pratt-parser.d.ts +2 -0
  64. package/dist/registry/index.cjs +535 -210
  65. package/dist/registry/index.mjs +535 -210
  66. package/dist/utils/beep.d.ts +8 -0
  67. package/dist/version.d.ts +1 -1
  68. package/package.json +21 -18
  69. package/vocab/htmx/ar.js +22 -20
  70. package/vocab/htmx/bn.js +21 -5
  71. package/vocab/htmx/de.js +33 -10
  72. package/vocab/htmx/en.js +4 -1
  73. package/vocab/htmx/es.js +28 -9
  74. package/vocab/htmx/fr.js +28 -8
  75. package/vocab/htmx/he.js +22 -1
  76. package/vocab/htmx/hi.js +28 -7
  77. package/vocab/htmx/id.js +29 -10
  78. package/vocab/htmx/it.js +26 -5
  79. package/vocab/htmx/ja.js +36 -11
  80. package/vocab/htmx/ko.js +27 -6
  81. package/vocab/htmx/ms.js +24 -1
  82. package/vocab/htmx/pl.js +27 -7
  83. package/vocab/htmx/pt.js +30 -9
  84. package/vocab/htmx/qu.js +32 -9
  85. package/vocab/htmx/ru.js +28 -6
  86. package/vocab/htmx/sw.js +28 -8
  87. package/vocab/htmx/th.js +19 -1
  88. package/vocab/htmx/tl.js +24 -1
  89. package/vocab/htmx/tr.js +34 -8
  90. package/vocab/htmx/uk.js +28 -6
  91. package/vocab/htmx/vi.js +27 -19
  92. package/vocab/htmx/zh.js +28 -9
  93. package/dist/chunks/bridge-D7qrHhV0.js +0 -2
  94. package/dist/chunks/browser-modular-C4LFxfoS.js +0 -2
  95. package/dist/chunks/index-C7lqD4mo.js +0 -2
  96. package/dist/chunks/index-CAPhqA6k.js +0 -2
  97. package/dist/chunks/index-CLdRyZaP.js +0 -2
package/dist/metadata.cjs CHANGED
@@ -61,7 +61,7 @@ const COMMAND_NAMES = [
61
61
  'wait',
62
62
  ];
63
63
 
64
- const VERSION = '3.1.1';
64
+ const VERSION = '3.3.0';
65
65
 
66
66
  const FULL_RUNTIME_COMMAND_COUNT = COMMAND_NAMES.length;
67
67
  const packageInfo = {
@@ -96,8 +96,8 @@ const bundleInfo = [
96
96
  id: 'hybrid-hx',
97
97
  name: 'Hybrid HX',
98
98
  filename: 'hyperfixi-hx.js',
99
- gzipSize: '21.8 KB',
100
- rawSize: '82 KB',
99
+ gzipSize: '22.0 KB',
100
+ rawSize: '83 KB',
101
101
  commandCount: 38,
102
102
  parser: 'hybrid',
103
103
  hasBlocks: true,
@@ -113,8 +113,8 @@ const bundleInfo = [
113
113
  id: 'hybrid-hx-v4',
114
114
  name: 'Hybrid HX v4',
115
115
  filename: 'hyperfixi-hx-v4.js',
116
- gzipSize: '342.4 KB',
117
- rawSize: '1587 KB',
116
+ gzipSize: '362.6 KB',
117
+ rawSize: '1653 KB',
118
118
  commandCount: FULL_RUNTIME_COMMAND_COUNT,
119
119
  parser: 'full',
120
120
  hasBlocks: true,
@@ -130,8 +130,8 @@ const bundleInfo = [
130
130
  id: 'browser',
131
131
  name: 'Full Browser',
132
132
  filename: 'hyperfixi.js',
133
- gzipSize: '330.7 KB',
134
- rawSize: '1550 KB',
133
+ gzipSize: '351.7 KB',
134
+ rawSize: '1619 KB',
135
135
  commandCount: FULL_RUNTIME_COMMAND_COUNT,
136
136
  parser: 'full',
137
137
  hasBlocks: true,
@@ -147,8 +147,8 @@ const bundleInfo = [
147
147
  id: 'multilingual',
148
148
  name: 'Multilingual',
149
149
  filename: 'hyperfixi-multilingual.js',
150
- gzipSize: '91.2 KB',
151
- rawSize: '369 KB',
150
+ gzipSize: '93.4 KB',
151
+ rawSize: '376 KB',
152
152
  commandCount: 51,
153
153
  parser: 'full',
154
154
  hasBlocks: true,
@@ -1,6 +1,6 @@
1
1
  export declare const packageInfo: {
2
2
  readonly name: "@hyperfixi/core";
3
- readonly version: "3.1.1";
3
+ readonly version: "3.3.0";
4
4
  readonly description: "Modern hyperscript engine with fixi/htmx integration";
5
5
  readonly compatibility: "~85% official _hyperscript";
6
6
  readonly languages: 24;
package/dist/metadata.mjs CHANGED
@@ -59,7 +59,7 @@ const COMMAND_NAMES = [
59
59
  'wait',
60
60
  ];
61
61
 
62
- const VERSION = '3.1.1';
62
+ const VERSION = '3.3.0';
63
63
 
64
64
  const FULL_RUNTIME_COMMAND_COUNT = COMMAND_NAMES.length;
65
65
  const packageInfo = {
@@ -94,8 +94,8 @@ const bundleInfo = [
94
94
  id: 'hybrid-hx',
95
95
  name: 'Hybrid HX',
96
96
  filename: 'hyperfixi-hx.js',
97
- gzipSize: '21.8 KB',
98
- rawSize: '82 KB',
97
+ gzipSize: '22.0 KB',
98
+ rawSize: '83 KB',
99
99
  commandCount: 38,
100
100
  parser: 'hybrid',
101
101
  hasBlocks: true,
@@ -111,8 +111,8 @@ const bundleInfo = [
111
111
  id: 'hybrid-hx-v4',
112
112
  name: 'Hybrid HX v4',
113
113
  filename: 'hyperfixi-hx-v4.js',
114
- gzipSize: '342.4 KB',
115
- rawSize: '1587 KB',
114
+ gzipSize: '362.6 KB',
115
+ rawSize: '1653 KB',
116
116
  commandCount: FULL_RUNTIME_COMMAND_COUNT,
117
117
  parser: 'full',
118
118
  hasBlocks: true,
@@ -128,8 +128,8 @@ const bundleInfo = [
128
128
  id: 'browser',
129
129
  name: 'Full Browser',
130
130
  filename: 'hyperfixi.js',
131
- gzipSize: '330.7 KB',
132
- rawSize: '1550 KB',
131
+ gzipSize: '351.7 KB',
132
+ rawSize: '1619 KB',
133
133
  commandCount: FULL_RUNTIME_COMMAND_COUNT,
134
134
  parser: 'full',
135
135
  hasBlocks: true,
@@ -145,8 +145,8 @@ const bundleInfo = [
145
145
  id: 'multilingual',
146
146
  name: 'Multilingual',
147
147
  filename: 'hyperfixi-multilingual.js',
148
- gzipSize: '91.2 KB',
149
- rawSize: '369 KB',
148
+ gzipSize: '93.4 KB',
149
+ rawSize: '376 KB',
150
150
  commandCount: 51,
151
151
  parser: 'full',
152
152
  hasBlocks: true,
@@ -3,6 +3,7 @@ export interface CommandGrammar {
3
3
  readonly positional: PositionalRule;
4
4
  readonly markers: readonly string[];
5
5
  readonly commaList?: readonly string[];
6
+ readonly namedArgs?: readonly string[];
6
7
  readonly continuation?: readonly string[];
7
8
  readonly syntax: string;
8
9
  }