@arkitektio/bsx 4.3.0 → 6.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 (349) hide show
  1. package/README.md +39 -18
  2. package/dist/bsx/analyze.d.ts +6 -5
  3. package/dist/bsx/analyze.d.ts.map +1 -1
  4. package/dist/bsx/analyze.js +12 -10
  5. package/dist/bsx/analyze.js.map +1 -1
  6. package/dist/bsx/declared.d.ts +111 -0
  7. package/dist/bsx/declared.d.ts.map +1 -0
  8. package/dist/bsx/declared.js +311 -0
  9. package/dist/bsx/declared.js.map +1 -0
  10. package/dist/bsx/index.d.ts +1 -0
  11. package/dist/bsx/index.d.ts.map +1 -1
  12. package/dist/bsx/index.js +1 -0
  13. package/dist/bsx/index.js.map +1 -1
  14. package/dist/bsx/infer.d.ts +40 -17
  15. package/dist/bsx/infer.d.ts.map +1 -1
  16. package/dist/bsx/infer.js +105 -49
  17. package/dist/bsx/infer.js.map +1 -1
  18. package/dist/bsx/language.d.ts +6 -2
  19. package/dist/bsx/language.d.ts.map +1 -1
  20. package/dist/bsx/language.js +65 -21
  21. package/dist/bsx/language.js.map +1 -1
  22. package/dist/bsx/parse.d.ts +19 -8
  23. package/dist/bsx/parse.d.ts.map +1 -1
  24. package/dist/bsx/parse.js +49 -59
  25. package/dist/bsx/parse.js.map +1 -1
  26. package/dist/bsx/print.d.ts.map +1 -1
  27. package/dist/bsx/print.js +25 -35
  28. package/dist/bsx/print.js.map +1 -1
  29. package/dist/bsx/references.d.ts +48 -54
  30. package/dist/bsx/references.d.ts.map +1 -1
  31. package/dist/bsx/references.js +359 -159
  32. package/dist/bsx/references.js.map +1 -1
  33. package/dist/catalogs/html.d.ts +3 -3
  34. package/dist/catalogs/html.d.ts.map +1 -1
  35. package/dist/catalogs/html.js +3 -3
  36. package/dist/catalogs/html.js.map +1 -1
  37. package/dist/catalogs/index.d.ts +172 -180
  38. package/dist/catalogs/index.d.ts.map +1 -1
  39. package/dist/catalogs/index.js +6 -2
  40. package/dist/catalogs/index.js.map +1 -1
  41. package/dist/catalogs/logo.d.ts +19 -33
  42. package/dist/catalogs/logo.d.ts.map +1 -1
  43. package/dist/catalogs/logo.js +4 -5
  44. package/dist/catalogs/logo.js.map +1 -1
  45. package/dist/catalogs/parts/data.d.ts +6 -6
  46. package/dist/catalogs/parts/feedback.d.ts +15 -15
  47. package/dist/catalogs/parts/forms.d.ts +24 -24
  48. package/dist/catalogs/parts/html.d.ts +3 -3
  49. package/dist/catalogs/parts/html.d.ts.map +1 -1
  50. package/dist/catalogs/parts/html.js +1 -1
  51. package/dist/catalogs/parts/html.js.map +1 -1
  52. package/dist/catalogs/parts/icons.d.ts +11 -11
  53. package/dist/catalogs/parts/icons.js +1 -1
  54. package/dist/catalogs/parts/index.d.ts +153 -165
  55. package/dist/catalogs/parts/index.d.ts.map +1 -1
  56. package/dist/catalogs/parts/layout.d.ts +11 -1
  57. package/dist/catalogs/parts/layout.d.ts.map +1 -1
  58. package/dist/catalogs/parts/layout.js +9 -0
  59. package/dist/catalogs/parts/layout.js.map +1 -1
  60. package/dist/catalogs/parts/logo.d.ts +17 -32
  61. package/dist/catalogs/parts/logo.d.ts.map +1 -1
  62. package/dist/catalogs/parts/logo.js +13 -15
  63. package/dist/catalogs/parts/logo.js.map +1 -1
  64. package/dist/catalogs/parts/navigation.d.ts +20 -20
  65. package/dist/catalogs/parts/overlays.d.ts +55 -55
  66. package/dist/catalogs/parts/run.d.ts +5 -13
  67. package/dist/catalogs/parts/run.d.ts.map +1 -1
  68. package/dist/catalogs/parts/run.js +1 -1
  69. package/dist/catalogs/parts/scene.d.ts +9 -17
  70. package/dist/catalogs/parts/scene.d.ts.map +1 -1
  71. package/dist/catalogs/parts/scene.js +1 -5
  72. package/dist/catalogs/parts/scene.js.map +1 -1
  73. package/dist/catalogs/parts/structure.js +2 -2
  74. package/dist/catalogs/parts/toast.js +1 -1
  75. package/dist/catalogs/parts/toast.js.map +1 -1
  76. package/dist/catalogs/parts/typography.d.ts +3 -3
  77. package/dist/catalogs/parts/typography.js +1 -1
  78. package/dist/catalogs/parts/typography.js.map +1 -1
  79. package/dist/catalogs/props.d.ts +4 -4
  80. package/dist/catalogs/scene.d.ts +8 -16
  81. package/dist/catalogs/scene.d.ts.map +1 -1
  82. package/dist/catalogs/scene.js +3 -3
  83. package/dist/catalogs/scene.js.map +1 -1
  84. package/dist/catalogs/shadcn.d.ts +58 -58
  85. package/dist/catalogs/shadcn.d.ts.map +1 -1
  86. package/dist/catalogs/shadcn.js +4 -4
  87. package/dist/catalogs/shadcn.js.map +1 -1
  88. package/dist/catalogs/structure.d.ts +1 -1
  89. package/dist/catalogs/structure.d.ts.map +1 -1
  90. package/dist/catalogs/structure.js +3 -3
  91. package/dist/catalogs/structure.js.map +1 -1
  92. package/dist/catalogs/ui.d.ts +83 -73
  93. package/dist/catalogs/ui.d.ts.map +1 -1
  94. package/dist/catalogs/ui.js +4 -3
  95. package/dist/catalogs/ui.js.map +1 -1
  96. package/dist/catalogs.d.ts +1 -1
  97. package/dist/catalogs.d.ts.map +1 -1
  98. package/dist/catalogs.js +2 -2
  99. package/dist/catalogs.js.map +1 -1
  100. package/dist/logo/actionLogoSource.d.ts +3 -3
  101. package/dist/logo/actionLogoSource.d.ts.map +1 -1
  102. package/dist/logo/actionLogoSource.js +4 -4
  103. package/dist/logo/actionLogoSource.js.map +1 -1
  104. package/dist/ports.js +1 -1
  105. package/dist/ports.js.map +1 -1
  106. package/dist/renderer/BlokRenderer.d.ts +10 -6
  107. package/dist/renderer/BlokRenderer.d.ts.map +1 -1
  108. package/dist/renderer/BlokRenderer.js +23 -9
  109. package/dist/renderer/BlokRenderer.js.map +1 -1
  110. package/dist/renderer/baseCatalog.d.ts +8 -6
  111. package/dist/renderer/baseCatalog.d.ts.map +1 -1
  112. package/dist/renderer/baseCatalog.js +7 -5
  113. package/dist/renderer/baseCatalog.js.map +1 -1
  114. package/dist/renderer/bloks/control.d.ts +20 -2
  115. package/dist/renderer/bloks/control.d.ts.map +1 -1
  116. package/dist/renderer/bloks/control.js +98 -15
  117. package/dist/renderer/bloks/control.js.map +1 -1
  118. package/dist/renderer/bloks/data.d.ts +6 -6
  119. package/dist/renderer/bloks/feedback.d.ts +15 -15
  120. package/dist/renderer/bloks/forms.d.ts +24 -24
  121. package/dist/renderer/bloks/html.d.ts +2 -2
  122. package/dist/renderer/bloks/html.js +2 -2
  123. package/dist/renderer/bloks/icons.d.ts +5 -5
  124. package/dist/renderer/bloks/index.d.ts +145 -144
  125. package/dist/renderer/bloks/index.d.ts.map +1 -1
  126. package/dist/renderer/bloks/index.js +1 -1
  127. package/dist/renderer/bloks/layout.d.ts +9 -1
  128. package/dist/renderer/bloks/layout.d.ts.map +1 -1
  129. package/dist/renderer/bloks/layout.js +15 -0
  130. package/dist/renderer/bloks/layout.js.map +1 -1
  131. package/dist/renderer/bloks/logo/index.d.ts +6 -13
  132. package/dist/renderer/bloks/logo/index.d.ts.map +1 -1
  133. package/dist/renderer/bloks/logo/index.js +3 -4
  134. package/dist/renderer/bloks/logo/index.js.map +1 -1
  135. package/dist/renderer/bloks/logo/logo.fixture.json +266 -250
  136. package/dist/renderer/bloks/navigation.d.ts +20 -20
  137. package/dist/renderer/bloks/overlays.d.ts +55 -55
  138. package/dist/renderer/bloks/run/components.d.ts +2 -6
  139. package/dist/renderer/bloks/run/components.d.ts.map +1 -1
  140. package/dist/renderer/bloks/run/components.js +1 -1
  141. package/dist/renderer/bloks/scene/index.d.ts +5 -9
  142. package/dist/renderer/bloks/scene/index.d.ts.map +1 -1
  143. package/dist/renderer/bloks/scene/interaction.d.ts.map +1 -1
  144. package/dist/renderer/bloks/scene/interaction.js +3 -2
  145. package/dist/renderer/bloks/scene/interaction.js.map +1 -1
  146. package/dist/renderer/bloks/shared/props.d.ts +2 -2
  147. package/dist/renderer/bloks/toast.d.ts +1 -1
  148. package/dist/renderer/bloks/typography.d.ts +3 -3
  149. package/dist/renderer/bloks/typography.js +1 -1
  150. package/dist/renderer/catalog.d.ts +4 -7
  151. package/dist/renderer/catalog.d.ts.map +1 -1
  152. package/dist/renderer/catalog.js +7 -31
  153. package/dist/renderer/catalog.js.map +1 -1
  154. package/dist/renderer/declarations.d.ts +40 -33
  155. package/dist/renderer/declarations.d.ts.map +1 -1
  156. package/dist/renderer/declarations.js +41 -56
  157. package/dist/renderer/declarations.js.map +1 -1
  158. package/dist/renderer/declare.d.ts +31 -19
  159. package/dist/renderer/declare.d.ts.map +1 -1
  160. package/dist/renderer/declare.js +44 -18
  161. package/dist/renderer/declare.js.map +1 -1
  162. package/dist/renderer/persist.d.ts +22 -13
  163. package/dist/renderer/persist.d.ts.map +1 -1
  164. package/dist/renderer/persist.js +40 -21
  165. package/dist/renderer/persist.js.map +1 -1
  166. package/dist/renderer/runtime/catalog.d.ts +27 -7
  167. package/dist/renderer/runtime/catalog.d.ts.map +1 -1
  168. package/dist/renderer/runtime/catalog.js +30 -3
  169. package/dist/renderer/runtime/catalog.js.map +1 -1
  170. package/dist/renderer/runtime/components.d.ts +10 -4
  171. package/dist/renderer/runtime/components.d.ts.map +1 -1
  172. package/dist/renderer/runtime/components.js +8 -5
  173. package/dist/renderer/runtime/components.js.map +1 -1
  174. package/dist/renderer/runtime/context.d.ts +5 -5
  175. package/dist/renderer/runtime/context.d.ts.map +1 -1
  176. package/dist/renderer/runtime/context.js +11 -5
  177. package/dist/renderer/runtime/context.js.map +1 -1
  178. package/dist/renderer/runtime/describe.d.ts +16 -6
  179. package/dist/renderer/runtime/describe.d.ts.map +1 -1
  180. package/dist/renderer/runtime/describe.js +5 -2
  181. package/dist/renderer/runtime/describe.js.map +1 -1
  182. package/dist/renderer/runtime/hooks.d.ts.map +1 -1
  183. package/dist/renderer/runtime/hooks.js +8 -4
  184. package/dist/renderer/runtime/hooks.js.map +1 -1
  185. package/dist/renderer/runtime/index.d.ts +2 -0
  186. package/dist/renderer/runtime/index.d.ts.map +1 -1
  187. package/dist/renderer/runtime/index.js +2 -0
  188. package/dist/renderer/runtime/index.js.map +1 -1
  189. package/dist/renderer/runtime/locals.d.ts +57 -0
  190. package/dist/renderer/runtime/locals.d.ts.map +1 -0
  191. package/dist/renderer/runtime/locals.js +87 -0
  192. package/dist/renderer/runtime/locals.js.map +1 -0
  193. package/dist/renderer/runtime/preflight.d.ts.map +1 -1
  194. package/dist/renderer/runtime/preflight.js +5 -2
  195. package/dist/renderer/runtime/preflight.js.map +1 -1
  196. package/dist/renderer/runtime/scope.d.ts +14 -0
  197. package/dist/renderer/runtime/scope.d.ts.map +1 -1
  198. package/dist/renderer/runtime/scope.js +25 -3
  199. package/dist/renderer/runtime/scope.js.map +1 -1
  200. package/dist/renderer/runtime/text.d.ts +28 -0
  201. package/dist/renderer/runtime/text.d.ts.map +1 -0
  202. package/dist/renderer/runtime/text.js +82 -0
  203. package/dist/renderer/runtime/text.js.map +1 -0
  204. package/dist/renderer/runtime/tree.d.ts.map +1 -1
  205. package/dist/renderer/runtime/tree.js +7 -1
  206. package/dist/renderer/runtime/tree.js.map +1 -1
  207. package/dist/renderer/runtime/types.d.ts +8 -3
  208. package/dist/renderer/runtime/types.d.ts.map +1 -1
  209. package/dist/runtime.d.ts +0 -1
  210. package/dist/runtime.d.ts.map +1 -1
  211. package/dist/runtime.js +0 -1
  212. package/dist/runtime.js.map +1 -1
  213. package/dist/scene.d.ts +1 -1
  214. package/dist/scene.d.ts.map +1 -1
  215. package/dist/scene.js +2 -2
  216. package/dist/scene.js.map +1 -1
  217. package/dist/shadcn.d.ts +154 -153
  218. package/dist/shadcn.d.ts.map +1 -1
  219. package/dist/shadcn.js +7 -7
  220. package/dist/shadcn.js.map +1 -1
  221. package/dist/spec/bsx_v2.json +12324 -6934
  222. package/dist/spec/catalogs/base@4.json +13175 -0
  223. package/dist/spec/catalogs/base@4.json.js +13175 -0
  224. package/dist/spec/catalogs/orkestrator@1.json +489 -0
  225. package/dist/spec/catalogs/orkestrator@1.json.js +489 -0
  226. package/dist/spec/catalogs.d.ts +109 -46
  227. package/dist/spec/catalogs.d.ts.map +1 -1
  228. package/dist/spec/catalogs.js +243 -75
  229. package/dist/spec/catalogs.js.map +1 -1
  230. package/dist/spec/vocabulary.d.ts +44 -7
  231. package/dist/spec/vocabulary.d.ts.map +1 -1
  232. package/dist/spec/vocabulary.js +65 -7
  233. package/dist/spec/vocabulary.js.map +1 -1
  234. package/dist/spec/vocabulary.json +83 -43
  235. package/dist/spec/vocabulary.json.js +83 -43
  236. package/dist/vendor/core/ui/button-group.d.ts +1 -1
  237. package/dist/vendor/core/ui/button.d.ts +1 -1
  238. package/dist/vendor/core/ui/field.d.ts +1 -1
  239. package/package.json +1 -1
  240. package/src/bsx/analyze.ts +14 -12
  241. package/src/bsx/bsx.test.ts +4 -4
  242. package/src/bsx/declared.ts +346 -0
  243. package/src/bsx/index.ts +1 -0
  244. package/src/bsx/infer.test.ts +54 -52
  245. package/src/bsx/infer.ts +128 -71
  246. package/src/bsx/language.test.ts +37 -25
  247. package/src/bsx/language.ts +72 -25
  248. package/src/bsx/parse.ts +51 -64
  249. package/src/bsx/partial.test.ts +1 -1
  250. package/src/bsx/print.ts +27 -34
  251. package/src/bsx/references.test.ts +86 -83
  252. package/src/bsx/references.ts +391 -198
  253. package/src/catalogs/catalogs.test.ts +46 -14
  254. package/src/catalogs/html.ts +3 -3
  255. package/src/catalogs/index.ts +6 -2
  256. package/src/catalogs/logo.ts +4 -5
  257. package/src/catalogs/parts/html.ts +1 -1
  258. package/src/catalogs/parts/icons.ts +1 -1
  259. package/src/catalogs/parts/layout.ts +11 -0
  260. package/src/catalogs/parts/logo.ts +14 -18
  261. package/src/catalogs/parts/run.ts +1 -1
  262. package/src/catalogs/parts/scene.ts +1 -7
  263. package/src/catalogs/parts/structure.ts +2 -2
  264. package/src/catalogs/parts/toast.ts +1 -1
  265. package/src/catalogs/parts/typography.ts +1 -1
  266. package/src/catalogs/scene.ts +3 -3
  267. package/src/catalogs/shadcn.ts +4 -4
  268. package/src/catalogs/structure.ts +3 -3
  269. package/src/catalogs/ui.ts +4 -3
  270. package/src/catalogs.ts +9 -2
  271. package/src/logo/actionLogoSource.ts +4 -4
  272. package/src/ports.ts +1 -1
  273. package/src/renderer/BlokComponentHost.test.tsx +5 -5
  274. package/src/renderer/BlokRenderer.tsx +46 -14
  275. package/src/renderer/addBlokComponents.test.tsx +8 -22
  276. package/src/renderer/baseCatalog.ts +7 -5
  277. package/src/renderer/bloks/components.test.tsx +2 -2
  278. package/src/renderer/bloks/control.tsx +136 -17
  279. package/src/renderer/bloks/flow.test.tsx +1 -1
  280. package/src/renderer/bloks/html.tsx +2 -2
  281. package/src/renderer/bloks/index.ts +1 -1
  282. package/src/renderer/bloks/layout.tsx +28 -0
  283. package/src/renderer/bloks/logo/index.tsx +4 -5
  284. package/src/renderer/bloks/logo/logo.fixture.json +266 -250
  285. package/src/renderer/bloks/logo/logo.test.tsx +18 -7
  286. package/src/renderer/bloks/run/components.tsx +1 -1
  287. package/src/renderer/bloks/run/space.test.tsx +12 -4
  288. package/src/renderer/bloks/scene/interaction.tsx +11 -6
  289. package/src/renderer/bloks/scene/transform.test.ts +8 -7
  290. package/src/renderer/bloks/time.test.tsx +1 -1
  291. package/src/renderer/bloks/toast.tsx +1 -1
  292. package/src/renderer/bloks/typography.tsx +1 -1
  293. package/src/renderer/catalog.tsx +7 -31
  294. package/src/renderer/declarations.test.ts +38 -51
  295. package/src/renderer/declarations.ts +67 -88
  296. package/src/renderer/declare.test.ts +41 -0
  297. package/src/renderer/declare.ts +70 -32
  298. package/src/renderer/persist.test.ts +70 -49
  299. package/src/renderer/persist.ts +57 -34
  300. package/src/renderer/runtime/catalog.test.ts +2 -2
  301. package/src/renderer/runtime/catalog.ts +35 -10
  302. package/src/renderer/runtime/components.tsx +17 -8
  303. package/src/renderer/runtime/context.tsx +17 -10
  304. package/src/renderer/runtime/describe.ts +21 -8
  305. package/src/renderer/runtime/hooks.ts +6 -4
  306. package/src/renderer/runtime/index.ts +2 -0
  307. package/src/renderer/runtime/locals.tsx +105 -0
  308. package/src/renderer/runtime/preflight.ts +5 -2
  309. package/src/renderer/runtime/scope.tsx +31 -3
  310. package/src/renderer/runtime/text.test.tsx +65 -0
  311. package/src/renderer/runtime/text.ts +88 -0
  312. package/src/renderer/runtime/tree.tsx +16 -4
  313. package/src/renderer/runtime/types.ts +8 -3
  314. package/src/runtime.ts +0 -1
  315. package/src/scene.ts +2 -2
  316. package/src/shadcn.ts +7 -7
  317. package/src/spec/bsx_v2.json +12324 -6934
  318. package/src/spec/catalogs/base@4.json +13175 -0
  319. package/src/spec/catalogs/orkestrator@1.json +489 -0
  320. package/src/spec/catalogs.ts +259 -103
  321. package/src/spec/spec.test.ts +93 -24
  322. package/src/spec/vocabulary.json +83 -43
  323. package/src/spec/vocabulary.ts +102 -17
  324. package/dist/renderer/modules.d.ts +0 -4
  325. package/dist/renderer/modules.d.ts.map +0 -1
  326. package/dist/renderer/modules.js +0 -11
  327. package/dist/renderer/modules.js.map +0 -1
  328. package/dist/spec/catalogs/base@2.json +0 -355
  329. package/dist/spec/catalogs/base@2.json.js +0 -355
  330. package/dist/spec/catalogs/html@1.json +0 -308
  331. package/dist/spec/catalogs/html@1.json.js +0 -308
  332. package/dist/spec/catalogs/logo@1.json +0 -1687
  333. package/dist/spec/catalogs/logo@1.json.js +0 -1687
  334. package/dist/spec/catalogs/scene@1.json +0 -878
  335. package/dist/spec/catalogs/scene@1.json.js +0 -878
  336. package/dist/spec/catalogs/shadcn@1.json +0 -4002
  337. package/dist/spec/catalogs/shadcn@1.json.js +0 -4002
  338. package/dist/spec/catalogs/structure@1.json +0 -185
  339. package/dist/spec/catalogs/structure@1.json.js +0 -185
  340. package/dist/spec/catalogs/ui@1.json +0 -5349
  341. package/dist/spec/catalogs/ui@1.json.js +0 -5349
  342. package/src/renderer/modules.ts +0 -12
  343. package/src/spec/catalogs/base@2.json +0 -355
  344. package/src/spec/catalogs/html@1.json +0 -308
  345. package/src/spec/catalogs/logo@1.json +0 -1687
  346. package/src/spec/catalogs/scene@1.json +0 -878
  347. package/src/spec/catalogs/shadcn@1.json +0 -4002
  348. package/src/spec/catalogs/structure@1.json +0 -185
  349. package/src/spec/catalogs/ui@1.json +0 -5349
