@arkitektio/bsx 4.3.0 → 5.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 (253) hide show
  1. package/README.md +39 -18
  2. package/dist/bsx/parse.d.ts +13 -7
  3. package/dist/bsx/parse.d.ts.map +1 -1
  4. package/dist/bsx/parse.js +18 -57
  5. package/dist/bsx/parse.js.map +1 -1
  6. package/dist/bsx/print.d.ts.map +1 -1
  7. package/dist/bsx/print.js +22 -35
  8. package/dist/bsx/print.js.map +1 -1
  9. package/dist/bsx/references.d.ts +5 -5
  10. package/dist/bsx/references.d.ts.map +1 -1
  11. package/dist/bsx/references.js +106 -33
  12. package/dist/bsx/references.js.map +1 -1
  13. package/dist/catalogs/html.d.ts +1 -1
  14. package/dist/catalogs/html.d.ts.map +1 -1
  15. package/dist/catalogs/html.js +3 -3
  16. package/dist/catalogs/html.js.map +1 -1
  17. package/dist/catalogs/index.d.ts +126 -112
  18. package/dist/catalogs/index.d.ts.map +1 -1
  19. package/dist/catalogs/index.js +6 -2
  20. package/dist/catalogs/index.js.map +1 -1
  21. package/dist/catalogs/logo.d.ts +5 -5
  22. package/dist/catalogs/logo.d.ts.map +1 -1
  23. package/dist/catalogs/logo.js +3 -3
  24. package/dist/catalogs/logo.js.map +1 -1
  25. package/dist/catalogs/parts/data.d.ts +5 -5
  26. package/dist/catalogs/parts/feedback.d.ts +12 -12
  27. package/dist/catalogs/parts/forms.d.ts +20 -20
  28. package/dist/catalogs/parts/html.d.ts +1 -1
  29. package/dist/catalogs/parts/html.d.ts.map +1 -1
  30. package/dist/catalogs/parts/html.js +1 -1
  31. package/dist/catalogs/parts/html.js.map +1 -1
  32. package/dist/catalogs/parts/icons.d.ts +9 -9
  33. package/dist/catalogs/parts/icons.js +1 -1
  34. package/dist/catalogs/parts/index.d.ts +120 -110
  35. package/dist/catalogs/parts/index.d.ts.map +1 -1
  36. package/dist/catalogs/parts/layout.d.ts +11 -1
  37. package/dist/catalogs/parts/layout.d.ts.map +1 -1
  38. package/dist/catalogs/parts/layout.js +9 -0
  39. package/dist/catalogs/parts/layout.js.map +1 -1
  40. package/dist/catalogs/parts/logo.d.ts +8 -8
  41. package/dist/catalogs/parts/logo.d.ts.map +1 -1
  42. package/dist/catalogs/parts/logo.js +2 -2
  43. package/dist/catalogs/parts/logo.js.map +1 -1
  44. package/dist/catalogs/parts/navigation.d.ts +16 -16
  45. package/dist/catalogs/parts/overlays.d.ts +44 -44
  46. package/dist/catalogs/parts/run.d.ts +5 -5
  47. package/dist/catalogs/parts/run.js +1 -1
  48. package/dist/catalogs/parts/scene.d.ts +4 -4
  49. package/dist/catalogs/parts/structure.js +2 -2
  50. package/dist/catalogs/parts/toast.js +1 -1
  51. package/dist/catalogs/parts/toast.js.map +1 -1
  52. package/dist/catalogs/parts/typography.js +1 -1
  53. package/dist/catalogs/parts/typography.js.map +1 -1
  54. package/dist/catalogs/props.d.ts +2 -2
  55. package/dist/catalogs/scene.d.ts +5 -5
  56. package/dist/catalogs/scene.d.ts.map +1 -1
  57. package/dist/catalogs/scene.js +3 -3
  58. package/dist/catalogs/scene.js.map +1 -1
  59. package/dist/catalogs/shadcn.d.ts +47 -47
  60. package/dist/catalogs/shadcn.d.ts.map +1 -1
  61. package/dist/catalogs/shadcn.js +4 -4
  62. package/dist/catalogs/shadcn.js.map +1 -1
  63. package/dist/catalogs/structure.d.ts +1 -1
  64. package/dist/catalogs/structure.d.ts.map +1 -1
  65. package/dist/catalogs/structure.js +3 -3
  66. package/dist/catalogs/structure.js.map +1 -1
  67. package/dist/catalogs/ui.d.ts +67 -57
  68. package/dist/catalogs/ui.d.ts.map +1 -1
  69. package/dist/catalogs/ui.js +4 -3
  70. package/dist/catalogs/ui.js.map +1 -1
  71. package/dist/catalogs.d.ts +1 -1
  72. package/dist/catalogs.d.ts.map +1 -1
  73. package/dist/catalogs.js +2 -2
  74. package/dist/catalogs.js.map +1 -1
  75. package/dist/ports.js +1 -1
  76. package/dist/ports.js.map +1 -1
  77. package/dist/renderer/baseCatalog.d.ts +8 -6
  78. package/dist/renderer/baseCatalog.d.ts.map +1 -1
  79. package/dist/renderer/baseCatalog.js +7 -5
  80. package/dist/renderer/baseCatalog.js.map +1 -1
  81. package/dist/renderer/bloks/control.d.ts +2 -0
  82. package/dist/renderer/bloks/control.d.ts.map +1 -1
  83. package/dist/renderer/bloks/control.js +13 -1
  84. package/dist/renderer/bloks/control.js.map +1 -1
  85. package/dist/renderer/bloks/data.d.ts +5 -5
  86. package/dist/renderer/bloks/feedback.d.ts +12 -12
  87. package/dist/renderer/bloks/forms.d.ts +20 -20
  88. package/dist/renderer/bloks/html.js +2 -2
  89. package/dist/renderer/bloks/icons.d.ts +4 -4
  90. package/dist/renderer/bloks/index.d.ts +115 -107
  91. package/dist/renderer/bloks/index.d.ts.map +1 -1
  92. package/dist/renderer/bloks/index.js +1 -1
  93. package/dist/renderer/bloks/layout.d.ts +9 -1
  94. package/dist/renderer/bloks/layout.d.ts.map +1 -1
  95. package/dist/renderer/bloks/layout.js +15 -0
  96. package/dist/renderer/bloks/layout.js.map +1 -1
  97. package/dist/renderer/bloks/logo/index.d.ts +5 -5
  98. package/dist/renderer/bloks/logo/index.d.ts.map +1 -1
  99. package/dist/renderer/bloks/logo/index.js +2 -2
  100. package/dist/renderer/bloks/logo/index.js.map +1 -1
  101. package/dist/renderer/bloks/navigation.d.ts +16 -16
  102. package/dist/renderer/bloks/overlays.d.ts +44 -44
  103. package/dist/renderer/bloks/run/components.d.ts +2 -2
  104. package/dist/renderer/bloks/run/components.js +1 -1
  105. package/dist/renderer/bloks/scene/index.d.ts +2 -2
  106. package/dist/renderer/bloks/toast.d.ts +1 -1
  107. package/dist/renderer/bloks/typography.js +1 -1
  108. package/dist/renderer/catalog.d.ts +4 -7
  109. package/dist/renderer/catalog.d.ts.map +1 -1
  110. package/dist/renderer/catalog.js +7 -31
  111. package/dist/renderer/catalog.js.map +1 -1
  112. package/dist/renderer/declare.d.ts +31 -19
  113. package/dist/renderer/declare.d.ts.map +1 -1
  114. package/dist/renderer/declare.js +44 -18
  115. package/dist/renderer/declare.js.map +1 -1
  116. package/dist/renderer/runtime/catalog.d.ts +27 -7
  117. package/dist/renderer/runtime/catalog.d.ts.map +1 -1
  118. package/dist/renderer/runtime/catalog.js +30 -3
  119. package/dist/renderer/runtime/catalog.js.map +1 -1
  120. package/dist/renderer/runtime/components.d.ts +7 -1
  121. package/dist/renderer/runtime/components.d.ts.map +1 -1
  122. package/dist/renderer/runtime/components.js +3 -0
  123. package/dist/renderer/runtime/components.js.map +1 -1
  124. package/dist/renderer/runtime/describe.d.ts +14 -4
  125. package/dist/renderer/runtime/describe.d.ts.map +1 -1
  126. package/dist/renderer/runtime/describe.js +3 -0
  127. package/dist/renderer/runtime/describe.js.map +1 -1
  128. package/dist/renderer/runtime/index.d.ts +1 -0
  129. package/dist/renderer/runtime/index.d.ts.map +1 -1
  130. package/dist/renderer/runtime/index.js +1 -0
  131. package/dist/renderer/runtime/index.js.map +1 -1
  132. package/dist/renderer/runtime/preflight.d.ts.map +1 -1
  133. package/dist/renderer/runtime/preflight.js +5 -2
  134. package/dist/renderer/runtime/preflight.js.map +1 -1
  135. package/dist/renderer/runtime/text.d.ts +28 -0
  136. package/dist/renderer/runtime/text.d.ts.map +1 -0
  137. package/dist/renderer/runtime/text.js +82 -0
  138. package/dist/renderer/runtime/text.js.map +1 -0
  139. package/dist/runtime.d.ts +0 -1
  140. package/dist/runtime.d.ts.map +1 -1
  141. package/dist/runtime.js +0 -1
  142. package/dist/runtime.js.map +1 -1
  143. package/dist/scene.d.ts +1 -1
  144. package/dist/scene.d.ts.map +1 -1
  145. package/dist/scene.js +2 -2
  146. package/dist/scene.js.map +1 -1
  147. package/dist/shadcn.d.ts +118 -110
  148. package/dist/shadcn.d.ts.map +1 -1
  149. package/dist/shadcn.js +6 -5
  150. package/dist/shadcn.js.map +1 -1
  151. package/dist/spec/bsx_v2.json +3080 -2436
  152. package/dist/spec/catalogs/base@3.json +13029 -0
  153. package/dist/spec/catalogs/base@3.json.js +13029 -0
  154. package/dist/spec/catalogs/orkestrator@1.json +489 -0
  155. package/dist/spec/catalogs/orkestrator@1.json.js +489 -0
  156. package/dist/spec/catalogs.d.ts +109 -46
  157. package/dist/spec/catalogs.d.ts.map +1 -1
  158. package/dist/spec/catalogs.js +241 -73
  159. package/dist/spec/catalogs.js.map +1 -1
  160. package/dist/spec/vocabulary.d.ts +19 -3
  161. package/dist/spec/vocabulary.d.ts.map +1 -1
  162. package/dist/spec/vocabulary.js +15 -2
  163. package/dist/spec/vocabulary.js.map +1 -1
  164. package/dist/spec/vocabulary.json +30 -16
  165. package/dist/spec/vocabulary.json.js +30 -16
  166. package/dist/vendor/core/ui/button-group.d.ts +1 -1
  167. package/dist/vendor/core/ui/button.d.ts +1 -1
  168. package/dist/vendor/core/ui/field.d.ts +1 -1
  169. package/package.json +1 -1
  170. package/src/bsx/infer.test.ts +18 -26
  171. package/src/bsx/language.test.ts +1 -1
  172. package/src/bsx/parse.ts +18 -62
  173. package/src/bsx/partial.test.ts +1 -1
  174. package/src/bsx/print.ts +24 -34
  175. package/src/bsx/references.test.ts +16 -14
  176. package/src/bsx/references.ts +96 -38
  177. package/src/catalogs/catalogs.test.ts +45 -14
  178. package/src/catalogs/html.ts +3 -3
  179. package/src/catalogs/index.ts +6 -2
  180. package/src/catalogs/logo.ts +3 -3
  181. package/src/catalogs/parts/html.ts +1 -1
  182. package/src/catalogs/parts/icons.ts +1 -1
  183. package/src/catalogs/parts/layout.ts +11 -0
  184. package/src/catalogs/parts/logo.ts +2 -2
  185. package/src/catalogs/parts/run.ts +1 -1
  186. package/src/catalogs/parts/structure.ts +2 -2
  187. package/src/catalogs/parts/toast.ts +1 -1
  188. package/src/catalogs/parts/typography.ts +1 -1
  189. package/src/catalogs/scene.ts +3 -3
  190. package/src/catalogs/shadcn.ts +4 -4
  191. package/src/catalogs/structure.ts +3 -3
  192. package/src/catalogs/ui.ts +4 -3
  193. package/src/catalogs.ts +9 -2
  194. package/src/ports.ts +1 -1
  195. package/src/renderer/addBlokComponents.test.tsx +8 -22
  196. package/src/renderer/baseCatalog.ts +7 -5
  197. package/src/renderer/bloks/components.test.tsx +2 -2
  198. package/src/renderer/bloks/control.tsx +17 -1
  199. package/src/renderer/bloks/flow.test.tsx +1 -1
  200. package/src/renderer/bloks/html.tsx +2 -2
  201. package/src/renderer/bloks/index.ts +1 -1
  202. package/src/renderer/bloks/layout.tsx +28 -0
  203. package/src/renderer/bloks/logo/index.tsx +2 -2
  204. package/src/renderer/bloks/run/components.tsx +1 -1
  205. package/src/renderer/bloks/time.test.tsx +1 -1
  206. package/src/renderer/bloks/toast.tsx +1 -1
  207. package/src/renderer/bloks/typography.tsx +1 -1
  208. package/src/renderer/catalog.tsx +7 -31
  209. package/src/renderer/declare.test.ts +41 -0
  210. package/src/renderer/declare.ts +70 -32
  211. package/src/renderer/runtime/catalog.ts +35 -10
  212. package/src/renderer/runtime/components.tsx +10 -1
  213. package/src/renderer/runtime/describe.ts +17 -4
  214. package/src/renderer/runtime/index.ts +1 -0
  215. package/src/renderer/runtime/preflight.ts +5 -2
  216. package/src/renderer/runtime/text.test.tsx +65 -0
  217. package/src/renderer/runtime/text.ts +88 -0
  218. package/src/runtime.ts +0 -1
  219. package/src/scene.ts +2 -2
  220. package/src/shadcn.ts +6 -5
  221. package/src/spec/bsx_v2.json +3080 -2436
  222. package/src/spec/catalogs/base@3.json +13029 -0
  223. package/src/spec/catalogs/orkestrator@1.json +489 -0
  224. package/src/spec/catalogs.ts +257 -101
  225. package/src/spec/spec.test.ts +87 -21
  226. package/src/spec/vocabulary.json +30 -16
  227. package/src/spec/vocabulary.ts +33 -7
  228. package/dist/renderer/modules.d.ts +0 -4
  229. package/dist/renderer/modules.d.ts.map +0 -1
  230. package/dist/renderer/modules.js +0 -11
  231. package/dist/renderer/modules.js.map +0 -1
  232. package/dist/spec/catalogs/base@2.json +0 -355
  233. package/dist/spec/catalogs/base@2.json.js +0 -355
  234. package/dist/spec/catalogs/html@1.json +0 -308
  235. package/dist/spec/catalogs/html@1.json.js +0 -308
  236. package/dist/spec/catalogs/logo@1.json +0 -1687
  237. package/dist/spec/catalogs/logo@1.json.js +0 -1687
  238. package/dist/spec/catalogs/scene@1.json +0 -878
  239. package/dist/spec/catalogs/scene@1.json.js +0 -878
  240. package/dist/spec/catalogs/shadcn@1.json +0 -4002
  241. package/dist/spec/catalogs/shadcn@1.json.js +0 -4002
  242. package/dist/spec/catalogs/structure@1.json +0 -185
  243. package/dist/spec/catalogs/structure@1.json.js +0 -185
  244. package/dist/spec/catalogs/ui@1.json +0 -5349
  245. package/dist/spec/catalogs/ui@1.json.js +0 -5349
  246. package/src/renderer/modules.ts +0 -12
  247. package/src/spec/catalogs/base@2.json +0 -355
  248. package/src/spec/catalogs/html@1.json +0 -308
  249. package/src/spec/catalogs/logo@1.json +0 -1687
  250. package/src/spec/catalogs/scene@1.json +0 -878
  251. package/src/spec/catalogs/shadcn@1.json +0 -4002
  252. package/src/spec/catalogs/structure@1.json +0 -185
  253. package/src/spec/catalogs/ui@1.json +0 -5349
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "vocab": 2,
3
- "description": "The blok language, version 2: what a blok may read, call and store. The spec's parser, the server (rekuest_core, takt) and the renderer (orkestrator) load this file or are generated from it. The design is the blok-vocab-v2 proposal of 2026-10-25.",
3
+ "minor": 1,
4
+ "description": "The blok language, version 2: what a blok may read, call and store. The spec's parser, the server (rekuest_core, takt) and the renderer (orkestrator) load this file or are generated from it. The design is the blok-vocab-v2 proposal of 2026-10-25. Three layers, each versioned on its own: this language (vocab, and minor for what it gained since); the base catalog, everything every renderer draws; and the app catalogs that extend it with what one frontend draws beyond (see catalogs). A server holds a blok to the language alone, never to a catalog: whoever draws a blok checks it against the catalog it has, and an author's tooling checks it when asked.",
4
5
  "roots": {
5
6
  "data": {
6
7
  "self": "The agent the blok belongs to: the declaring agent (agent blok), the sending agent (task blok), the executing agent (action blok). Shorthand for deps.self.",
@@ -315,12 +316,12 @@
315
316
  },
316
317
  "stored_tree": {
317
318
  "description": "How a v2 blok is stored: ComponentNodeInput {id, component, props?, children?}; ComponentPropInput {key, static_value? | dynamic_value {path} | util_call | agent_call (+ declares_value)}; ActionArgumentInput {key?, value_literal? | value_path? | util_call? | value_list? | value_dict?}. A prop or argument with no value field is null.",
318
- "ids": "An explicit id matches explicit_id; a derived id is the parent's id plus /<Component>[<n>] (n: occurrence among same-named siblings), the root's <Component>[0]. A derived id always ends in ']'. An implicit Text node is <parent>/#<n> (n: text-run index) and nothing may target it.",
319
+ "ids": "An explicit id matches explicit_id; a derived id is the parent's id plus /<Component>[<n>] (n: occurrence among same-named siblings), the root's <Component>[0]. A derived id always ends in ']'. A text node is <parent>/#<n> (n: text-run index) and nothing may target it.",
319
320
  "explicit_id": "^[A-Za-z_][A-Za-z0-9_.:-]*$",
320
321
  "foreach": "foreach props: items (expression), let (static_value and declares_value the name), key (expression, optional). With a key each item's subtree takes its runtime ids from it: <id>@<key>; without one, from its position: <id>@#<n> (n: the 0-based index). A foreach without key is stored with no key prop at all; the validator warns foreach.position_key when its items are known not to be scalars.",
321
322
  "if": "if props: when; children: the then-branch, then the else nodes (component else, an else-if with a when prop; only the last else may lack when).",
322
323
  "into": "agent_call prop with declares_value <name>: a task record only that call writes. Allowed inside foreach; one name is written by one call site.",
323
- "text": "Text children fill the component's text_prop; mixed with elements they become implicit Text nodes. Several parts desugar to str.template(template, values)."
324
+ "text": "Text is a child like any other: each run of text between elements is stored as a node {id: <parent>/#<n>, component: \"#text\", props: [value]}, its value a literal or an expression; several parts of one run desugar to str.template(template, values). No element can be called #text, so only text makes one. Parsing needs no catalog. What a component does with its text is its renderer's: one with a text_prop makes its text children that prop (a Button its label), any other that takes children draws them in place; a component that sets its text_prop as an attribute too, or takes neither text nor children, is a catalog finding (catalog.text). A tree stored before text was a node holds the text_prop itself, and implicit Text or span nodes under the same ids: a renderer draws both."
324
325
  },
325
326
  "locals": {
326
327
  "description": "Blok-level form state that feeds a call: a local is an arg port (key, kind, identifier, nullable, default, children, choices, validators, description, ...) plus persist, written only through `bind` on controls, read bare. persist remembers the last input on this device. Its kind is a port kind or ANY; left out on the wire it is inferred (kind_inference) and the stored local always carries one.",
@@ -369,9 +370,22 @@
369
370
  "logo_path_data_props": ["d", "points"]
370
371
  },
371
372
  "catalogs": {
372
- "description": "Catalogs are the spec-owned, versioned sets a blok renders with: base (every renderer) and the standard catalogs (opt-in). A blok declares the catalogs it needs (catalogs: [\"ui@1\", \"scene@1\"]); a renderer lacking one renders its children or a placeholder, and reports it. A module is an app's own unversioned extras (the server's Module, registered by an app such as the Orkestrator with the catalogs it implements in full); a blok names at most one, as its module.",
373
- "base": 2,
374
- "standard": {"ui": 1, "scene": 1, "logo": 1, "structure": 1, "html": 1, "shadcn": 1}
373
+ "description": "A catalog is a versioned set of components. The base catalog is what every renderer draws, whole, in the contexts it draws (HTML, SCENE, LOGO): a blok written for it runs everywhere. An app catalog extends another (in the end the base) with what one frontend draws beyond it; it is that frontend's to publish. A catalog is named by the address it is published at (its id); a blok names the one catalog it is written for (catalog), the base when it names none, and may record the minor it needs (catalog_minor). A version only ever gains components and props: each says the minor that added it (since), so a blok valid at v1.2 stays valid. A renderer reports the catalogs and minors it speaks; what it lacks it draws as a placeholder, and reports. A catalog never redefines a component of the one it extends. Nobody's server fetches a catalog: it holds what a frontend registered under the id, and an author's tooling resolves an id from what ships with it, from its cache, or by fetching it.",
374
+ "base": "https://arkitekt.live/catalogs/base/v3",
375
+ "bundled": {"https://arkitekt.live/catalogs/base/v3": "catalogs/base@3.json", "https://arkitekt.live/catalogs/orkestrator/v1": "catalogs/orkestrator@1.json"},
376
+ "id": "^https://[^\\s/]+(/[^\\s/]+)*/v[0-9]+$",
377
+ "name": "^[A-Za-z_][A-Za-z0-9_.-]*$",
378
+ "host_parts": {
379
+ "description": "Parts of the host's own interface a blok may place itself: placing one anywhere in the tree claims it, and the host then draws none of its own. The claim is read off the stored tree, so a part inside an inactive <if> still claims it (part.conditional). What a blok does not place, the host still draws, unless its root says chrome=\"none\".",
380
+ "parts": ["args", "arg", "deps", "dep", "ask", "returns", "status", "timeline"]
381
+ }
382
+ },
383
+ "classes": {
384
+ "description": "The classes a blok may rely on in every renderer: the portable subset. A renderer without CSS (React Native) draws these and may ignore the rest, so a class outside the subset is a warning (class.not_portable), never an error. Listed is what is NOT portable: what changes the layout or the content when it is ignored. Every other utility and variant is portable, those a small touch renderer simply has no use for included (hover:, focus-visible:, cursor-*, the breakpoints sm: md: lg:): nothing is lost without them. Laying out in a grid is the Grid component's; space-x-* and space-y-* are drawn as the gap they come to.",
385
+ "variants": ["before", "after", "first-letter", "first-line", "marker", "selection", "file", "backdrop", "has", "group-has", "peer-has", "supports", "print", "target"],
386
+ "utilities": ["grid-cols", "grid-rows", "grid-flow", "col-span", "col-start", "col-end", "row-span", "row-start", "row-end", "auto-cols", "auto-rows", "divide-x", "divide-y", "float", "clear", "columns", "break-before", "break-after", "break-inside", "box-decoration", "table", "caption", "border-collapse", "border-separate", "border-spacing", "list", "snap", "mix-blend", "bg-blend", "backdrop", "filter", "blur", "brightness", "contrast", "grayscale", "hue-rotate", "invert", "saturate", "sepia", "drop-shadow", "mask"],
387
+ "arbitrary": "A value in brackets is portable on the utilities arbitrary_values lists (w-[12rem], gap-[6px], bg-[#1e293b]): a size, a spacing, a radius, a border, a font size, a colour, an opacity or a stacking order, written as a length (px, rem, %), a number or a colour (#hex, rgb(), hsl()). A renderer that compiles its classes ahead of time translates these itself. Nothing else in brackets is portable: an arbitrary property ([mask-type:luminance]), an arbitrary variant ([&>*]:p-2), or a value on any other utility (translate-x-[3px], grid-cols-[1fr_2fr]).",
388
+ "arbitrary_values": ["w", "h", "size", "min-w", "max-w", "min-h", "max-h", "basis", "p", "px", "py", "pt", "pr", "pb", "pl", "m", "mx", "my", "mt", "mr", "mb", "ml", "gap", "gap-x", "gap-y", "inset", "inset-x", "inset-y", "top", "right", "bottom", "left", "space-x", "space-y", "rounded", "rounded-t", "rounded-r", "rounded-b", "rounded-l", "rounded-tl", "rounded-tr", "rounded-br", "rounded-bl", "border", "border-t", "border-r", "border-b", "border-l", "border-x", "border-y", "text", "bg", "leading", "tracking", "opacity", "z", "flex", "grow", "shrink", "aspect"]
375
389
  },
376
390
  "diagnostics": {
377
391
  "description": "One table of stable codes, the same in Python, Rust and TypeScript. level: error refuses the blok, warning is reported; runtime: true marks a code no checker raises, the renderer's error code of a record (deps.unbound). Messages are str.format templates; parity compares codes, never text.",
@@ -383,10 +397,6 @@
383
397
  "bsx.duplicate_attribute": {"level": "error", "message": "<{component}> sets {key} twice.", "hint": "Keep one {key}; to choose between values, write one expression (c ? a : b)."},
384
398
  "bsx.id": {"level": "error", "message": "id {id!r} is not an explicit id: letters, digits and _ . : -, starting with a letter or _."},
385
399
  "bsx.duplicate_id": {"level": "error", "message": "Two components have the id {id!r}.", "hint": "Give each component its own id, or drop id= and let the structure name it."},
386
- "bsx.text_not_accepted": {"level": "error", "message": "<{component}> takes no text (it declares no text_prop): {text!r}. Wrap the text in a component that does, such as <p>, <span> or <Text>."},
387
- "bsx.text_unknown_component": {"level": "error", "message": "<{component}> is in no catalog the parser knows, so its text has nowhere to go: {text!r}. Pass it as a prop."},
388
- "bsx.text_in_context": {"level": "error", "message": "Text in <{component}> is in the {context} context, which draws no text: {text!r}."},
389
- "bsx.text_and_prop": {"level": "error", "message": "<{component}> sets {key} as an attribute and as its text.", "hint": "Set {key} once: either as the attribute or as the text between the tags."},
390
400
  "bsx.text_callback": {"level": "error", "message": "Text holds a call or an effect; only a callback prop may.", "hint": "Put the call in a callback prop (onClick={{...}}), never between tags."},
391
401
  "bsx.else_outside_if": {"level": "error", "message": "<else> is a child of <if>, after its then-branch.", "hint": "Move the <else> inside its <if>, after the then-branch children."},
392
402
  "bsx.else_order": {"level": "error", "message": "<else> comes after the then-branch, and only the last <else> may lack when.", "hint": "Put the <else> branches last in the <if>; only the final one may leave out when."},
@@ -456,20 +466,24 @@
456
466
  "context.root_unknown": {"level": "error", "message": "A blok's root names its context ({roots}), not <{component}>.", "hint": "Make the root one of {roots} and put <{component}> inside it."},
457
467
  "context.kind": {"level": "error", "message": "A{n} {kind} blok is drawn in {contexts}, not {context}."},
458
468
  "assign.kind": {"level": "error", "message": "{what} belongs to starting a run, so only an action's assign blok holds it, not a{n} {kind} blok.", "hint": "Declare it with the action: @app.workflow(assign_bloks=[...])."},
459
- "space.kind": {"level": "error", "message": "<{component}> places the run's dependencies, so only an action's own blok holds it, not a{n} {kind} blok.", "hint": "Declare it with the action: @app.workflow(bloks=[...])."},
460
469
  "logo.complexity": {"level": "error", "message": "{detail}"},
461
- "catalog.unknown_component": {"level": "warning", "message": "<{component}> is in no catalog in force ({catalogs}).", "hint": "Look the component up in the catalog; names are case-sensitive."},
462
- "catalog.undeclared": {"level": "warning", "message": "<{component}> is from {catalog}, which the blok does not declare in its catalogs.", "hint": "Add {catalog} to the blok's catalogs."},
470
+ "catalog.unknown_component": {"level": "warning", "message": "<{component}> is not in the catalog the blok is written for ({catalogs}).", "hint": "Look the component up in the catalog; names are case-sensitive."},
463
471
  "catalog.children": {"level": "warning", "message": "<{component}> takes no children.", "hint": "Close <{component}> without children (<{component} ... />), or put them beside it."},
472
+ "catalog.text": {"level": "warning", "message": "<{component}> {detail}", "hint": "Put the text in a component that draws it (<Text>, <p>, <span>), or set it once."},
464
473
  "catalog.props": {"level": "warning", "message": "<{component}> {detail}", "hint": "Use the props the catalog lists for <{component}>, exactly as named."},
465
474
  "catalog.placement": {"level": "warning", "message": "<{component}> {detail}", "hint": "Move <{component}> where the catalog places it (its inside / never inside rules)."},
466
475
  "catalog.value": {"level": "warning", "message": "{key}=\"{value}\" is not a value <{component}> draws: one of {values}.", "hint": "Write one of {values}."},
467
476
  "catalog.asset": {"level": "warning", "message": "{key} of <{component}> names an asset as <agent>.assets.<name>.", "hint": "Write {key}={{self.assets.<name>}} with an asset the app registered."},
468
- "catalog.shadow": {"level": "warning", "message": "<{component}> is defined by {catalog} and by {module}; {winner}'s definition is used."},
469
- "module.unknown": {"level": "warning", "message": "module {module!r} is neither declared by the app nor registered in the organization ({modules}), so its components are not checked."},
477
+ "catalog.target": {"level": "error", "message": "<{component}> is of {catalog}, and this blok is written for {target}.", "hint": "Name the catalog it is written for (catalog=\"{catalog}\"), or use what {target} draws."},
478
+ "catalog.unknown": {"level": "warning", "message": "The catalog {catalog!r} is not known here ({catalogs}), so what it adds to the base catalog is not checked.", "hint": "Register the catalog with the tooling, or check the address."},
479
+ "catalog.kind": {"level": "error", "message": "<{component}> belongs to {kinds} bloks, not to a{n} {kind} blok.", "hint": "Declare it with the action: @app.workflow(bloks=[...]) for a run, assign_bloks=[...] for starting one."},
480
+ "catalog.context": {"level": "warning", "message": "<{component}> needs the {service} service where it is drawn; without it a notice shows in its place."},
481
+ "part.conditional": {"level": "warning", "message": "<{component}> is inside <{inside}>: placing it anywhere claims it, so the host draws none of its own even while this one does not show.", "hint": "Place <{component}> outside <{inside}>, or hide what is around it instead."},
482
+ "chrome.no_ask": {"level": "warning", "message": "chrome=\"none\" leaves the run's asks to the blok, and it places no <ask />: an ask can then only be answered elsewhere.", "hint": "Place <ask /> where the run's questions should show, or answer task.ask with task.answer(values: ...)."},
483
+ "class.not_portable": {"level": "warning", "message": "{token}: {what} is not in the portable subset, so a renderer without CSS ignores it.", "hint": "Keep what the class does optional, or use a component for it."},
470
484
  "deps.unbound": {"level": "error", "runtime": true, "message": "deps.{key} is bound to no agent, so it reads as failed."},
471
485
  "manifest.sent": {"level": "error", "message": "A blok is sent as its components or as its BSX source, {problem}."},
472
- "manifest.catalog": {"level": "error", "message": "Catalog {catalog!r} is not name@version (ui@1)."},
486
+ "manifest.catalog": {"level": "error", "message": "Catalog {catalog!r} is neither the address a catalog is published at (https://arkitekt.live/catalogs/orkestrator/v1) nor the name of one registered in the organization."},
473
487
  "manifest.duplicate": {"level": "error", "message": "{what}: {key!r} is declared twice."},
474
488
  "manifest.name": {"level": "error", "message": "{what}: {key!r} is not a name."},
475
489
  "manifest.action_logo": {"level": "error", "message": "An action logo reads only the task it is drawn against: no locals, queries, subscriptions or dependencies."},
@@ -27,6 +27,8 @@ export type VocabFunction = {
27
27
  effect: boolean;
28
28
  /** An effect that changes the world (acts on a task, or starts one); an effect without it only changes what the viewer sees. */
29
29
  command: boolean;
30
+ /** Acts on the task the blok is about (`task.answer`, `task.cancel`): only where the blok reads one. */
31
+ taskOperation: boolean;
30
32
  /** Sees a pending or failed argument instead of suspending. */
31
33
  seesStatus: boolean;
32
34
  /** The parameter names, in positional order. */
@@ -144,6 +146,8 @@ export type VocabLimits = {
144
146
 
145
147
  export type BlokVocabulary = {
146
148
  vocab: number;
149
+ /** How far the language has grown within `vocab`: it only ever gains. */
150
+ minor: number;
147
151
  /** `self deps queries subscriptions args task event viewer then`, with what each means. */
148
152
  dataRoots: Readonly<Record<string, string>>;
149
153
  /** Roots bound only somewhere: `event` (a callback), `error` (an `<error>` slot). */
@@ -174,9 +178,21 @@ export type BlokVocabulary = {
174
178
  theme: VocabTheme;
175
179
  limits: VocabLimits;
176
180
  locals: VocabLocals;
177
- baseVersion: number;
178
- /** The standard catalogs by name, at their versions (`ui: 1`). */
179
- catalogs: Readonly<Record<string, number>>;
181
+ /** The id of the base catalog: what a blok is written for when it names no catalog. */
182
+ baseCatalog: string;
183
+ /** The catalogs that ship with the vocabulary, id → file (the base catalog first). */
184
+ bundledCatalogs: Readonly<Record<string, string>>;
185
+ /** What a published catalog's id looks like: the https address it is published at, ending in its version. */
186
+ catalogId: RegExp;
187
+ /** What the name of a catalog registered in an organization looks like. */
188
+ catalogName: RegExp;
189
+ /** The components that place a part of the host's own interface (`args`, `timeline`). */
190
+ hostParts: readonly string[];
191
+ /** Class variants and utility prefixes outside the portable subset (`class.not_portable`). */
192
+ unportableVariants: ReadonlySet<string>;
193
+ unportableUtilities: readonly string[];
194
+ /** The utilities whose value may be written in brackets (`w-[12rem]`) and stay portable. */
195
+ arbitraryValues: ReadonlySet<string>;
180
196
  diagnostics: ReadonlyMap<string, VocabDiagnostic>;
181
197
  };
182
198
 
@@ -260,6 +276,7 @@ const parseFunction = (name: string, raw: unknown): VocabFunction => {
260
276
  lazy: entry.lazy === true,
261
277
  effect: entry.effect === true,
262
278
  command: entry.command === true,
279
+ taskOperation: entry.task_operation === true,
263
280
  seesStatus: entry.sees_status === true,
264
281
  keys: params.map(param => param.key),
265
282
  requiredKeys: params.filter(param => param.required).map(param => param.key),
@@ -327,6 +344,10 @@ export const parseVocabulary = (raw: unknown): BlokVocabulary => {
327
344
  const limits = object(root.limits, 'limits');
328
345
  const catalogs = object(root.catalogs, 'catalogs');
329
346
  const locals = object(root.locals, 'locals');
347
+ const classes = object(root.classes, 'classes');
348
+ const bundledCatalogs = stringMap(catalogs.bundled, 'catalogs.bundled');
349
+ const baseCatalog = string(catalogs.base, 'catalogs.base');
350
+ if (!(baseCatalog in bundledCatalogs)) throw new Error('vocabulary.json: the base catalog is not among the bundled ones');
330
351
 
331
352
  const diagnosticsRaw = object(root.diagnostics, 'diagnostics');
332
353
  const diagnostics = new Map<string, VocabDiagnostic>();
@@ -343,6 +364,7 @@ export const parseVocabulary = (raw: unknown): BlokVocabulary => {
343
364
 
344
365
  return {
345
366
  vocab: number(root.vocab, 'vocab'),
367
+ minor: root.minor === undefined ? 0 : number(root.minor, 'minor'),
346
368
  dataRoots: stringMap(roots.data, 'roots.data'),
347
369
  scopedRoots: stringMap(roots.scoped, 'roots.scoped'),
348
370
  functionNamespaces: strings(roots.functions, 'roots.functions'),
@@ -391,10 +413,14 @@ export const parseVocabulary = (raw: unknown): BlokVocabulary => {
391
413
  bindKinds: kindTable(locals.bind_kinds, 'locals.bind_kinds'),
392
414
  argKinds: kindTable(locals.arg_kinds, 'locals.arg_kinds'),
393
415
  },
394
- baseVersion: number(catalogs.base, 'catalogs.base'),
395
- catalogs: Object.fromEntries(
396
- Object.entries(object(catalogs.standard, 'catalogs.standard')).map(([name, version]) => [name, number(version, `catalogs.standard.${name}`)]),
397
- ),
416
+ baseCatalog,
417
+ bundledCatalogs,
418
+ catalogId: new RegExp(string(catalogs.id, 'catalogs.id')),
419
+ catalogName: new RegExp(string(catalogs.name, 'catalogs.name')),
420
+ hostParts: strings(object(catalogs.host_parts, 'catalogs.host_parts').parts, 'catalogs.host_parts.parts'),
421
+ unportableVariants: new Set(strings(classes.variants, 'classes.variants')),
422
+ unportableUtilities: strings(classes.utilities, 'classes.utilities'),
423
+ arbitraryValues: new Set(strings(classes.arbitrary_values, 'classes.arbitrary_values')),
398
424
  diagnostics,
399
425
  };
400
426
  };
@@ -1,4 +0,0 @@
1
- import type { BlokCatalog } from './runtime';
2
- /** Per catalog, the global component names a module drew over (`addBlokComponents`): those the module's own definition renders. */
3
- export declare const moduleShadowsOf: (catalog: BlokCatalog) => Set<string>;
4
- //# sourceMappingURL=modules.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"modules.d.ts","sourceRoot":"","sources":["../../src/renderer/modules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,WAAW,CAAC;AAI3C,mIAAmI;AACnI,eAAO,MAAM,eAAe,GAAI,SAAS,WAAW,KAAG,GAAG,CAAC,MAAM,CAMhE,CAAC"}
@@ -1,11 +0,0 @@
1
- const moduleShadows = new WeakMap();
2
- /** Per catalog, the global component names a module drew over (`addBlokComponents`): those the module's own definition renders. */
3
- export const moduleShadowsOf = (catalog) => {
4
- const found = moduleShadows.get(catalog);
5
- if (found)
6
- return found;
7
- const created = new Set();
8
- moduleShadows.set(catalog, created);
9
- return created;
10
- };
11
- //# sourceMappingURL=modules.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"modules.js","sourceRoot":"","sources":["../../src/renderer/modules.ts"],"names":[],"mappings":"AAEA,MAAM,aAAa,GAAG,IAAI,OAAO,EAA4B,CAAC;AAE9D,mIAAmI;AACnI,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,OAAoB,EAAe,EAAE;IACnE,MAAM,KAAK,GAAG,aAAa,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACzC,IAAI,KAAK;QAAE,OAAO,KAAK,CAAC;IACxB,MAAM,OAAO,GAAG,IAAI,GAAG,EAAU,CAAC;IAClC,aAAa,CAAC,GAAG,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IACpC,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC"}
@@ -1,355 +0,0 @@
1
- {
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
- }