@arkitektio/bsx 4.2.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 (307) 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 +124 -30
  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 +209 -139
  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 +6 -6
  26. package/dist/catalogs/parts/feedback.d.ts +15 -15
  27. package/dist/catalogs/parts/forms.d.ts +55 -27
  28. package/dist/catalogs/parts/forms.d.ts.map +1 -1
  29. package/dist/catalogs/parts/forms.js +32 -0
  30. package/dist/catalogs/parts/forms.js.map +1 -1
  31. package/dist/catalogs/parts/html.d.ts +1 -1
  32. package/dist/catalogs/parts/html.d.ts.map +1 -1
  33. package/dist/catalogs/parts/html.js +1 -1
  34. package/dist/catalogs/parts/html.js.map +1 -1
  35. package/dist/catalogs/parts/icons.d.ts +11 -11
  36. package/dist/catalogs/parts/icons.js +1 -1
  37. package/dist/catalogs/parts/index.d.ts +183 -137
  38. package/dist/catalogs/parts/index.d.ts.map +1 -1
  39. package/dist/catalogs/parts/layout.d.ts +11 -1
  40. package/dist/catalogs/parts/layout.d.ts.map +1 -1
  41. package/dist/catalogs/parts/layout.js +9 -0
  42. package/dist/catalogs/parts/layout.js.map +1 -1
  43. package/dist/catalogs/parts/logo.d.ts +8 -8
  44. package/dist/catalogs/parts/logo.d.ts.map +1 -1
  45. package/dist/catalogs/parts/logo.js +2 -2
  46. package/dist/catalogs/parts/logo.js.map +1 -1
  47. package/dist/catalogs/parts/navigation.d.ts +20 -20
  48. package/dist/catalogs/parts/overlays.d.ts +55 -55
  49. package/dist/catalogs/parts/run.d.ts +13 -5
  50. package/dist/catalogs/parts/run.d.ts.map +1 -1
  51. package/dist/catalogs/parts/run.js +1 -1
  52. package/dist/catalogs/parts/scene.d.ts +12 -4
  53. package/dist/catalogs/parts/scene.d.ts.map +1 -1
  54. package/dist/catalogs/parts/scene.js +4 -0
  55. package/dist/catalogs/parts/scene.js.map +1 -1
  56. package/dist/catalogs/parts/structure.js +2 -2
  57. package/dist/catalogs/parts/toast.js +1 -1
  58. package/dist/catalogs/parts/toast.js.map +1 -1
  59. package/dist/catalogs/parts/typography.js +1 -1
  60. package/dist/catalogs/parts/typography.js.map +1 -1
  61. package/dist/catalogs/props.d.ts +3 -3
  62. package/dist/catalogs/scene.d.ts +13 -5
  63. package/dist/catalogs/scene.d.ts.map +1 -1
  64. package/dist/catalogs/scene.js +3 -3
  65. package/dist/catalogs/scene.js.map +1 -1
  66. package/dist/catalogs/shadcn.d.ts +106 -58
  67. package/dist/catalogs/shadcn.d.ts.map +1 -1
  68. package/dist/catalogs/shadcn.js +6 -4
  69. package/dist/catalogs/shadcn.js.map +1 -1
  70. package/dist/catalogs/structure.d.ts +1 -1
  71. package/dist/catalogs/structure.d.ts.map +1 -1
  72. package/dist/catalogs/structure.js +3 -3
  73. package/dist/catalogs/structure.js.map +1 -1
  74. package/dist/catalogs/ui.d.ts +83 -73
  75. package/dist/catalogs/ui.d.ts.map +1 -1
  76. package/dist/catalogs/ui.js +4 -3
  77. package/dist/catalogs/ui.js.map +1 -1
  78. package/dist/catalogs.d.ts +1 -1
  79. package/dist/catalogs.d.ts.map +1 -1
  80. package/dist/catalogs.js +2 -2
  81. package/dist/catalogs.js.map +1 -1
  82. package/dist/ports.js +1 -1
  83. package/dist/ports.js.map +1 -1
  84. package/dist/renderer/BlokRenderer.d.ts +4 -1
  85. package/dist/renderer/BlokRenderer.d.ts.map +1 -1
  86. package/dist/renderer/BlokRenderer.js +5 -1
  87. package/dist/renderer/BlokRenderer.js.map +1 -1
  88. package/dist/renderer/baseCatalog.d.ts +8 -6
  89. package/dist/renderer/baseCatalog.d.ts.map +1 -1
  90. package/dist/renderer/baseCatalog.js +7 -5
  91. package/dist/renderer/baseCatalog.js.map +1 -1
  92. package/dist/renderer/bloks/control.d.ts +14 -0
  93. package/dist/renderer/bloks/control.d.ts.map +1 -1
  94. package/dist/renderer/bloks/control.js +105 -6
  95. package/dist/renderer/bloks/control.js.map +1 -1
  96. package/dist/renderer/bloks/data.d.ts +6 -6
  97. package/dist/renderer/bloks/feedback.d.ts +15 -15
  98. package/dist/renderer/bloks/forms.d.ts +51 -27
  99. package/dist/renderer/bloks/forms.d.ts.map +1 -1
  100. package/dist/renderer/bloks/forms.js +56 -0
  101. package/dist/renderer/bloks/forms.js.map +1 -1
  102. package/dist/renderer/bloks/html.js +2 -2
  103. package/dist/renderer/bloks/icons.d.ts +5 -5
  104. package/dist/renderer/bloks/index.d.ts +166 -134
  105. package/dist/renderer/bloks/index.d.ts.map +1 -1
  106. package/dist/renderer/bloks/index.js +1 -1
  107. package/dist/renderer/bloks/layout.d.ts +9 -1
  108. package/dist/renderer/bloks/layout.d.ts.map +1 -1
  109. package/dist/renderer/bloks/layout.js +15 -0
  110. package/dist/renderer/bloks/layout.js.map +1 -1
  111. package/dist/renderer/bloks/logo/index.d.ts +5 -5
  112. package/dist/renderer/bloks/logo/index.d.ts.map +1 -1
  113. package/dist/renderer/bloks/logo/index.js +2 -2
  114. package/dist/renderer/bloks/logo/index.js.map +1 -1
  115. package/dist/renderer/bloks/navigation.d.ts +20 -20
  116. package/dist/renderer/bloks/overlays.d.ts +55 -55
  117. package/dist/renderer/bloks/run/components.d.ts +6 -2
  118. package/dist/renderer/bloks/run/components.d.ts.map +1 -1
  119. package/dist/renderer/bloks/run/components.js +1 -1
  120. package/dist/renderer/bloks/run/host.d.ts +32 -3
  121. package/dist/renderer/bloks/run/host.d.ts.map +1 -1
  122. package/dist/renderer/bloks/run/host.js.map +1 -1
  123. package/dist/renderer/bloks/scene/index.d.ts +6 -2
  124. package/dist/renderer/bloks/scene/index.d.ts.map +1 -1
  125. package/dist/renderer/bloks/toast.d.ts +1 -1
  126. package/dist/renderer/bloks/typography.js +1 -1
  127. package/dist/renderer/catalog.d.ts +4 -7
  128. package/dist/renderer/catalog.d.ts.map +1 -1
  129. package/dist/renderer/catalog.js +7 -31
  130. package/dist/renderer/catalog.js.map +1 -1
  131. package/dist/renderer/declare.d.ts +31 -19
  132. package/dist/renderer/declare.d.ts.map +1 -1
  133. package/dist/renderer/declare.js +44 -18
  134. package/dist/renderer/declare.js.map +1 -1
  135. package/dist/renderer/functions/v2/index.d.ts.map +1 -1
  136. package/dist/renderer/functions/v2/index.js +39 -0
  137. package/dist/renderer/functions/v2/index.js.map +1 -1
  138. package/dist/renderer/runtime/catalog.d.ts +27 -7
  139. package/dist/renderer/runtime/catalog.d.ts.map +1 -1
  140. package/dist/renderer/runtime/catalog.js +30 -3
  141. package/dist/renderer/runtime/catalog.js.map +1 -1
  142. package/dist/renderer/runtime/components.d.ts +7 -1
  143. package/dist/renderer/runtime/components.d.ts.map +1 -1
  144. package/dist/renderer/runtime/components.js +3 -0
  145. package/dist/renderer/runtime/components.js.map +1 -1
  146. package/dist/renderer/runtime/context.d.ts +2 -0
  147. package/dist/renderer/runtime/context.d.ts.map +1 -1
  148. package/dist/renderer/runtime/context.js +4 -0
  149. package/dist/renderer/runtime/context.js.map +1 -1
  150. package/dist/renderer/runtime/describe.d.ts +14 -4
  151. package/dist/renderer/runtime/describe.d.ts.map +1 -1
  152. package/dist/renderer/runtime/describe.js +3 -0
  153. package/dist/renderer/runtime/describe.js.map +1 -1
  154. package/dist/renderer/runtime/hooks.d.ts.map +1 -1
  155. package/dist/renderer/runtime/hooks.js +1 -0
  156. package/dist/renderer/runtime/hooks.js.map +1 -1
  157. package/dist/renderer/runtime/index.d.ts +1 -0
  158. package/dist/renderer/runtime/index.d.ts.map +1 -1
  159. package/dist/renderer/runtime/index.js +1 -0
  160. package/dist/renderer/runtime/index.js.map +1 -1
  161. package/dist/renderer/runtime/preflight.d.ts.map +1 -1
  162. package/dist/renderer/runtime/preflight.js +5 -2
  163. package/dist/renderer/runtime/preflight.js.map +1 -1
  164. package/dist/renderer/runtime/resolution.d.ts +2 -0
  165. package/dist/renderer/runtime/resolution.d.ts.map +1 -1
  166. package/dist/renderer/runtime/resolution.js +17 -1
  167. package/dist/renderer/runtime/resolution.js.map +1 -1
  168. package/dist/renderer/runtime/schemas.d.ts +5 -5
  169. package/dist/renderer/runtime/task.d.ts +25 -2
  170. package/dist/renderer/runtime/task.d.ts.map +1 -1
  171. package/dist/renderer/runtime/task.js +11 -2
  172. package/dist/renderer/runtime/task.js.map +1 -1
  173. package/dist/renderer/runtime/text.d.ts +28 -0
  174. package/dist/renderer/runtime/text.d.ts.map +1 -0
  175. package/dist/renderer/runtime/text.js +82 -0
  176. package/dist/renderer/runtime/text.js.map +1 -0
  177. package/dist/renderer/runtime/types.d.ts +7 -2
  178. package/dist/renderer/runtime/types.d.ts.map +1 -1
  179. package/dist/runtime.d.ts +0 -1
  180. package/dist/runtime.d.ts.map +1 -1
  181. package/dist/runtime.js +0 -1
  182. package/dist/runtime.js.map +1 -1
  183. package/dist/scene.d.ts +1 -1
  184. package/dist/scene.d.ts.map +1 -1
  185. package/dist/scene.js +2 -2
  186. package/dist/scene.js.map +1 -1
  187. package/dist/shadcn.d.ts +169 -137
  188. package/dist/shadcn.d.ts.map +1 -1
  189. package/dist/shadcn.js +8 -5
  190. package/dist/shadcn.js.map +1 -1
  191. package/dist/spec/bsx_v2.json +3080 -2372
  192. package/dist/spec/catalogs/base@3.json +13029 -0
  193. package/dist/spec/catalogs/base@3.json.js +13029 -0
  194. package/dist/spec/catalogs/orkestrator@1.json +489 -0
  195. package/dist/spec/catalogs/orkestrator@1.json.js +489 -0
  196. package/dist/spec/catalogs.d.ts +109 -46
  197. package/dist/spec/catalogs.d.ts.map +1 -1
  198. package/dist/spec/catalogs.js +241 -73
  199. package/dist/spec/catalogs.js.map +1 -1
  200. package/dist/spec/vocabulary.d.ts +21 -3
  201. package/dist/spec/vocabulary.d.ts.map +1 -1
  202. package/dist/spec/vocabulary.js +16 -2
  203. package/dist/spec/vocabulary.js.map +1 -1
  204. package/dist/spec/vocabulary.json +73 -27
  205. package/dist/spec/vocabulary.json.js +73 -27
  206. package/dist/vendor/core/ui/button-group.d.ts +1 -1
  207. package/dist/vendor/core/ui/button.d.ts +1 -1
  208. package/dist/vendor/core/ui/field.d.ts +1 -1
  209. package/package.json +1 -1
  210. package/src/bsx/infer.test.ts +18 -26
  211. package/src/bsx/language.test.ts +2 -2
  212. package/src/bsx/parse.ts +18 -62
  213. package/src/bsx/partial.test.ts +1 -1
  214. package/src/bsx/print.ts +24 -34
  215. package/src/bsx/references.test.ts +71 -10
  216. package/src/bsx/references.ts +114 -35
  217. package/src/catalogs/catalogs.test.ts +45 -14
  218. package/src/catalogs/html.ts +3 -3
  219. package/src/catalogs/index.ts +6 -2
  220. package/src/catalogs/logo.ts +3 -3
  221. package/src/catalogs/parts/forms.ts +32 -0
  222. package/src/catalogs/parts/html.ts +1 -1
  223. package/src/catalogs/parts/icons.ts +1 -1
  224. package/src/catalogs/parts/layout.ts +11 -0
  225. package/src/catalogs/parts/logo.ts +2 -2
  226. package/src/catalogs/parts/run.ts +1 -1
  227. package/src/catalogs/parts/scene.ts +6 -0
  228. package/src/catalogs/parts/structure.ts +2 -2
  229. package/src/catalogs/parts/toast.ts +1 -1
  230. package/src/catalogs/parts/typography.ts +1 -1
  231. package/src/catalogs/scene.ts +3 -3
  232. package/src/catalogs/shadcn.ts +6 -4
  233. package/src/catalogs/structure.ts +3 -3
  234. package/src/catalogs/ui.ts +4 -3
  235. package/src/catalogs.ts +9 -2
  236. package/src/ports.ts +1 -1
  237. package/src/renderer/BlokRenderer.tsx +9 -0
  238. package/src/renderer/addBlokComponents.test.tsx +8 -22
  239. package/src/renderer/baseCatalog.ts +7 -5
  240. package/src/renderer/bloks/components.test.tsx +2 -2
  241. package/src/renderer/bloks/control.tsx +133 -6
  242. package/src/renderer/bloks/flow.test.tsx +1 -1
  243. package/src/renderer/bloks/forms.tsx +126 -0
  244. package/src/renderer/bloks/html.tsx +2 -2
  245. package/src/renderer/bloks/index.ts +1 -1
  246. package/src/renderer/bloks/layout.tsx +28 -0
  247. package/src/renderer/bloks/logo/index.tsx +2 -2
  248. package/src/renderer/bloks/run/components.tsx +1 -1
  249. package/src/renderer/bloks/run/host.tsx +33 -3
  250. package/src/renderer/bloks/run/space.test.tsx +76 -0
  251. package/src/renderer/bloks/time.test.tsx +1 -1
  252. package/src/renderer/bloks/toast.tsx +1 -1
  253. package/src/renderer/bloks/typography.tsx +1 -1
  254. package/src/renderer/catalog.tsx +7 -31
  255. package/src/renderer/declare.test.ts +41 -0
  256. package/src/renderer/declare.ts +70 -32
  257. package/src/renderer/functions/v2/functions.test.ts +40 -1
  258. package/src/renderer/functions/v2/index.ts +47 -0
  259. package/src/renderer/runtime/catalog.ts +35 -10
  260. package/src/renderer/runtime/components.tsx +10 -1
  261. package/src/renderer/runtime/context.tsx +6 -0
  262. package/src/renderer/runtime/describe.ts +17 -4
  263. package/src/renderer/runtime/hooks.ts +1 -0
  264. package/src/renderer/runtime/index.ts +1 -0
  265. package/src/renderer/runtime/preflight.ts +5 -2
  266. package/src/renderer/runtime/resolution.test.ts +14 -0
  267. package/src/renderer/runtime/resolution.ts +15 -1
  268. package/src/renderer/runtime/task.ts +33 -4
  269. package/src/renderer/runtime/text.test.tsx +65 -0
  270. package/src/renderer/runtime/text.ts +88 -0
  271. package/src/renderer/runtime/types.ts +7 -2
  272. package/src/runtime.ts +0 -1
  273. package/src/scene.ts +2 -2
  274. package/src/shadcn.ts +8 -5
  275. package/src/spec/bsx_v2.json +3080 -2372
  276. package/src/spec/catalogs/base@3.json +13029 -0
  277. package/src/spec/catalogs/orkestrator@1.json +489 -0
  278. package/src/spec/catalogs.ts +257 -101
  279. package/src/spec/spec.test.ts +107 -21
  280. package/src/spec/vocabulary.json +73 -27
  281. package/src/spec/vocabulary.ts +36 -7
  282. package/dist/renderer/modules.d.ts +0 -4
  283. package/dist/renderer/modules.d.ts.map +0 -1
  284. package/dist/renderer/modules.js +0 -11
  285. package/dist/renderer/modules.js.map +0 -1
  286. package/dist/spec/catalogs/base@2.json +0 -222
  287. package/dist/spec/catalogs/base@2.json.js +0 -222
  288. package/dist/spec/catalogs/html@1.json +0 -308
  289. package/dist/spec/catalogs/html@1.json.js +0 -308
  290. package/dist/spec/catalogs/logo@1.json +0 -1687
  291. package/dist/spec/catalogs/logo@1.json.js +0 -1687
  292. package/dist/spec/catalogs/scene@1.json +0 -858
  293. package/dist/spec/catalogs/scene@1.json.js +0 -858
  294. package/dist/spec/catalogs/shadcn@1.json +0 -3860
  295. package/dist/spec/catalogs/shadcn@1.json.js +0 -3860
  296. package/dist/spec/catalogs/structure@1.json +0 -185
  297. package/dist/spec/catalogs/structure@1.json.js +0 -185
  298. package/dist/spec/catalogs/ui@1.json +0 -5349
  299. package/dist/spec/catalogs/ui@1.json.js +0 -5349
  300. package/src/renderer/modules.ts +0 -12
  301. package/src/spec/catalogs/base@2.json +0 -222
  302. package/src/spec/catalogs/html@1.json +0 -308
  303. package/src/spec/catalogs/logo@1.json +0 -1687
  304. package/src/spec/catalogs/scene@1.json +0 -858
  305. package/src/spec/catalogs/shadcn@1.json +0 -3860
  306. package/src/spec/catalogs/structure@1.json +0 -185
  307. package/src/spec/catalogs/ui@1.json +0 -5349
