@dxos/app-framework 0.8.4-main.c85a9c8dae → 0.8.4-main.cb12b3f963

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 (325) hide show
  1. package/dist/lib/browser/{capability-7RLVE42K.mjs → capability-5RRH3WIB.mjs} +11 -10
  2. package/dist/lib/browser/capability-5RRH3WIB.mjs.map +7 -0
  3. package/dist/lib/browser/{capability-2GL5JAGJ.mjs → capability-LUKGKUQH.mjs} +10 -9
  4. package/dist/lib/browser/{chunk-5RJNZV7K.mjs → chunk-23D4SJUE.mjs} +11 -13
  5. package/dist/lib/browser/{chunk-5RJNZV7K.mjs.map → chunk-23D4SJUE.mjs.map} +3 -3
  6. package/dist/lib/browser/{chunk-YNFPIQGB.mjs → chunk-3JWJXGLK.mjs} +5 -2
  7. package/dist/lib/browser/chunk-3JWJXGLK.mjs.map +7 -0
  8. package/dist/lib/browser/chunk-45CHLTBV.mjs +34 -0
  9. package/dist/lib/browser/chunk-45CHLTBV.mjs.map +7 -0
  10. package/dist/lib/browser/{chunk-PKQT6C53.mjs → chunk-66IXTIVK.mjs} +3 -2
  11. package/dist/lib/browser/chunk-66IXTIVK.mjs.map +7 -0
  12. package/dist/lib/browser/chunk-CZ4BIAHH.mjs +422 -0
  13. package/dist/lib/browser/chunk-CZ4BIAHH.mjs.map +7 -0
  14. package/dist/lib/browser/chunk-FJ4765WW.mjs +8 -0
  15. package/dist/lib/browser/{chunk-FHQTHCX7.mjs.map → chunk-FJ4765WW.mjs.map} +3 -3
  16. package/dist/lib/browser/chunk-FO3IYSLV.mjs +68 -0
  17. package/dist/lib/browser/chunk-FO3IYSLV.mjs.map +7 -0
  18. package/dist/lib/browser/chunk-MX5DKEJH.mjs +584 -0
  19. package/dist/lib/browser/chunk-MX5DKEJH.mjs.map +7 -0
  20. package/dist/lib/browser/chunk-NBXPP7JR.mjs +1174 -0
  21. package/dist/lib/browser/chunk-NBXPP7JR.mjs.map +7 -0
  22. package/dist/lib/browser/chunk-PC4NOADA.mjs +471 -0
  23. package/dist/lib/browser/chunk-PC4NOADA.mjs.map +7 -0
  24. package/dist/lib/browser/{chunk-REORGDJT.mjs → chunk-WBHCSOBW.mjs} +18 -18
  25. package/dist/lib/browser/chunk-WBHCSOBW.mjs.map +7 -0
  26. package/dist/lib/browser/{chunk-FNKT2QQ2.mjs → chunk-Z55LVAGN.mjs} +85 -17
  27. package/dist/lib/browser/chunk-Z55LVAGN.mjs.map +7 -0
  28. package/dist/lib/browser/{chunk-ZRWBPIZG.mjs → chunk-ZGJAZSNE.mjs} +9 -37
  29. package/dist/lib/browser/chunk-ZGJAZSNE.mjs.map +7 -0
  30. package/dist/lib/browser/cli/index.mjs +16 -29
  31. package/dist/lib/browser/cli/index.mjs.map +3 -3
  32. package/dist/lib/browser/common/activation-events.mjs +9 -8
  33. package/dist/lib/browser/common/capabilities.mjs +9 -8
  34. package/dist/lib/browser/core/activation-event.mjs +1 -1
  35. package/dist/lib/browser/core/capability.mjs +3 -1
  36. package/dist/lib/browser/core/plugin-manager.mjs +8 -4
  37. package/dist/lib/browser/core/plugin.mjs +14 -4
  38. package/dist/lib/browser/core/url-loader.mjs +24 -0
  39. package/dist/lib/browser/index.mjs +37 -22
  40. package/dist/lib/browser/index.mjs.map +3 -3
  41. package/dist/lib/browser/{invoker-capability-BNLVNYHU.mjs → invoker-capability-K4GHUFXF.mjs} +22 -14
  42. package/dist/lib/browser/invoker-capability-K4GHUFXF.mjs.map +7 -0
  43. package/dist/lib/browser/meta.json +1 -1
  44. package/dist/lib/browser/testing/index.mjs +184 -49
  45. package/dist/lib/browser/testing/index.mjs.map +4 -4
  46. package/dist/lib/browser/testing/react.mjs +78 -0
  47. package/dist/lib/browser/testing/react.mjs.map +7 -0
  48. package/dist/lib/browser/ui/index.mjs +18 -15
  49. package/dist/lib/node-esm/{capability-CHIMU6LX.mjs → capability-FCGZVIEG.mjs} +10 -9
  50. package/dist/lib/{browser/capability-2GL5JAGJ.mjs.map → node-esm/capability-FCGZVIEG.mjs.map} +1 -1
  51. package/dist/lib/node-esm/{capability-EVZK4REM.mjs → capability-JOIQ2MQE.mjs} +11 -10
  52. package/dist/lib/node-esm/capability-JOIQ2MQE.mjs.map +7 -0
  53. package/dist/lib/node-esm/{chunk-UEWJDI2L.mjs → chunk-37Z53PXZ.mjs} +2 -2
  54. package/dist/lib/node-esm/{chunk-UEWJDI2L.mjs.map → chunk-37Z53PXZ.mjs.map} +3 -3
  55. package/dist/lib/node-esm/chunk-42J2ZUQQ.mjs +472 -0
  56. package/dist/lib/node-esm/chunk-42J2ZUQQ.mjs.map +7 -0
  57. package/dist/lib/node-esm/chunk-6XW6LET6.mjs +35 -0
  58. package/dist/lib/node-esm/chunk-6XW6LET6.mjs.map +7 -0
  59. package/dist/lib/node-esm/{chunk-2A4PRBIX.mjs → chunk-D347W3KO.mjs} +9 -37
  60. package/dist/lib/node-esm/chunk-D347W3KO.mjs.map +7 -0
  61. package/dist/lib/node-esm/{chunk-CJCQS2YL.mjs → chunk-HTBJU5FX.mjs} +85 -17
  62. package/dist/lib/node-esm/chunk-HTBJU5FX.mjs.map +7 -0
  63. package/dist/lib/node-esm/chunk-M3HKPRPO.mjs +423 -0
  64. package/dist/lib/node-esm/chunk-M3HKPRPO.mjs.map +7 -0
  65. package/dist/lib/node-esm/chunk-MUVUQC3G.mjs +1175 -0
  66. package/dist/lib/node-esm/chunk-MUVUQC3G.mjs.map +7 -0
  67. package/dist/lib/node-esm/{chunk-VUIUFIGT.mjs → chunk-SBS2YMPT.mjs} +11 -13
  68. package/dist/lib/node-esm/{chunk-VUIUFIGT.mjs.map → chunk-SBS2YMPT.mjs.map} +3 -3
  69. package/dist/lib/node-esm/{chunk-SB5ODNPX.mjs → chunk-SDJ4B2LU.mjs} +5 -2
  70. package/dist/lib/node-esm/chunk-SDJ4B2LU.mjs.map +7 -0
  71. package/dist/lib/node-esm/{chunk-UFW652GS.mjs → chunk-WFSRZKBP.mjs} +18 -18
  72. package/dist/lib/node-esm/chunk-WFSRZKBP.mjs.map +7 -0
  73. package/dist/lib/node-esm/chunk-WK7OIQKI.mjs +70 -0
  74. package/dist/lib/node-esm/chunk-WK7OIQKI.mjs.map +7 -0
  75. package/dist/lib/node-esm/chunk-WKTLE7MG.mjs +585 -0
  76. package/dist/lib/node-esm/chunk-WKTLE7MG.mjs.map +7 -0
  77. package/dist/lib/node-esm/{chunk-7OWSHPYK.mjs → chunk-XOCUANHO.mjs} +3 -2
  78. package/dist/lib/node-esm/chunk-XOCUANHO.mjs.map +7 -0
  79. package/dist/lib/node-esm/cli/index.mjs +16 -29
  80. package/dist/lib/node-esm/cli/index.mjs.map +3 -3
  81. package/dist/lib/node-esm/common/activation-events.mjs +9 -8
  82. package/dist/lib/node-esm/common/capabilities.mjs +9 -8
  83. package/dist/lib/node-esm/core/activation-event.mjs +1 -1
  84. package/dist/lib/node-esm/core/capability.mjs +3 -1
  85. package/dist/lib/node-esm/core/plugin-manager.mjs +8 -4
  86. package/dist/lib/node-esm/core/plugin.mjs +14 -4
  87. package/dist/lib/node-esm/core/url-loader.mjs +25 -0
  88. package/dist/lib/node-esm/index.mjs +37 -22
  89. package/dist/lib/node-esm/index.mjs.map +3 -3
  90. package/dist/lib/node-esm/{invoker-capability-VF6SP44V.mjs → invoker-capability-XEPW5LMJ.mjs} +22 -14
  91. package/dist/lib/node-esm/invoker-capability-XEPW5LMJ.mjs.map +7 -0
  92. package/dist/lib/node-esm/meta.json +1 -1
  93. package/dist/lib/node-esm/testing/index.mjs +184 -49
  94. package/dist/lib/node-esm/testing/index.mjs.map +4 -4
  95. package/dist/lib/node-esm/testing/react.mjs +79 -0
  96. package/dist/lib/node-esm/testing/react.mjs.map +7 -0
  97. package/dist/lib/node-esm/ui/index.mjs +18 -15
  98. package/dist/plugin/node-esm/index.mjs +875 -0
  99. package/dist/plugin/node-esm/index.mjs.map +7 -0
  100. package/dist/plugin/node-esm/meta.json +1 -0
  101. package/dist/types/src/common/activation-events.d.ts +1 -1
  102. package/dist/types/src/common/activation-events.d.ts.map +1 -1
  103. package/dist/types/src/common/annotations.d.ts +1 -0
  104. package/dist/types/src/common/annotations.d.ts.map +1 -0
  105. package/dist/types/src/common/capabilities.d.ts +4 -8
  106. package/dist/types/src/common/capabilities.d.ts.map +1 -1
  107. package/dist/types/src/common/operations.d.ts +8 -22
  108. package/dist/types/src/common/operations.d.ts.map +1 -1
  109. package/dist/types/src/core/activation-event.d.ts +5 -5
  110. package/dist/types/src/core/activation-event.d.ts.map +1 -1
  111. package/dist/types/src/core/capability-manager.d.ts +5 -0
  112. package/dist/types/src/core/capability-manager.d.ts.map +1 -1
  113. package/dist/types/src/core/capability.d.ts +8 -2
  114. package/dist/types/src/core/capability.d.ts.map +1 -1
  115. package/dist/types/src/core/edge-registry-plugin-provider.d.ts +30 -0
  116. package/dist/types/src/core/edge-registry-plugin-provider.d.ts.map +1 -0
  117. package/dist/types/src/core/index.d.ts +6 -0
  118. package/dist/types/src/core/index.d.ts.map +1 -1
  119. package/dist/types/src/core/plugin-asset-cache.d.ts +71 -0
  120. package/dist/types/src/core/plugin-asset-cache.d.ts.map +1 -0
  121. package/dist/types/src/core/plugin-manager.d.ts +177 -4
  122. package/dist/types/src/core/plugin-manager.d.ts.map +1 -1
  123. package/dist/types/src/core/plugin-manifest.d.ts +101 -0
  124. package/dist/types/src/core/plugin-manifest.d.ts.map +1 -0
  125. package/dist/types/src/core/plugin-manifest.test.d.ts +2 -0
  126. package/dist/types/src/core/plugin-manifest.test.d.ts.map +1 -0
  127. package/dist/types/src/core/plugin.d.ts +113 -7
  128. package/dist/types/src/core/plugin.d.ts.map +1 -1
  129. package/dist/types/src/core/registry.d.ts +101 -0
  130. package/dist/types/src/core/registry.d.ts.map +1 -0
  131. package/dist/types/src/core/url-loader.d.ts +127 -0
  132. package/dist/types/src/core/url-loader.d.ts.map +1 -0
  133. package/dist/types/src/core/url-loader.test.d.ts +2 -0
  134. package/dist/types/src/core/url-loader.test.d.ts.map +1 -0
  135. package/dist/types/src/helpers.d.ts.map +1 -1
  136. package/dist/types/src/plugin-operation/OperationPlugin.d.ts.map +1 -1
  137. package/dist/types/src/plugin-operation/history/capability.d.ts.map +1 -1
  138. package/dist/types/src/plugin-operation/history/errors.d.ts +30 -3
  139. package/dist/types/src/plugin-operation/history/errors.d.ts.map +1 -1
  140. package/dist/types/src/plugin-operation/history/history-tracker.d.ts +1 -1
  141. package/dist/types/src/plugin-operation/history/history-tracker.d.ts.map +1 -1
  142. package/dist/types/src/plugin-operation/history/types.d.ts +1 -1
  143. package/dist/types/src/plugin-operation/history/types.d.ts.map +1 -1
  144. package/dist/types/src/plugin-operation/history/undo-mapping.d.ts +1 -1
  145. package/dist/types/src/plugin-operation/history/undo-mapping.d.ts.map +1 -1
  146. package/dist/types/src/plugin-operation/history/undo-registry.d.ts +1 -1
  147. package/dist/types/src/plugin-operation/history/undo-registry.d.ts.map +1 -1
  148. package/dist/types/src/plugin-operation/invoker-capability.d.ts +1 -1
  149. package/dist/types/src/plugin-operation/invoker-capability.d.ts.map +1 -1
  150. package/dist/types/src/plugin-operation/testing.d.ts +27 -77
  151. package/dist/types/src/plugin-operation/testing.d.ts.map +1 -1
  152. package/dist/types/src/plugin-runtime/RuntimePlugin.d.ts.map +1 -1
  153. package/dist/types/src/plugin-runtime/capability.d.ts +1 -1
  154. package/dist/types/src/plugin-runtime/capability.d.ts.map +1 -1
  155. package/dist/types/src/testing/harness.d.ts +67 -0
  156. package/dist/types/src/testing/harness.d.ts.map +1 -0
  157. package/dist/types/src/testing/index.d.ts +1 -0
  158. package/dist/types/src/testing/index.d.ts.map +1 -1
  159. package/dist/types/src/testing/react.d.ts +27 -0
  160. package/dist/types/src/testing/react.d.ts.map +1 -0
  161. package/dist/types/src/testing/react.test.d.ts +2 -0
  162. package/dist/types/src/testing/react.test.d.ts.map +1 -0
  163. package/dist/types/src/testing/service.d.ts.map +1 -1
  164. package/dist/types/src/testing/withPluginManager.d.ts.map +1 -1
  165. package/dist/types/src/testing/withPluginManager.stories.d.ts.map +1 -1
  166. package/dist/types/src/ui/components/App/App.d.ts +3 -2
  167. package/dist/types/src/ui/components/App/App.d.ts.map +1 -1
  168. package/dist/types/src/ui/components/App/App.stories.d.ts +2 -2
  169. package/dist/types/src/ui/components/App/App.stories.d.ts.map +1 -1
  170. package/dist/types/src/ui/components/Placeholder/Placeholder.d.ts +64 -0
  171. package/dist/types/src/ui/components/Placeholder/Placeholder.d.ts.map +1 -0
  172. package/dist/types/src/ui/components/Placeholder/Placeholder.stories.d.ts +19 -0
  173. package/dist/types/src/ui/components/Placeholder/Placeholder.stories.d.ts.map +1 -0
  174. package/dist/types/src/ui/components/Placeholder/index.d.ts +2 -0
  175. package/dist/types/src/ui/components/Placeholder/index.d.ts.map +1 -0
  176. package/dist/types/src/ui/components/PluginManager/PluginManagerContext.stories.d.ts.map +1 -1
  177. package/dist/types/src/ui/components/Surface/SurfaceComponent.d.ts +16 -4
  178. package/dist/types/src/ui/components/Surface/SurfaceComponent.d.ts.map +1 -1
  179. package/dist/types/src/ui/components/Surface/SurfaceComponent.stories.d.ts.map +1 -1
  180. package/dist/types/src/ui/components/Surface/SurfaceProfilerContext.d.ts +48 -0
  181. package/dist/types/src/ui/components/Surface/SurfaceProfilerContext.d.ts.map +1 -0
  182. package/dist/types/src/ui/components/Surface/index.d.ts +22 -6
  183. package/dist/types/src/ui/components/Surface/index.d.ts.map +1 -1
  184. package/dist/types/src/ui/components/Surface/types.d.ts +110 -9
  185. package/dist/types/src/ui/components/Surface/types.d.ts.map +1 -1
  186. package/dist/types/src/ui/components/Surface/types.test.d.ts +2 -0
  187. package/dist/types/src/ui/components/Surface/types.test.d.ts.map +1 -0
  188. package/dist/types/src/ui/components/index.d.ts +1 -0
  189. package/dist/types/src/ui/components/index.d.ts.map +1 -1
  190. package/dist/types/src/ui/hooks/index.d.ts +0 -1
  191. package/dist/types/src/ui/hooks/index.d.ts.map +1 -1
  192. package/dist/types/src/ui/hooks/useApp.d.ts +43 -4
  193. package/dist/types/src/ui/hooks/useApp.d.ts.map +1 -1
  194. package/dist/types/src/ui/hooks/useApp.test.d.ts +2 -0
  195. package/dist/types/src/ui/hooks/useApp.test.d.ts.map +1 -0
  196. package/dist/types/src/ui/hooks/useCapabilities.d.ts.map +1 -1
  197. package/dist/types/src/ui/hooks/useLoading.d.ts.map +1 -1
  198. package/dist/types/src/ui/hooks/useSettingsState.d.ts.map +1 -1
  199. package/dist/types/src/vite-plugin/boot-loader/BootLoader.stories.d.ts +34 -0
  200. package/dist/types/src/vite-plugin/boot-loader/BootLoader.stories.d.ts.map +1 -0
  201. package/dist/types/src/vite-plugin/boot-loader/index.d.ts +52 -0
  202. package/dist/types/src/vite-plugin/boot-loader/index.d.ts.map +1 -0
  203. package/dist/types/src/vite-plugin/composer/index.d.ts +34 -0
  204. package/dist/types/src/vite-plugin/composer/index.d.ts.map +1 -0
  205. package/dist/types/src/vite-plugin/import-map/index.d.ts +28 -0
  206. package/dist/types/src/vite-plugin/import-map/index.d.ts.map +1 -0
  207. package/dist/types/src/vite-plugin/index.d.ts +5 -0
  208. package/dist/types/src/vite-plugin/index.d.ts.map +1 -0
  209. package/dist/types/src/vite-plugin/manifest.d.ts +41 -0
  210. package/dist/types/src/vite-plugin/manifest.d.ts.map +1 -0
  211. package/dist/types/src/vite-plugin/manifest.test.d.ts +2 -0
  212. package/dist/types/src/vite-plugin/manifest.test.d.ts.map +1 -0
  213. package/dist/types/src/vite-plugin/packages.d.ts +13 -0
  214. package/dist/types/src/vite-plugin/packages.d.ts.map +1 -0
  215. package/dist/types/tsconfig.tsbuildinfo +1 -1
  216. package/moon.yml +15 -0
  217. package/package.json +48 -53
  218. package/src/cli/cli.ts +3 -3
  219. package/src/common/activation-events.ts +6 -6
  220. package/src/common/annotations.ts +3 -0
  221. package/src/common/capabilities.ts +18 -23
  222. package/src/common/operations.ts +7 -10
  223. package/src/context.ts +1 -1
  224. package/src/core/activation-event.ts +5 -2
  225. package/src/core/capability-manager.test.ts +1 -1
  226. package/src/core/capability-manager.ts +22 -1
  227. package/src/core/capability.ts +13 -2
  228. package/src/core/edge-registry-plugin-provider.ts +92 -0
  229. package/src/core/index.ts +6 -0
  230. package/src/core/plugin-asset-cache.ts +60 -0
  231. package/src/core/plugin-manager.test.ts +855 -29
  232. package/src/core/plugin-manager.ts +808 -188
  233. package/src/core/plugin-manifest.test.ts +75 -0
  234. package/src/core/plugin-manifest.ts +134 -0
  235. package/src/core/plugin.ts +144 -12
  236. package/src/core/registry.ts +157 -0
  237. package/src/core/url-loader.test.ts +221 -0
  238. package/src/core/url-loader.ts +388 -0
  239. package/src/plugin-operation/OperationPlugin.ts +2 -3
  240. package/src/plugin-operation/history/capability.ts +1 -2
  241. package/src/plugin-operation/history/errors.ts +2 -6
  242. package/src/plugin-operation/history/history-tracker.test.ts +37 -43
  243. package/src/plugin-operation/history/history-tracker.ts +1 -2
  244. package/src/plugin-operation/history/types.ts +1 -1
  245. package/src/plugin-operation/history/undo-mapping.ts +1 -1
  246. package/src/plugin-operation/history/undo-registry.test.ts +3 -4
  247. package/src/plugin-operation/history/undo-registry.ts +1 -1
  248. package/src/plugin-operation/invoker-capability.ts +19 -4
  249. package/src/plugin-operation/meta.ts +1 -1
  250. package/src/plugin-operation/testing.ts +26 -45
  251. package/src/plugin-runtime/RuntimePlugin.ts +2 -3
  252. package/src/plugin-runtime/meta.ts +1 -1
  253. package/src/testing/harness.ts +229 -0
  254. package/src/testing/index.ts +1 -0
  255. package/src/testing/react.test.tsx +48 -0
  256. package/src/testing/react.tsx +113 -0
  257. package/src/testing/service.ts +3 -3
  258. package/src/testing/withPluginManager.stories.tsx +1 -2
  259. package/src/testing/withPluginManager.tsx +40 -18
  260. package/src/ui/components/App/App.stories.tsx +5 -5
  261. package/src/ui/components/App/App.tsx +29 -5
  262. package/src/ui/components/Placeholder/Placeholder.stories.tsx +77 -0
  263. package/src/ui/components/Placeholder/Placeholder.tsx +155 -0
  264. package/src/ui/components/Placeholder/index.ts +5 -0
  265. package/src/ui/components/PluginManager/PluginManagerContext.stories.tsx +8 -6
  266. package/src/ui/components/Surface/SurfaceComponent.stories.tsx +16 -15
  267. package/src/ui/components/Surface/SurfaceComponent.tsx +109 -53
  268. package/src/ui/components/Surface/SurfaceProfilerContext.tsx +207 -0
  269. package/src/ui/components/Surface/index.ts +35 -1
  270. package/src/ui/components/Surface/types.test.ts +126 -0
  271. package/src/ui/components/Surface/types.ts +164 -12
  272. package/src/ui/components/index.ts +1 -0
  273. package/src/ui/hooks/index.ts +0 -1
  274. package/src/ui/hooks/useApp.test.tsx +159 -0
  275. package/src/ui/hooks/useApp.tsx +226 -15
  276. package/src/ui/hooks/useLoading.tsx +14 -6
  277. package/src/vite-plugin/boot-loader/BootLoader.stories.tsx +263 -0
  278. package/src/vite-plugin/boot-loader/boot-loader.css +294 -0
  279. package/src/vite-plugin/boot-loader/boot-loader.js +274 -0
  280. package/src/vite-plugin/boot-loader/index.ts +112 -0
  281. package/src/vite-plugin/composer/index.ts +306 -0
  282. package/src/vite-plugin/import-map/index.ts +524 -0
  283. package/src/vite-plugin/index.ts +10 -0
  284. package/src/vite-plugin/manifest.test.ts +46 -0
  285. package/src/vite-plugin/manifest.ts +57 -0
  286. package/src/vite-plugin/packages.ts +188 -0
  287. package/tsconfig.json +19 -1
  288. package/tsconfig.node.json +1 -1
  289. package/vitest.config.ts +1 -1
  290. package/.swc/plugins/linux_x86_64_19.0.0/727453fb3a62f7f1d952a41e051ca8a6f88cadc45cee43c6a4d1aa45f9b75665.wasmer-v7 +0 -0
  291. package/dist/lib/browser/capability-7RLVE42K.mjs.map +0 -7
  292. package/dist/lib/browser/chunk-4CTRO67U.mjs +0 -703
  293. package/dist/lib/browser/chunk-4CTRO67U.mjs.map +0 -7
  294. package/dist/lib/browser/chunk-FHQTHCX7.mjs +0 -8
  295. package/dist/lib/browser/chunk-FNKT2QQ2.mjs.map +0 -7
  296. package/dist/lib/browser/chunk-HE27PNNQ.mjs +0 -824
  297. package/dist/lib/browser/chunk-HE27PNNQ.mjs.map +0 -7
  298. package/dist/lib/browser/chunk-NPUEVX42.mjs +0 -34
  299. package/dist/lib/browser/chunk-NPUEVX42.mjs.map +0 -7
  300. package/dist/lib/browser/chunk-PKQT6C53.mjs.map +0 -7
  301. package/dist/lib/browser/chunk-REORGDJT.mjs.map +0 -7
  302. package/dist/lib/browser/chunk-YAFEA4GV.mjs +0 -1
  303. package/dist/lib/browser/chunk-YNFPIQGB.mjs.map +0 -7
  304. package/dist/lib/browser/chunk-ZRWBPIZG.mjs.map +0 -7
  305. package/dist/lib/browser/invoker-capability-BNLVNYHU.mjs.map +0 -7
  306. package/dist/lib/node-esm/capability-EVZK4REM.mjs.map +0 -7
  307. package/dist/lib/node-esm/chunk-2A4PRBIX.mjs.map +0 -7
  308. package/dist/lib/node-esm/chunk-7CPNAEGV.mjs +0 -704
  309. package/dist/lib/node-esm/chunk-7CPNAEGV.mjs.map +0 -7
  310. package/dist/lib/node-esm/chunk-7OWSHPYK.mjs.map +0 -7
  311. package/dist/lib/node-esm/chunk-CJCQS2YL.mjs.map +0 -7
  312. package/dist/lib/node-esm/chunk-DTCHT2X2.mjs +0 -825
  313. package/dist/lib/node-esm/chunk-DTCHT2X2.mjs.map +0 -7
  314. package/dist/lib/node-esm/chunk-JAZVHID3.mjs +0 -35
  315. package/dist/lib/node-esm/chunk-JAZVHID3.mjs.map +0 -7
  316. package/dist/lib/node-esm/chunk-SB5ODNPX.mjs.map +0 -7
  317. package/dist/lib/node-esm/chunk-UFW652GS.mjs.map +0 -7
  318. package/dist/lib/node-esm/chunk-Z4TJPSMP.mjs +0 -2
  319. package/dist/lib/node-esm/invoker-capability-VF6SP44V.mjs.map +0 -7
  320. package/dist/types/src/ui/hooks/useOperationResolver.d.ts +0 -19
  321. package/dist/types/src/ui/hooks/useOperationResolver.d.ts.map +0 -1
  322. package/src/ui/hooks/useOperationResolver.ts +0 -40
  323. /package/dist/lib/{node-esm/capability-CHIMU6LX.mjs.map → browser/capability-LUKGKUQH.mjs.map} +0 -0
  324. /package/dist/lib/browser/{chunk-YAFEA4GV.mjs.map → core/url-loader.mjs.map} +0 -0
  325. /package/dist/lib/node-esm/{chunk-Z4TJPSMP.mjs.map → core/url-loader.mjs.map} +0 -0
