@lokascript/hyperscript-adapter 2.5.1 → 2.6.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 (33) hide show
  1. package/dist/hyperscript-i18n-ar.global.js +5 -4
  2. package/dist/hyperscript-i18n-bn.global.js +5 -4
  3. package/dist/hyperscript-i18n-de.global.js +5 -4
  4. package/dist/hyperscript-i18n-east-asian.global.js +5 -4
  5. package/dist/hyperscript-i18n-en.global.js +7 -6
  6. package/dist/hyperscript-i18n-es.global.js +5 -4
  7. package/dist/hyperscript-i18n-fr.global.js +5 -4
  8. package/dist/hyperscript-i18n-he.global.js +5 -4
  9. package/dist/hyperscript-i18n-hi.global.js +5 -4
  10. package/dist/hyperscript-i18n-id.global.js +5 -4
  11. package/dist/hyperscript-i18n-it.global.js +5 -4
  12. package/dist/hyperscript-i18n-ja.global.js +5 -4
  13. package/dist/hyperscript-i18n-ko.global.js +5 -4
  14. package/dist/hyperscript-i18n-ms.global.js +5 -4
  15. package/dist/hyperscript-i18n-pl.global.js +5 -4
  16. package/dist/hyperscript-i18n-pt.global.js +5 -4
  17. package/dist/hyperscript-i18n-qu.global.js +5 -4
  18. package/dist/hyperscript-i18n-ru.global.js +5 -4
  19. package/dist/hyperscript-i18n-slavic.global.js +5 -4
  20. package/dist/hyperscript-i18n-south-asian.global.js +5 -4
  21. package/dist/hyperscript-i18n-southeast-asian.global.js +5 -4
  22. package/dist/hyperscript-i18n-sw.global.js +5 -4
  23. package/dist/hyperscript-i18n-th.global.js +5 -4
  24. package/dist/hyperscript-i18n-tl.global.js +5 -4
  25. package/dist/hyperscript-i18n-tr.global.js +5 -4
  26. package/dist/hyperscript-i18n-uk.global.js +5 -4
  27. package/dist/hyperscript-i18n-vi.global.js +5 -4
  28. package/dist/hyperscript-i18n-western.global.js +5 -4
  29. package/dist/hyperscript-i18n-zh.global.js +5 -4
  30. package/dist/hyperscript-i18n.global.js +34 -30
  31. package/dist/hyperscript-i18n.global.js.map +1 -1
  32. package/package.json +4 -4
  33. package/src/generated/syntax-table.ts +8 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lokascript/hyperscript-adapter",
3
- "version": "2.5.1",
3
+ "version": "2.6.0",
4
4
  "description": "Multilingual adapter plugin for original _hyperscript — write hyperscript in 24 languages",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -111,9 +111,9 @@
111
111
  "prebuild": "npm run generate:syntax",
112
112
  "build": "tsup",
113
113
  "dev": "tsup --watch",
114
- "test": "vitest",
114
+ "test": "bash ../../scripts/vitest-run.sh",
115
115
  "test:run": "vitest run",
116
- "test:check": "vitest run --reporter=dot 2>&1 | tail -5",
116
+ "test:check": "VITEST_QUIET=1 bash ../../scripts/vitest-run.sh --reporter=dot",
117
117
  "test:browser": "npx playwright test",
118
118
  "typecheck": "tsc --noEmit"
119
119
  },
@@ -142,7 +142,7 @@
142
142
  },
143
143
  "homepage": "https://github.com/codetalcott/hyperfixi/tree/main/packages/hyperscript-adapter#readme",
144
144
  "dependencies": {
145
- "@lokascript/semantic": "^2.5.1"
145
+ "@lokascript/semantic": "^2.6.0"
146
146
  },
147
147
  "optionalDependencies": {
148
148
  "@lokascript/i18n": "*"
@@ -9,6 +9,7 @@ export const SYNTAX: Record<string, readonly [string, string][]> = {
9
9
  async: [],
10
10
  beep: [['patient', '']],
11
11
  behavior: [['patient', '']],
12
+ bind: [['destination', ''], ['source', 'to']],
12
13
  blur: [['patient', '']],
13
14
  break: [],
14
15
  breakpoint: [],
@@ -23,6 +24,7 @@ export const SYNTAX: Record<string, readonly [string, string][]> = {
23
24
  default: [['destination', ''], ['patient', 'to']],
24
25
  else: [],
25
26
  empty: [['patient', '']],
27
+ eventsource: [],
26
28
  exit: [],
27
29
  fetch: [['source', ''], ['responseType', 'as'], ['method', 'via'], ['destination', 'on']],
28
30
  focus: [['patient', '']],
@@ -35,11 +37,13 @@ export const SYNTAX: Record<string, readonly [string, string][]> = {
35
37
  increment: [['patient', ''], ['quantity', 'by']],
36
38
  init: [],
37
39
  install: [['patient', ''], ['destination', 'on']],
40
+ intercept: [],
38
41
  js: [['patient', '']],
42
+ live: [],
39
43
  log: [['patient', '']],
40
44
  make: [['patient', '']],
41
45
  measure: [['patient', ''], ['source', 'of']],
42
- morph: [['destination', ''], ['patient', 'to']],
46
+ morph: [['patient', ''], ['destination', 'to']],
43
47
  on: [['event', ''], ['source', 'from']],
44
48
  open: [['style', 'as'], ['patient', '']],
45
49
  pick: [['patient', ''], ['source', 'from']],
@@ -56,9 +60,10 @@ export const SYNTAX: Record<string, readonly [string, string][]> = {
56
60
  scroll: [['destination', 'to']],
57
61
  select: [['patient', '']],
58
62
  send: [['event', ''], ['destination', 'to']],
59
- set: [['destination', ''], ['patient', 'to']],
63
+ set: [['destination', ''], ['patient', 'to'], ['scope', 'on']],
60
64
  settle: [['patient', '']],
61
65
  show: [['patient', ''], ['style', 'with']],
66
+ socket: [],
62
67
  swap: [['method', ''], ['destination', 'of'], ['patient', 'with']],
63
68
  take: [['patient', ''], ['source', 'from']],
64
69
  tell: [['destination', '']],
@@ -69,4 +74,5 @@ export const SYNTAX: Record<string, readonly [string, string][]> = {
69
74
  unless: [['condition', '']],
70
75
  wait: [['duration', '']],
71
76
  while: [['condition', '']],
77
+ worker: [],
72
78
  };