@arkitektio/bsx 0.0.0-stage → 0.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 (970) hide show
  1. package/README.md +36 -2
  2. package/dist/bsx/analyze.d.ts +30 -0
  3. package/dist/bsx/analyze.d.ts.map +1 -0
  4. package/dist/bsx/analyze.js +47 -0
  5. package/dist/bsx/analyze.js.map +1 -0
  6. package/dist/bsx/expr.d.ts +116 -0
  7. package/dist/bsx/expr.d.ts.map +1 -0
  8. package/dist/bsx/expr.js +476 -0
  9. package/dist/bsx/expr.js.map +1 -0
  10. package/dist/bsx/index.d.ts +9 -0
  11. package/dist/bsx/index.d.ts.map +1 -0
  12. package/dist/bsx/index.js +9 -0
  13. package/dist/bsx/index.js.map +1 -0
  14. package/dist/bsx/infer.d.ts +77 -0
  15. package/dist/bsx/infer.d.ts.map +1 -0
  16. package/dist/bsx/infer.js +279 -0
  17. package/dist/bsx/infer.js.map +1 -0
  18. package/dist/bsx/language.d.ts +106 -0
  19. package/dist/bsx/language.d.ts.map +1 -0
  20. package/dist/bsx/language.js +717 -0
  21. package/dist/bsx/language.js.map +1 -0
  22. package/dist/bsx/parse.d.ts +77 -0
  23. package/dist/bsx/parse.d.ts.map +1 -0
  24. package/dist/bsx/parse.js +801 -0
  25. package/dist/bsx/parse.js.map +1 -0
  26. package/dist/bsx/partial.d.ts +37 -0
  27. package/dist/bsx/partial.d.ts.map +1 -0
  28. package/dist/bsx/partial.js +184 -0
  29. package/dist/bsx/partial.js.map +1 -0
  30. package/dist/bsx/print.d.ts +21 -0
  31. package/dist/bsx/print.d.ts.map +1 -0
  32. package/dist/bsx/print.js +407 -0
  33. package/dist/bsx/print.js.map +1 -0
  34. package/dist/bsx/references.d.ts +155 -0
  35. package/dist/bsx/references.d.ts.map +1 -0
  36. package/dist/bsx/references.js +971 -0
  37. package/dist/bsx/references.js.map +1 -0
  38. package/dist/bsx/source.d.ts +34 -0
  39. package/dist/bsx/source.d.ts.map +1 -0
  40. package/dist/bsx/source.js +53 -0
  41. package/dist/bsx/source.js.map +1 -0
  42. package/dist/cache/keyedStore.d.ts +44 -0
  43. package/dist/cache/keyedStore.d.ts.map +1 -0
  44. package/dist/cache/keyedStore.js +84 -0
  45. package/dist/cache/keyedStore.js.map +1 -0
  46. package/dist/editor/BsxEditor.d.ts +19 -0
  47. package/dist/editor/BsxEditor.d.ts.map +1 -0
  48. package/dist/editor/BsxEditor.js +214 -0
  49. package/dist/editor/BsxEditor.js.map +1 -0
  50. package/dist/editor.d.ts +2 -0
  51. package/dist/editor.d.ts.map +1 -0
  52. package/dist/editor.js +3 -0
  53. package/dist/editor.js.map +1 -0
  54. package/dist/index.d.ts +6 -0
  55. package/dist/index.d.ts.map +1 -0
  56. package/dist/index.js +6 -0
  57. package/dist/index.js.map +1 -0
  58. package/dist/logo/CachedBlokLogo.d.ts +38 -0
  59. package/dist/logo/CachedBlokLogo.d.ts.map +1 -0
  60. package/dist/logo/CachedBlokLogo.js +84 -0
  61. package/dist/logo/CachedBlokLogo.js.map +1 -0
  62. package/dist/logo/SourceLogo.d.ts +8 -0
  63. package/dist/logo/SourceLogo.d.ts.map +1 -0
  64. package/dist/logo/SourceLogo.js +40 -0
  65. package/dist/logo/SourceLogo.js.map +1 -0
  66. package/dist/logo/actionLogoSource.d.ts +18 -0
  67. package/dist/logo/actionLogoSource.d.ts.map +1 -0
  68. package/dist/logo/actionLogoSource.js +20 -0
  69. package/dist/logo/actionLogoSource.js.map +1 -0
  70. package/dist/logo/demo.d.ts +8 -0
  71. package/dist/logo/demo.d.ts.map +1 -0
  72. package/dist/logo/demo.js +20 -0
  73. package/dist/logo/demo.js.map +1 -0
  74. package/dist/logo/logoCache.d.ts +44 -0
  75. package/dist/logo/logoCache.d.ts.map +1 -0
  76. package/dist/logo/logoCache.js +121 -0
  77. package/dist/logo/logoCache.js.map +1 -0
  78. package/dist/platform.d.ts +83 -0
  79. package/dist/platform.d.ts.map +1 -0
  80. package/dist/platform.js +52 -0
  81. package/dist/platform.js.map +1 -0
  82. package/dist/preview/CachedBlokPreview.d.ts +49 -0
  83. package/dist/preview/CachedBlokPreview.d.ts.map +1 -0
  84. package/dist/preview/CachedBlokPreview.js +200 -0
  85. package/dist/preview/CachedBlokPreview.js.map +1 -0
  86. package/dist/preview/previewCache.d.ts +18 -0
  87. package/dist/preview/previewCache.d.ts.map +1 -0
  88. package/dist/preview/previewCache.js +50 -0
  89. package/dist/preview/previewCache.js.map +1 -0
  90. package/dist/preview/queue.d.ts +17 -0
  91. package/dist/preview/queue.d.ts.map +1 -0
  92. package/dist/preview/queue.js +67 -0
  93. package/dist/preview/queue.js.map +1 -0
  94. package/dist/preview/snapshot.d.ts +40 -0
  95. package/dist/preview/snapshot.d.ts.map +1 -0
  96. package/dist/preview/snapshot.js +211 -0
  97. package/dist/preview/snapshot.js.map +1 -0
  98. package/dist/preview/snapshotMode.d.ts +31 -0
  99. package/dist/preview/snapshotMode.d.ts.map +1 -0
  100. package/dist/preview/snapshotMode.js +19 -0
  101. package/dist/preview/snapshotMode.js.map +1 -0
  102. package/dist/renderer/BlokComponentHost.d.ts +46 -0
  103. package/dist/renderer/BlokComponentHost.d.ts.map +1 -0
  104. package/dist/renderer/BlokComponentHost.js +83 -0
  105. package/dist/renderer/BlokComponentHost.js.map +1 -0
  106. package/dist/renderer/BlokDebugState.d.ts +7 -0
  107. package/dist/renderer/BlokDebugState.d.ts.map +1 -0
  108. package/dist/renderer/BlokDebugState.js +19 -0
  109. package/dist/renderer/BlokDebugState.js.map +1 -0
  110. package/dist/renderer/BlokRenderer.d.ts +57 -0
  111. package/dist/renderer/BlokRenderer.d.ts.map +1 -0
  112. package/dist/renderer/BlokRenderer.js +136 -0
  113. package/dist/renderer/BlokRenderer.js.map +1 -0
  114. package/dist/renderer/assets.d.ts +85 -0
  115. package/dist/renderer/assets.d.ts.map +1 -0
  116. package/dist/renderer/assets.js +99 -0
  117. package/dist/renderer/assets.js.map +1 -0
  118. package/dist/renderer/baseCatalog.d.ts +12 -0
  119. package/dist/renderer/baseCatalog.d.ts.map +1 -0
  120. package/dist/renderer/baseCatalog.js +13 -0
  121. package/dist/renderer/baseCatalog.js.map +1 -0
  122. package/dist/renderer/base_v1.json +1541 -0
  123. package/dist/renderer/bloks/control.d.ts +25 -0
  124. package/dist/renderer/bloks/control.d.ts.map +1 -0
  125. package/dist/renderer/bloks/control.js +294 -0
  126. package/dist/renderer/bloks/control.js.map +1 -0
  127. package/dist/renderer/bloks/data.d.ts +28 -0
  128. package/dist/renderer/bloks/data.d.ts.map +1 -0
  129. package/dist/renderer/bloks/data.js +409 -0
  130. package/dist/renderer/bloks/data.js.map +1 -0
  131. package/dist/renderer/bloks/feedback.d.ts +9 -0
  132. package/dist/renderer/bloks/feedback.d.ts.map +1 -0
  133. package/dist/renderer/bloks/feedback.js +128 -0
  134. package/dist/renderer/bloks/feedback.js.map +1 -0
  135. package/dist/renderer/bloks/forms.d.ts +43 -0
  136. package/dist/renderer/bloks/forms.d.ts.map +1 -0
  137. package/dist/renderer/bloks/forms.js +777 -0
  138. package/dist/renderer/bloks/forms.js.map +1 -0
  139. package/dist/renderer/bloks/html.d.ts +10 -0
  140. package/dist/renderer/bloks/html.d.ts.map +1 -0
  141. package/dist/renderer/bloks/html.js +99 -0
  142. package/dist/renderer/bloks/html.js.map +1 -0
  143. package/dist/renderer/bloks/icons.d.ts +263 -0
  144. package/dist/renderer/bloks/icons.d.ts.map +1 -0
  145. package/dist/renderer/bloks/icons.js +173 -0
  146. package/dist/renderer/bloks/icons.js.map +1 -0
  147. package/dist/renderer/bloks/index.d.ts +19 -0
  148. package/dist/renderer/bloks/index.d.ts.map +1 -0
  149. package/dist/renderer/bloks/index.js +30 -0
  150. package/dist/renderer/bloks/index.js.map +1 -0
  151. package/dist/renderer/bloks/inspector/Inspector.d.ts +2 -0
  152. package/dist/renderer/bloks/inspector/Inspector.d.ts.map +1 -0
  153. package/dist/renderer/bloks/inspector/Inspector.js +14 -0
  154. package/dist/renderer/bloks/inspector/Inspector.js.map +1 -0
  155. package/dist/renderer/bloks/layout.d.ts +16 -0
  156. package/dist/renderer/bloks/layout.d.ts.map +1 -0
  157. package/dist/renderer/bloks/layout.js +345 -0
  158. package/dist/renderer/bloks/layout.js.map +1 -0
  159. package/dist/renderer/bloks/logo/index.d.ts +26 -0
  160. package/dist/renderer/bloks/logo/index.d.ts.map +1 -0
  161. package/dist/renderer/bloks/logo/index.js +361 -0
  162. package/dist/renderer/bloks/logo/index.js.map +1 -0
  163. package/dist/renderer/bloks/logo/logo.fixture.json +323 -0
  164. package/dist/renderer/bloks/navigation.d.ts +29 -0
  165. package/dist/renderer/bloks/navigation.d.ts.map +1 -0
  166. package/dist/renderer/bloks/navigation.js +421 -0
  167. package/dist/renderer/bloks/navigation.js.map +1 -0
  168. package/dist/renderer/bloks/overlays.d.ts +56 -0
  169. package/dist/renderer/bloks/overlays.d.ts.map +1 -0
  170. package/dist/renderer/bloks/overlays.js +391 -0
  171. package/dist/renderer/bloks/overlays.js.map +1 -0
  172. package/dist/renderer/bloks/run/components.d.ts +5 -0
  173. package/dist/renderer/bloks/run/components.d.ts.map +1 -0
  174. package/dist/renderer/bloks/run/components.js +121 -0
  175. package/dist/renderer/bloks/run/components.js.map +1 -0
  176. package/dist/renderer/bloks/run/host.d.ts +38 -0
  177. package/dist/renderer/bloks/run/host.d.ts.map +1 -0
  178. package/dist/renderer/bloks/run/host.js +21 -0
  179. package/dist/renderer/bloks/run/host.js.map +1 -0
  180. package/dist/renderer/bloks/run/index.d.ts +4 -0
  181. package/dist/renderer/bloks/run/index.d.ts.map +1 -0
  182. package/dist/renderer/bloks/run/index.js +4 -0
  183. package/dist/renderer/bloks/run/index.js.map +1 -0
  184. package/dist/renderer/bloks/run/math.d.ts +50 -0
  185. package/dist/renderer/bloks/run/math.d.ts.map +1 -0
  186. package/dist/renderer/bloks/run/math.js +79 -0
  187. package/dist/renderer/bloks/run/math.js.map +1 -0
  188. package/dist/renderer/bloks/scene/Model.d.ts +3 -0
  189. package/dist/renderer/bloks/scene/Model.d.ts.map +1 -0
  190. package/dist/renderer/bloks/scene/Model.js +367 -0
  191. package/dist/renderer/bloks/scene/Model.js.map +1 -0
  192. package/dist/renderer/bloks/scene/Scene.d.ts +46 -0
  193. package/dist/renderer/bloks/scene/Scene.d.ts.map +1 -0
  194. package/dist/renderer/bloks/scene/Scene.js +467 -0
  195. package/dist/renderer/bloks/scene/Scene.js.map +1 -0
  196. package/dist/renderer/bloks/scene/Transform.d.ts +2 -0
  197. package/dist/renderer/bloks/scene/Transform.d.ts.map +1 -0
  198. package/dist/renderer/bloks/scene/Transform.js +83 -0
  199. package/dist/renderer/bloks/scene/Transform.js.map +1 -0
  200. package/dist/renderer/bloks/scene/bindings.d.ts +9 -0
  201. package/dist/renderer/bloks/scene/bindings.d.ts.map +1 -0
  202. package/dist/renderer/bloks/scene/bindings.js +387 -0
  203. package/dist/renderer/bloks/scene/bindings.js.map +1 -0
  204. package/dist/renderer/bloks/scene/colour.d.ts +23 -0
  205. package/dist/renderer/bloks/scene/colour.d.ts.map +1 -0
  206. package/dist/renderer/bloks/scene/colour.js +45 -0
  207. package/dist/renderer/bloks/scene/colour.js.map +1 -0
  208. package/dist/renderer/bloks/scene/context.d.ts +115 -0
  209. package/dist/renderer/bloks/scene/context.d.ts.map +1 -0
  210. package/dist/renderer/bloks/scene/context.js +120 -0
  211. package/dist/renderer/bloks/scene/context.js.map +1 -0
  212. package/dist/renderer/bloks/scene/host.d.ts +36 -0
  213. package/dist/renderer/bloks/scene/host.d.ts.map +1 -0
  214. package/dist/renderer/bloks/scene/host.js +41 -0
  215. package/dist/renderer/bloks/scene/host.js.map +1 -0
  216. package/dist/renderer/bloks/scene/index.d.ts +10 -0
  217. package/dist/renderer/bloks/scene/index.d.ts.map +1 -0
  218. package/dist/renderer/bloks/scene/index.js +30 -0
  219. package/dist/renderer/bloks/scene/index.js.map +1 -0
  220. package/dist/renderer/bloks/scene/interaction.d.ts +3 -0
  221. package/dist/renderer/bloks/scene/interaction.d.ts.map +1 -0
  222. package/dist/renderer/bloks/scene/interaction.js +166 -0
  223. package/dist/renderer/bloks/scene/interaction.js.map +1 -0
  224. package/dist/renderer/bloks/scene/loadModel.d.ts +35 -0
  225. package/dist/renderer/bloks/scene/loadModel.d.ts.map +1 -0
  226. package/dist/renderer/bloks/scene/loadModel.js +106 -0
  227. package/dist/renderer/bloks/scene/loadModel.js.map +1 -0
  228. package/dist/renderer/bloks/scene/scene.fixture.json +203 -0
  229. package/dist/renderer/bloks/scene/scope.fixture.glb +0 -0
  230. package/dist/renderer/bloks/shared/index.d.ts +6 -0
  231. package/dist/renderer/bloks/shared/index.d.ts.map +1 -0
  232. package/dist/renderer/bloks/shared/index.js +6 -0
  233. package/dist/renderer/bloks/shared/index.js.map +1 -0
  234. package/dist/renderer/bloks/shared/props.d.ts +72 -0
  235. package/dist/renderer/bloks/shared/props.d.ts.map +1 -0
  236. package/dist/renderer/bloks/shared/props.js +152 -0
  237. package/dist/renderer/bloks/shared/props.js.map +1 -0
  238. package/dist/renderer/bloks/shared/render.d.ts +20 -0
  239. package/dist/renderer/bloks/shared/render.d.ts.map +1 -0
  240. package/dist/renderer/bloks/shared/render.js +42 -0
  241. package/dist/renderer/bloks/shared/render.js.map +1 -0
  242. package/dist/renderer/bloks/shared/schemas.d.ts +226 -0
  243. package/dist/renderer/bloks/shared/schemas.d.ts.map +1 -0
  244. package/dist/renderer/bloks/shared/schemas.js +174 -0
  245. package/dist/renderer/bloks/shared/schemas.js.map +1 -0
  246. package/dist/renderer/bloks/shared/state.d.ts +40 -0
  247. package/dist/renderer/bloks/shared/state.d.ts.map +1 -0
  248. package/dist/renderer/bloks/shared/state.js +49 -0
  249. package/dist/renderer/bloks/shared/state.js.map +1 -0
  250. package/dist/renderer/bloks/shared/throttle.d.ts +17 -0
  251. package/dist/renderer/bloks/shared/throttle.d.ts.map +1 -0
  252. package/dist/renderer/bloks/shared/throttle.js +38 -0
  253. package/dist/renderer/bloks/shared/throttle.js.map +1 -0
  254. package/dist/renderer/bloks/testing.d.ts +29 -0
  255. package/dist/renderer/bloks/testing.d.ts.map +1 -0
  256. package/dist/renderer/bloks/testing.js +32 -0
  257. package/dist/renderer/bloks/testing.js.map +1 -0
  258. package/dist/renderer/bloks/toast.d.ts +32 -0
  259. package/dist/renderer/bloks/toast.d.ts.map +1 -0
  260. package/dist/renderer/bloks/toast.js +89 -0
  261. package/dist/renderer/bloks/toast.js.map +1 -0
  262. package/dist/renderer/bloks/typography.d.ts +25 -0
  263. package/dist/renderer/bloks/typography.d.ts.map +1 -0
  264. package/dist/renderer/bloks/typography.js +188 -0
  265. package/dist/renderer/bloks/typography.js.map +1 -0
  266. package/dist/renderer/catalog.d.ts +42 -0
  267. package/dist/renderer/catalog.d.ts.map +1 -0
  268. package/dist/renderer/catalog.js +83 -0
  269. package/dist/renderer/catalog.js.map +1 -0
  270. package/dist/renderer/declarations.d.ts +102 -0
  271. package/dist/renderer/declarations.d.ts.map +1 -0
  272. package/dist/renderer/declarations.js +159 -0
  273. package/dist/renderer/declarations.js.map +1 -0
  274. package/dist/renderer/functions/argumentSchemas.d.ts +19 -0
  275. package/dist/renderer/functions/argumentSchemas.d.ts.map +1 -0
  276. package/dist/renderer/functions/argumentSchemas.js +35 -0
  277. package/dist/renderer/functions/argumentSchemas.js.map +1 -0
  278. package/dist/renderer/functions/base.d.ts +3 -0
  279. package/dist/renderer/functions/base.d.ts.map +1 -0
  280. package/dist/renderer/functions/base.js +159 -0
  281. package/dist/renderer/functions/base.js.map +1 -0
  282. package/dist/renderer/functions/coerce.d.ts +2 -0
  283. package/dist/renderer/functions/coerce.d.ts.map +1 -0
  284. package/dist/renderer/functions/coerce.js +73 -0
  285. package/dist/renderer/functions/coerce.js.map +1 -0
  286. package/dist/renderer/functions/effects.d.ts +4 -0
  287. package/dist/renderer/functions/effects.d.ts.map +1 -0
  288. package/dist/renderer/functions/effects.js +102 -0
  289. package/dist/renderer/functions/effects.js.map +1 -0
  290. package/dist/renderer/functions/format.d.ts +2 -0
  291. package/dist/renderer/functions/format.d.ts.map +1 -0
  292. package/dist/renderer/functions/format.js +134 -0
  293. package/dist/renderer/functions/format.js.map +1 -0
  294. package/dist/renderer/functions/index.d.ts +3 -0
  295. package/dist/renderer/functions/index.d.ts.map +1 -0
  296. package/dist/renderer/functions/index.js +4 -0
  297. package/dist/renderer/functions/index.js.map +1 -0
  298. package/dist/renderer/functions/lists.d.ts +2 -0
  299. package/dist/renderer/functions/lists.d.ts.map +1 -0
  300. package/dist/renderer/functions/lists.js +139 -0
  301. package/dist/renderer/functions/lists.js.map +1 -0
  302. package/dist/renderer/functions/logic.d.ts +3 -0
  303. package/dist/renderer/functions/logic.d.ts.map +1 -0
  304. package/dist/renderer/functions/logic.js +37 -0
  305. package/dist/renderer/functions/logic.js.map +1 -0
  306. package/dist/renderer/functions/math.d.ts +4 -0
  307. package/dist/renderer/functions/math.d.ts.map +1 -0
  308. package/dist/renderer/functions/math.js +61 -0
  309. package/dist/renderer/functions/math.js.map +1 -0
  310. package/dist/renderer/functions/objects.d.ts +2 -0
  311. package/dist/renderer/functions/objects.d.ts.map +1 -0
  312. package/dist/renderer/functions/objects.js +42 -0
  313. package/dist/renderer/functions/objects.js.map +1 -0
  314. package/dist/renderer/functions/strings.d.ts +4 -0
  315. package/dist/renderer/functions/strings.d.ts.map +1 -0
  316. package/dist/renderer/functions/strings.js +115 -0
  317. package/dist/renderer/functions/strings.js.map +1 -0
  318. package/dist/renderer/functions/v2/handler.d.ts +9 -0
  319. package/dist/renderer/functions/v2/handler.d.ts.map +1 -0
  320. package/dist/renderer/functions/v2/handler.js +9 -0
  321. package/dist/renderer/functions/v2/handler.js.map +1 -0
  322. package/dist/renderer/functions/v2/index.d.ts +41 -0
  323. package/dist/renderer/functions/v2/index.d.ts.map +1 -0
  324. package/dist/renderer/functions/v2/index.js +602 -0
  325. package/dist/renderer/functions/v2/index.js.map +1 -0
  326. package/dist/renderer/modules.d.ts +21 -0
  327. package/dist/renderer/modules.d.ts.map +1 -0
  328. package/dist/renderer/modules.js +41 -0
  329. package/dist/renderer/modules.js.map +1 -0
  330. package/dist/renderer/persist.d.ts +121 -0
  331. package/dist/renderer/persist.d.ts.map +1 -0
  332. package/dist/renderer/persist.js +201 -0
  333. package/dist/renderer/persist.js.map +1 -0
  334. package/dist/renderer/runtime/checks.d.ts +13 -0
  335. package/dist/renderer/runtime/checks.d.ts.map +1 -0
  336. package/dist/renderer/runtime/checks.js +132 -0
  337. package/dist/renderer/runtime/checks.js.map +1 -0
  338. package/dist/renderer/runtime/components.d.ts +118 -0
  339. package/dist/renderer/runtime/components.d.ts.map +1 -0
  340. package/dist/renderer/runtime/components.js +158 -0
  341. package/dist/renderer/runtime/components.js.map +1 -0
  342. package/dist/renderer/runtime/context.d.ts +43 -0
  343. package/dist/renderer/runtime/context.d.ts.map +1 -0
  344. package/dist/renderer/runtime/context.js +286 -0
  345. package/dist/renderer/runtime/context.js.map +1 -0
  346. package/dist/renderer/runtime/functions.d.ts +36 -0
  347. package/dist/renderer/runtime/functions.d.ts.map +1 -0
  348. package/dist/renderer/runtime/functions.js +37 -0
  349. package/dist/renderer/runtime/functions.js.map +1 -0
  350. package/dist/renderer/runtime/hooks.d.ts +138 -0
  351. package/dist/renderer/runtime/hooks.d.ts.map +1 -0
  352. package/dist/renderer/runtime/hooks.js +535 -0
  353. package/dist/renderer/runtime/hooks.js.map +1 -0
  354. package/dist/renderer/runtime/index.d.ts +21 -0
  355. package/dist/renderer/runtime/index.d.ts.map +1 -0
  356. package/dist/renderer/runtime/index.js +26 -0
  357. package/dist/renderer/runtime/index.js.map +1 -0
  358. package/dist/renderer/runtime/nodeState.d.ts +34 -0
  359. package/dist/renderer/runtime/nodeState.d.ts.map +1 -0
  360. package/dist/renderer/runtime/nodeState.js +13 -0
  361. package/dist/renderer/runtime/nodeState.js.map +1 -0
  362. package/dist/renderer/runtime/normalize.d.ts +21 -0
  363. package/dist/renderer/runtime/normalize.d.ts.map +1 -0
  364. package/dist/renderer/runtime/normalize.js +107 -0
  365. package/dist/renderer/runtime/normalize.js.map +1 -0
  366. package/dist/renderer/runtime/port.d.ts +24 -0
  367. package/dist/renderer/runtime/port.d.ts.map +1 -0
  368. package/dist/renderer/runtime/port.js +5 -0
  369. package/dist/renderer/runtime/port.js.map +1 -0
  370. package/dist/renderer/runtime/preflight.d.ts +20 -0
  371. package/dist/renderer/runtime/preflight.d.ts.map +1 -0
  372. package/dist/renderer/runtime/preflight.js +195 -0
  373. package/dist/renderer/runtime/preflight.js.map +1 -0
  374. package/dist/renderer/runtime/reads.d.ts +101 -0
  375. package/dist/renderer/runtime/reads.d.ts.map +1 -0
  376. package/dist/renderer/runtime/reads.js +284 -0
  377. package/dist/renderer/runtime/reads.js.map +1 -0
  378. package/dist/renderer/runtime/resolution.d.ts +71 -0
  379. package/dist/renderer/runtime/resolution.d.ts.map +1 -0
  380. package/dist/renderer/runtime/resolution.js +403 -0
  381. package/dist/renderer/runtime/resolution.js.map +1 -0
  382. package/dist/renderer/runtime/resource.d.ts +71 -0
  383. package/dist/renderer/runtime/resource.d.ts.map +1 -0
  384. package/dist/renderer/runtime/resource.js +138 -0
  385. package/dist/renderer/runtime/resource.js.map +1 -0
  386. package/dist/renderer/runtime/schemas.d.ts +119 -0
  387. package/dist/renderer/runtime/schemas.d.ts.map +1 -0
  388. package/dist/renderer/runtime/schemas.js +139 -0
  389. package/dist/renderer/runtime/schemas.js.map +1 -0
  390. package/dist/renderer/runtime/scope.d.ts +41 -0
  391. package/dist/renderer/runtime/scope.d.ts.map +1 -0
  392. package/dist/renderer/runtime/scope.js +95 -0
  393. package/dist/renderer/runtime/scope.js.map +1 -0
  394. package/dist/renderer/runtime/status.d.ts +35 -0
  395. package/dist/renderer/runtime/status.d.ts.map +1 -0
  396. package/dist/renderer/runtime/status.js +23 -0
  397. package/dist/renderer/runtime/status.js.map +1 -0
  398. package/dist/renderer/runtime/task.d.ts +63 -0
  399. package/dist/renderer/runtime/task.d.ts.map +1 -0
  400. package/dist/renderer/runtime/task.js +99 -0
  401. package/dist/renderer/runtime/task.js.map +1 -0
  402. package/dist/renderer/runtime/tree.d.ts +33 -0
  403. package/dist/renderer/runtime/tree.d.ts.map +1 -0
  404. package/dist/renderer/runtime/tree.js +59 -0
  405. package/dist/renderer/runtime/tree.js.map +1 -0
  406. package/dist/renderer/runtime/types.d.ts +247 -0
  407. package/dist/renderer/runtime/types.d.ts.map +1 -0
  408. package/dist/renderer/runtime/types.js +4 -0
  409. package/dist/renderer/runtime/types.js.map +1 -0
  410. package/dist/renderer/runtime/utils.d.ts +13 -0
  411. package/dist/renderer/runtime/utils.d.ts.map +1 -0
  412. package/dist/renderer/runtime/utils.js +48 -0
  413. package/dist/renderer/runtime/utils.js.map +1 -0
  414. package/dist/renderer/runtime/viewer.d.ts +17 -0
  415. package/dist/renderer/runtime/viewer.d.ts.map +1 -0
  416. package/dist/renderer/runtime/viewer.js +15 -0
  417. package/dist/renderer/runtime/viewer.js.map +1 -0
  418. package/dist/runtime.d.ts +9 -0
  419. package/dist/runtime.d.ts.map +1 -0
  420. package/dist/runtime.js +10 -0
  421. package/dist/runtime.js.map +1 -0
  422. package/dist/scene.d.ts +3 -0
  423. package/dist/scene.d.ts.map +1 -0
  424. package/dist/scene.js +4 -0
  425. package/dist/scene.js.map +1 -0
  426. package/dist/spec/bsx_v2.json +11380 -0
  427. package/dist/spec/catalogs/base@2.json +210 -0
  428. package/dist/spec/catalogs/base@2.json.js +210 -0
  429. package/dist/spec/catalogs/html@1.json +308 -0
  430. package/dist/spec/catalogs/html@1.json.js +308 -0
  431. package/dist/spec/catalogs/logo@1.json +1673 -0
  432. package/dist/spec/catalogs/logo@1.json.js +1673 -0
  433. package/dist/spec/catalogs/scene@1.json +806 -0
  434. package/dist/spec/catalogs/scene@1.json.js +806 -0
  435. package/dist/spec/catalogs/structure@1.json +185 -0
  436. package/dist/spec/catalogs/structure@1.json.js +185 -0
  437. package/dist/spec/catalogs/ui@1.json +3696 -0
  438. package/dist/spec/catalogs/ui@1.json.js +3696 -0
  439. package/dist/spec/catalogs.d.ts +101 -0
  440. package/dist/spec/catalogs.d.ts.map +1 -0
  441. package/dist/spec/catalogs.js +131 -0
  442. package/dist/spec/catalogs.js.map +1 -0
  443. package/dist/spec/locals.d.ts +14 -0
  444. package/dist/spec/locals.d.ts.map +1 -0
  445. package/dist/spec/locals.js +29 -0
  446. package/dist/spec/locals.js.map +1 -0
  447. package/dist/spec/modules/orkestrator.json +2755 -0
  448. package/dist/spec/modules/orkestrator.json.js +2755 -0
  449. package/dist/spec/vocabulary.d.ts +209 -0
  450. package/dist/spec/vocabulary.d.ts.map +1 -0
  451. package/dist/spec/vocabulary.js +307 -0
  452. package/dist/spec/vocabulary.js.map +1 -0
  453. package/dist/spec/vocabulary.json +411 -0
  454. package/dist/spec/vocabulary.json.js +411 -0
  455. package/dist/tailwind/defaultTheme.d.ts +3 -0
  456. package/dist/tailwind/defaultTheme.d.ts.map +1 -0
  457. package/dist/tailwind/defaultTheme.js +4 -0
  458. package/dist/tailwind/defaultTheme.js.map +1 -0
  459. package/dist/tailwind/runtimeTailwind.d.ts +14 -0
  460. package/dist/tailwind/runtimeTailwind.d.ts.map +1 -0
  461. package/dist/tailwind/runtimeTailwind.js +124 -0
  462. package/dist/tailwind/runtimeTailwind.js.map +1 -0
  463. package/dist/tailwind/theme.css +137 -0
  464. package/dist/tailwind/useBlokTailwind.d.ts +5 -0
  465. package/dist/tailwind/useBlokTailwind.d.ts.map +1 -0
  466. package/dist/tailwind/useBlokTailwind.js +74 -0
  467. package/dist/tailwind/useBlokTailwind.js.map +1 -0
  468. package/dist/tailwind.d.ts +3 -0
  469. package/dist/tailwind.d.ts.map +1 -0
  470. package/dist/tailwind.js +4 -0
  471. package/dist/tailwind.js.map +1 -0
  472. package/dist/vendor/core/data/scene/camera/navigateButtons.d.ts +15 -0
  473. package/dist/vendor/core/data/scene/camera/navigateButtons.d.ts.map +1 -0
  474. package/dist/vendor/core/data/scene/camera/navigateButtons.js +15 -0
  475. package/dist/vendor/core/data/scene/camera/navigateButtons.js.map +1 -0
  476. package/dist/vendor/core/dialogs/PageDialogHost.d.ts +5 -0
  477. package/dist/vendor/core/dialogs/PageDialogHost.d.ts.map +1 -0
  478. package/dist/vendor/core/dialogs/PageDialogHost.js +32 -0
  479. package/dist/vendor/core/dialogs/PageDialogHost.js.map +1 -0
  480. package/dist/vendor/core/model/affine.d.ts +44 -0
  481. package/dist/vendor/core/model/affine.d.ts.map +1 -0
  482. package/dist/vendor/core/model/affine.js +94 -0
  483. package/dist/vendor/core/model/affine.js.map +1 -0
  484. package/dist/vendor/core/model/glb.d.ts +75 -0
  485. package/dist/vendor/core/model/glb.d.ts.map +1 -0
  486. package/dist/vendor/core/model/glb.js +478 -0
  487. package/dist/vendor/core/model/glb.js.map +1 -0
  488. package/dist/vendor/core/model/joints.d.ts +26 -0
  489. package/dist/vendor/core/model/joints.d.ts.map +1 -0
  490. package/dist/vendor/core/model/joints.js +44 -0
  491. package/dist/vendor/core/model/joints.js.map +1 -0
  492. package/dist/vendor/core/model/motion.d.ts +65 -0
  493. package/dist/vendor/core/model/motion.d.ts.map +1 -0
  494. package/dist/vendor/core/model/motion.js +89 -0
  495. package/dist/vendor/core/model/motion.js.map +1 -0
  496. package/dist/vendor/core/model/testing.d.ts +7 -0
  497. package/dist/vendor/core/model/testing.d.ts.map +1 -0
  498. package/dist/vendor/core/model/testing.js +54 -0
  499. package/dist/vendor/core/model/testing.js.map +1 -0
  500. package/dist/vendor/core/model/units.d.ts +21 -0
  501. package/dist/vendor/core/model/units.d.ts.map +1 -0
  502. package/dist/vendor/core/model/units.js +107 -0
  503. package/dist/vendor/core/model/units.js.map +1 -0
  504. package/dist/vendor/core/model/writers.d.ts +24 -0
  505. package/dist/vendor/core/model/writers.d.ts.map +1 -0
  506. package/dist/vendor/core/model/writers.js +45 -0
  507. package/dist/vendor/core/model/writers.js.map +1 -0
  508. package/dist/vendor/core/ui/AsyncBoundary.d.ts +14 -0
  509. package/dist/vendor/core/ui/AsyncBoundary.d.ts.map +1 -0
  510. package/dist/vendor/core/ui/AsyncBoundary.js +42 -0
  511. package/dist/vendor/core/ui/AsyncBoundary.js.map +1 -0
  512. package/dist/vendor/core/ui/ChromeSurface.d.ts +16 -0
  513. package/dist/vendor/core/ui/ChromeSurface.d.ts.map +1 -0
  514. package/dist/vendor/core/ui/ChromeSurface.js +44 -0
  515. package/dist/vendor/core/ui/ChromeSurface.js.map +1 -0
  516. package/dist/vendor/core/ui/accordion.d.ts +8 -0
  517. package/dist/vendor/core/ui/accordion.d.ts.map +1 -0
  518. package/dist/vendor/core/ui/accordion.js +19 -0
  519. package/dist/vendor/core/ui/accordion.js.map +1 -0
  520. package/dist/vendor/core/ui/actionPlan.d.ts +54 -0
  521. package/dist/vendor/core/ui/actionPlan.d.ts.map +1 -0
  522. package/dist/vendor/core/ui/actionPlan.js +101 -0
  523. package/dist/vendor/core/ui/actionPlan.js.map +1 -0
  524. package/dist/vendor/core/ui/alert-dialog.d.ts +19 -0
  525. package/dist/vendor/core/ui/alert-dialog.d.ts.map +1 -0
  526. package/dist/vendor/core/ui/alert-dialog.js +50 -0
  527. package/dist/vendor/core/ui/alert-dialog.js.map +1 -0
  528. package/dist/vendor/core/ui/alert.d.ts +11 -0
  529. package/dist/vendor/core/ui/alert.d.ts.map +1 -0
  530. package/dist/vendor/core/ui/alert.js +29 -0
  531. package/dist/vendor/core/ui/alert.js.map +1 -0
  532. package/dist/vendor/core/ui/aspect-ratio.d.ts +4 -0
  533. package/dist/vendor/core/ui/aspect-ratio.d.ts.map +1 -0
  534. package/dist/vendor/core/ui/aspect-ratio.js +8 -0
  535. package/dist/vendor/core/ui/aspect-ratio.js.map +1 -0
  536. package/dist/vendor/core/ui/avatar.d.ts +12 -0
  537. package/dist/vendor/core/ui/avatar.d.ts.map +1 -0
  538. package/dist/vendor/core/ui/avatar.js +24 -0
  539. package/dist/vendor/core/ui/avatar.js.map +1 -0
  540. package/dist/vendor/core/ui/badge.d.ts +10 -0
  541. package/dist/vendor/core/ui/badge.d.ts.map +1 -0
  542. package/dist/vendor/core/ui/badge.js +26 -0
  543. package/dist/vendor/core/ui/badge.js.map +1 -0
  544. package/dist/vendor/core/ui/bento-grid.d.ts +107 -0
  545. package/dist/vendor/core/ui/bento-grid.d.ts.map +1 -0
  546. package/dist/vendor/core/ui/bento-grid.js +631 -0
  547. package/dist/vendor/core/ui/bento-grid.js.map +1 -0
  548. package/dist/vendor/core/ui/breadcrumb.d.ts +12 -0
  549. package/dist/vendor/core/ui/breadcrumb.d.ts.map +1 -0
  550. package/dist/vendor/core/ui/breadcrumb.js +29 -0
  551. package/dist/vendor/core/ui/breadcrumb.js.map +1 -0
  552. package/dist/vendor/core/ui/button-group.d.ts +12 -0
  553. package/dist/vendor/core/ui/button-group.d.ts.map +1 -0
  554. package/dist/vendor/core/ui/button-group.js +28 -0
  555. package/dist/vendor/core/ui/button-group.js.map +1 -0
  556. package/dist/vendor/core/ui/button.d.ts +24 -0
  557. package/dist/vendor/core/ui/button.d.ts.map +1 -0
  558. package/dist/vendor/core/ui/button.js +39 -0
  559. package/dist/vendor/core/ui/button.js.map +1 -0
  560. package/dist/vendor/core/ui/calendar.d.ts +9 -0
  561. package/dist/vendor/core/ui/calendar.d.ts.map +1 -0
  562. package/dist/vendor/core/ui/calendar.js +76 -0
  563. package/dist/vendor/core/ui/calendar.js.map +1 -0
  564. package/dist/vendor/core/ui/card.d.ts +12 -0
  565. package/dist/vendor/core/ui/card.d.ts.map +1 -0
  566. package/dist/vendor/core/ui/card.js +26 -0
  567. package/dist/vendor/core/ui/card.js.map +1 -0
  568. package/dist/vendor/core/ui/carousel.d.ts +29 -0
  569. package/dist/vendor/core/ui/carousel.d.ts.map +1 -0
  570. package/dist/vendor/core/ui/carousel.js +92 -0
  571. package/dist/vendor/core/ui/carousel.js.map +1 -0
  572. package/dist/vendor/core/ui/chart.d.ts +41 -0
  573. package/dist/vendor/core/ui/chart.d.ts.map +1 -0
  574. package/dist/vendor/core/ui/chart.js +132 -0
  575. package/dist/vendor/core/ui/chart.js.map +1 -0
  576. package/dist/vendor/core/ui/checkbox.d.ts +5 -0
  577. package/dist/vendor/core/ui/checkbox.d.ts.map +1 -0
  578. package/dist/vendor/core/ui/checkbox.js +10 -0
  579. package/dist/vendor/core/ui/checkbox.js.map +1 -0
  580. package/dist/vendor/core/ui/collapsible.d.ts +6 -0
  581. package/dist/vendor/core/ui/collapsible.d.ts.map +1 -0
  582. package/dist/vendor/core/ui/collapsible.js +15 -0
  583. package/dist/vendor/core/ui/collapsible.js.map +1 -0
  584. package/dist/vendor/core/ui/context-menu.d.ts +28 -0
  585. package/dist/vendor/core/ui/context-menu.d.ts.map +1 -0
  586. package/dist/vendor/core/ui/context-menu.js +55 -0
  587. package/dist/vendor/core/ui/context-menu.js.map +1 -0
  588. package/dist/vendor/core/ui/dialog.d.ts +20 -0
  589. package/dist/vendor/core/ui/dialog.d.ts.map +1 -0
  590. package/dist/vendor/core/ui/dialog.js +44 -0
  591. package/dist/vendor/core/ui/dialog.js.map +1 -0
  592. package/dist/vendor/core/ui/drawer.d.ts +14 -0
  593. package/dist/vendor/core/ui/drawer.d.ts.map +1 -0
  594. package/dist/vendor/core/ui/drawer.js +38 -0
  595. package/dist/vendor/core/ui/drawer.js.map +1 -0
  596. package/dist/vendor/core/ui/dropdown-menu.d.ts +26 -0
  597. package/dist/vendor/core/ui/dropdown-menu.d.ts.map +1 -0
  598. package/dist/vendor/core/ui/dropdown-menu.js +56 -0
  599. package/dist/vendor/core/ui/dropdown-menu.js.map +1 -0
  600. package/dist/vendor/core/ui/empty.d.ts +12 -0
  601. package/dist/vendor/core/ui/empty.d.ts.map +1 -0
  602. package/dist/vendor/core/ui/empty.js +34 -0
  603. package/dist/vendor/core/ui/empty.js.map +1 -0
  604. package/dist/vendor/core/ui/field.d.ts +25 -0
  605. package/dist/vendor/core/ui/field.d.ts.map +1 -0
  606. package/dist/vendor/core/ui/field.js +68 -0
  607. package/dist/vendor/core/ui/field.js.map +1 -0
  608. package/dist/vendor/core/ui/hover-card.d.ts +7 -0
  609. package/dist/vendor/core/ui/hover-card.d.ts.map +1 -0
  610. package/dist/vendor/core/ui/hover-card.js +19 -0
  611. package/dist/vendor/core/ui/hover-card.js.map +1 -0
  612. package/dist/vendor/core/ui/image.d.ts +10 -0
  613. package/dist/vendor/core/ui/image.d.ts.map +1 -0
  614. package/dist/vendor/core/ui/image.js +49 -0
  615. package/dist/vendor/core/ui/image.js.map +1 -0
  616. package/dist/vendor/core/ui/input-group.d.ts +17 -0
  617. package/dist/vendor/core/ui/input-group.d.ts.map +1 -0
  618. package/dist/vendor/core/ui/input-group.js +59 -0
  619. package/dist/vendor/core/ui/input-group.js.map +1 -0
  620. package/dist/vendor/core/ui/input-otp.d.ts +12 -0
  621. package/dist/vendor/core/ui/input-otp.d.ts.map +1 -0
  622. package/dist/vendor/core/ui/input-otp.js +21 -0
  623. package/dist/vendor/core/ui/input-otp.js.map +1 -0
  624. package/dist/vendor/core/ui/input.d.ts +4 -0
  625. package/dist/vendor/core/ui/input.d.ts.map +1 -0
  626. package/dist/vendor/core/ui/input.js +8 -0
  627. package/dist/vendor/core/ui/input.js.map +1 -0
  628. package/dist/vendor/core/ui/item.d.ts +24 -0
  629. package/dist/vendor/core/ui/item.d.ts.map +1 -0
  630. package/dist/vendor/core/ui/item.js +69 -0
  631. package/dist/vendor/core/ui/item.js.map +1 -0
  632. package/dist/vendor/core/ui/kbd.d.ts +4 -0
  633. package/dist/vendor/core/ui/kbd.d.ts.map +1 -0
  634. package/dist/vendor/core/ui/kbd.js +10 -0
  635. package/dist/vendor/core/ui/kbd.js.map +1 -0
  636. package/dist/vendor/core/ui/label.d.ts +5 -0
  637. package/dist/vendor/core/ui/label.d.ts.map +1 -0
  638. package/dist/vendor/core/ui/label.js +10 -0
  639. package/dist/vendor/core/ui/label.js.map +1 -0
  640. package/dist/vendor/core/ui/markdown.d.ts +19 -0
  641. package/dist/vendor/core/ui/markdown.d.ts.map +1 -0
  642. package/dist/vendor/core/ui/markdown.js +236 -0
  643. package/dist/vendor/core/ui/markdown.js.map +1 -0
  644. package/dist/vendor/core/ui/menubar.d.ts +27 -0
  645. package/dist/vendor/core/ui/menubar.d.ts.map +1 -0
  646. package/dist/vendor/core/ui/menubar.js +55 -0
  647. package/dist/vendor/core/ui/menubar.js.map +1 -0
  648. package/dist/vendor/core/ui/pagination.d.ts +14 -0
  649. package/dist/vendor/core/ui/pagination.d.ts.map +1 -0
  650. package/dist/vendor/core/ui/pagination.js +28 -0
  651. package/dist/vendor/core/ui/pagination.js.map +1 -0
  652. package/dist/vendor/core/ui/popover.d.ts +11 -0
  653. package/dist/vendor/core/ui/popover.d.ts.map +1 -0
  654. package/dist/vendor/core/ui/popover.js +31 -0
  655. package/dist/vendor/core/ui/popover.js.map +1 -0
  656. package/dist/vendor/core/ui/progress.d.ts +5 -0
  657. package/dist/vendor/core/ui/progress.d.ts.map +1 -0
  658. package/dist/vendor/core/ui/progress.js +9 -0
  659. package/dist/vendor/core/ui/progress.js.map +1 -0
  660. package/dist/vendor/core/ui/radio-group.d.ts +6 -0
  661. package/dist/vendor/core/ui/radio-group.d.ts.map +1 -0
  662. package/dist/vendor/core/ui/radio-group.js +14 -0
  663. package/dist/vendor/core/ui/radio-group.js.map +1 -0
  664. package/dist/vendor/core/ui/resizable.d.ts +9 -0
  665. package/dist/vendor/core/ui/resizable.d.ts.map +1 -0
  666. package/dist/vendor/core/ui/resizable.js +15 -0
  667. package/dist/vendor/core/ui/resizable.js.map +1 -0
  668. package/dist/vendor/core/ui/scroll-area.d.ts +6 -0
  669. package/dist/vendor/core/ui/scroll-area.d.ts.map +1 -0
  670. package/dist/vendor/core/ui/scroll-area.js +13 -0
  671. package/dist/vendor/core/ui/scroll-area.js.map +1 -0
  672. package/dist/vendor/core/ui/select.d.ts +16 -0
  673. package/dist/vendor/core/ui/select.d.ts.map +1 -0
  674. package/dist/vendor/core/ui/select.js +39 -0
  675. package/dist/vendor/core/ui/select.js.map +1 -0
  676. package/dist/vendor/core/ui/separator.d.ts +5 -0
  677. package/dist/vendor/core/ui/separator.d.ts.map +1 -0
  678. package/dist/vendor/core/ui/separator.js +10 -0
  679. package/dist/vendor/core/ui/separator.js.map +1 -0
  680. package/dist/vendor/core/ui/sheet.d.ts +17 -0
  681. package/dist/vendor/core/ui/sheet.d.ts.map +1 -0
  682. package/dist/vendor/core/ui/sheet.js +45 -0
  683. package/dist/vendor/core/ui/sheet.js.map +1 -0
  684. package/dist/vendor/core/ui/skeleton.d.ts +3 -0
  685. package/dist/vendor/core/ui/skeleton.d.ts.map +1 -0
  686. package/dist/vendor/core/ui/skeleton.js +7 -0
  687. package/dist/vendor/core/ui/skeleton.js.map +1 -0
  688. package/dist/vendor/core/ui/slider.d.ts +5 -0
  689. package/dist/vendor/core/ui/slider.d.ts.map +1 -0
  690. package/dist/vendor/core/ui/slider.js +14 -0
  691. package/dist/vendor/core/ui/slider.js.map +1 -0
  692. package/dist/vendor/core/ui/spinner.d.ts +3 -0
  693. package/dist/vendor/core/ui/spinner.d.ts.map +1 -0
  694. package/dist/vendor/core/ui/spinner.js +8 -0
  695. package/dist/vendor/core/ui/spinner.js.map +1 -0
  696. package/dist/vendor/core/ui/switch.d.ts +7 -0
  697. package/dist/vendor/core/ui/switch.d.ts.map +1 -0
  698. package/dist/vendor/core/ui/switch.js +9 -0
  699. package/dist/vendor/core/ui/switch.js.map +1 -0
  700. package/dist/vendor/core/ui/table.d.ts +11 -0
  701. package/dist/vendor/core/ui/table.d.ts.map +1 -0
  702. package/dist/vendor/core/ui/table.js +30 -0
  703. package/dist/vendor/core/ui/table.js.map +1 -0
  704. package/dist/vendor/core/ui/tabs.d.ts +12 -0
  705. package/dist/vendor/core/ui/tabs.d.ts.map +1 -0
  706. package/dist/vendor/core/ui/tabs.js +30 -0
  707. package/dist/vendor/core/ui/tabs.js.map +1 -0
  708. package/dist/vendor/core/ui/textarea.d.ts +4 -0
  709. package/dist/vendor/core/ui/textarea.d.ts.map +1 -0
  710. package/dist/vendor/core/ui/textarea.js +8 -0
  711. package/dist/vendor/core/ui/textarea.js.map +1 -0
  712. package/dist/vendor/core/ui/toggle-group.d.ts +11 -0
  713. package/dist/vendor/core/ui/toggle-group.d.ts.map +1 -0
  714. package/dist/vendor/core/ui/toggle-group.js +24 -0
  715. package/dist/vendor/core/ui/toggle-group.js.map +1 -0
  716. package/dist/vendor/core/ui/toggle.d.ts +12 -0
  717. package/dist/vendor/core/ui/toggle.d.ts.map +1 -0
  718. package/dist/vendor/core/ui/toggle.js +28 -0
  719. package/dist/vendor/core/ui/toggle.js.map +1 -0
  720. package/dist/vendor/core/ui/tooltip.d.ts +8 -0
  721. package/dist/vendor/core/ui/tooltip.d.ts.map +1 -0
  722. package/dist/vendor/core/ui/tooltip.js +21 -0
  723. package/dist/vendor/core/ui/tooltip.js.map +1 -0
  724. package/dist/vendor/core/ui/trigger-child.d.ts +17 -0
  725. package/dist/vendor/core/ui/trigger-child.d.ts.map +1 -0
  726. package/dist/vendor/core/ui/trigger-child.js +31 -0
  727. package/dist/vendor/core/ui/trigger-child.js.map +1 -0
  728. package/dist/vendor/core/util/hooks/useLatestRef.d.ts +10 -0
  729. package/dist/vendor/core/util/hooks/useLatestRef.d.ts.map +1 -0
  730. package/dist/vendor/core/util/hooks/useLatestRef.js +17 -0
  731. package/dist/vendor/core/util/hooks/useLatestRef.js.map +1 -0
  732. package/dist/vendor/core/util/utils.d.ts +8 -0
  733. package/dist/vendor/core/util/utils.d.ts.map +1 -0
  734. package/dist/vendor/core/util/utils.js +17 -0
  735. package/dist/vendor/core/util/utils.js.map +1 -0
  736. package/dist/web.d.ts +13 -0
  737. package/dist/web.d.ts.map +1 -0
  738. package/dist/web.js +14 -0
  739. package/dist/web.js.map +1 -0
  740. package/package.json +188 -4
  741. package/src/bsx/analyze.ts +65 -0
  742. package/src/bsx/bsx.test.ts +111 -0
  743. package/src/bsx/expr.ts +541 -0
  744. package/src/bsx/index.ts +8 -0
  745. package/src/bsx/infer.test.ts +149 -0
  746. package/src/bsx/infer.ts +308 -0
  747. package/src/bsx/language.test.ts +204 -0
  748. package/src/bsx/language.ts +750 -0
  749. package/src/bsx/parse.ts +848 -0
  750. package/src/bsx/partial.test.ts +88 -0
  751. package/src/bsx/partial.ts +193 -0
  752. package/src/bsx/print.ts +412 -0
  753. package/src/bsx/references.test.ts +161 -0
  754. package/src/bsx/references.ts +1155 -0
  755. package/src/bsx/source.ts +70 -0
  756. package/src/cache/keyedStore.ts +122 -0
  757. package/src/editor/BsxEditor.tsx +252 -0
  758. package/src/editor.ts +2 -0
  759. package/src/env.d.ts +5 -0
  760. package/src/index.ts +6 -0
  761. package/src/logo/CachedBlokLogo.tsx +179 -0
  762. package/src/logo/SourceLogo.tsx +52 -0
  763. package/src/logo/actionLogoSource.ts +24 -0
  764. package/src/logo/demo.ts +21 -0
  765. package/src/logo/logoCache.test.ts +75 -0
  766. package/src/logo/logoCache.ts +130 -0
  767. package/src/platform.ts +121 -0
  768. package/src/preview/CachedBlokPreview.test.tsx +63 -0
  769. package/src/preview/CachedBlokPreview.tsx +336 -0
  770. package/src/preview/previewCache.test.ts +28 -0
  771. package/src/preview/previewCache.ts +64 -0
  772. package/src/preview/queue.test.ts +40 -0
  773. package/src/preview/queue.ts +75 -0
  774. package/src/preview/snapshot.test.ts +86 -0
  775. package/src/preview/snapshot.ts +226 -0
  776. package/src/preview/snapshotMode.test.tsx +45 -0
  777. package/src/preview/snapshotMode.tsx +45 -0
  778. package/src/renderer/BlokComponentHost.tsx +151 -0
  779. package/src/renderer/BlokDebugState.tsx +50 -0
  780. package/src/renderer/BlokRenderer.test.tsx +124 -0
  781. package/src/renderer/BlokRenderer.tsx +370 -0
  782. package/src/renderer/addBlokComponents.test.tsx +62 -0
  783. package/src/renderer/assets.test.tsx +123 -0
  784. package/src/renderer/assets.tsx +174 -0
  785. package/src/renderer/baseCatalog.ts +14 -0
  786. package/src/renderer/bloks/components.test.tsx +415 -0
  787. package/src/renderer/bloks/control.tsx +412 -0
  788. package/src/renderer/bloks/data.tsx +766 -0
  789. package/src/renderer/bloks/events.test.tsx +139 -0
  790. package/src/renderer/bloks/feedback.tsx +205 -0
  791. package/src/renderer/bloks/flow.test.tsx +201 -0
  792. package/src/renderer/bloks/forms.tsx +1195 -0
  793. package/src/renderer/bloks/html.tsx +171 -0
  794. package/src/renderer/bloks/icons.tsx +308 -0
  795. package/src/renderer/bloks/index.ts +42 -0
  796. package/src/renderer/bloks/inspector/Inspector.tsx +19 -0
  797. package/src/renderer/bloks/layout.tsx +538 -0
  798. package/src/renderer/bloks/logo/index.tsx +529 -0
  799. package/src/renderer/bloks/logo/logo.fixture.json +323 -0
  800. package/src/renderer/bloks/logo/logo.test.tsx +192 -0
  801. package/src/renderer/bloks/navigation.tsx +699 -0
  802. package/src/renderer/bloks/overlays.tsx +869 -0
  803. package/src/renderer/bloks/primitives.test.tsx +307 -0
  804. package/src/renderer/bloks/run/components.tsx +212 -0
  805. package/src/renderer/bloks/run/host.tsx +63 -0
  806. package/src/renderer/bloks/run/index.ts +3 -0
  807. package/src/renderer/bloks/run/math.test.ts +81 -0
  808. package/src/renderer/bloks/run/math.ts +112 -0
  809. package/src/renderer/bloks/run/run.test.tsx +164 -0
  810. package/src/renderer/bloks/scene/Model.tsx +571 -0
  811. package/src/renderer/bloks/scene/Scene.tsx +882 -0
  812. package/src/renderer/bloks/scene/Transform.tsx +116 -0
  813. package/src/renderer/bloks/scene/animate.test.tsx +81 -0
  814. package/src/renderer/bloks/scene/bindings.tsx +432 -0
  815. package/src/renderer/bloks/scene/colour.test.ts +47 -0
  816. package/src/renderer/bloks/scene/colour.ts +56 -0
  817. package/src/renderer/bloks/scene/context.tsx +228 -0
  818. package/src/renderer/bloks/scene/embedded.test.tsx +68 -0
  819. package/src/renderer/bloks/scene/host.tsx +84 -0
  820. package/src/renderer/bloks/scene/index.ts +32 -0
  821. package/src/renderer/bloks/scene/interaction.tsx +212 -0
  822. package/src/renderer/bloks/scene/loadModel.test.ts +69 -0
  823. package/src/renderer/bloks/scene/loadModel.ts +135 -0
  824. package/src/renderer/bloks/scene/scene.fixture.json +203 -0
  825. package/src/renderer/bloks/scene/scene.test.ts +35 -0
  826. package/src/renderer/bloks/scene/scope.fixture.glb +0 -0
  827. package/src/renderer/bloks/scene/transform.test.ts +26 -0
  828. package/src/renderer/bloks/shared/index.ts +5 -0
  829. package/src/renderer/bloks/shared/props.ts +224 -0
  830. package/src/renderer/bloks/shared/render.tsx +62 -0
  831. package/src/renderer/bloks/shared/schemas.ts +215 -0
  832. package/src/renderer/bloks/shared/state.ts +96 -0
  833. package/src/renderer/bloks/shared/throttle.test.ts +50 -0
  834. package/src/renderer/bloks/shared/throttle.ts +53 -0
  835. package/src/renderer/bloks/testing.tsx +73 -0
  836. package/src/renderer/bloks/time.test.tsx +78 -0
  837. package/src/renderer/bloks/toast.test.tsx +82 -0
  838. package/src/renderer/bloks/toast.tsx +132 -0
  839. package/src/renderer/bloks/typography.tsx +265 -0
  840. package/src/renderer/bloks/unavailable.test.tsx +52 -0
  841. package/src/renderer/catalog.tsx +97 -0
  842. package/src/renderer/declarations.test.ts +72 -0
  843. package/src/renderer/declarations.ts +285 -0
  844. package/src/renderer/functions/index.ts +3 -0
  845. package/src/renderer/functions/v2/functions.test.ts +256 -0
  846. package/src/renderer/functions/v2/handler.ts +11 -0
  847. package/src/renderer/functions/v2/index.ts +638 -0
  848. package/src/renderer/modules.ts +54 -0
  849. package/src/renderer/persist.test.ts +182 -0
  850. package/src/renderer/persist.ts +320 -0
  851. package/src/renderer/persistComponent.test.tsx +68 -0
  852. package/src/renderer/runtime/checks.ts +177 -0
  853. package/src/renderer/runtime/components.tsx +311 -0
  854. package/src/renderer/runtime/context.test.ts +137 -0
  855. package/src/renderer/runtime/context.tsx +369 -0
  856. package/src/renderer/runtime/functions.ts +69 -0
  857. package/src/renderer/runtime/hooks.ts +764 -0
  858. package/src/renderer/runtime/index.ts +31 -0
  859. package/src/renderer/runtime/nodeState.ts +43 -0
  860. package/src/renderer/runtime/normalize.test.ts +154 -0
  861. package/src/renderer/runtime/normalize.ts +121 -0
  862. package/src/renderer/runtime/port.tsx +24 -0
  863. package/src/renderer/runtime/preflight.test.ts +127 -0
  864. package/src/renderer/runtime/preflight.ts +264 -0
  865. package/src/renderer/runtime/reads.test.tsx +278 -0
  866. package/src/renderer/runtime/reads.tsx +448 -0
  867. package/src/renderer/runtime/resolution.test.ts +467 -0
  868. package/src/renderer/runtime/resolution.ts +531 -0
  869. package/src/renderer/runtime/resource.ts +196 -0
  870. package/src/renderer/runtime/schemas.ts +181 -0
  871. package/src/renderer/runtime/scope.tsx +123 -0
  872. package/src/renderer/runtime/status.ts +54 -0
  873. package/src/renderer/runtime/task.test.ts +131 -0
  874. package/src/renderer/runtime/task.ts +149 -0
  875. package/src/renderer/runtime/tree.tsx +138 -0
  876. package/src/renderer/runtime/types.ts +285 -0
  877. package/src/renderer/runtime/utils.test.ts +68 -0
  878. package/src/renderer/runtime/utils.ts +67 -0
  879. package/src/renderer/runtime/viewer.tsx +21 -0
  880. package/src/renderer/unbound.test.tsx +75 -0
  881. package/src/runtime.ts +9 -0
  882. package/src/scene.ts +3 -0
  883. package/src/spec/bsx_v2.json +11380 -0
  884. package/src/spec/catalogs/base@2.json +210 -0
  885. package/src/spec/catalogs/html@1.json +308 -0
  886. package/src/spec/catalogs/logo@1.json +1673 -0
  887. package/src/spec/catalogs/scene@1.json +806 -0
  888. package/src/spec/catalogs/structure@1.json +185 -0
  889. package/src/spec/catalogs/ui@1.json +3696 -0
  890. package/src/spec/catalogs.ts +210 -0
  891. package/src/spec/locals.ts +35 -0
  892. package/src/spec/modules/orkestrator.json +2755 -0
  893. package/src/spec/spec.test.ts +87 -0
  894. package/src/spec/vocabulary.json +411 -0
  895. package/src/spec/vocabulary.ts +514 -0
  896. package/src/tailwind/defaultTheme.ts +3 -0
  897. package/src/tailwind/runtimeTailwind.test.ts +86 -0
  898. package/src/tailwind/runtimeTailwind.ts +137 -0
  899. package/src/tailwind/theme.css +137 -0
  900. package/src/tailwind/useBlokTailwind.test.tsx +52 -0
  901. package/src/tailwind/useBlokTailwind.ts +84 -0
  902. package/src/tailwind.ts +3 -0
  903. package/src/vendor/core/data/scene/camera/navigateButtons.ts +15 -0
  904. package/src/vendor/core/dialogs/PageDialogHost.tsx +42 -0
  905. package/src/vendor/core/model/affine.ts +117 -0
  906. package/src/vendor/core/model/glb.ts +580 -0
  907. package/src/vendor/core/model/joints.ts +65 -0
  908. package/src/vendor/core/model/model.test.ts +241 -0
  909. package/src/vendor/core/model/motion.ts +134 -0
  910. package/src/vendor/core/model/testing.ts +57 -0
  911. package/src/vendor/core/model/units.ts +112 -0
  912. package/src/vendor/core/model/writers.ts +62 -0
  913. package/src/vendor/core/ui/AsyncBoundary.tsx +96 -0
  914. package/src/vendor/core/ui/ChromeSurface.tsx +51 -0
  915. package/src/vendor/core/ui/accordion.tsx +79 -0
  916. package/src/vendor/core/ui/actionPlan.ts +150 -0
  917. package/src/vendor/core/ui/alert-dialog.tsx +201 -0
  918. package/src/vendor/core/ui/alert.tsx +72 -0
  919. package/src/vendor/core/ui/aspect-ratio.tsx +11 -0
  920. package/src/vendor/core/ui/avatar.tsx +104 -0
  921. package/src/vendor/core/ui/badge.tsx +45 -0
  922. package/src/vendor/core/ui/bento-grid.tsx +818 -0
  923. package/src/vendor/core/ui/breadcrumb.tsx +119 -0
  924. package/src/vendor/core/ui/button-group.tsx +83 -0
  925. package/src/vendor/core/ui/button.tsx +82 -0
  926. package/src/vendor/core/ui/calendar.tsx +214 -0
  927. package/src/vendor/core/ui/card.tsx +94 -0
  928. package/src/vendor/core/ui/carousel.tsx +240 -0
  929. package/src/vendor/core/ui/chart.tsx +354 -0
  930. package/src/vendor/core/ui/checkbox.tsx +31 -0
  931. package/src/vendor/core/ui/collapsible.tsx +36 -0
  932. package/src/vendor/core/ui/context-menu.tsx +239 -0
  933. package/src/vendor/core/ui/dialog.tsx +165 -0
  934. package/src/vendor/core/ui/drawer.tsx +119 -0
  935. package/src/vendor/core/ui/dropdown-menu.tsx +250 -0
  936. package/src/vendor/core/ui/empty.tsx +99 -0
  937. package/src/vendor/core/ui/field.tsx +220 -0
  938. package/src/vendor/core/ui/hover-card.tsx +53 -0
  939. package/src/vendor/core/ui/image.tsx +70 -0
  940. package/src/vendor/core/ui/input-group.tsx +144 -0
  941. package/src/vendor/core/ui/input-otp.tsx +85 -0
  942. package/src/vendor/core/ui/input.tsx +19 -0
  943. package/src/vendor/core/ui/item.tsx +187 -0
  944. package/src/vendor/core/ui/kbd.tsx +26 -0
  945. package/src/vendor/core/ui/label.tsx +24 -0
  946. package/src/vendor/core/ui/markdown.tsx +398 -0
  947. package/src/vendor/core/ui/menubar.tsx +248 -0
  948. package/src/vendor/core/ui/pagination.tsx +132 -0
  949. package/src/vendor/core/ui/popover.tsx +96 -0
  950. package/src/vendor/core/ui/progress.tsx +29 -0
  951. package/src/vendor/core/ui/radio-group.tsx +45 -0
  952. package/src/vendor/core/ui/resizable.tsx +51 -0
  953. package/src/vendor/core/ui/scroll-area.tsx +55 -0
  954. package/src/vendor/core/ui/select.tsx +185 -0
  955. package/src/vendor/core/ui/separator.tsx +28 -0
  956. package/src/vendor/core/ui/sheet.tsx +139 -0
  957. package/src/vendor/core/ui/skeleton.tsx +13 -0
  958. package/src/vendor/core/ui/slider.tsx +57 -0
  959. package/src/vendor/core/ui/spinner.tsx +10 -0
  960. package/src/vendor/core/ui/switch.tsx +31 -0
  961. package/src/vendor/core/ui/table.tsx +95 -0
  962. package/src/vendor/core/ui/tabs.tsx +88 -0
  963. package/src/vendor/core/ui/textarea.tsx +18 -0
  964. package/src/vendor/core/ui/toggle-group.tsx +87 -0
  965. package/src/vendor/core/ui/toggle.tsx +46 -0
  966. package/src/vendor/core/ui/tooltip.tsx +64 -0
  967. package/src/vendor/core/ui/trigger-child.ts +35 -0
  968. package/src/vendor/core/util/hooks/useLatestRef.ts +17 -0
  969. package/src/vendor/core/util/utils.ts +18 -0
  970. package/src/web.ts +13 -0