@@ -0,0 +1,274 @@
1
+ //
2
+ // Copyright 2026 DXOS.org
3
+ //
4
+
5
+ // Inline driver script — injected into the host's `<body>` by `bootLoaderPlugin`.
6
+ // Runs before the module bundle is fetched, so the host can observe `boot:html-parsed`
7
+ // and update the visible status from `main.tsx` between phases.
8
+ //
9
+ // The loader has two host-driven states (plus an unobserved idle state on
10
+ // script entry that's promoted automatically — there's no API to opt out of
11
+ // motion on cold load, by design):
12
+ // - State 1 (slow tick): auto-entered the moment the inline script runs;
13
+ // asymptotic creep toward `STATE_1_ASYMPTOTE`%.
14
+ // - State 2 (progress): host-driven, value supplied to `progress(fraction)`.
15
+ // The creep stays alive in state 2 too, with a
16
+ // ceiling that climbs `STATE_2_BUMP` percent ahead
17
+ // of the most recent `progress()` call (capped at
18
+ // `ABSOLUTE_CEILING`). Between sparse host updates
19
+ // the ring keeps inching forward toward that
20
+ // ceiling, so a long activation gap doesn't read
21
+ // as a frozen disc.
22
+ //
23
+ // `window.__bootLoader.status(text)` updates the visible status line.
24
+ // `window.__bootLoader.progress(fraction)` enter state 2 with `fraction` ∈ [0, 1].
25
+ // `window.__bootLoader.dismiss()` remove the loader DOM (terminal).
26
+ //
27
+ // Kept ES5-flavoured so the bundler never has to touch it.
28
+
29
+ (function () {
30
+ performance.mark('boot:html-parsed');
31
+
32
+ // Asymptotic creep — `next = raw + (ceiling - raw) * creepRate` per tick,
33
+ // so the var eases toward `ceiling` and never quite reaches it.
34
+ var CREEP_TICK_MS = 100;
35
+ // State 1 creep is a "we're alive" hint before any real progress lands,
36
+ // so it eases gently toward a low asymptote.
37
+ var STATE_1_RATE = 0.04;
38
+ var STATE_1_ASYMPTOTE = 20;
39
+ // State 2 creep bridges the gap between sparse `progress()` calls.
40
+ // Tuning is a trade-off:
41
+ // - Larger `STATE_2_RATE` → fills faster, but reaches the ceiling
42
+ // sooner and then sits idle (looks "paused").
43
+ // - Larger `STATE_2_BUMP` → ring leads further ahead of the host's
44
+ // last reported value, so subsequent host updates feel "behind"
45
+ // until they cross the lead.
46
+ // Current values aim for continuous-but-modest motion through a ~5 s
47
+ // activation silence: 50 % → ~64 % over 5 s, ceiling at host + 15 % so
48
+ // real progress can catch up via `Math.max` without big jumps.
49
+ var STATE_2_RATE = 0.05;
50
+ var STATE_2_BUMP = 15;
51
+ // Ring never auto-creeps past this — keeps the user from interpreting the
52
+ // ring as "almost done" while the host hasn't actually said so.
53
+ var ABSOLUTE_CEILING = 90;
54
+
55
+ // 0 = idle (transient — auto-promoted to 1 immediately below),
56
+ // 1 = slow tick, 2 = host-driven progress.
57
+ var state = 0;
58
+ var creepHandle = null;
59
+ var creepCeiling = STATE_1_ASYMPTOTE;
60
+ var creepRate = STATE_1_RATE;
61
+ var trace = /(?:^|[?&])trace=1(?:&|$)/.test(window.location.search);
62
+ var start = Date.now();
63
+ var last = Date.now();
64
+ var timings = [];
65
+
66
+ function ensureCreep() {
67
+ if (creepHandle != null) {
68
+ return;
69
+ }
70
+ creepHandle = setInterval(function () {
71
+ var element = document.getElementById('boot-loader-disc');
72
+ if (!element) {
73
+ return;
74
+ }
75
+ var raw = parseFloat(element.style.getPropertyValue('--boot-loader-bar-progress')) || 0;
76
+ // Already at (or above) the ceiling — nothing to do this tick.
77
+ if (raw >= creepCeiling - 0.1) {
78
+ return;
79
+ }
80
+ var next = raw + (creepCeiling - raw) * creepRate;
81
+ element.style.setProperty('--boot-loader-bar-progress', String(next));
82
+ if (next > 0 && next < 100) {
83
+ element.setAttribute('data-progress-active', '');
84
+ }
85
+ }, CREEP_TICK_MS);
86
+ }
87
+
88
+ function stopCreep() {
89
+ if (creepHandle != null) {
90
+ clearInterval(creepHandle);
91
+ creepHandle = null;
92
+ }
93
+ }
94
+
95
+ window.__bootLoader = {
96
+ /**
97
+ * Update the visible status line. The caller owns formatting — the
98
+ * loader just renders `humanized` and records the structured fields
99
+ * for the trace. Idempotent on the full structured payload: equal
100
+ * back-to-back updates are a no-op, but two updates with the same
101
+ * visible text and different `event` / `module` ids still produce a
102
+ * fresh trace entry so the timeline can distinguish those transitions.
103
+ *
104
+ * Payload: `{ event?, module?, humanized, range? }`.
105
+ * - `humanized`: the exact string to display (e.g. "Loading framework…",
106
+ * "Activating Observability: react-surface").
107
+ * - `event` / `module`: optional raw ids for the trace, when the
108
+ * update originates from an activation transition.
109
+ * - `range`: optional `{ index, total }` for ticking progress within
110
+ * a single phase (e.g. "Loading plugins (12/80)"). When present,
111
+ * the loader replaces the current line in place rather than
112
+ * appending a new one — so 80 plugin loads produce one trace
113
+ * entry with an updating suffix instead of 80 separate lines.
114
+ */
115
+ status: function (payload) {
116
+ if (!payload || typeof payload !== 'object') {
117
+ return;
118
+ }
119
+ var humanized = payload.humanized || '';
120
+ var event = payload.event || null;
121
+ var moduleId = payload.module || null;
122
+ var range =
123
+ payload.range && typeof payload.range.index === 'number' && typeof payload.range.total === 'number'
124
+ ? payload.range
125
+ : null;
126
+ // Display text appends the (i/n) suffix when a range is provided so
127
+ // the same `humanized` string can tick through a count without the
128
+ // caller having to format it.
129
+ var displayText = range ? humanized + ' (' + range.index + '/' + range.total + ')' : humanized;
130
+ // Compare against the previous entry's structured fields, not the
131
+ // DOM text alone — two different transitions can humanize to the same
132
+ // visible string (e.g. an event-level "Activating Foo" followed by a
133
+ // module-level "Activating Foo: react-surface" reduced to "Activating
134
+ // Foo" by a custom formatter), and the trace should still carry both.
135
+ var previous = timings.length > 0 ? timings[timings.length - 1] : null;
136
+ if (
137
+ previous &&
138
+ previous.text === displayText &&
139
+ (previous.event || null) === event &&
140
+ (previous.module || null) === moduleId
141
+ ) {
142
+ return;
143
+ }
144
+ if (range && previous) {
145
+ // Range tick — collapse into the previous trace entry instead of
146
+ // appending. The trace timeline records one transition per phase,
147
+ // not one per `(i/n)` step, keeping the boot trace compact.
148
+ previous.text = displayText;
149
+ } else {
150
+ if (previous) {
151
+ previous.duration = Date.now() - last;
152
+ }
153
+ var entry = { text: displayText };
154
+ if (event) {
155
+ entry.event = event;
156
+ }
157
+ if (moduleId) {
158
+ entry.module = moduleId;
159
+ }
160
+ timings.push(entry);
161
+ last = Date.now();
162
+ }
163
+ var element = document.getElementById('boot-loader-status');
164
+ if (!element) {
165
+ return;
166
+ }
167
+ // The track holds every appended status line. On the first
168
+ // `status()` call we hoist any pre-existing lines (the initial
169
+ // status injected by `bootLoaderPlugin`) into the track so the
170
+ // CSS `transform` translation applies uniformly.
171
+ var track = document.getElementById('boot-loader-status-track');
172
+ if (!track) {
173
+ track = document.createElement('div');
174
+ track.id = 'boot-loader-status-track';
175
+ while (element.firstChild) {
176
+ track.appendChild(element.firstChild);
177
+ }
178
+ element.appendChild(track);
179
+ }
180
+ var lastLine = track.lastElementChild;
181
+ if (range && lastLine) {
182
+ // Range tick — replace the current visible line's text in place,
183
+ // no slide. The line keeps its position so the (i/n) counter just
184
+ // updates over the same row.
185
+ lastLine.textContent = displayText;
186
+ } else {
187
+ // Fresh phase (or first line) — append and slide the track up so
188
+ // the new line aligns with the single-line viewport. The CSS
189
+ // `transition` on the track's `transform` eases the move; we
190
+ // measure in pixels (not `em`) because some engines (and headless
191
+ // Chromium) don't reliably interpolate `transform` between
192
+ // `em`-valued translateY's.
193
+ var line = document.createElement('div');
194
+ line.className = 'boot-loader-status-line';
195
+ line.textContent = displayText;
196
+ track.appendChild(line);
197
+ var lineHeight = line.getBoundingClientRect().height || 0;
198
+ track.style.transform = 'translateY(' + (track.children.length - 1) * -lineHeight + 'px)';
199
+ }
200
+ },
201
+
202
+ /**
203
+ * Enter state 2 (host-driven progress) — set the determinate ring to
204
+ * `fraction` ∈ [0, 1]. Invalid / negative / non-finite values clamp to
205
+ * 0 (the empty ring) rather than letting `NaN`/`Infinity` slip into
206
+ * `--boot-loader-bar-progress`, which CSS would treat as invalid and
207
+ * silently reset to the 0% var() default. The state-1 creep timer is
208
+ * left running with a new ceiling so the ring keeps inching forward
209
+ * between host updates.
210
+ *
211
+ * The ring never regresses: if the requested value is below the
212
+ * current var (e.g. the host's first call is `progress(0)` while the
213
+ * creep had already reached ~12%), the existing value is held. The
214
+ * host's progress catches up once it exceeds the held floor, so the
215
+ * ring's motion stays monotonic across the state-1 → state-2 boundary.
216
+ */
217
+ progress: function (fraction) {
218
+ state = 2;
219
+ // Set the var on the disc so both the masked ring and the orbiting
220
+ // dot (siblings inside `#boot-loader-disc`) inherit the same value.
221
+ var element = document.getElementById('boot-loader-disc');
222
+ if (!element) {
223
+ return;
224
+ }
225
+ // Flip into "host-driven" mode the first time `progress()` lands —
226
+ // CSS keys the brand mark's grayscale→color transition off this
227
+ // attribute, so the mark eases from monochrome to full palette as
228
+ // real progress starts arriving.
229
+ element.setAttribute('data-host-driven', '');
230
+ var clamped = typeof fraction !== 'number' || !isFinite(fraction) || fraction < 0 ? 0 : Math.min(1, fraction);
231
+ var requestedPct = clamped * 100;
232
+ var currentPct = parseFloat(element.style.getPropertyValue('--boot-loader-bar-progress')) || 0;
233
+ var nextPct = Math.max(currentPct, requestedPct);
234
+ element.style.setProperty('--boot-loader-bar-progress', String(nextPct));
235
+ // Switch the ongoing creep to its state-2 cadence — faster ease and
236
+ // a larger lead bump so the ring keeps moving while the host is
237
+ // silent (e.g. composer-app's "Starting Composer…" stretch while the
238
+ // first slow plugin module activates).
239
+ creepRate = STATE_2_RATE;
240
+ var newCeiling = Math.min(nextPct + STATE_2_BUMP, ABSOLUTE_CEILING);
241
+ if (newCeiling > creepCeiling) {
242
+ creepCeiling = newCeiling;
243
+ }
244
+ ensureCreep();
245
+ // Toggle the leading-edge dot only while progress is strictly in (0, 1).
246
+ if (nextPct > 0 && nextPct < 100) {
247
+ element.setAttribute('data-progress-active', '');
248
+ } else {
249
+ element.removeAttribute('data-progress-active');
250
+ }
251
+ },
252
+
253
+ dismiss: function () {
254
+ stopCreep();
255
+ var element = document.getElementById('boot-loader');
256
+ if (element && element.parentNode) {
257
+ element.parentNode.removeChild(element);
258
+ }
259
+
260
+ if (trace) {
261
+ if (timings.length > 0) {
262
+ timings[timings.length - 1].duration = Date.now() - last;
263
+ }
264
+ console.log(JSON.stringify({ total: Date.now() - start, timings }, null, 2));
265
+ }
266
+ },
267
+ };
268
+
269
+ // Auto-promote idle → slow tick the moment this inline script executes,
270
+ // so the disc starts moving on the very first frame the loader paints.
271
+ // The host calls `progress()` later to take over.
272
+ state = 1;
273
+ ensureCreep();
274
+ })();
@@ -0,0 +1,112 @@
1
+ //
2
+ // Copyright 2026 DXOS.org
3
+ //
4
+
5
+ import { type Plugin } from 'vite';
6
+
7
+ import css from './boot-loader.css?raw';
8
+ import driverScript from './boot-loader.js?raw';
9
+
10
+ /**
11
+ * Options for {@link bootLoaderPlugin}.
12
+ */
13
+ export type BootLoaderOptions = {
14
+ /**
15
+ * Initial status text rendered by the loader (replaced via
16
+ * `window.__bootLoader.status(...)` once the host starts firing phase callbacks).
17
+ */
18
+ status?: string;
19
+
20
+ /**
21
+ * Inline SVG markup for an optional brand mark rendered above the progress bar.
22
+ * The mark renders at full opacity with whatever fills the SVG declares, so
23
+ * pass a colour-palette logo for the strongest visual identity. SVGs that use
24
+ * `fill="currentColor"` still inherit the loader's `prefers-color-scheme`
25
+ * text colour. Leave empty/undefined to render only the bar.
26
+ */
27
+ markSvg?: string;
28
+ };
29
+
30
+ /**
31
+ * Vite plugin that injects a tiny native-DOM "boot loader" into the host app's
32
+ * `index.html`.
33
+ *
34
+ * The loader paints on the very first frame, before any JS bundle is fetched —
35
+ * so the user sees something immediately on cold load instead of staring at a
36
+ * blank document while the compiled module graph is parsed. The brand mark
37
+ * sits centred inside a thin determinate progress ring; both layers are
38
+ * composited so the ring's fill stays visually smooth even while the JS main
39
+ * thread is busy.
40
+ *
41
+ * The host app drives the loader from `main.tsx`:
42
+ *
43
+ * - `window.__bootLoader.status(text)` updates the status line per phase.
44
+ * - `window.__bootLoader.progress(fraction)` grows the determinate ring (0–1).
45
+ * - `window.__bootLoader.dismiss()` removes the loader once React has mounted.
46
+ *
47
+ * Inject order:
48
+ * - `<style>` → `<head>` (parses before any bundled stylesheet).
49
+ * - `<div id="boot-loader">…</div>` → start of `<body>` (sibling of `#root`).
50
+ * - inline `<script>` defining `window.__bootLoader` → start of `<body>`.
51
+ *
52
+ * Keeping the loader as a sibling of `#root` (rather than a child of it) means
53
+ * `createRoot(document.getElementById('root')).render(...)` does not fight the
54
+ * loader for ownership; the host explicitly calls `dismiss()` after the first
55
+ * React commit, which gives a deterministic handoff.
56
+ *
57
+ * Color tokens are exposed as CSS custom properties (`--boot-loader-bg-light`,
58
+ * `--boot-loader-bg-dark`, etc.) defined in `boot-loader.css`, so consumers can
59
+ * override them at the document level without us re-parameterizing this plugin.
60
+ */
61
+ export const bootLoaderPlugin = ({ status, markSvg }: BootLoaderOptions = {}): Plugin => {
62
+ return {
63
+ name: 'app-framework:boot-loader',
64
+ transformIndexHtml() {
65
+ // The mark slot uses `children: <raw-svg>` (vite emits string children as
66
+ // raw HTML, not text-escaped) so the host can pass an SVG file's contents
67
+ // straight through. The mark and ring are siblings inside `#boot-loader-disc`
68
+ // so CSS grid-stacking can centre the mark inside the ring without the ring's
69
+ // radial-gradient mask clipping the SVG.
70
+ const markChildren = markSvg ? [{ tag: 'div', attrs: { id: 'boot-loader-mark' }, children: markSvg }] : [];
71
+
72
+ return [
73
+ {
74
+ tag: 'style',
75
+ injectTo: 'head',
76
+ children: css,
77
+ },
78
+ {
79
+ tag: 'div',
80
+ injectTo: 'body-prepend',
81
+ attrs: {
82
+ id: 'boot-loader',
83
+ role: 'status',
84
+ 'aria-live': 'polite',
85
+ 'aria-label': 'Initializing',
86
+ },
87
+ children: [
88
+ {
89
+ tag: 'div',
90
+ attrs: { id: 'boot-loader-disc' },
91
+ children: [
92
+ { tag: 'div', attrs: { id: 'boot-loader-bar' }, children: '' },
93
+ { tag: 'div', attrs: { id: 'boot-loader-dot' }, children: '' },
94
+ ...markChildren,
95
+ ],
96
+ },
97
+ {
98
+ tag: 'div',
99
+ attrs: { id: 'boot-loader-status' },
100
+ children: status ? [{ tag: 'div', attrs: { class: 'boot-loader-status-line' }, children: status }] : [],
101
+ },
102
+ ],
103
+ },
104
+ {
105
+ tag: 'script',
106
+ injectTo: 'body-prepend',
107
+ children: driverScript,
108
+ },
109
+ ];
110
+ },
111
+ };
112
+ };