@@ -0,0 +1,489 @@
1
+ export default {
2
+ "id": "https://arkitekt.live/catalogs/orkestrator/v1",
3
+ "name": "orkestrator",
4
+ "version": 1,
5
+ "minor": 0,
6
+ "extends": "https://arkitekt.live/catalogs/base/v3",
7
+ "description": "What the Orkestrator draws beyond the base catalog: the components of the services it has modules for (mikro's scene and tables). A blok written for it names it as its catalog.",
8
+ "components": [
9
+ {
10
+ "name": "ColumnHistogram",
11
+ "description": "Draws how the numbers of one column of a TableDataset are distributed, as bars over its range.",
12
+ "context": "HTML",
13
+ "children_context": null,
14
+ "inherits_context": false,
15
+ "accepts_children": false,
16
+ "downstream_of": [],
17
+ "not_downstream_of": [],
18
+ "text_prop": null,
19
+ "props": [
20
+ {
21
+ "key": "bind",
22
+ "kind": "STRING",
23
+ "required": false,
24
+ "description": "Where the record is written: {\"status\", \"loading\", \"ready\", \"failed\", \"empty\", \"stale\", \"error\", \"data\"}. `data` is {\"domain\": {\"min\", \"max\"}, \"bins\": [counts]}, or null for a column with no numbers. Seed it in demo_state for the preview, which reads nothing."
25
+ },
26
+ {
27
+ "key": "bins",
28
+ "kind": "FLOAT",
29
+ "required": false,
30
+ "description": "How many bars. Defaults to 32."
31
+ },
32
+ {
33
+ "key": "className",
34
+ "kind": "STRING",
35
+ "required": false,
36
+ "description": "Extra Tailwind classes appended to the element."
37
+ },
38
+ {
39
+ "key": "clearOnUnmount",
40
+ "kind": "BOOL",
41
+ "required": false,
42
+ "description": "Remove the record when this leaves the screen, instead of keeping it marked stale."
43
+ },
44
+ {
45
+ "key": "column",
46
+ "kind": "STRING",
47
+ "required": false,
48
+ "description": "The column, by its name. Nothing is read while it is unset."
49
+ },
50
+ {
51
+ "key": "height",
52
+ "kind": "STRING",
53
+ "required": false,
54
+ "description": "CSS height of the bars. Defaults to \"6rem\"."
55
+ },
56
+ {
57
+ "key": "value",
58
+ "kind": "DICT",
59
+ "required": false,
60
+ "description": "The table, a structure reference ({\"object\", \"__identifier\": \"@mikro/tabledataset\"}): typically `{args.table}`."
61
+ }
62
+ ],
63
+ "service": "mikro"
64
+ },
65
+ {
66
+ "name": "ColumnStat",
67
+ "description": "Reads how full one column of a TableDataset is and how its numbers spread, in one scan. Draws nothing.",
68
+ "context": "HTML",
69
+ "children_context": null,
70
+ "inherits_context": false,
71
+ "accepts_children": false,
72
+ "downstream_of": [],
73
+ "not_downstream_of": [],
74
+ "text_prop": null,
75
+ "props": [
76
+ {
77
+ "key": "bind",
78
+ "kind": "STRING",
79
+ "required": false,
80
+ "description": "Where the record is written: {\"status\", \"loading\", \"ready\", \"failed\", \"empty\", \"stale\", \"error\", \"data\"}. `data` is {\"rows\", \"nonNull\", \"min\", \"max\", \"mean\", \"distinct\"}; min/max/mean are null for a column with no numbers, distinct is null unless asked for. Seed it in demo_state for the preview, which reads nothing."
81
+ },
82
+ {
83
+ "key": "clearOnUnmount",
84
+ "kind": "BOOL",
85
+ "required": false,
86
+ "description": "Remove the record when this leaves the screen, instead of keeping it marked stale."
87
+ },
88
+ {
89
+ "key": "column",
90
+ "kind": "STRING",
91
+ "required": false,
92
+ "description": "The column, by its name. Nothing is read while it is unset."
93
+ },
94
+ {
95
+ "key": "distinct",
96
+ "kind": "BOOL",
97
+ "required": false,
98
+ "description": "Also count the distinct values. A full scan of the column: leave it off unless shown."
99
+ },
100
+ {
101
+ "key": "value",
102
+ "kind": "DICT",
103
+ "required": false,
104
+ "description": "The table, a structure reference ({\"object\", \"__identifier\": \"@mikro/tabledataset\"}): typically `{args.table}`."
105
+ }
106
+ ],
107
+ "service": "mikro"
108
+ },
109
+ {
110
+ "name": "MikroScene",
111
+ "description": "One mikro scene and its stores, shared by the MikroScene parts inside it. One per blok is the supported case: a second scene's viewport also hears the window's keyboard.",
112
+ "context": "HTML",
113
+ "children_context": null,
114
+ "inherits_context": false,
115
+ "accepts_children": true,
116
+ "downstream_of": [],
117
+ "not_downstream_of": [
118
+ "MikroScene"
119
+ ],
120
+ "text_prop": null,
121
+ "props": [
122
+ {
123
+ "key": "bind",
124
+ "kind": "ANY",
125
+ "required": false,
126
+ "description": "Where the selection is written: {\"annotation\", \"lens\"} (structure references), or null when nothing is selected."
127
+ },
128
+ {
129
+ "key": "bindWorld",
130
+ "kind": "STRING",
131
+ "required": false,
132
+ "description": "Where the scene's world coordinate system is written, a structure reference ({\"object\", \"__identifier\": \"@mikro/coordinatesystem\"}), once the scene has loaded. What a picker of what this scene can show asks the server with: `lenses(filters: {placeableIn: {space: $world}})`, `$world` read from this path. It writes a STRING: the local is a STRING, ENUM or DATE port."
133
+ },
134
+ {
135
+ "key": "className",
136
+ "kind": "STRING",
137
+ "required": false,
138
+ "description": "Extra Tailwind classes appended to the element."
139
+ },
140
+ {
141
+ "key": "live",
142
+ "kind": "BOOL",
143
+ "required": false,
144
+ "description": "Follow the scene as others change it, an action writing a layer included. Defaults to true."
145
+ },
146
+ {
147
+ "key": "onAnnotation",
148
+ "kind": "CALLBACK",
149
+ "required": false,
150
+ "description": "Runs when a shape is drawn. event.annotation, event.kind, event.lens and event.descriptors: the shape and the lens under the probe as structure references (lens null when none was under it).",
151
+ "event": [
152
+ {
153
+ "key": "annotation",
154
+ "kind": "DICT",
155
+ "description": "The drawn shape, as a structure reference."
156
+ },
157
+ {
158
+ "key": "kind",
159
+ "kind": "STRING",
160
+ "description": "The kind of shape."
161
+ },
162
+ {
163
+ "key": "lens",
164
+ "kind": "DICT",
165
+ "description": "The lens under the probe, or null."
166
+ },
167
+ {
168
+ "key": "descriptors",
169
+ "kind": "ANY",
170
+ "description": "The shape's descriptors, or null."
171
+ }
172
+ ]
173
+ },
174
+ {
175
+ "key": "onLayersChange",
176
+ "kind": "CALLBACK",
177
+ "required": false,
178
+ "description": "Runs when a layer comes, goes or draws another lens. event.layers and event.added; an action here that writes layers is told again, `added` names the new ones.",
179
+ "event": [
180
+ {
181
+ "key": "layers",
182
+ "kind": "LIST",
183
+ "description": "The layers now drawn."
184
+ },
185
+ {
186
+ "key": "added",
187
+ "kind": "LIST",
188
+ "description": "The layers that are new."
189
+ }
190
+ ]
191
+ },
192
+ {
193
+ "key": "onPick",
194
+ "kind": "CALLBACK",
195
+ "required": false,
196
+ "description": "Runs on a deliberate click that reads a voxel (probe mode, not a vertex being placed). event.layer, event.world, event.voxel and event.lens.",
197
+ "event": [
198
+ {
199
+ "key": "layer",
200
+ "kind": "STRING",
201
+ "description": "The layer read."
202
+ },
203
+ {
204
+ "key": "world",
205
+ "kind": "LIST",
206
+ "description": "The world point, or null."
207
+ },
208
+ {
209
+ "key": "voxel",
210
+ "kind": "LIST",
211
+ "description": "The voxel read."
212
+ },
213
+ {
214
+ "key": "lens",
215
+ "kind": "DICT",
216
+ "description": "The lens, or null."
217
+ }
218
+ ]
219
+ },
220
+ {
221
+ "key": "onSelect",
222
+ "kind": "CALLBACK",
223
+ "required": false,
224
+ "description": "Runs when the user changes the selection (the selection a draw makes is reported as onAnnotation, not here). event.annotation, event.annotations and event.lens.",
225
+ "event": [
226
+ {
227
+ "key": "annotation",
228
+ "kind": "DICT",
229
+ "description": "The selected annotation."
230
+ },
231
+ {
232
+ "key": "annotations",
233
+ "kind": "LIST",
234
+ "description": "Every selected annotation."
235
+ },
236
+ {
237
+ "key": "lens",
238
+ "kind": "DICT",
239
+ "description": "The lens under the probe, or null."
240
+ }
241
+ ]
242
+ },
243
+ {
244
+ "key": "value",
245
+ "kind": "DICT",
246
+ "required": false,
247
+ "description": "The scene, a structure reference: typically `{args.scene}`."
248
+ }
249
+ ],
250
+ "service": "mikro"
251
+ },
252
+ {
253
+ "name": "MikroSceneAnnotations",
254
+ "description": "The scene's annotation layers, each card with its shapes and the selection in it. Placed inside a MikroScene.",
255
+ "context": "HTML",
256
+ "children_context": null,
257
+ "inherits_context": false,
258
+ "accepts_children": false,
259
+ "downstream_of": [
260
+ "MikroScene"
261
+ ],
262
+ "not_downstream_of": [],
263
+ "text_prop": null,
264
+ "props": [
265
+ {
266
+ "key": "className",
267
+ "kind": "STRING",
268
+ "required": false,
269
+ "description": "Extra Tailwind classes appended to the element."
270
+ },
271
+ {
272
+ "key": "height",
273
+ "kind": "STRING",
274
+ "required": false,
275
+ "description": "CSS height of the panel."
276
+ }
277
+ ],
278
+ "service": "mikro"
279
+ },
280
+ {
281
+ "name": "MikroSceneLayers",
282
+ "description": "The scene's layers, as the scene page's Layers tab lists them. Placed inside a MikroScene.",
283
+ "context": "HTML",
284
+ "children_context": null,
285
+ "inherits_context": false,
286
+ "accepts_children": false,
287
+ "downstream_of": [
288
+ "MikroScene"
289
+ ],
290
+ "not_downstream_of": [],
291
+ "text_prop": null,
292
+ "props": [
293
+ {
294
+ "key": "className",
295
+ "kind": "STRING",
296
+ "required": false,
297
+ "description": "Extra Tailwind classes appended to the element."
298
+ },
299
+ {
300
+ "key": "height",
301
+ "kind": "STRING",
302
+ "required": false,
303
+ "description": "CSS height of the panel."
304
+ }
305
+ ],
306
+ "service": "mikro"
307
+ },
308
+ {
309
+ "name": "MikroSceneProbe",
310
+ "description": "What the probe reads under the cursor. Placed inside a MikroScene.",
311
+ "context": "HTML",
312
+ "children_context": null,
313
+ "inherits_context": false,
314
+ "accepts_children": false,
315
+ "downstream_of": [
316
+ "MikroScene"
317
+ ],
318
+ "not_downstream_of": [],
319
+ "text_prop": null,
320
+ "props": [
321
+ {
322
+ "key": "className",
323
+ "kind": "STRING",
324
+ "required": false,
325
+ "description": "Extra Tailwind classes appended to the element."
326
+ },
327
+ {
328
+ "key": "height",
329
+ "kind": "STRING",
330
+ "required": false,
331
+ "description": "CSS height of the panel."
332
+ }
333
+ ],
334
+ "service": "mikro"
335
+ },
336
+ {
337
+ "name": "MikroSceneViewport",
338
+ "description": "The scene's interactive view: draw, probe, navigate. Placed inside a MikroScene.",
339
+ "context": "HTML",
340
+ "children_context": null,
341
+ "inherits_context": false,
342
+ "accepts_children": false,
343
+ "downstream_of": [
344
+ "MikroScene"
345
+ ],
346
+ "not_downstream_of": [],
347
+ "text_prop": null,
348
+ "props": [
349
+ {
350
+ "key": "cards",
351
+ "kind": "BOOL",
352
+ "required": false,
353
+ "description": "Open a shape's action card on a click or a draw. Defaults to false here: the blok decides what a shape does."
354
+ },
355
+ {
356
+ "key": "className",
357
+ "kind": "STRING",
358
+ "required": false,
359
+ "description": "Extra Tailwind classes appended to the element."
360
+ },
361
+ {
362
+ "key": "height",
363
+ "kind": "STRING",
364
+ "required": false,
365
+ "description": "CSS height of the viewport. Defaults to \"32rem\"."
366
+ },
367
+ {
368
+ "key": "minHeight",
369
+ "kind": "STRING",
370
+ "required": false,
371
+ "description": "CSS minimum height of the viewport."
372
+ },
373
+ {
374
+ "key": "sliders",
375
+ "kind": "BOOL",
376
+ "required": false,
377
+ "description": "Show the Z and dimension sliders. Defaults to true."
378
+ }
379
+ ],
380
+ "service": "mikro"
381
+ },
382
+ {
383
+ "name": "TableColumns",
384
+ "description": "Reads what a TableDataset's columns are. Draws nothing: a picker or a foreach reads the record.",
385
+ "context": "HTML",
386
+ "children_context": null,
387
+ "inherits_context": false,
388
+ "accepts_children": false,
389
+ "downstream_of": [],
390
+ "not_downstream_of": [],
391
+ "text_prop": null,
392
+ "props": [
393
+ {
394
+ "key": "bind",
395
+ "kind": "STRING",
396
+ "required": false,
397
+ "description": "Where the record is written: {\"status\", \"loading\", \"ready\", \"failed\", \"empty\", \"stale\", \"error\", \"data\"}. `data` is the list of columns, in order: {\"name\", \"longName\", \"description\", \"dtype\", \"role\", \"unit\", \"axisType\"}. Seed it in demo_state for the preview, which reads nothing."
398
+ },
399
+ {
400
+ "key": "clearOnUnmount",
401
+ "kind": "BOOL",
402
+ "required": false,
403
+ "description": "Remove the record when this leaves the screen, instead of keeping it marked stale."
404
+ },
405
+ {
406
+ "key": "role",
407
+ "kind": "ANY",
408
+ "required": false,
409
+ "description": "Only the columns of this role (or of any of these roles)."
410
+ },
411
+ {
412
+ "key": "value",
413
+ "kind": "DICT",
414
+ "required": false,
415
+ "description": "The table, a structure reference ({\"object\", \"__identifier\": \"@mikro/tabledataset\"}): typically `{args.table}`."
416
+ }
417
+ ],
418
+ "service": "mikro"
419
+ },
420
+ {
421
+ "name": "TableRows",
422
+ "description": "Reads one page of a TableDataset's rows, filtered and sorted. Draws nothing: a foreach or a Table reads the record.",
423
+ "context": "HTML",
424
+ "children_context": null,
425
+ "inherits_context": false,
426
+ "accepts_children": false,
427
+ "downstream_of": [],
428
+ "not_downstream_of": [],
429
+ "text_prop": null,
430
+ "props": [
431
+ {
432
+ "key": "bind",
433
+ "kind": "STRING",
434
+ "required": false,
435
+ "description": "Where the record is written: {\"status\", \"loading\", \"ready\", \"failed\", \"empty\", \"stale\", \"error\", \"data\"}. `data` is {\"rows\": [{column: value}], \"total\"}: total counts every row the conditions keep. Seed it in demo_state for the preview, which reads nothing."
436
+ },
437
+ {
438
+ "key": "clearOnUnmount",
439
+ "kind": "BOOL",
440
+ "required": false,
441
+ "description": "Remove the record when this leaves the screen, instead of keeping it marked stale."
442
+ },
443
+ {
444
+ "key": "columns",
445
+ "kind": "LIST",
446
+ "required": false,
447
+ "description": "The columns to read, by name. Defaults to every column."
448
+ },
449
+ {
450
+ "key": "descending",
451
+ "kind": "BOOL",
452
+ "required": false,
453
+ "description": "Sort from the largest."
454
+ },
455
+ {
456
+ "key": "limit",
457
+ "kind": "FLOAT",
458
+ "required": false,
459
+ "description": "Rows per page. Defaults to 50, at most 1000."
460
+ },
461
+ {
462
+ "key": "offset",
463
+ "kind": "FLOAT",
464
+ "required": false,
465
+ "description": "Rows to skip: the page is offset / limit."
466
+ },
467
+ {
468
+ "key": "orderBy",
469
+ "kind": "STRING",
470
+ "required": false,
471
+ "description": "The column to sort by."
472
+ },
473
+ {
474
+ "key": "value",
475
+ "kind": "DICT",
476
+ "required": false,
477
+ "description": "The table, a structure reference ({\"object\", \"__identifier\": \"@mikro/tabledataset\"}): typically `{args.table}`."
478
+ },
479
+ {
480
+ "key": "where",
481
+ "kind": "LIST",
482
+ "required": false,
483
+ "description": "Conditions every row must meet: [{\"column\", \"op\", \"value\"}], op one of eq, ne, gt, gte, lt, lte, in, contains, isNull, notNull (default eq). \"in\" takes a list; \"contains\" matches text, ignoring case."
484
+ }
485
+ ],
486
+ "service": "mikro"
487
+ }
488
+ ]
489
+ };