@@ -0,0 +1,391 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import * as React from 'react';
3
+ import { AlertDialog as ShadAlertDialog, AlertDialogAction as ShadAlertDialogAction, AlertDialogCancel as ShadAlertDialogCancel, AlertDialogContent as ShadAlertDialogContent, AlertDialogDescription as ShadAlertDialogDescription, AlertDialogFooter as ShadAlertDialogFooter, AlertDialogHeader as ShadAlertDialogHeader, AlertDialogTitle as ShadAlertDialogTitle, AlertDialogTrigger as ShadAlertDialogTrigger, } from '../../vendor/core/ui/alert-dialog.js';
4
+ import { ContextMenu as ShadContextMenu, ContextMenuCheckboxItem as ShadContextMenuCheckboxItem, ContextMenuContent as ShadContextMenuContent, ContextMenuItem as ShadContextMenuItem, ContextMenuLabel as ShadContextMenuLabel, ContextMenuSeparator as ShadContextMenuSeparator, ContextMenuTrigger as ShadContextMenuTrigger, } from '../../vendor/core/ui/context-menu.js';
5
+ import { Dialog as ShadDialog, DialogClose as ShadDialogClose, DialogContent as ShadDialogContent, DialogDescription as ShadDialogDescription, DialogFooter as ShadDialogFooter, DialogHeader as ShadDialogHeader, DialogTitle as ShadDialogTitle, DialogTrigger as ShadDialogTrigger, } from '../../vendor/core/ui/dialog.js';
6
+ import { Drawer as ShadDrawer, DrawerContent as ShadDrawerContent, DrawerDescription as ShadDrawerDescription, DrawerFooter as ShadDrawerFooter, DrawerHeader as ShadDrawerHeader, DrawerTitle as ShadDrawerTitle, DrawerTrigger as ShadDrawerTrigger, } from '../../vendor/core/ui/drawer.js';
7
+ import { DropdownMenu as ShadDropdownMenu, DropdownMenuCheckboxItem as ShadDropdownMenuCheckboxItem, DropdownMenuContent as ShadDropdownMenuContent, DropdownMenuItem as ShadDropdownMenuItem, DropdownMenuLabel as ShadDropdownMenuLabel, DropdownMenuSeparator as ShadDropdownMenuSeparator, DropdownMenuTrigger as ShadDropdownMenuTrigger, } from '../../vendor/core/ui/dropdown-menu.js';
8
+ import { HoverCard as ShadHoverCard, HoverCardContent as ShadHoverCardContent, HoverCardTrigger as ShadHoverCardTrigger, } from '../../vendor/core/ui/hover-card.js';
9
+ import { Popover as ShadPopover, PopoverContent as ShadPopoverContent, PopoverTrigger as ShadPopoverTrigger, } from '../../vendor/core/ui/popover.js';
10
+ import { Sheet as ShadSheet, SheetContent as ShadSheetContent, SheetDescription as ShadSheetDescription, SheetFooter as ShadSheetFooter, SheetHeader as ShadSheetHeader, SheetTitle as ShadSheetTitle, SheetTrigger as ShadSheetTrigger, } from '../../vendor/core/ui/sheet.js';
11
+ import { Tooltip as ShadTooltip, TooltipContent as ShadTooltipContent, TooltipTrigger as ShadTooltipTrigger, } from '../../vendor/core/ui/tooltip.js';
12
+ import * as z from 'zod';
13
+ import { BlokPropSchemas, createBlokComponent, useAction, useBlok, useEventAction, useValue, } from '../runtime/index.js';
14
+ import { iconNameSchema, renderIcon } from './icons.js';
15
+ import { actionProp, alignmentSchema, asBoolean, bindSchema, boolSchema, childListSchema, classNameSchema, contentSchema, disabledSchema, renderChildList, renderContent, sideSchema, useControlledValue, } from './shared/index.js';
16
+ /**
17
+ * Open/closed state follows the same rules as a form control's value: `open`
18
+ * wins, then a `bind` path, and with neither the surface keeps its own state.
19
+ */
20
+ const createOverlayRoot = (name, Root, description) => createBlokComponent({
21
+ name,
22
+ schema: z
23
+ .object({
24
+ children: childListSchema.describe('The trigger and content parts of this overlay.'),
25
+ open: BlokPropSchemas.DynamicBoolean.optional().describe('Controlled open state.'),
26
+ defaultOpen: boolSchema.describe('Open on mount when uncontrolled.'),
27
+ onOpenChange: actionProp('Runs when the surface opens or closes. May read event.value.'),
28
+ })
29
+ .describe(description),
30
+ }, ({ buildChild, component, schema }) => {
31
+ const blok = useBlok(component, schema);
32
+ const children = useValue(blok.children);
33
+ // Interaction state is the component's own (v2: no `bind` on a stateful component).
34
+ const bind = undefined;
35
+ const open = useValue(blok.open);
36
+ const defaultOpen = useValue(blok.defaultOpen);
37
+ const onOpenChange = useEventAction(blok.onOpenChange);
38
+ const controlled = useControlledValue({
39
+ bind,
40
+ value: open,
41
+ defaultValue: defaultOpen,
42
+ fallback: false,
43
+ parse: asBoolean,
44
+ });
45
+ return (_jsx(Root, { open: controlled.value, onOpenChange: next => {
46
+ controlled.setValue(next);
47
+ onOpenChange?.(next);
48
+ }, children: renderChildList(children, buildChild) }));
49
+ });
50
+ const createTriggerBlok = (name, Trigger, description) => createBlokComponent({
51
+ name,
52
+ schema: z
53
+ .object({
54
+ label: BlokPropSchemas.DynamicString.optional().describe('Trigger text.'),
55
+ icon: iconNameSchema.describe('Icon rendered before the label.'),
56
+ children: contentSchema,
57
+ disabled: disabledSchema,
58
+ className: classNameSchema,
59
+ })
60
+ .describe(description),
61
+ }, ({ buildChild, component, schema }) => {
62
+ const blok = useBlok(component, schema);
63
+ const label = useValue(blok.label);
64
+ const icon = useValue(blok.icon);
65
+ const children = useValue(blok.children);
66
+ const disabled = useValue(blok.disabled);
67
+ const className = useValue(blok.className);
68
+ return (_jsxs(Trigger, { disabled: disabled === true, className: className, children: [renderIcon(icon), renderContent(children ?? label, buildChild)] }));
69
+ });
70
+ /** A part that is just "a styled box of children" — headers, footers, bodies. */
71
+ const createPanelBlok = (name, Panel, description) => createBlokComponent({
72
+ name,
73
+ schema: z
74
+ .object({
75
+ children: childListSchema,
76
+ className: classNameSchema,
77
+ })
78
+ .describe(description),
79
+ }, ({ buildChild, component, schema }) => {
80
+ const blok = useBlok(component, schema);
81
+ const children = useValue(blok.children);
82
+ const className = useValue(blok.className);
83
+ return _jsx(Panel, { className: className, children: renderChildList(children, buildChild) });
84
+ });
85
+ /** A part that carries a single line of text — titles and descriptions. */
86
+ const createTextPartBlok = (name, Part, description) => createBlokComponent({
87
+ name,
88
+ schema: z
89
+ .object({
90
+ text: BlokPropSchemas.DynamicString.optional().describe('The text to render.'),
91
+ children: contentSchema,
92
+ className: classNameSchema,
93
+ })
94
+ .describe(description),
95
+ }, ({ buildChild, component, schema }) => {
96
+ const blok = useBlok(component, schema);
97
+ const text = useValue(blok.text);
98
+ const children = useValue(blok.children);
99
+ const className = useValue(blok.className);
100
+ return _jsx(Part, { className: className, children: renderContent(children ?? text, buildChild) });
101
+ });
102
+ /* -------------------------------------------------------------------------- */
103
+ /* Dialog */
104
+ /* -------------------------------------------------------------------------- */
105
+ export const Dialog = createOverlayRoot('Dialog', ShadDialog, 'A modal dialog.');
106
+ export const DialogTrigger = createTriggerBlok('DialogTrigger', ShadDialogTrigger, 'The control that opens a Dialog.');
107
+ export const DialogContent = createBlokComponent({
108
+ name: 'DialogContent',
109
+ schema: z
110
+ .object({
111
+ children: childListSchema,
112
+ showCloseButton: boolSchema.describe('Show the corner close button. Defaults to true.'),
113
+ className: classNameSchema,
114
+ })
115
+ .describe('The modal panel of a Dialog.'),
116
+ }, ({ buildChild, component, schema }) => {
117
+ const blok = useBlok(component, schema);
118
+ const children = useValue(blok.children);
119
+ const showCloseButton = useValue(blok.showCloseButton);
120
+ const className = useValue(blok.className);
121
+ return (_jsx(ShadDialogContent, { showCloseButton: showCloseButton ?? true, className: className, children: renderChildList(children, buildChild) }));
122
+ });
123
+ export const DialogHeader = createPanelBlok('DialogHeader', ShadDialogHeader, 'The header region of a DialogContent.');
124
+ export const DialogFooter = createPanelBlok('DialogFooter', ShadDialogFooter, 'The footer region of a DialogContent.');
125
+ export const DialogTitle = createTextPartBlok('DialogTitle', ShadDialogTitle, 'The accessible title of a Dialog.');
126
+ export const DialogDescription = createTextPartBlok('DialogDescription', ShadDialogDescription, 'Supporting text under a DialogTitle.');
127
+ export const DialogClose = createTriggerBlok('DialogClose', ShadDialogClose, 'A control that closes the surrounding Dialog.');
128
+ /* -------------------------------------------------------------------------- */
129
+ /* AlertDialog */
130
+ /* -------------------------------------------------------------------------- */
131
+ export const AlertDialog = createOverlayRoot('AlertDialog', ShadAlertDialog, 'A modal dialog that interrupts to confirm a decision.');
132
+ export const AlertDialogTrigger = createTriggerBlok('AlertDialogTrigger', ShadAlertDialogTrigger, 'The control that opens an AlertDialog.');
133
+ export const AlertDialogContent = createPanelBlok('AlertDialogContent', ShadAlertDialogContent, 'The modal panel of an AlertDialog.');
134
+ export const AlertDialogHeader = createPanelBlok('AlertDialogHeader', ShadAlertDialogHeader, 'The header region of an AlertDialogContent.');
135
+ export const AlertDialogFooter = createPanelBlok('AlertDialogFooter', ShadAlertDialogFooter, 'The footer region of an AlertDialogContent.');
136
+ export const AlertDialogTitle = createTextPartBlok('AlertDialogTitle', ShadAlertDialogTitle, 'The accessible title of an AlertDialog.');
137
+ export const AlertDialogDescription = createTextPartBlok('AlertDialogDescription', ShadAlertDialogDescription, 'Supporting text under an AlertDialogTitle.');
138
+ export const AlertDialogAction = createBlokComponent({
139
+ name: 'AlertDialogAction',
140
+ schema: z
141
+ .object({
142
+ label: BlokPropSchemas.DynamicString.optional().describe('Button text.'),
143
+ onClick: actionProp('Runs when the action is confirmed.'),
144
+ className: classNameSchema,
145
+ })
146
+ .describe('The confirming button of an AlertDialog; closes it when clicked.'),
147
+ }, ({ component, schema }) => {
148
+ const blok = useBlok(component, schema);
149
+ const label = useValue(blok.label);
150
+ const onClick = useAction(blok.onClick);
151
+ const className = useValue(blok.className);
152
+ return (_jsx(ShadAlertDialogAction, { onClick: onClick, className: className, children: label ?? 'Continue' }));
153
+ });
154
+ export const AlertDialogCancel = createBlokComponent({
155
+ name: 'AlertDialogCancel',
156
+ schema: z
157
+ .object({
158
+ label: BlokPropSchemas.DynamicString.optional().describe('Button text.'),
159
+ className: classNameSchema,
160
+ })
161
+ .describe('The dismissing button of an AlertDialog.'),
162
+ }, ({ component, schema }) => {
163
+ const blok = useBlok(component, schema);
164
+ const label = useValue(blok.label);
165
+ const className = useValue(blok.className);
166
+ return _jsx(ShadAlertDialogCancel, { className: className, children: label ?? 'Cancel' });
167
+ });
168
+ /* -------------------------------------------------------------------------- */
169
+ /* Sheet and Drawer */
170
+ /* -------------------------------------------------------------------------- */
171
+ export const Sheet = createOverlayRoot('Sheet', ShadSheet, 'A panel that slides in from an edge.');
172
+ export const SheetTrigger = createTriggerBlok('SheetTrigger', ShadSheetTrigger, 'The control that opens a Sheet.');
173
+ export const SheetContent = createBlokComponent({
174
+ name: 'SheetContent',
175
+ schema: z
176
+ .object({
177
+ children: childListSchema,
178
+ side: sideSchema,
179
+ showCloseButton: boolSchema.describe('Show the corner close button. Defaults to true.'),
180
+ className: classNameSchema,
181
+ })
182
+ .describe('The sliding panel of a Sheet.'),
183
+ }, ({ buildChild, component, schema }) => {
184
+ const blok = useBlok(component, schema);
185
+ const children = useValue(blok.children);
186
+ const side = useValue(blok.side);
187
+ const showCloseButton = useValue(blok.showCloseButton);
188
+ const className = useValue(blok.className);
189
+ return (_jsx(ShadSheetContent, { side: side ?? 'right', showCloseButton: showCloseButton ?? true, className: className, children: renderChildList(children, buildChild) }));
190
+ });
191
+ export const SheetHeader = createPanelBlok('SheetHeader', ShadSheetHeader, 'The header region of a SheetContent.');
192
+ export const SheetFooter = createPanelBlok('SheetFooter', ShadSheetFooter, 'The footer region of a SheetContent.');
193
+ export const SheetTitle = createTextPartBlok('SheetTitle', ShadSheetTitle, 'The accessible title of a Sheet.');
194
+ export const SheetDescription = createTextPartBlok('SheetDescription', ShadSheetDescription, 'Supporting text under a SheetTitle.');
195
+ export const Drawer = createOverlayRoot('Drawer', ShadDrawer, 'A panel that slides up from the bottom edge.');
196
+ export const DrawerTrigger = createTriggerBlok('DrawerTrigger', ShadDrawerTrigger, 'The control that opens a Drawer.');
197
+ export const DrawerContent = createPanelBlok('DrawerContent', ShadDrawerContent, 'The sliding panel of a Drawer.');
198
+ export const DrawerHeader = createPanelBlok('DrawerHeader', ShadDrawerHeader, 'The header region of a DrawerContent.');
199
+ export const DrawerFooter = createPanelBlok('DrawerFooter', ShadDrawerFooter, 'The footer region of a DrawerContent.');
200
+ export const DrawerTitle = createTextPartBlok('DrawerTitle', ShadDrawerTitle, 'The accessible title of a Drawer.');
201
+ export const DrawerDescription = createTextPartBlok('DrawerDescription', ShadDrawerDescription, 'Supporting text under a DrawerTitle.');
202
+ const createAnchoredContentBlok = (name, Content, description) => createBlokComponent({
203
+ name,
204
+ schema: z
205
+ .object({
206
+ children: contentSchema,
207
+ side: sideSchema,
208
+ align: alignmentSchema,
209
+ sideOffset: z.number().optional().describe('Distance from the trigger, in pixels.'),
210
+ className: classNameSchema,
211
+ })
212
+ .describe(description),
213
+ }, ({ buildChild, component, schema }) => {
214
+ const blok = useBlok(component, schema);
215
+ const children = useValue(blok.children);
216
+ const side = useValue(blok.side);
217
+ const align = useValue(blok.align);
218
+ const sideOffset = useValue(blok.sideOffset);
219
+ const className = useValue(blok.className);
220
+ return (_jsx(Content, { side: side, align: align, sideOffset: sideOffset, className: className, children: renderContent(children, buildChild) }));
221
+ });
222
+ export const Popover = createOverlayRoot('Popover', ShadPopover, 'A surface anchored to a trigger, opened on click.');
223
+ export const PopoverTrigger = createTriggerBlok('PopoverTrigger', ShadPopoverTrigger, 'The control that opens a Popover.');
224
+ export const PopoverContent = createAnchoredContentBlok('PopoverContent', ShadPopoverContent, 'The floating panel of a Popover.');
225
+ export const Tooltip = createOverlayRoot('Tooltip', ShadTooltip, 'A short hint shown on hover or focus.');
226
+ export const TooltipTrigger = createTriggerBlok('TooltipTrigger', ShadTooltipTrigger, 'The element a Tooltip describes.');
227
+ export const TooltipContent = createAnchoredContentBlok('TooltipContent', ShadTooltipContent, 'The hint shown by a Tooltip.');
228
+ export const HoverCard = createOverlayRoot('HoverCard', ShadHoverCard, 'A rich preview surface shown on hover.');
229
+ export const HoverCardTrigger = createTriggerBlok('HoverCardTrigger', ShadHoverCardTrigger, 'The element a HoverCard previews.');
230
+ export const HoverCardContent = createAnchoredContentBlok('HoverCardContent', ShadHoverCardContent, 'The floating panel of a HoverCard.');
231
+ const createMenuItemBlok = (name, Item, description) => createBlokComponent({
232
+ name,
233
+ schema: z
234
+ .object({
235
+ label: BlokPropSchemas.DynamicString.optional().describe('Item text.'),
236
+ icon: iconNameSchema.describe('Icon rendered before the label.'),
237
+ children: contentSchema,
238
+ onSelect: actionProp('Runs when the item is chosen.'),
239
+ variant: z
240
+ .enum(['default', 'destructive'])
241
+ .optional()
242
+ .describe('Item appearance.'),
243
+ disabled: disabledSchema,
244
+ className: classNameSchema,
245
+ })
246
+ .describe(description),
247
+ }, ({ buildChild, component, schema }) => {
248
+ const blok = useBlok(component, schema);
249
+ const label = useValue(blok.label);
250
+ const icon = useValue(blok.icon);
251
+ const children = useValue(blok.children);
252
+ const onSelect = useAction(blok.onSelect);
253
+ const variant = useValue(blok.variant);
254
+ const disabled = useValue(blok.disabled);
255
+ const className = useValue(blok.className);
256
+ return (_jsxs(Item, { disabled: disabled === true, variant: variant ?? 'default', className: className, onSelect: () => onSelect?.(), children: [renderIcon(icon), renderContent(children ?? label, buildChild)] }));
257
+ });
258
+ const createMenuCheckboxItemBlok = (name, Item, description) => createBlokComponent({
259
+ name,
260
+ schema: z
261
+ .object({
262
+ label: BlokPropSchemas.DynamicString.optional().describe('Item text.'),
263
+ bind: bindSchema,
264
+ checked: BlokPropSchemas.DynamicBoolean.optional().describe('Controlled checked state.'),
265
+ disabled: disabledSchema,
266
+ className: classNameSchema,
267
+ onChange: actionProp('Runs on toggle. Arguments may read event.value.'),
268
+ })
269
+ .describe(description),
270
+ }, ({ component, schema }) => {
271
+ const blok = useBlok(component, schema);
272
+ const label = useValue(blok.label);
273
+ const bind = useValue(blok.bind);
274
+ const checked = useValue(blok.checked);
275
+ const disabled = useValue(blok.disabled);
276
+ const className = useValue(blok.className);
277
+ const onChange = useEventAction(blok.onChange);
278
+ const controlled = useControlledValue({
279
+ bind,
280
+ value: checked,
281
+ defaultValue: undefined,
282
+ fallback: false,
283
+ parse: asBoolean,
284
+ });
285
+ return (_jsx(Item, { checked: controlled.value, disabled: disabled === true, className: className, onCheckedChange: next => {
286
+ controlled.setValue(next);
287
+ onChange?.(next);
288
+ }, children: label }));
289
+ });
290
+ export const DropdownMenu = createOverlayRoot('DropdownMenu', ShadDropdownMenu, 'A menu opened from a button.');
291
+ export const DropdownMenuTrigger = createTriggerBlok('DropdownMenuTrigger', ShadDropdownMenuTrigger, 'The control that opens a DropdownMenu.');
292
+ export const DropdownMenuContent = createPanelBlok('DropdownMenuContent', ShadDropdownMenuContent, 'The menu panel of a DropdownMenu.');
293
+ export const DropdownMenuLabel = createTextPartBlok('DropdownMenuLabel', ShadDropdownMenuLabel, 'A non-interactive heading inside a menu.');
294
+ export const DropdownMenuItem = createMenuItemBlok('DropdownMenuItem', ShadDropdownMenuItem, 'One selectable item in a DropdownMenu.');
295
+ export const DropdownMenuCheckboxItem = createMenuCheckboxItemBlok('DropdownMenuCheckboxItem', ShadDropdownMenuCheckboxItem, 'A menu item bound to a boolean value.');
296
+ export const DropdownMenuSeparator = createBlokComponent({
297
+ name: 'DropdownMenuSeparator',
298
+ schema: z.object({ className: classNameSchema }).describe('A divider between menu groups.'),
299
+ }, ({ component, schema }) => {
300
+ const blok = useBlok(component, schema);
301
+ const className = useValue(blok.className);
302
+ return _jsx(ShadDropdownMenuSeparator, { className: className });
303
+ });
304
+ export const ContextMenu = createOverlayRoot('ContextMenu', ShadContextMenu, 'A menu opened by right-clicking its trigger.');
305
+ export const ContextMenuTrigger = createBlokComponent({
306
+ name: 'ContextMenuTrigger',
307
+ schema: z
308
+ .object({
309
+ children: contentSchema,
310
+ disabled: disabledSchema,
311
+ className: classNameSchema,
312
+ })
313
+ .describe('The region that opens a ContextMenu on right-click.'),
314
+ }, ({ buildChild, component, schema }) => {
315
+ const blok = useBlok(component, schema);
316
+ const children = useValue(blok.children);
317
+ const disabled = useValue(blok.disabled);
318
+ const className = useValue(blok.className);
319
+ return (_jsx(ShadContextMenuTrigger, { disabled: disabled === true, className: className, children: renderContent(children, buildChild) }));
320
+ });
321
+ export const ContextMenuContent = createPanelBlok('ContextMenuContent', ShadContextMenuContent, 'The menu panel of a ContextMenu.');
322
+ export const ContextMenuLabel = createTextPartBlok('ContextMenuLabel', ShadContextMenuLabel, 'A non-interactive heading inside a context menu.');
323
+ export const ContextMenuItem = createMenuItemBlok('ContextMenuItem', ShadContextMenuItem, 'One selectable item in a ContextMenu.');
324
+ export const ContextMenuCheckboxItem = createMenuCheckboxItemBlok('ContextMenuCheckboxItem', ShadContextMenuCheckboxItem, 'A context-menu item bound to a boolean value.');
325
+ export const ContextMenuSeparator = createBlokComponent({
326
+ name: 'ContextMenuSeparator',
327
+ schema: z
328
+ .object({ className: classNameSchema })
329
+ .describe('A divider between context-menu groups.'),
330
+ }, ({ component, schema }) => {
331
+ const blok = useBlok(component, schema);
332
+ const className = useValue(blok.className);
333
+ return _jsx(ShadContextMenuSeparator, { className: className });
334
+ });
335
+ export const overlayBlokComponents = [
336
+ Dialog,
337
+ DialogTrigger,
338
+ DialogContent,
339
+ DialogHeader,
340
+ DialogFooter,
341
+ DialogTitle,
342
+ DialogDescription,
343
+ DialogClose,
344
+ AlertDialog,
345
+ AlertDialogTrigger,
346
+ AlertDialogContent,
347
+ AlertDialogHeader,
348
+ AlertDialogFooter,
349
+ AlertDialogTitle,
350
+ AlertDialogDescription,
351
+ AlertDialogAction,
352
+ AlertDialogCancel,
353
+ Sheet,
354
+ SheetTrigger,
355
+ SheetContent,
356
+ SheetHeader,
357
+ SheetFooter,
358
+ SheetTitle,
359
+ SheetDescription,
360
+ Drawer,
361
+ DrawerTrigger,
362
+ DrawerContent,
363
+ DrawerHeader,
364
+ DrawerFooter,
365
+ DrawerTitle,
366
+ DrawerDescription,
367
+ Popover,
368
+ PopoverTrigger,
369
+ PopoverContent,
370
+ Tooltip,
371
+ TooltipTrigger,
372
+ TooltipContent,
373
+ HoverCard,
374
+ HoverCardTrigger,
375
+ HoverCardContent,
376
+ DropdownMenu,
377
+ DropdownMenuTrigger,
378
+ DropdownMenuContent,
379
+ DropdownMenuLabel,
380
+ DropdownMenuItem,
381
+ DropdownMenuCheckboxItem,
382
+ DropdownMenuSeparator,
383
+ ContextMenu,
384
+ ContextMenuTrigger,
385
+ ContextMenuContent,
386
+ ContextMenuLabel,
387
+ ContextMenuItem,
388
+ ContextMenuCheckboxItem,
389
+ ContextMenuSeparator,
390
+ ];
391
+ //# sourceMappingURL=overlays.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"overlays.js","sourceRoot":"","sources":["../../../src/renderer/bloks/overlays.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,WAAW,IAAI,eAAe,EAC9B,iBAAiB,IAAI,qBAAqB,EAC1C,iBAAiB,IAAI,qBAAqB,EAC1C,kBAAkB,IAAI,sBAAsB,EAC5C,sBAAsB,IAAI,0BAA0B,EACpD,iBAAiB,IAAI,qBAAqB,EAC1C,iBAAiB,IAAI,qBAAqB,EAC1C,gBAAgB,IAAI,oBAAoB,EACxC,kBAAkB,IAAI,sBAAsB,GAC7C,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,WAAW,IAAI,eAAe,EAC9B,uBAAuB,IAAI,2BAA2B,EACtD,kBAAkB,IAAI,sBAAsB,EAC5C,eAAe,IAAI,mBAAmB,EACtC,gBAAgB,IAAI,oBAAoB,EACxC,oBAAoB,IAAI,wBAAwB,EAChD,kBAAkB,IAAI,sBAAsB,GAC7C,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,MAAM,IAAI,UAAU,EACpB,WAAW,IAAI,eAAe,EAC9B,aAAa,IAAI,iBAAiB,EAClC,iBAAiB,IAAI,qBAAqB,EAC1C,YAAY,IAAI,gBAAgB,EAChC,YAAY,IAAI,gBAAgB,EAChC,WAAW,IAAI,eAAe,EAC9B,aAAa,IAAI,iBAAiB,GACnC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,MAAM,IAAI,UAAU,EACpB,aAAa,IAAI,iBAAiB,EAClC,iBAAiB,IAAI,qBAAqB,EAC1C,YAAY,IAAI,gBAAgB,EAChC,YAAY,IAAI,gBAAgB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AAI,EAAE,sBAAsB;IAC5B,MAAM,EAAE,CAAC;SACN,MAAM,CAAC,EAAC,SAAS,EAAE,eAAe,EAAC,CAAC;SACpC,QAAQ,CAAC,wCAAwC,CAAC;CACtD,EACD,CAAC,EAAC,SAAS,EAAE,MAAM,EAAC,EAAE,EAAE;IACtB,MAAM,IAAI,GAAG,OAAO,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;IACxC,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IAE3C,OAAO,KAAC,wBAAwB,IAAC,SAAS,EAAE,SAAS,GAAI,CAAC;AAC5D,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,MAAM;IACN,aAAa;IACb,aAAa;IACb,YAAY;IACZ,YAAY;IACZ,WAAW;IACX,iBAAiB;IACjB,WAAW;IACX,WAAW;IACX,kBAAkB;IAClB,kBAAkB;IAClB,iBAAiB;IACjB,iBAAiB;IACjB,gBAAgB;IAChB,sBAAsB;IACtB,iBAAiB;IACjB,iBAAiB;IACjB,KAAK;IACL,YAAY;IACZ,YAAY;IACZ,WAAW;IACX,WAAW;IACX,UAAU;IACV,gBAAgB;IAChB,MAAM;IACN,aAAa;IACb,aAAa;IACb,YAAY;IACZ,YAAY;IACZ,WAAW;IACX,iBAAiB;IACjB,OAAO;IACP,cAAc;IACd,cAAc;IACd,OAAO;IACP,cAAc;IACd,cAAc;IACd,SAAS;IACT,gBAAgB;IAChB,gBAAgB;IAChB,YAAY;IACZ,mBAAmB;IACnB,mBAAmB;IACnB,iBAAiB;IACjB,gBAAgB;IAChB,wBAAwB;IACxB,qBAAqB;IACrB,WAAW;IACX,kBAAkB;IAClB,kBAAkB;IAClB,gBAAgB;IAChB,eAAe;IACf,uBAAuB;IACvB,oBAAoB;CACrB,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const OverlayBlok: import("../../runtime").BlokComponentDefinition;
2
+ export declare const AnchorBlok: import("../../runtime").BlokComponentDefinition;
3
+ export declare const RouteBlok: import("../../runtime").BlokComponentDefinition;
4
+ export declare const runBlokComponents: import("../../runtime").BlokComponentDefinition[];
5
+ //# sourceMappingURL=components.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../../src/renderer/bloks/run/components.tsx"],"names":[],"mappings":"AAiCA,eAAO,MAAM,WAAW,iDAevB,CAAC;AA0EF,eAAO,MAAM,UAAU,iDA6BtB,CAAC;AAuBF,eAAO,MAAM,SAAS,iDAmCrB,CAAC;AAEF,eAAO,MAAM,iBAAiB,mDAAuC,CAAC"}
@@ -0,0 +1,121 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import * as React from 'react';
3
+ import * as THREE from 'three';
4
+ import * as z from 'zod';
5
+ import { Line } from '@react-three/drei';
6
+ import { createBlokComponent, useBlok, useValue } from '../../runtime/index.js';
7
+ import { describedString } from '../shared/schemas.js';
8
+ import { ModelProvider, useOwnedModel, useSceneNotice, useSceneOverlay } from '../scene/context.js';
9
+ import { FALLBACK_SCENE_RGB, useThemeColour } from '../scene/colour.js';
10
+ import { useBlokSceneEmbedded } from '../scene/host.js';
11
+ import { BlokTrayProvider, useBlokRunHost, useBlokSpaceHost } from './host.js';
12
+ import { progressFraction, resolveAnchors, routePoints, splitRoute, throughKeys } from './math.js';
13
+ /**
14
+ * The components only an action's own blok holds: they read the run it is
15
+ * shown for (scene@1). `Overlay` is the root of one drawn into the space
16
+ * hosting the run, `Anchor` anchors at the agent a dependency is bound to,
17
+ * and `Route` draws a line through several.
18
+ */
19
+ const Children = ({ component, buildChild }) => (_jsx(_Fragment, { children: (component.children ?? []).map(child => (_jsx(React.Fragment, { children: buildChild(child.id) }, child.id))) }));
20
+ const overlaySchema = z
21
+ .object({})
22
+ .describe('Root of an action\'s overlay: drawn into the space that hosts a run of the action, in its world coordinates, over the agents placed there. It owns no canvas. Place Anchor and Route inside.');
23
+ export const OverlayBlok = createBlokComponent({
24
+ name: 'Overlay',
25
+ acceptsChildren: true,
26
+ placement: { childrenContext: 'scene', notDownstreamOf: ['Scene', 'Overlay'] },
27
+ schema: overlaySchema,
28
+ }, ({ component, buildChild }) => useBlokSceneEmbedded() ? (_jsx(Children, { component: component, buildChild: buildChild })) : (_jsx("div", { className: "flex min-h-24 items-center justify-center rounded-xl border border-dashed border-border/70 bg-muted/30 px-6 text-center text-sm text-muted-foreground", children: "An overlay is drawn into the space that hosts a run of its action. Open the run in a space to see it." })));
29
+ const EMPTY_REPORT = {
30
+ ref: '',
31
+ size: 0,
32
+ nodes: [],
33
+ stats: { nodes: 0, triangles: 0, textures: 0, animations: 0 },
34
+ joints: [],
35
+ animations: [],
36
+ warnings: [],
37
+ };
38
+ /**
39
+ * What stands in for a device whose model is not in the scene (yet): its
40
+ * anchor, with no nodes to bind and nothing to click. A binding without a
41
+ * `node` then works on the anchor; one naming a node reports it missing.
42
+ */
43
+ const standInModel = (root) => ({
44
+ instance: { root, nodes: new Map(), rest: new Map(), clips: [], report: EMPTY_REPORT },
45
+ addClickable: () => () => undefined,
46
+ });
47
+ /** One agent the space places: its children at its placement, bound to its model as its scene blok loaded it. */
48
+ const PlacedAt = ({ agent, matrix, children, }) => {
49
+ const [group, setGroup] = React.useState(null);
50
+ React.useLayoutEffect(() => {
51
+ if (group)
52
+ matrix.decompose(group.position, group.quaternion, group.scale);
53
+ }, [group, matrix]);
54
+ const device = useOwnedModel(agent.id);
55
+ const standIn = React.useMemo(() => (group ? standInModel(group) : null), [group]);
56
+ const model = device ?? standIn;
57
+ return (_jsx("group", { ref: setGroup, name: `at:${agent.id}`, children: model ? _jsx(ModelProvider, { value: model, children: children }) : null }));
58
+ };
59
+ /** One agent the space does not place: a card in the side tray, where what would point at it shows. */
60
+ const TrayAt = ({ agent, dependency, children }) => {
61
+ const [root] = React.useState(() => new THREE.Object3D());
62
+ const model = React.useMemo(() => standInModel(root), [root]);
63
+ const anchor = React.useCallback(() => null, []);
64
+ useSceneOverlay({
65
+ visible: true,
66
+ anchor,
67
+ mode: 'panel',
68
+ title: agent.name,
69
+ description: `Not placed in this space (${dependency})`,
70
+ content: null,
71
+ });
72
+ return (_jsx(BlokTrayProvider, { value: agent.name, children: _jsx(ModelProvider, { value: model, children: children }) }));
73
+ };
74
+ const anchorSchema = z
75
+ .object({
76
+ dep: z.string().describe('The dependency key of the action whose agent this anchors at.'),
77
+ })
78
+ .describe('Anchors its children at the agent the run got for a dependency, where it stands in the hosting space; Glow, Popout and OnClick inside it bind to that device\'s model as its scene blok loaded it. A key bound to several agents anchors at each; an agent the space does not place shows in a side tray.');
79
+ export const AnchorBlok = createBlokComponent({ name: 'Anchor', acceptsChildren: true, placement: { context: 'scene', downstreamOf: ['Overlay'] }, schema: anchorSchema }, ({ component, buildChild }) => {
80
+ const blok = useBlok(component, anchorSchema);
81
+ const dependency = useValue(blok.dep);
82
+ const run = useBlokRunHost();
83
+ const space = useBlokSpaceHost();
84
+ const agents = React.useMemo(() => (dependency ? run.agentsFor(dependency) : []), [dependency, run]);
85
+ const anchors = React.useMemo(() => resolveAnchors(agents, space.placementOf), [agents, space]);
86
+ useSceneNotice(dependency && agents.length === 0 ? `Nothing is bound to "${dependency}"` : null, 'The run has no agent for this dependency, so nothing is drawn for it.');
87
+ const children = _jsx(Children, { component: component, buildChild: buildChild });
88
+ return (_jsxs(_Fragment, { children: [anchors.placed.map(({ agent, matrix }) => (_jsx(PlacedAt, { agent: agent, matrix: matrix, children: children }, agent.id))), anchors.unplaced.map(agent => (_jsx(TrayAt, { agent: agent, dependency: dependency ?? '', children: children }, agent.id)))] }));
89
+ });
90
+ const routeSchema = z
91
+ .object({
92
+ through: z
93
+ .unknown()
94
+ .describe('The dependency keys the line runs through, in order: `through={["robot", "frame", "robot"]}`.'),
95
+ progress: z
96
+ .number()
97
+ .nullish()
98
+ .describe('How far along the run is, from 0 to 100 (`task.progress`): the way behind is drawn solid, a marker stands at the head.'),
99
+ color: describedString('The colour of the line: a colour role of the theme, usually a chart role (`chart-2`). Defaults to `chart-1`.'),
100
+ })
101
+ .describe('Draws a line through the agents the run got for these dependencies, where they stand in the hosting space. A dependency whose agent is not placed there is skipped.');
102
+ const ROUTE_COLOR = 'chart-1';
103
+ /** Corners as plain triples: `Line` reads a Vector3 by `instanceof`, which a second copy of three fails. */
104
+ const triples = (points) => points.map(point => [point.x, point.y, point.z]);
105
+ export const RouteBlok = createBlokComponent({ name: 'Route', placement: { context: 'scene', downstreamOf: ['Overlay'] }, schema: routeSchema }, ({ component }) => {
106
+ const blok = useBlok(component, routeSchema);
107
+ const through = useValue(blok.through);
108
+ const progress = useValue(blok.progress) ?? undefined;
109
+ const color = useThemeColour(useValue(blok.color) || ROUTE_COLOR) ?? FALLBACK_SCENE_RGB;
110
+ const run = useBlokRunHost();
111
+ const space = useBlokSpaceHost();
112
+ const keys = React.useMemo(() => throughKeys(through), [through]);
113
+ const points = React.useMemo(() => routePoints(keys, run.agentsFor, space.placementOf), [keys, run, space]);
114
+ const split = React.useMemo(() => splitRoute(points, progress === undefined ? 1 : progressFraction(progress)), [points, progress]);
115
+ useSceneNotice(keys.length >= 2 && points.length < 2 ? 'A route with nowhere to go' : null, `Fewer than two of ${keys.join(', ')} stand in this space.`);
116
+ if (!split.head)
117
+ return null;
118
+ return (_jsxs("group", { name: "route", children: [split.travelled.length >= 2 ? _jsx(Line, { points: triples(split.travelled), color: color, lineWidth: 3 }) : null, split.ahead.length >= 2 && progress !== undefined ? (_jsx(Line, { points: triples(split.ahead), color: color, lineWidth: 2, dashed: true, dashSize: 0.04, gapSize: 0.03, transparent: true, opacity: 0.5 })) : null, progress !== undefined ? (_jsxs("mesh", { position: split.head, raycast: () => null, children: [_jsx("sphereGeometry", { args: [0.02, 16, 16] }), _jsx("meshBasicMaterial", { color: color, toneMapped: false })] })) : null] }));
119
+ });
120
+ export const runBlokComponents = [OverlayBlok, AnchorBlok, RouteBlok];
121
+ //# sourceMappingURL=components.js.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E,CAAC,IAAI,EAAE,EAAE,EAAE,EAAE,CAAC,GAAI,EACxC,4BAAmB,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,GAAI,IACjD,CACR,CAAC,CAAC,CAAC,IAAI,IACF,CACT,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,WAAW,EAAE,UAAU,EAAE,SAAS,CAAC,CAAC"}
@@ -0,0 +1,38 @@
1
+ import * as React from 'react';
2
+ /**
3
+ * What an action's own blok needs from the app that shows a run of it.
4
+ *
5
+ * The blok core draws `Anchor`, `Route` and `ask`; it does not know which
6
+ * agents a run got, where they stand, or how an ask is answered. The host
7
+ * answers those through these contexts: the run (rekuest, from the task or a
8
+ * dry run) and the space it is drawn into (rekuest's space scene).
9
+ *
10
+ * Both are provided around the scene surface, not inside the canvas: a
11
+ * `Popout`'s card is rendered by the scene's HTML half, outside the blok.
12
+ */
13
+ /** An agent a run binds a dependency key to. */
14
+ export type BlokRunAgent = {
15
+ id: string;
16
+ name: string;
17
+ };
18
+ export type BlokRunHost = {
19
+ /** The agents the run binds `key` to, in order: a key bound to several comes with each. */
20
+ agentsFor: (key: string) => readonly BlokRunAgent[];
21
+ /** The run's open ask, answered in place (answering resumes the run); nothing while none is open. */
22
+ renderAsk: () => React.ReactNode;
23
+ };
24
+ export declare const BlokRunHostProvider: React.Provider<BlokRunHost>;
25
+ export declare const useBlokRunHost: () => BlokRunHost;
26
+ /**
27
+ * The space an overlay is drawn into: where each agent stands in it, as the
28
+ * 4x4 affine its placement keeps (rows, meters, Y up).
29
+ */
30
+ export type BlokSpaceHost = {
31
+ /** The stored affine of the agent's placement; null where the space does not place it. */
32
+ placementOf: (agentId: string) => unknown;
33
+ };
34
+ export declare const BlokSpaceHostProvider: React.Provider<BlokSpaceHost>;
35
+ export declare const useBlokSpaceHost: () => BlokSpaceHost;
36
+ export declare const BlokTrayProvider: React.Provider<string | null>;
37
+ export declare const useBlokTray: () => string | null;
38
+ //# sourceMappingURL=host.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"host.d.ts","sourceRoot":"","sources":["../../../../src/renderer/bloks/run/host.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B;;;;;;;;;;GAUG;AAEH,gDAAgD;AAChD,MAAM,MAAM,YAAY,GAAG;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAC,CAAC;AAEtD,MAAM,MAAM,WAAW,GAAG;IACxB,2FAA2F;IAC3F,SAAS,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,SAAS,YAAY,EAAE,CAAC;IACpD,qGAAqG;IACrG,SAAS,EAAE,MAAM,KAAK,CAAC,SAAS,CAAC;CAClC,CAAC;AAWF,eAAO,MAAM,mBAAmB,6BAA8B,CAAC;AAE/D,eAAO,MAAM,cAAc,QAAO,WAAmD,CAAC;AAEtF;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,0FAA0F;IAC1F,WAAW,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC;CAC3C,CAAC;AAMF,eAAO,MAAM,qBAAqB,+BAAgC,CAAC;AAEnE,eAAO,MAAM,gBAAgB,QAAO,aAAuD,CAAC;AAQ5F,eAAO,MAAM,gBAAgB,+BAA2B,CAAC;AAEzD,eAAO,MAAM,WAAW,QAAO,MAAM,GAAG,IAAyC,CAAC"}