@@ -1,355 +0,0 @@
1
- export default {
2
- "name": "base",
3
- "version": 2,
4
- "description": "The language: control flow, async boundaries and the task protocol. Every renderer implements it; functions and effects are in vocabulary.json.",
5
- "components": [
6
- {
7
- "name": "Html",
8
- "description": "The root of an html blok (a panel, a dashboard, a popout's page): lays its children out as a fragment does, and names the blok's context.",
9
- "context": "HTML",
10
- "children_context": null,
11
- "inherits_context": false,
12
- "accepts_children": true,
13
- "downstream_of": [],
14
- "not_downstream_of": [
15
- "Html"
16
- ],
17
- "text_prop": null,
18
- "props": [
19
- {
20
- "key": "chrome",
21
- "kind": "STRING",
22
- "required": false,
23
- "description": "What the host draws around the blok of its own: `auto` (the default) adds what the blok does not place (the time slider, the open ask, the rest of the argument form, its buttons); `none` adds nothing, the blok places what it wants.",
24
- "values": [
25
- "auto",
26
- "none"
27
- ]
28
- }
29
- ]
30
- },
31
- {
32
- "name": "arg",
33
- "description": "One argument of the run an assign blok starts, as its port draws it; `<args />` then leaves it out. Draws nothing for an argument the caller gave: it is locked. An assign blok only.",
34
- "context": "HTML",
35
- "children_context": null,
36
- "inherits_context": false,
37
- "accepts_children": false,
38
- "downstream_of": [],
39
- "not_downstream_of": [],
40
- "text_prop": null,
41
- "props": [
42
- {
43
- "key": "key",
44
- "kind": "STRING",
45
- "required": true,
46
- "description": "The port key of the argument."
47
- }
48
- ]
49
- },
50
- {
51
- "name": "args",
52
- "description": "The arguments of the run an assign blok starts, as the form the action's ports generate: filled in right here, and read as `args.<key>`. It draws the rest: every argument the caller did not give (`assign.given.<key>`) and no `<arg />` places. Without it the host shows the form beside the blok. An assign blok only.",
53
- "context": "HTML",
54
- "children_context": null,
55
- "inherits_context": false,
56
- "accepts_children": false,
57
- "downstream_of": [],
58
- "not_downstream_of": [],
59
- "text_prop": null,
60
- "props": [
61
- {
62
- "key": "only",
63
- "kind": "ANY",
64
- "required": false,
65
- "description": "Only these port keys: a list, or one string with spaces between."
66
- },
67
- {
68
- "key": "omit",
69
- "kind": "ANY",
70
- "required": false,
71
- "description": "Not these port keys."
72
- },
73
- {
74
- "key": "given",
75
- "kind": "STRING",
76
- "required": false,
77
- "description": "What to do with the arguments the caller gave: `hide` leaves them out (the default), `show` lists them, locked.",
78
- "values": [
79
- "hide",
80
- "show"
81
- ]
82
- }
83
- ]
84
- },
85
- {
86
- "name": "ask",
87
- "description": "The open ask of the task this blok is about (`task.ask`), as the form its ports generate: answered right here, which resumes the task. Shows nothing while no ask is open. Replaces TaskAsk.",
88
- "context": "HTML",
89
- "children_context": null,
90
- "inherits_context": false,
91
- "accepts_children": false,
92
- "downstream_of": [],
93
- "not_downstream_of": [],
94
- "text_prop": null,
95
- "props": []
96
- },
97
- {
98
- "name": "case",
99
- "description": "One branch of a `match`: its children render when the matched value is `is`.",
100
- "context": "HTML",
101
- "children_context": null,
102
- "inherits_context": true,
103
- "accepts_children": true,
104
- "downstream_of": [
105
- "match"
106
- ],
107
- "not_downstream_of": [],
108
- "text_prop": null,
109
- "props": [
110
- {
111
- "key": "is",
112
- "kind": "ANY",
113
- "required": false,
114
- "description": "The literal this case matches, or a list of them."
115
- }
116
- ]
117
- },
118
- {
119
- "name": "default",
120
- "description": "The branch of a `match` that renders when no `case` matches.",
121
- "context": "HTML",
122
- "children_context": null,
123
- "inherits_context": true,
124
- "accepts_children": true,
125
- "downstream_of": [
126
- "match"
127
- ],
128
- "not_downstream_of": [],
129
- "text_prop": null,
130
- "props": []
131
- },
132
- {
133
- "name": "dep",
134
- "description": "The picker of one dependency of the run an assign blok starts; `<deps />` then leaves it out. An assign blok only.",
135
- "context": "HTML",
136
- "children_context": null,
137
- "inherits_context": false,
138
- "accepts_children": false,
139
- "downstream_of": [],
140
- "not_downstream_of": [],
141
- "text_prop": null,
142
- "props": [
143
- {
144
- "key": "key",
145
- "kind": "STRING",
146
- "required": true,
147
- "description": "The dependency key."
148
- }
149
- ]
150
- },
151
- {
152
- "name": "deps",
153
- "description": "The picker of the agents the run an assign blok starts would get: every dependency no `<dep />` places. Without it the host shows the picker beside the blok. An assign blok only.",
154
- "context": "HTML",
155
- "children_context": null,
156
- "inherits_context": false,
157
- "accepts_children": false,
158
- "downstream_of": [],
159
- "not_downstream_of": [],
160
- "text_prop": null,
161
- "props": []
162
- },
163
- {
164
- "name": "else",
165
- "description": "A branch of its `if`: an else-if with `when`, the default without. Only the last `else` may go without `when`.",
166
- "context": "HTML",
167
- "children_context": null,
168
- "inherits_context": true,
169
- "accepts_children": true,
170
- "downstream_of": [
171
- "if"
172
- ],
173
- "not_downstream_of": [],
174
- "text_prop": null,
175
- "props": [
176
- {
177
- "key": "when",
178
- "kind": "BOOL",
179
- "required": false,
180
- "description": "The else-if condition; the default branch when absent."
181
- }
182
- ]
183
- },
184
- {
185
- "name": "error",
186
- "description": "What a `suspense` shows when a read inside it failed; the error is readable as `error` (`error.message`).",
187
- "context": "HTML",
188
- "children_context": null,
189
- "inherits_context": true,
190
- "accepts_children": true,
191
- "downstream_of": [
192
- "suspense"
193
- ],
194
- "not_downstream_of": [],
195
- "text_prop": null,
196
- "props": []
197
- },
198
- {
199
- "name": "fallback",
200
- "description": "What a `suspense` shows while a read inside it is pending.",
201
- "context": "HTML",
202
- "children_context": null,
203
- "inherits_context": true,
204
- "accepts_children": true,
205
- "downstream_of": [
206
- "suspense"
207
- ],
208
- "not_downstream_of": [],
209
- "text_prop": null,
210
- "props": []
211
- },
212
- {
213
- "name": "foreach",
214
- "description": "Renders its children once per item, the item bound to `let`; each item's subtree takes its ids from `key`, or from its position without one.",
215
- "context": "HTML",
216
- "children_context": null,
217
- "inherits_context": true,
218
- "accepts_children": true,
219
- "downstream_of": [],
220
- "not_downstream_of": [],
221
- "text_prop": null,
222
- "props": [
223
- {
224
- "key": "items",
225
- "kind": "ANY",
226
- "required": true,
227
- "description": "The list to iterate."
228
- },
229
- {
230
- "key": "key",
231
- "kind": "ANY",
232
- "required": false,
233
- "description": "A stable key per item (`key={p.id}`): what an item's ids, kept values and diffs follow. Left out, items are keyed by their position (<id>@#<n>), which suits scalars only."
234
- },
235
- {
236
- "key": "let",
237
- "kind": "STRING",
238
- "required": true,
239
- "description": "The loop variable: a plain name, read bare inside."
240
- }
241
- ]
242
- },
243
- {
244
- "name": "fragment",
245
- "description": "Groups children without rendering anything of its own.",
246
- "context": "HTML",
247
- "children_context": null,
248
- "inherits_context": true,
249
- "accepts_children": true,
250
- "downstream_of": [],
251
- "not_downstream_of": [],
252
- "text_prop": null,
253
- "props": []
254
- },
255
- {
256
- "name": "if",
257
- "description": "Renders its children (the then-branch) when `when` holds; its trailing `else` children are the else-if and default branches. Only the active branch is rendered and read.",
258
- "context": "HTML",
259
- "children_context": null,
260
- "inherits_context": true,
261
- "accepts_children": true,
262
- "downstream_of": [],
263
- "not_downstream_of": [],
264
- "text_prop": null,
265
- "props": [
266
- {
267
- "key": "when",
268
- "kind": "BOOL",
269
- "required": true,
270
- "description": "The condition."
271
- }
272
- ]
273
- },
274
- {
275
- "name": "match",
276
- "description": "Renders the first `case` whose `is` equals `value`, else its `default`.",
277
- "context": "HTML",
278
- "children_context": null,
279
- "inherits_context": true,
280
- "accepts_children": true,
281
- "downstream_of": [],
282
- "not_downstream_of": [],
283
- "text_prop": null,
284
- "props": [
285
- {
286
- "key": "value",
287
- "kind": "ANY",
288
- "required": true,
289
- "description": "The value matched."
290
- }
291
- ]
292
- },
293
- {
294
- "name": "returns",
295
- "description": "What the task this blok is about returned, as the action's return ports show it (an image as an image, a table as a table). Shows nothing before the first yield. A blok with a `task` only.",
296
- "context": "HTML",
297
- "children_context": null,
298
- "inherits_context": false,
299
- "accepts_children": false,
300
- "downstream_of": [],
301
- "not_downstream_of": [],
302
- "text_prop": null,
303
- "props": [
304
- {
305
- "key": "only",
306
- "kind": "ANY",
307
- "required": false,
308
- "description": "Only these return port keys: a list, or one string with spaces between."
309
- },
310
- {
311
- "key": "omit",
312
- "kind": "ANY",
313
- "required": false,
314
- "description": "Not these return port keys."
315
- }
316
- ]
317
- },
318
- {
319
- "name": "status",
320
- "description": "Where the task this blok is about stands, as one line the host draws: its state, how long it took, what it last said. A blok with a `task` only.",
321
- "context": "HTML",
322
- "children_context": null,
323
- "inherits_context": false,
324
- "accepts_children": false,
325
- "downstream_of": [],
326
- "not_downstream_of": [],
327
- "text_prop": null,
328
- "props": []
329
- },
330
- {
331
- "name": "suspense",
332
- "description": "A boundary: while any read inside is pending it shows its `fallback`, when one failed its `error` (with the error as `error`); stale values render, dimmed. The nearest boundary catches.",
333
- "context": "HTML",
334
- "children_context": null,
335
- "inherits_context": true,
336
- "accepts_children": true,
337
- "downstream_of": [],
338
- "not_downstream_of": [],
339
- "text_prop": null,
340
- "props": []
341
- },
342
- {
343
- "name": "timeline",
344
- "description": "The time slider of what the blok shows (the run of its task, or the history of its agents): dragging it shows the whole blok as it was at that moment. Shows nothing where the host has no clock. Without it the host shows its own slider beside the blok.",
345
- "context": "HTML",
346
- "children_context": null,
347
- "inherits_context": false,
348
- "accepts_children": false,
349
- "downstream_of": [],
350
- "not_downstream_of": [],
351
- "text_prop": null,
352
- "props": []
353
- }
354
- ]
355
- };
@@ -1,308 +0,0 @@
1
- {
2
- "name": "html",
3
- "version": 1,
4
- "description": "Plain containers that translate directly to React Native: div (View), p and span (Text).",
5
- "components": [
6
- {
7
- "name": "div",
8
- "description": "A plain block container.",
9
- "context": "HTML",
10
- "children_context": null,
11
- "inherits_context": false,
12
- "accepts_children": true,
13
- "downstream_of": [],
14
- "not_downstream_of": [],
15
- "text_prop": null,
16
- "props": [
17
- {
18
- "key": "background",
19
- "kind": "ANY",
20
- "required": false,
21
- "description": "CSS background value."
22
- },
23
- {
24
- "key": "borderColor",
25
- "kind": "ANY",
26
- "required": false,
27
- "description": "CSS border colour."
28
- },
29
- {
30
- "key": "className",
31
- "kind": "STRING",
32
- "required": false,
33
- "description": "Extra Tailwind classes appended to the element."
34
- },
35
- {
36
- "key": "color",
37
- "kind": "ANY",
38
- "required": false,
39
- "description": "CSS text colour."
40
- },
41
- {
42
- "key": "gap",
43
- "kind": "STRING",
44
- "required": false,
45
- "description": "CSS spacing value, e.g. \"0.5rem\"."
46
- },
47
- {
48
- "key": "grow",
49
- "kind": "FLOAT",
50
- "required": false,
51
- "description": "flex-grow."
52
- },
53
- {
54
- "key": "height",
55
- "kind": "STRING",
56
- "required": false,
57
- "description": "CSS length, e.g. \"12rem\" or \"100%\"."
58
- },
59
- {
60
- "key": "margin",
61
- "kind": "STRING",
62
- "required": false,
63
- "description": "CSS spacing value, e.g. \"0.5rem\"."
64
- },
65
- {
66
- "key": "maxHeight",
67
- "kind": "STRING",
68
- "required": false,
69
- "description": "CSS length, e.g. \"12rem\" or \"100%\"."
70
- },
71
- {
72
- "key": "maxWidth",
73
- "kind": "STRING",
74
- "required": false,
75
- "description": "CSS length, e.g. \"12rem\" or \"100%\"."
76
- },
77
- {
78
- "key": "minHeight",
79
- "kind": "STRING",
80
- "required": false,
81
- "description": "CSS length, e.g. \"12rem\" or \"100%\"."
82
- },
83
- {
84
- "key": "minWidth",
85
- "kind": "STRING",
86
- "required": false,
87
- "description": "CSS length, e.g. \"12rem\" or \"100%\"."
88
- },
89
- {
90
- "key": "overflow",
91
- "kind": "STRING",
92
- "required": false,
93
- "description": "Overflow behaviour.",
94
- "values": [
95
- "visible",
96
- "hidden",
97
- "auto",
98
- "scroll"
99
- ]
100
- },
101
- {
102
- "key": "padding",
103
- "kind": "STRING",
104
- "required": false,
105
- "description": "CSS spacing value, e.g. \"0.5rem\"."
106
- },
107
- {
108
- "key": "radius",
109
- "kind": "STRING",
110
- "required": false,
111
- "description": "CSS border radius."
112
- },
113
- {
114
- "key": "shrink",
115
- "kind": "FLOAT",
116
- "required": false,
117
- "description": "flex-shrink."
118
- },
119
- {
120
- "key": "width",
121
- "kind": "STRING",
122
- "required": false,
123
- "description": "CSS length, e.g. \"12rem\" or \"100%\"."
124
- }
125
- ]
126
- },
127
- {
128
- "name": "p",
129
- "description": "An HTML paragraph.",
130
- "context": "HTML",
131
- "children_context": null,
132
- "inherits_context": false,
133
- "accepts_children": true,
134
- "downstream_of": [],
135
- "not_downstream_of": [],
136
- "text_prop": "text",
137
- "props": [
138
- {
139
- "key": "align",
140
- "kind": "STRING",
141
- "required": false,
142
- "description": "Horizontal text alignment.",
143
- "values": [
144
- "start",
145
- "center",
146
- "end"
147
- ]
148
- },
149
- {
150
- "key": "className",
151
- "kind": "STRING",
152
- "required": false,
153
- "description": "Extra Tailwind classes appended to the element."
154
- },
155
- {
156
- "key": "italic",
157
- "kind": "BOOL",
158
- "required": false,
159
- "description": "Render italic."
160
- },
161
- {
162
- "key": "mono",
163
- "kind": "BOOL",
164
- "required": false,
165
- "description": "Render in the monospace face."
166
- },
167
- {
168
- "key": "size",
169
- "kind": "STRING",
170
- "required": false,
171
- "description": "Text size step.",
172
- "values": [
173
- "xs",
174
- "sm",
175
- "base",
176
- "lg"
177
- ]
178
- },
179
- {
180
- "key": "text",
181
- "kind": "ANY",
182
- "required": false,
183
- "description": "The text to render."
184
- },
185
- {
186
- "key": "tone",
187
- "kind": "STRING",
188
- "required": false,
189
- "description": "Semantic text colour.",
190
- "values": [
191
- "default",
192
- "muted",
193
- "destructive",
194
- "success"
195
- ]
196
- },
197
- {
198
- "key": "truncate",
199
- "kind": "BOOL",
200
- "required": false,
201
- "description": "Truncate to a single line with an ellipsis."
202
- },
203
- {
204
- "key": "weight",
205
- "kind": "STRING",
206
- "required": false,
207
- "description": "Font weight.",
208
- "values": [
209
- "regular",
210
- "medium",
211
- "semibold",
212
- "bold"
213
- ]
214
- }
215
- ]
216
- },
217
- {
218
- "name": "span",
219
- "description": "An inline run of text.",
220
- "context": "HTML",
221
- "children_context": null,
222
- "inherits_context": false,
223
- "accepts_children": true,
224
- "downstream_of": [],
225
- "not_downstream_of": [],
226
- "text_prop": "text",
227
- "props": [
228
- {
229
- "key": "align",
230
- "kind": "STRING",
231
- "required": false,
232
- "description": "Horizontal text alignment.",
233
- "values": [
234
- "start",
235
- "center",
236
- "end"
237
- ]
238
- },
239
- {
240
- "key": "className",
241
- "kind": "STRING",
242
- "required": false,
243
- "description": "Extra Tailwind classes appended to the element."
244
- },
245
- {
246
- "key": "italic",
247
- "kind": "BOOL",
248
- "required": false,
249
- "description": "Render italic."
250
- },
251
- {
252
- "key": "mono",
253
- "kind": "BOOL",
254
- "required": false,
255
- "description": "Render in the monospace face."
256
- },
257
- {
258
- "key": "size",
259
- "kind": "STRING",
260
- "required": false,
261
- "description": "Text size step.",
262
- "values": [
263
- "xs",
264
- "sm",
265
- "base",
266
- "lg"
267
- ]
268
- },
269
- {
270
- "key": "text",
271
- "kind": "ANY",
272
- "required": false,
273
- "description": "The text to render."
274
- },
275
- {
276
- "key": "tone",
277
- "kind": "STRING",
278
- "required": false,
279
- "description": "Semantic text colour.",
280
- "values": [
281
- "default",
282
- "muted",
283
- "destructive",
284
- "success"
285
- ]
286
- },
287
- {
288
- "key": "truncate",
289
- "kind": "BOOL",
290
- "required": false,
291
- "description": "Truncate to a single line with an ellipsis."
292
- },
293
- {
294
- "key": "weight",
295
- "kind": "STRING",
296
- "required": false,
297
- "description": "Font weight.",
298
- "values": [
299
- "regular",
300
- "medium",
301
- "semibold",
302
- "bold"
303
- ]
304
- }
305
- ]
306
- }
307
- ]
308
- }