@dxos/app-framework 0.7.4 → 0.7.5-labs.071a3e2

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 (389) hide show
  1. package/dist/lib/browser/app-graph-builder-MOLT4EHG.mjs +137 -0
  2. package/dist/lib/browser/app-graph-builder-MOLT4EHG.mjs.map +7 -0
  3. package/dist/lib/browser/chunk-G3HBVVT5.mjs +1403 -0
  4. package/dist/lib/browser/chunk-G3HBVVT5.mjs.map +7 -0
  5. package/dist/lib/browser/chunk-LDJ3T4V3.mjs +32 -0
  6. package/dist/lib/browser/chunk-LDJ3T4V3.mjs.map +7 -0
  7. package/dist/lib/browser/chunk-TGOF2WQZ.mjs +285 -0
  8. package/dist/lib/browser/chunk-TGOF2WQZ.mjs.map +7 -0
  9. package/dist/lib/browser/index.mjs +135 -543
  10. package/dist/lib/browser/index.mjs.map +4 -4
  11. package/dist/lib/browser/intent-dispatcher-LJKNIGAM.mjs +11 -0
  12. package/dist/lib/browser/intent-resolver-Z724VAMC.mjs +38 -0
  13. package/dist/lib/browser/intent-resolver-Z724VAMC.mjs.map +7 -0
  14. package/dist/lib/browser/meta.json +1 -1
  15. package/dist/lib/browser/store-NWCY7LAP.mjs +19 -0
  16. package/dist/lib/browser/store-NWCY7LAP.mjs.map +7 -0
  17. package/dist/lib/browser/testing/index.mjs +74 -0
  18. package/dist/lib/browser/testing/index.mjs.map +7 -0
  19. package/dist/lib/browser/worker.mjs +77 -0
  20. package/dist/lib/node/app-graph-builder-G7SRXDFD.cjs +146 -0
  21. package/dist/lib/node/app-graph-builder-G7SRXDFD.cjs.map +7 -0
  22. package/dist/lib/node/chunk-55KIQ6YK.cjs +1437 -0
  23. package/dist/lib/node/chunk-55KIQ6YK.cjs.map +7 -0
  24. package/dist/lib/node/chunk-5GABBW2Q.cjs +308 -0
  25. package/dist/lib/node/chunk-5GABBW2Q.cjs.map +7 -0
  26. package/dist/lib/node/chunk-QLVQ6PND.cjs +58 -0
  27. package/dist/lib/node/chunk-QLVQ6PND.cjs.map +7 -0
  28. package/dist/lib/node/index.cjs +136 -558
  29. package/dist/lib/node/index.cjs.map +4 -4
  30. package/dist/lib/node/{plugin-settings-OZ6IKAE5.cjs → intent-dispatcher-CGUK3BCJ.cjs} +10 -10
  31. package/dist/lib/node/intent-dispatcher-CGUK3BCJ.cjs.map +7 -0
  32. package/dist/lib/node/intent-resolver-7GNKPRWT.cjs +45 -0
  33. package/dist/lib/node/intent-resolver-7GNKPRWT.cjs.map +7 -0
  34. package/dist/lib/node/meta.json +1 -1
  35. package/dist/lib/node/store-WMJSEQPC.cjs +34 -0
  36. package/dist/lib/node/store-WMJSEQPC.cjs.map +7 -0
  37. package/dist/lib/node/testing/index.cjs +98 -0
  38. package/dist/lib/node/testing/index.cjs.map +7 -0
  39. package/dist/lib/node/worker.cjs +99 -0
  40. package/dist/lib/node/worker.cjs.map +7 -0
  41. package/dist/lib/node-esm/app-graph-builder-MKLYH3NE.mjs +138 -0
  42. package/dist/lib/node-esm/app-graph-builder-MKLYH3NE.mjs.map +7 -0
  43. package/dist/lib/node-esm/chunk-47FG42II.mjs +286 -0
  44. package/dist/lib/node-esm/chunk-47FG42II.mjs.map +7 -0
  45. package/dist/lib/node-esm/chunk-CNJYZNSL.mjs +34 -0
  46. package/dist/lib/node-esm/chunk-CNJYZNSL.mjs.map +7 -0
  47. package/dist/lib/node-esm/chunk-ZTB4TA6Q.mjs +1405 -0
  48. package/dist/lib/node-esm/chunk-ZTB4TA6Q.mjs.map +7 -0
  49. package/dist/lib/node-esm/index.mjs +135 -543
  50. package/dist/lib/node-esm/index.mjs.map +4 -4
  51. package/dist/lib/node-esm/intent-dispatcher-RZAWA4XD.mjs +12 -0
  52. package/dist/lib/node-esm/intent-resolver-UIU37CKJ.mjs +39 -0
  53. package/dist/lib/node-esm/intent-resolver-UIU37CKJ.mjs.map +7 -0
  54. package/dist/lib/node-esm/meta.json +1 -1
  55. package/dist/lib/node-esm/store-YUWINFBN.mjs +20 -0
  56. package/dist/lib/node-esm/store-YUWINFBN.mjs.map +7 -0
  57. package/dist/lib/node-esm/testing/index.mjs +75 -0
  58. package/dist/lib/node-esm/testing/index.mjs.map +7 -0
  59. package/dist/lib/node-esm/worker.mjs +78 -0
  60. package/dist/types/src/App.d.ts +22 -13
  61. package/dist/types/src/App.d.ts.map +1 -1
  62. package/dist/types/src/common/capabilities.d.ts +296 -0
  63. package/dist/types/src/common/capabilities.d.ts.map +1 -0
  64. package/dist/types/src/common/events.d.ts +48 -0
  65. package/dist/types/src/common/events.d.ts.map +1 -0
  66. package/dist/types/src/common/file.d.ts +14 -0
  67. package/dist/types/src/common/file.d.ts.map +1 -0
  68. package/dist/types/src/common/graph.d.ts +21 -0
  69. package/dist/types/src/common/graph.d.ts.map +1 -0
  70. package/dist/types/src/common/index.d.ts +8 -0
  71. package/dist/types/src/common/index.d.ts.map +1 -0
  72. package/dist/types/src/common/layout.d.ts +248 -0
  73. package/dist/types/src/common/layout.d.ts.map +1 -0
  74. package/dist/types/src/common/surface.d.ts +68 -0
  75. package/dist/types/src/common/surface.d.ts.map +1 -0
  76. package/dist/types/src/common/translations.d.ts +11 -0
  77. package/dist/types/src/common/translations.d.ts.map +1 -0
  78. package/dist/types/src/core/capabilities.d.ts +94 -0
  79. package/dist/types/src/core/capabilities.d.ts.map +1 -0
  80. package/dist/types/src/core/capabilities.test.d.ts +2 -0
  81. package/dist/types/src/core/capabilities.test.d.ts.map +1 -0
  82. package/dist/types/src/core/events.d.ts +58 -0
  83. package/dist/types/src/core/events.d.ts.map +1 -0
  84. package/dist/types/src/core/index.d.ts +5 -0
  85. package/dist/types/src/core/index.d.ts.map +1 -0
  86. package/dist/types/src/core/manager.d.ts +119 -0
  87. package/dist/types/src/core/manager.d.ts.map +1 -0
  88. package/dist/types/src/core/manager.test.d.ts +2 -0
  89. package/dist/types/src/core/manager.test.d.ts.map +1 -0
  90. package/dist/types/src/core/plugin.d.ts +97 -0
  91. package/dist/types/src/core/plugin.d.ts.map +1 -0
  92. package/dist/types/src/helpers.d.ts +10 -0
  93. package/dist/types/src/helpers.d.ts.map +1 -0
  94. package/dist/types/src/helpers.test.d.ts +2 -0
  95. package/dist/types/src/helpers.test.d.ts.map +1 -0
  96. package/dist/types/src/index.d.ts +5 -1
  97. package/dist/types/src/index.d.ts.map +1 -1
  98. package/dist/types/src/playground/debug/Debug.d.ts +6 -0
  99. package/dist/types/src/playground/debug/Debug.d.ts.map +1 -0
  100. package/dist/types/src/playground/debug/index.d.ts +2 -0
  101. package/dist/types/src/playground/debug/index.d.ts.map +1 -0
  102. package/dist/types/src/playground/debug/plugin.d.ts +2 -0
  103. package/dist/types/src/playground/debug/plugin.d.ts.map +1 -0
  104. package/dist/types/src/playground/generator/Main.d.ts +6 -0
  105. package/dist/types/src/playground/generator/Main.d.ts.map +1 -0
  106. package/dist/types/src/playground/generator/Toolbar.d.ts +6 -0
  107. package/dist/types/src/playground/generator/Toolbar.d.ts.map +1 -0
  108. package/dist/types/src/playground/generator/generator.d.ts +7 -0
  109. package/dist/types/src/playground/generator/generator.d.ts.map +1 -0
  110. package/dist/types/src/playground/generator/index.d.ts +3 -0
  111. package/dist/types/src/playground/generator/index.d.ts.map +1 -0
  112. package/dist/types/src/playground/generator/plugin.d.ts +2 -0
  113. package/dist/types/src/playground/generator/plugin.d.ts.map +1 -0
  114. package/dist/types/src/playground/layout/Layout.d.ts +8 -0
  115. package/dist/types/src/playground/layout/Layout.d.ts.map +1 -0
  116. package/dist/types/src/playground/layout/index.d.ts +2 -0
  117. package/dist/types/src/playground/layout/index.d.ts.map +1 -0
  118. package/dist/types/src/playground/layout/plugin.d.ts +2 -0
  119. package/dist/types/src/playground/layout/plugin.d.ts.map +1 -0
  120. package/dist/types/src/playground/logger/Toolbar.d.ts +6 -0
  121. package/dist/types/src/playground/logger/Toolbar.d.ts.map +1 -0
  122. package/dist/types/src/playground/logger/index.d.ts +2 -0
  123. package/dist/types/src/playground/logger/index.d.ts.map +1 -0
  124. package/dist/types/src/playground/logger/plugin.d.ts +2 -0
  125. package/dist/types/src/playground/logger/plugin.d.ts.map +1 -0
  126. package/dist/types/src/playground/logger/schema.d.ts +13 -0
  127. package/dist/types/src/playground/logger/schema.d.ts.map +1 -0
  128. package/dist/types/src/playground/playground.stories.d.ts +10 -0
  129. package/dist/types/src/playground/playground.stories.d.ts.map +1 -0
  130. package/dist/types/src/plugin-intent/IntentPlugin.d.ts +2 -0
  131. package/dist/types/src/plugin-intent/IntentPlugin.d.ts.map +1 -0
  132. package/dist/types/src/plugin-intent/actions.d.ts +23 -0
  133. package/dist/types/src/plugin-intent/actions.d.ts.map +1 -0
  134. package/dist/types/src/plugin-intent/errors.d.ts +16 -0
  135. package/dist/types/src/plugin-intent/errors.d.ts.map +1 -0
  136. package/dist/types/src/plugin-intent/index.d.ts +5 -0
  137. package/dist/types/src/plugin-intent/index.d.ts.map +1 -0
  138. package/dist/types/src/plugin-intent/intent-dispatcher.d.ts +113 -0
  139. package/dist/types/src/plugin-intent/intent-dispatcher.d.ts.map +1 -0
  140. package/dist/types/src/plugin-intent/intent-dispatcher.test.d.ts +2 -0
  141. package/dist/types/src/plugin-intent/intent-dispatcher.test.d.ts.map +1 -0
  142. package/dist/types/src/plugin-intent/intent.d.ts +68 -0
  143. package/dist/types/src/plugin-intent/intent.d.ts.map +1 -0
  144. package/dist/types/src/plugin-settings/SettingsPlugin.d.ts +2 -0
  145. package/dist/types/src/plugin-settings/SettingsPlugin.d.ts.map +1 -0
  146. package/dist/types/src/plugin-settings/actions.d.ts +27 -0
  147. package/dist/types/src/plugin-settings/actions.d.ts.map +1 -0
  148. package/dist/types/src/plugin-settings/app-graph-builder.d.ts +197 -0
  149. package/dist/types/src/plugin-settings/app-graph-builder.d.ts.map +1 -0
  150. package/dist/types/src/plugin-settings/index.d.ts +3 -0
  151. package/dist/types/src/plugin-settings/index.d.ts.map +1 -0
  152. package/dist/types/src/plugin-settings/intent-resolver.d.ts +4 -0
  153. package/dist/types/src/plugin-settings/intent-resolver.d.ts.map +1 -0
  154. package/dist/types/src/plugin-settings/store.d.ts +5 -0
  155. package/dist/types/src/plugin-settings/store.d.ts.map +1 -0
  156. package/dist/types/src/plugin-settings/translations.d.ts +11 -0
  157. package/dist/types/src/plugin-settings/translations.d.ts.map +1 -0
  158. package/dist/types/src/react/ErrorBoundary.d.ts.map +1 -0
  159. package/dist/types/src/react/IntentContext.d.ts +8 -0
  160. package/dist/types/src/react/IntentContext.d.ts.map +1 -0
  161. package/dist/types/src/react/PluginManagerProvider.d.ts +10 -0
  162. package/dist/types/src/react/PluginManagerProvider.d.ts.map +1 -0
  163. package/dist/types/src/react/Surface.d.ts +12 -0
  164. package/dist/types/src/react/Surface.d.ts.map +1 -0
  165. package/dist/types/src/react/Surface.stories.d.ts +16 -0
  166. package/dist/types/src/react/Surface.stories.d.ts.map +1 -0
  167. package/dist/types/src/react/common.d.ts +12 -0
  168. package/dist/types/src/react/common.d.ts.map +1 -0
  169. package/dist/types/src/react/index.d.ts +7 -0
  170. package/dist/types/src/react/index.d.ts.map +1 -0
  171. package/dist/types/src/react/useCapabilities.d.ts +13 -0
  172. package/dist/types/src/react/useCapabilities.d.ts.map +1 -0
  173. package/dist/types/src/react/useIntentResolver.d.ts +3 -0
  174. package/dist/types/src/react/useIntentResolver.d.ts.map +1 -0
  175. package/dist/types/src/testing/index.d.ts +2 -0
  176. package/dist/types/src/testing/index.d.ts.map +1 -0
  177. package/dist/types/src/testing/withPluginManager.d.ts +10 -0
  178. package/dist/types/src/testing/withPluginManager.d.ts.map +1 -0
  179. package/dist/types/src/testing/withPluginManager.stories.d.ts +5 -0
  180. package/dist/types/src/testing/withPluginManager.stories.d.ts.map +1 -0
  181. package/dist/types/src/worker.d.ts +4 -0
  182. package/dist/types/src/worker.d.ts.map +1 -0
  183. package/dist/types/tsconfig.tsbuildinfo +1 -0
  184. package/package.json +39 -17
  185. package/project.json +4 -3
  186. package/src/App.tsx +139 -34
  187. package/src/common/capabilities.ts +97 -0
  188. package/src/common/events.ts +72 -0
  189. package/src/common/file.ts +22 -0
  190. package/src/common/graph.ts +30 -0
  191. package/src/{plugins/common → common}/index.ts +3 -2
  192. package/src/common/layout.ts +225 -0
  193. package/src/common/surface.ts +81 -0
  194. package/src/common/translations.ts +17 -0
  195. package/src/core/capabilities.test.ts +116 -0
  196. package/src/core/capabilities.ts +222 -0
  197. package/src/core/events.ts +58 -0
  198. package/src/core/index.ts +8 -0
  199. package/src/core/manager.test.ts +516 -0
  200. package/src/core/manager.ts +511 -0
  201. package/src/core/plugin.ts +131 -0
  202. package/src/helpers.test.ts +97 -0
  203. package/src/helpers.ts +45 -0
  204. package/src/index.ts +6 -3
  205. package/src/playground/debug/Debug.tsx +39 -0
  206. package/src/playground/debug/index.ts +5 -0
  207. package/src/playground/debug/plugin.ts +17 -0
  208. package/src/playground/generator/Main.tsx +71 -0
  209. package/src/playground/generator/Toolbar.tsx +46 -0
  210. package/src/playground/generator/generator.ts +48 -0
  211. package/src/playground/generator/index.ts +6 -0
  212. package/src/playground/generator/plugin.ts +23 -0
  213. package/src/playground/layout/Layout.tsx +33 -0
  214. package/src/playground/layout/index.ts +5 -0
  215. package/src/playground/layout/plugin.ts +17 -0
  216. package/src/playground/logger/Toolbar.tsx +29 -0
  217. package/src/playground/logger/index.ts +5 -0
  218. package/src/playground/logger/plugin.ts +36 -0
  219. package/src/playground/logger/schema.ts +12 -0
  220. package/src/playground/playground.stories.tsx +34 -0
  221. package/src/plugin-intent/IntentPlugin.tsx +20 -0
  222. package/src/plugin-intent/actions.ts +22 -0
  223. package/src/plugin-intent/errors.ts +39 -0
  224. package/src/plugin-intent/index.ts +8 -0
  225. package/src/plugin-intent/intent-dispatcher.test.ts +299 -0
  226. package/src/plugin-intent/intent-dispatcher.ts +304 -0
  227. package/src/plugin-intent/intent.ts +146 -0
  228. package/src/plugin-settings/SettingsPlugin.ts +35 -0
  229. package/src/plugin-settings/actions.ts +27 -0
  230. package/src/plugin-settings/app-graph-builder.ts +122 -0
  231. package/src/plugin-settings/index.ts +6 -0
  232. package/src/plugin-settings/intent-resolver.ts +28 -0
  233. package/src/plugin-settings/store.ts +20 -0
  234. package/src/plugin-settings/translations.ts +17 -0
  235. package/src/react/IntentContext.tsx +34 -0
  236. package/src/react/PluginManagerProvider.ts +22 -0
  237. package/src/react/Surface.stories.tsx +96 -0
  238. package/src/react/Surface.tsx +75 -0
  239. package/src/react/common.ts +12 -0
  240. package/src/react/index.ts +10 -0
  241. package/src/react/useCapabilities.ts +40 -0
  242. package/src/react/useIntentResolver.ts +22 -0
  243. package/src/testing/index.ts +5 -0
  244. package/src/testing/withPluginManager.stories.tsx +47 -0
  245. package/src/testing/withPluginManager.tsx +75 -0
  246. package/src/worker.ts +11 -0
  247. package/tsconfig.json +54 -2
  248. package/dist/lib/browser/chunk-3E7RY3CE.mjs +0 -72
  249. package/dist/lib/browser/chunk-3E7RY3CE.mjs.map +0 -7
  250. package/dist/lib/browser/chunk-653Y45CL.mjs +0 -41
  251. package/dist/lib/browser/chunk-653Y45CL.mjs.map +0 -7
  252. package/dist/lib/browser/chunk-FRXJ25VI.mjs +0 -214
  253. package/dist/lib/browser/chunk-FRXJ25VI.mjs.map +0 -7
  254. package/dist/lib/browser/chunk-YXM35XRE.mjs +0 -213
  255. package/dist/lib/browser/chunk-YXM35XRE.mjs.map +0 -7
  256. package/dist/lib/browser/plugin-intent-LU4KL2RO.mjs +0 -22
  257. package/dist/lib/browser/plugin-settings-OM3G2QFY.mjs +0 -11
  258. package/dist/lib/browser/plugin-surface-LECZMKSQ.mjs +0 -24
  259. package/dist/lib/node/chunk-JZ2JVKRY.cjs +0 -58
  260. package/dist/lib/node/chunk-JZ2JVKRY.cjs.map +0 -7
  261. package/dist/lib/node/chunk-QBM42OQ6.cjs +0 -97
  262. package/dist/lib/node/chunk-QBM42OQ6.cjs.map +0 -7
  263. package/dist/lib/node/chunk-QSVP5HOW.cjs +0 -238
  264. package/dist/lib/node/chunk-QSVP5HOW.cjs.map +0 -7
  265. package/dist/lib/node/chunk-SOVLKUWI.cjs +0 -236
  266. package/dist/lib/node/chunk-SOVLKUWI.cjs.map +0 -7
  267. package/dist/lib/node/plugin-intent-FVFR2LKB.cjs +0 -43
  268. package/dist/lib/node/plugin-intent-FVFR2LKB.cjs.map +0 -7
  269. package/dist/lib/node/plugin-settings-OZ6IKAE5.cjs.map +0 -7
  270. package/dist/lib/node/plugin-surface-YWDRXQTD.cjs +0 -45
  271. package/dist/lib/node/plugin-surface-YWDRXQTD.cjs.map +0 -7
  272. package/dist/lib/node-esm/chunk-2R4GVK7O.mjs +0 -215
  273. package/dist/lib/node-esm/chunk-2R4GVK7O.mjs.map +0 -7
  274. package/dist/lib/node-esm/chunk-EYCTSFEJ.mjs +0 -74
  275. package/dist/lib/node-esm/chunk-EYCTSFEJ.mjs.map +0 -7
  276. package/dist/lib/node-esm/chunk-YFMFQBB4.mjs +0 -214
  277. package/dist/lib/node-esm/chunk-YFMFQBB4.mjs.map +0 -7
  278. package/dist/lib/node-esm/chunk-YNU7FTGJ.mjs +0 -43
  279. package/dist/lib/node-esm/chunk-YNU7FTGJ.mjs.map +0 -7
  280. package/dist/lib/node-esm/plugin-intent-V7ER24Y6.mjs +0 -23
  281. package/dist/lib/node-esm/plugin-settings-37UVWF2V.mjs +0 -12
  282. package/dist/lib/node-esm/plugin-settings-37UVWF2V.mjs.map +0 -7
  283. package/dist/lib/node-esm/plugin-surface-TEU42XQN.mjs +0 -25
  284. package/dist/lib/node-esm/plugin-surface-TEU42XQN.mjs.map +0 -7
  285. package/dist/types/src/plugins/common/file.d.ts +0 -22
  286. package/dist/types/src/plugins/common/file.d.ts.map +0 -1
  287. package/dist/types/src/plugins/common/graph.d.ts +0 -51
  288. package/dist/types/src/plugins/common/graph.d.ts.map +0 -1
  289. package/dist/types/src/plugins/common/index.d.ts +0 -7
  290. package/dist/types/src/plugins/common/index.d.ts.map +0 -1
  291. package/dist/types/src/plugins/common/layout.d.ts +0 -202
  292. package/dist/types/src/plugins/common/layout.d.ts.map +0 -1
  293. package/dist/types/src/plugins/common/metadata.d.ts +0 -16
  294. package/dist/types/src/plugins/common/metadata.d.ts.map +0 -1
  295. package/dist/types/src/plugins/common/navigation.d.ts +0 -196
  296. package/dist/types/src/plugins/common/navigation.d.ts.map +0 -1
  297. package/dist/types/src/plugins/common/translations.d.ts +0 -22
  298. package/dist/types/src/plugins/common/translations.d.ts.map +0 -1
  299. package/dist/types/src/plugins/helpers.d.ts +0 -41
  300. package/dist/types/src/plugins/helpers.d.ts.map +0 -1
  301. package/dist/types/src/plugins/index.d.ts +0 -7
  302. package/dist/types/src/plugins/index.d.ts.map +0 -1
  303. package/dist/types/src/plugins/plugin-host/HostPlugin.d.ts +0 -21
  304. package/dist/types/src/plugins/plugin-host/HostPlugin.d.ts.map +0 -1
  305. package/dist/types/src/plugins/plugin-host/PluginContainer.d.ts +0 -14
  306. package/dist/types/src/plugins/plugin-host/PluginContainer.d.ts.map +0 -1
  307. package/dist/types/src/plugins/plugin-host/PluginContext.d.ts +0 -47
  308. package/dist/types/src/plugins/plugin-host/PluginContext.d.ts.map +0 -1
  309. package/dist/types/src/plugins/plugin-host/index.d.ts +0 -4
  310. package/dist/types/src/plugins/plugin-host/index.d.ts.map +0 -1
  311. package/dist/types/src/plugins/plugin-host/plugin.d.ts +0 -98
  312. package/dist/types/src/plugins/plugin-host/plugin.d.ts.map +0 -1
  313. package/dist/types/src/plugins/plugin-host/plugin.test.d.ts +0 -35
  314. package/dist/types/src/plugins/plugin-host/plugin.test.d.ts.map +0 -1
  315. package/dist/types/src/plugins/plugin-intent/IntentContext.d.ts +0 -21
  316. package/dist/types/src/plugins/plugin-intent/IntentContext.d.ts.map +0 -1
  317. package/dist/types/src/plugins/plugin-intent/IntentPlugin.d.ts +0 -8
  318. package/dist/types/src/plugins/plugin-intent/IntentPlugin.d.ts.map +0 -1
  319. package/dist/types/src/plugins/plugin-intent/helpers.d.ts +0 -6
  320. package/dist/types/src/plugins/plugin-intent/helpers.d.ts.map +0 -1
  321. package/dist/types/src/plugins/plugin-intent/index.d.ts +0 -6
  322. package/dist/types/src/plugins/plugin-intent/index.d.ts.map +0 -1
  323. package/dist/types/src/plugins/plugin-intent/intent.d.ts +0 -81
  324. package/dist/types/src/plugins/plugin-intent/intent.d.ts.map +0 -1
  325. package/dist/types/src/plugins/plugin-intent/meta.d.ts +0 -5
  326. package/dist/types/src/plugins/plugin-intent/meta.d.ts.map +0 -1
  327. package/dist/types/src/plugins/plugin-intent/provides.d.ts +0 -20
  328. package/dist/types/src/plugins/plugin-intent/provides.d.ts.map +0 -1
  329. package/dist/types/src/plugins/plugin-settings/SettingsPlugin.d.ts +0 -4
  330. package/dist/types/src/plugins/plugin-settings/SettingsPlugin.d.ts.map +0 -1
  331. package/dist/types/src/plugins/plugin-settings/index.d.ts +0 -4
  332. package/dist/types/src/plugins/plugin-settings/index.d.ts.map +0 -1
  333. package/dist/types/src/plugins/plugin-settings/meta.d.ts +0 -5
  334. package/dist/types/src/plugins/plugin-settings/meta.d.ts.map +0 -1
  335. package/dist/types/src/plugins/plugin-settings/provides.d.ts +0 -13
  336. package/dist/types/src/plugins/plugin-settings/provides.d.ts.map +0 -1
  337. package/dist/types/src/plugins/plugin-surface/ErrorBoundary.d.ts.map +0 -1
  338. package/dist/types/src/plugins/plugin-surface/Surface.d.ts +0 -62
  339. package/dist/types/src/plugins/plugin-surface/Surface.d.ts.map +0 -1
  340. package/dist/types/src/plugins/plugin-surface/SurfacePlugin.d.ts +0 -7
  341. package/dist/types/src/plugins/plugin-surface/SurfacePlugin.d.ts.map +0 -1
  342. package/dist/types/src/plugins/plugin-surface/SurfaceRootContext.d.ts +0 -39
  343. package/dist/types/src/plugins/plugin-surface/SurfaceRootContext.d.ts.map +0 -1
  344. package/dist/types/src/plugins/plugin-surface/helpers.d.ts +0 -21
  345. package/dist/types/src/plugins/plugin-surface/helpers.d.ts.map +0 -1
  346. package/dist/types/src/plugins/plugin-surface/index.d.ts +0 -8
  347. package/dist/types/src/plugins/plugin-surface/index.d.ts.map +0 -1
  348. package/dist/types/src/plugins/plugin-surface/meta.d.ts +0 -5
  349. package/dist/types/src/plugins/plugin-surface/meta.d.ts.map +0 -1
  350. package/dist/types/src/plugins/plugin-surface/provides.d.ts +0 -16
  351. package/dist/types/src/plugins/plugin-surface/provides.d.ts.map +0 -1
  352. package/src/plugins/common/file.ts +0 -36
  353. package/src/plugins/common/graph.ts +0 -70
  354. package/src/plugins/common/layout.ts +0 -155
  355. package/src/plugins/common/metadata.ts +0 -29
  356. package/src/plugins/common/navigation.ts +0 -185
  357. package/src/plugins/common/translations.ts +0 -36
  358. package/src/plugins/helpers.ts +0 -92
  359. package/src/plugins/index.ts +0 -11
  360. package/src/plugins/plugin-host/HostPlugin.tsx +0 -96
  361. package/src/plugins/plugin-host/PluginContainer.tsx +0 -120
  362. package/src/plugins/plugin-host/PluginContext.tsx +0 -79
  363. package/src/plugins/plugin-host/index.ts +0 -8
  364. package/src/plugins/plugin-host/plugin.test.ts +0 -158
  365. package/src/plugins/plugin-host/plugin.ts +0 -126
  366. package/src/plugins/plugin-intent/IntentContext.tsx +0 -49
  367. package/src/plugins/plugin-intent/IntentPlugin.tsx +0 -151
  368. package/src/plugins/plugin-intent/helpers.ts +0 -11
  369. package/src/plugins/plugin-intent/index.ts +0 -12
  370. package/src/plugins/plugin-intent/intent.ts +0 -101
  371. package/src/plugins/plugin-intent/meta.ts +0 -9
  372. package/src/plugins/plugin-intent/provides.ts +0 -38
  373. package/src/plugins/plugin-settings/SettingsPlugin.tsx +0 -22
  374. package/src/plugins/plugin-settings/index.ts +0 -9
  375. package/src/plugins/plugin-settings/meta.ts +0 -9
  376. package/src/plugins/plugin-settings/provides.ts +0 -29
  377. package/src/plugins/plugin-surface/Surface.tsx +0 -195
  378. package/src/plugins/plugin-surface/SurfacePlugin.tsx +0 -33
  379. package/src/plugins/plugin-surface/SurfaceRootContext.tsx +0 -60
  380. package/src/plugins/plugin-surface/helpers.ts +0 -22
  381. package/src/plugins/plugin-surface/index.ts +0 -14
  382. package/src/plugins/plugin-surface/meta.ts +0 -9
  383. package/src/plugins/plugin-surface/provides.ts +0 -26
  384. /package/dist/lib/browser/{plugin-intent-LU4KL2RO.mjs.map → intent-dispatcher-LJKNIGAM.mjs.map} +0 -0
  385. /package/dist/lib/browser/{plugin-settings-OM3G2QFY.mjs.map → worker.mjs.map} +0 -0
  386. /package/dist/lib/{browser/plugin-surface-LECZMKSQ.mjs.map → node-esm/intent-dispatcher-RZAWA4XD.mjs.map} +0 -0
  387. /package/dist/lib/node-esm/{plugin-intent-V7ER24Y6.mjs.map → worker.mjs.map} +0 -0
  388. /package/dist/types/src/{plugins/plugin-surface → react}/ErrorBoundary.d.ts +0 -0
  389. /package/src/{plugins/plugin-surface → react}/ErrorBoundary.tsx +0 -0
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/plugins/plugin-settings/SettingsPlugin.tsx", "../../../src/plugins/plugin-settings/meta.ts", "../../../src/plugins/plugin-settings/provides.ts", "../../../src/plugins/plugin-settings/index.ts"],
4
- "sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport { RootSettingsStore } from '@dxos/local-storage';\n\nimport SettingsMeta from './meta';\nimport { type SettingsPluginProvides } from './provides';\nimport { type PluginDefinition } from '../plugin-host';\n\nexport const SettingsPlugin = (): PluginDefinition<SettingsPluginProvides> => {\n // Global settings singleton.\n // TODO(burdon): Make settings storage extensible so that other plugins can decide the persistence of them.\n const settingsStore = new RootSettingsStore();\n\n return {\n meta: SettingsMeta,\n provides: {\n settingsStore,\n },\n };\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nconst SettingsMeta = {\n id: 'dxos.org/plugin/settings',\n};\n\nexport default SettingsMeta;\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { type SettingsStoreFactory, type SettingsValue } from '@dxos/local-storage';\n\nimport { type Plugin } from '../plugin-host';\n\nexport type SettingsProvides<T extends SettingsValue> = {\n settings: T;\n};\n\nexport type SettingsPluginProvides = {\n settingsStore: SettingsStoreFactory;\n};\n\nexport const parseSettingsPlugin = (plugin: Plugin) => {\n return typeof (plugin.provides as any).settingsStore === 'object'\n ? (plugin as Plugin<SettingsPluginProvides>)\n : undefined;\n};\n\nconst SETTINGS_PLUGIN = 'dxos.org/plugin/settings';\n\nconst SETTINGS_ACTION = `${SETTINGS_PLUGIN}/action`;\n\nexport enum SettingsAction {\n OPEN = `${SETTINGS_ACTION}/open`,\n}\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport { SettingsPlugin } from './SettingsPlugin';\n\nexport * from './provides';\n\nexport default SettingsPlugin;\n"],
5
- "mappings": ";;;AAIA,SAASA,yBAAyB;;;ACAlC,IAAMC,eAAe;EACnBC,IAAI;AACN;AAEA,IAAA,eAAeD;;;ADER,IAAME,iBAAiB,MAAA;AAG5B,QAAMC,gBAAgB,IAAIC,kBAAAA;AAE1B,SAAO;IACLC,MAAMC;IACNC,UAAU;MACRJ;IACF;EACF;AACF;;;AELO,IAAMK,sBAAsB,CAACC,WAAAA;AAClC,SAAO,OAAQA,OAAOC,SAAiBC,kBAAkB,WACpDF,SACDG;AACN;AAEA,IAAMC,kBAAkB;AAExB,IAAMC,kBAAkB,GAAGD,eAAAA;;UAEfE,iBAAAA;4CACH,GAAGD,eAAAA,OAAsB,IAAA;GADtBC,mBAAAA,iBAAAA,CAAAA,EAAAA;;;AClBZ,IAAA,0BAAeC;",
6
- "names": ["RootSettingsStore", "SettingsMeta", "id", "SettingsPlugin", "settingsStore", "RootSettingsStore", "meta", "SettingsMeta", "provides", "parseSettingsPlugin", "plugin", "provides", "settingsStore", "undefined", "SETTINGS_PLUGIN", "SETTINGS_ACTION", "SettingsAction", "SettingsPlugin"]
7
- }
@@ -1,23 +0,0 @@
1
- import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
- import {
3
- IntentAction,
4
- IntentProvider,
5
- parseIntentPlugin,
6
- parseIntentResolverPlugin,
7
- plugin_intent_default,
8
- useIntent,
9
- useIntentDispatcher,
10
- useIntentResolver
11
- } from "./chunk-YFMFQBB4.mjs";
12
- import "./chunk-EYCTSFEJ.mjs";
13
- export {
14
- IntentAction,
15
- IntentProvider,
16
- plugin_intent_default as default,
17
- parseIntentPlugin,
18
- parseIntentResolverPlugin,
19
- useIntent,
20
- useIntentDispatcher,
21
- useIntentResolver
22
- };
23
- //# sourceMappingURL=plugin-intent-V7ER24Y6.mjs.map
@@ -1,12 +0,0 @@
1
- import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
- import {
3
- SettingsAction,
4
- parseSettingsPlugin,
5
- plugin_settings_default
6
- } from "./chunk-YNU7FTGJ.mjs";
7
- export {
8
- SettingsAction,
9
- plugin_settings_default as default,
10
- parseSettingsPlugin
11
- };
12
- //# sourceMappingURL=plugin-settings-37UVWF2V.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": [],
4
- "sourcesContent": [],
5
- "mappings": "",
6
- "names": []
7
- }
@@ -1,25 +0,0 @@
1
- import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
- import {
3
- ErrorBoundary,
4
- Surface,
5
- SurfaceProvider,
6
- isObject,
7
- parseRootSurfacePlugin,
8
- parseSurfacePlugin,
9
- plugin_surface_default,
10
- useSurface,
11
- useSurfaceRoot
12
- } from "./chunk-2R4GVK7O.mjs";
13
- import "./chunk-EYCTSFEJ.mjs";
14
- export {
15
- ErrorBoundary,
16
- Surface,
17
- SurfaceProvider,
18
- plugin_surface_default as default,
19
- isObject,
20
- parseRootSurfacePlugin,
21
- parseSurfacePlugin,
22
- useSurface,
23
- useSurfaceRoot
24
- };
25
- //# sourceMappingURL=plugin-surface-TEU42XQN.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": [],
4
- "sourcesContent": [],
5
- "mappings": "",
6
- "names": []
7
- }
@@ -1,22 +0,0 @@
1
- import { type Space } from '@dxos/client-protocol';
2
- import { type Plugin } from '../plugin-host';
3
- export declare const defaultFileTypes: {
4
- images: string[];
5
- media: string[];
6
- text: string[];
7
- };
8
- export type FileInfo = {
9
- url?: string;
10
- cid?: string;
11
- };
12
- export type FileUploader = (file: File, space: Space) => Promise<FileInfo | undefined>;
13
- /**
14
- * Generic interface provided by file plugins (e.g., IPFS, WNFS).
15
- */
16
- export type FileManagerProvides = {
17
- file: {
18
- upload?: FileUploader;
19
- };
20
- };
21
- export declare const parseFileManagerPlugin: (plugin: Plugin) => Plugin<FileManagerProvides> | undefined;
22
- //# sourceMappingURL=file.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/common/file.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAEnD,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAI7C,eAAO,MAAM,gBAAgB;;;;CAI5B,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,KAAK,OAAO,CAAC,QAAQ,GAAG,SAAS,CAAC,CAAC;AAEvF;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE;QACJ,MAAM,CAAC,EAAE,YAAY,CAAC;KACvB,CAAC;CACH,CAAC;AAGF,eAAO,MAAM,sBAAsB,WAAY,MAAM,4CAEpD,CAAC"}
@@ -1,51 +0,0 @@
1
- import type { Graph, GraphBuilder, Node } from '@dxos/app-graph';
2
- import { type MaybePromise } from '@dxos/util';
3
- import type { Plugin } from '../plugin-host';
4
- export type SerializedNode = {
5
- name: string;
6
- data: string;
7
- type?: string;
8
- };
9
- export type NodeSerializer<T = any> = {
10
- inputType: string;
11
- outputType: string;
12
- disposition?: 'hoist' | 'fallback';
13
- /**
14
- * Takes a node and serializes it into a format that can be stored.
15
- */
16
- serialize: (node: Node<T>) => MaybePromise<SerializedNode>;
17
- /**
18
- * Takes a serialized node and deserializes it into the application.
19
- */
20
- deserialize: (data: SerializedNode, ancestors: unknown[]) => MaybePromise<T>;
21
- };
22
- /**
23
- * Provides for a plugin that exposes the application graph.
24
- */
25
- export type GraphProvides = {
26
- graph: Graph;
27
- explore: GraphBuilder['explore'];
28
- };
29
- export type GraphBuilderProvides = {
30
- graph: {
31
- builder: (plugins: Plugin[]) => Parameters<GraphBuilder['addExtension']>[0];
32
- };
33
- };
34
- export type GraphSerializerProvides = {
35
- graph: {
36
- serializer: (plugins: Plugin[]) => NodeSerializer[];
37
- };
38
- };
39
- /**
40
- * Type guard for graph plugins.
41
- */
42
- export declare const parseGraphPlugin: (plugin: Plugin) => Plugin<GraphProvides> | undefined;
43
- /**
44
- * Type guard for graph builder plugins.
45
- */
46
- export declare const parseGraphBuilderPlugin: (plugin: Plugin) => Plugin<GraphBuilderProvides> | undefined;
47
- /**
48
- * Type guard for graph serializer plugins.
49
- */
50
- export declare const parseGraphSerializerPlugin: (plugin: Plugin) => Plugin<GraphSerializerProvides> | undefined;
51
- //# sourceMappingURL=graph.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"graph.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/common/graph.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAG7C,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAGF,MAAM,MAAM,cAAc,CAAC,CAAC,GAAG,GAAG,IAAI;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC;IAEnC;;OAEG;IACH,SAAS,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,KAAK,YAAY,CAAC,cAAc,CAAC,CAAC;IAE3D;;OAEG;IACH,WAAW,EAAE,CAAC,IAAI,EAAE,cAAc,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,YAAY,CAAC,CAAC,CAAC,CAAC;CAC9E,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,EAAE,KAAK,CAAC;IACb,OAAO,EAAE,YAAY,CAAC,SAAS,CAAC,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,KAAK,EAAE;QACL,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,UAAU,CAAC,YAAY,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KAC7E,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,KAAK,EAAE;QACL,UAAU,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,cAAc,EAAE,CAAC;KACrD,CAAC;CACH,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,WAAY,MAAM,sCACuC,CAAC;AAEvF;;GAEG;AACH,eAAO,MAAM,uBAAuB,WAAY,MAAM,6CAC0C,CAAC;AAEjG;;GAEG;AACH,eAAO,MAAM,0BAA0B,WAAY,MAAM,gDAC6C,CAAC"}
@@ -1,7 +0,0 @@
1
- export * from './file';
2
- export * from './graph';
3
- export * from './layout';
4
- export * from './metadata';
5
- export * from './navigation';
6
- export * from './translations';
7
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/common/index.ts"],"names":[],"mappings":"AAIA,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC"}
@@ -1,202 +0,0 @@
1
- import { z } from 'zod';
2
- import { type Plugin } from '../plugin-host';
3
- import { type IntentData } from '../plugin-intent';
4
- export declare const Toast: z.ZodObject<{
5
- id: z.ZodString;
6
- title: z.ZodOptional<z.ZodString>;
7
- description: z.ZodOptional<z.ZodString>;
8
- icon: z.ZodOptional<z.ZodAny>;
9
- duration: z.ZodOptional<z.ZodNumber>;
10
- closeLabel: z.ZodOptional<z.ZodString>;
11
- actionLabel: z.ZodOptional<z.ZodString>;
12
- actionAlt: z.ZodOptional<z.ZodString>;
13
- onAction: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnknown>>;
14
- }, "strip", z.ZodTypeAny, {
15
- id: string;
16
- title?: string | undefined;
17
- description?: string | undefined;
18
- icon?: any;
19
- duration?: number | undefined;
20
- closeLabel?: string | undefined;
21
- actionLabel?: string | undefined;
22
- actionAlt?: string | undefined;
23
- onAction?: ((...args: unknown[]) => unknown) | undefined;
24
- }, {
25
- id: string;
26
- title?: string | undefined;
27
- description?: string | undefined;
28
- icon?: any;
29
- duration?: number | undefined;
30
- closeLabel?: string | undefined;
31
- actionLabel?: string | undefined;
32
- actionAlt?: string | undefined;
33
- onAction?: ((...args: unknown[]) => unknown) | undefined;
34
- }>;
35
- export type Toast = z.infer<typeof Toast>;
36
- /**
37
- * Basic state provided by a layout plugin.
38
- *
39
- * Layout provides the state of global UI landmarks, such as the sidebar, dialog, and popover.
40
- * Generally only one dialog or popover should be open at a time, a layout plugin should manage this.
41
- * For other landmarks, such as toasts, rendering them in the layout prevents them from unmounting when navigating.
42
- */
43
- declare const LayoutMode: z.ZodUnion<[z.ZodLiteral<"deck">, z.ZodLiteral<"solo">, z.ZodLiteral<"fullscreen">]>;
44
- export declare const isLayoutMode: (value: any) => value is LayoutMode;
45
- export type LayoutMode = z.infer<typeof LayoutMode>;
46
- export declare const Layout: z.ZodObject<{
47
- layoutMode: z.ZodUnion<[z.ZodLiteral<"deck">, z.ZodLiteral<"solo">, z.ZodLiteral<"fullscreen">]>;
48
- sidebarOpen: z.ZodBoolean;
49
- complementarySidebarOpen: z.ZodBoolean;
50
- /**
51
- * @deprecated
52
- */
53
- complementarySidebarContent: z.ZodOptional<z.ZodAny>;
54
- dialogOpen: z.ZodBoolean;
55
- dialogContent: z.ZodOptional<z.ZodAny>;
56
- dialogBlockAlign: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"start">, z.ZodLiteral<"center">]>>;
57
- dialogType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"default">, z.ZodLiteral<"alert">]>>;
58
- popoverOpen: z.ZodBoolean;
59
- popoverContent: z.ZodOptional<z.ZodAny>;
60
- popoverAnchorId: z.ZodOptional<z.ZodString>;
61
- toasts: z.ZodArray<z.ZodObject<{
62
- id: z.ZodString;
63
- title: z.ZodOptional<z.ZodString>;
64
- description: z.ZodOptional<z.ZodString>;
65
- icon: z.ZodOptional<z.ZodAny>;
66
- duration: z.ZodOptional<z.ZodNumber>;
67
- closeLabel: z.ZodOptional<z.ZodString>;
68
- actionLabel: z.ZodOptional<z.ZodString>;
69
- actionAlt: z.ZodOptional<z.ZodString>;
70
- onAction: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnknown>>;
71
- }, "strip", z.ZodTypeAny, {
72
- id: string;
73
- title?: string | undefined;
74
- description?: string | undefined;
75
- icon?: any;
76
- duration?: number | undefined;
77
- closeLabel?: string | undefined;
78
- actionLabel?: string | undefined;
79
- actionAlt?: string | undefined;
80
- onAction?: ((...args: unknown[]) => unknown) | undefined;
81
- }, {
82
- id: string;
83
- title?: string | undefined;
84
- description?: string | undefined;
85
- icon?: any;
86
- duration?: number | undefined;
87
- closeLabel?: string | undefined;
88
- actionLabel?: string | undefined;
89
- actionAlt?: string | undefined;
90
- onAction?: ((...args: unknown[]) => unknown) | undefined;
91
- }>, "many">;
92
- scrollIntoView: z.ZodOptional<z.ZodString>;
93
- }, "strip", z.ZodTypeAny, {
94
- layoutMode: "deck" | "solo" | "fullscreen";
95
- sidebarOpen: boolean;
96
- complementarySidebarOpen: boolean;
97
- dialogOpen: boolean;
98
- popoverOpen: boolean;
99
- toasts: {
100
- id: string;
101
- title?: string | undefined;
102
- description?: string | undefined;
103
- icon?: any;
104
- duration?: number | undefined;
105
- closeLabel?: string | undefined;
106
- actionLabel?: string | undefined;
107
- actionAlt?: string | undefined;
108
- onAction?: ((...args: unknown[]) => unknown) | undefined;
109
- }[];
110
- complementarySidebarContent?: any;
111
- dialogContent?: any;
112
- dialogBlockAlign?: "center" | "start" | undefined;
113
- dialogType?: "default" | "alert" | undefined;
114
- popoverContent?: any;
115
- popoverAnchorId?: string | undefined;
116
- scrollIntoView?: string | undefined;
117
- }, {
118
- layoutMode: "deck" | "solo" | "fullscreen";
119
- sidebarOpen: boolean;
120
- complementarySidebarOpen: boolean;
121
- dialogOpen: boolean;
122
- popoverOpen: boolean;
123
- toasts: {
124
- id: string;
125
- title?: string | undefined;
126
- description?: string | undefined;
127
- icon?: any;
128
- duration?: number | undefined;
129
- closeLabel?: string | undefined;
130
- actionLabel?: string | undefined;
131
- actionAlt?: string | undefined;
132
- onAction?: ((...args: unknown[]) => unknown) | undefined;
133
- }[];
134
- complementarySidebarContent?: any;
135
- dialogContent?: any;
136
- dialogBlockAlign?: "center" | "start" | undefined;
137
- dialogType?: "default" | "alert" | undefined;
138
- popoverContent?: any;
139
- popoverAnchorId?: string | undefined;
140
- scrollIntoView?: string | undefined;
141
- }>;
142
- export type Layout = z.infer<typeof Layout>;
143
- /**
144
- * Provides for a plugin that can manage the app layout.
145
- */
146
- export type LayoutProvides = {
147
- layout: Readonly<Layout>;
148
- };
149
- /**
150
- * Type guard for layout plugins.
151
- */
152
- export declare const parseLayoutPlugin: (plugin: Plugin) => Plugin<LayoutProvides> | undefined;
153
- export declare enum LayoutAction {
154
- SET_LAYOUT = "dxos.org/plugin/layout/action/set-layout",
155
- SET_LAYOUT_MODE = "dxos.org/plugin/layout/action/set-layout-mode",
156
- SCROLL_INTO_VIEW = "dxos.org/plugin/layout/action/scroll-into-view",
157
- UPDATE_PLANK_SIZE = "dxos.org/plugin/layout/action/update-plank-size"
158
- }
159
- /**
160
- * Expected payload for layout actions.
161
- */
162
- export declare namespace LayoutAction {
163
- type SetLayoutMode = IntentData<{
164
- layoutMode?: LayoutMode;
165
- revert?: boolean;
166
- }>;
167
- type SetLayout = IntentData<{
168
- /**
169
- * Element to set the state of.
170
- */
171
- element: 'fullscreen' | 'sidebar' | 'complementary' | 'dialog' | 'popover' | 'toast';
172
- /**
173
- * Whether the element is on or off.
174
- *
175
- * If omitted, the element's state will be toggled or set based on other provided data.
176
- * For example, if `component` is provided, the state will be set to `true`.
177
- */
178
- state?: boolean;
179
- /**
180
- * Component to render in the dialog or popover.
181
- */
182
- component?: string;
183
- /**
184
- * Data to be passed to the dialog or popover Surface.
185
- */
186
- subject?: any;
187
- /**
188
- * Anchor ID for the popover.
189
- */
190
- anchorId?: string;
191
- /**
192
- * Block alignment for the dialog.
193
- */
194
- dialogBlockAlign?: 'start' | 'center';
195
- /**
196
- * Type of dialog.
197
- */
198
- dialogType?: 'default' | 'alert';
199
- }>;
200
- }
201
- export {};
202
- //# sourceMappingURL=layout.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/common/layout.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAMnD,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWhB,CAAC;AAEH,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,KAAK,CAAC,CAAC;AAE1C;;;;;;GAMG;AAEH,QAAA,MAAM,UAAU,sFAA2E,CAAC;AAC5F,eAAO,MAAM,YAAY,UAAW,GAAG,KAAG,KAAK,IAAI,UAAiD,CAAC;AACrG,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAGpD,eAAO,MAAM,MAAM;;;;IAKjB;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsBH,CAAC;AAEH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC;AAE5C;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;CAC1B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,WAAY,MAAM,uCAG/C,CAAC;AAUF,oBAAY,YAAY;IACtB,UAAU,6CAAgC;IAC1C,eAAe,kDAAqC;IACpD,gBAAgB,mDAAsC;IACtD,iBAAiB,oDAAuC;CACzD;AAED;;GAEG;AACH,yBAAiB,YAAY,CAAC;IAC5B,KAAY,aAAa,GAAG,UAAU,CAAC;QACrC,UAAU,CAAC,EAAE,UAAU,CAAC;QACxB,MAAM,CAAC,EAAE,OAAO,CAAC;KAClB,CAAC,CAAC;IAEH,KAAY,SAAS,GAAG,UAAU,CAAC;QACjC;;WAEG;QACH,OAAO,EAAE,YAAY,GAAG,SAAS,GAAG,eAAe,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAC;QAErF;;;;;WAKG;QACH,KAAK,CAAC,EAAE,OAAO,CAAC;QAEhB;;WAEG;QACH,SAAS,CAAC,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,OAAO,CAAC,EAAE,GAAG,CAAC;QAEd;;WAEG;QACH,QAAQ,CAAC,EAAE,MAAM,CAAC;QAIlB;;WAEG;QACH,gBAAgB,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;QAEtC;;WAEG;QACH,UAAU,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;KAClC,CAAC,CAAC;CACJ"}
@@ -1,16 +0,0 @@
1
- import { type Plugin } from '../plugin-host';
2
- export type Metadata = Record<string, any>;
3
- export type MetadataRecordsProvides = {
4
- metadata: {
5
- records: Record<string, Metadata>;
6
- };
7
- };
8
- export type MetadataResolver = (type: string) => Metadata;
9
- export type MetadataResolverProvides = {
10
- metadata: {
11
- resolver: MetadataResolver;
12
- };
13
- };
14
- export declare const parseMetadataRecordsPlugin: (plugin: Plugin) => Plugin<MetadataRecordsProvides> | undefined;
15
- export declare const parseMetadataResolverPlugin: (plugin: Plugin) => Plugin<MetadataResolverProvides> | undefined;
16
- //# sourceMappingURL=metadata.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/common/metadata.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAE3C,MAAM,MAAM,uBAAuB,GAAG;IACpC,QAAQ,EAAE;QACR,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;KACnC,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,CAAC,IAAI,EAAE,MAAM,KAAK,QAAQ,CAAC;AAE1D,MAAM,MAAM,wBAAwB,GAAG;IACrC,QAAQ,EAAE;QACR,QAAQ,EAAE,gBAAgB,CAAC;KAC5B,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,0BAA0B,WAAY,MAAM,gDAExD,CAAC;AAEF,eAAO,MAAM,2BAA2B,WAAY,MAAM,iDAEzD,CAAC"}
@@ -1,196 +0,0 @@
1
- import { Schema as S } from '@effect/schema';
2
- import { z } from 'zod';
3
- import { type Plugin } from '../plugin-host';
4
- import { type IntentData } from '../plugin-intent';
5
- export declare const SLUG_LIST_SEPARATOR = "+";
6
- export declare const SLUG_ENTRY_SEPARATOR = "_";
7
- export declare const SLUG_KEY_VALUE_SEPARATOR = "-";
8
- export declare const SLUG_PATH_SEPARATOR = "~";
9
- export declare const SLUG_COLLECTION_INDICATOR = "";
10
- declare const LayoutEntrySchema: S.mutable<S.Struct<{
11
- id: typeof S.String;
12
- path: S.optional<typeof S.String>;
13
- }>>;
14
- export type LayoutEntry = S.Schema.Type<typeof LayoutEntrySchema>;
15
- declare const LayoutPartSchema: S.Union<[S.Literal<["sidebar"]>, S.Literal<["main"]>, S.Literal<["solo"]>, S.Literal<["complementary"]>, S.Literal<["fullScreen"]>]>;
16
- export type LayoutPart = S.Schema.Type<typeof LayoutPartSchema>;
17
- declare const LayoutPartsSchema: S.SchemaClass<{
18
- main?: {
19
- path?: string | undefined;
20
- id: string;
21
- }[] | undefined;
22
- solo?: {
23
- path?: string | undefined;
24
- id: string;
25
- }[] | undefined;
26
- sidebar?: {
27
- path?: string | undefined;
28
- id: string;
29
- }[] | undefined;
30
- complementary?: {
31
- path?: string | undefined;
32
- id: string;
33
- }[] | undefined;
34
- fullScreen?: {
35
- path?: string | undefined;
36
- id: string;
37
- }[] | undefined;
38
- }, {
39
- main?: {
40
- id: string;
41
- path?: string | undefined;
42
- }[] | undefined;
43
- solo?: {
44
- id: string;
45
- path?: string | undefined;
46
- }[] | undefined;
47
- sidebar?: {
48
- id: string;
49
- path?: string | undefined;
50
- }[] | undefined;
51
- complementary?: {
52
- id: string;
53
- path?: string | undefined;
54
- }[] | undefined;
55
- fullScreen?: {
56
- id: string;
57
- path?: string | undefined;
58
- }[] | undefined;
59
- }, never>;
60
- export type LayoutParts = S.Schema.Type<typeof LayoutPartsSchema>;
61
- declare const LayoutCoordinateSchema: S.mutable<S.Struct<{
62
- part: S.Union<[S.Literal<["sidebar"]>, S.Literal<["main"]>, S.Literal<["solo"]>, S.Literal<["complementary"]>, S.Literal<["fullScreen"]>]>;
63
- entryId: typeof S.String;
64
- }>>;
65
- export type LayoutCoordinate = S.Schema.Type<typeof LayoutCoordinateSchema>;
66
- declare const PartAdjustmentSchema: S.Union<[S.Literal<["increment-start"]>, S.Literal<["increment-end"]>, S.Literal<["solo"]>]>;
67
- export type PartAdjustment = S.Schema.Type<typeof PartAdjustmentSchema>;
68
- declare const LayoutAdjustmentSchema: S.mutable<S.Struct<{
69
- layoutCoordinate: S.mutable<S.Struct<{
70
- part: S.Union<[S.Literal<["sidebar"]>, S.Literal<["main"]>, S.Literal<["solo"]>, S.Literal<["complementary"]>, S.Literal<["fullScreen"]>]>;
71
- entryId: typeof S.String;
72
- }>>;
73
- type: S.Union<[S.Literal<["increment-start"]>, S.Literal<["increment-end"]>, S.Literal<["solo"]>]>;
74
- }>>;
75
- export type LayoutAdjustment = S.Schema.Type<typeof LayoutAdjustmentSchema>;
76
- /** @deprecated */
77
- export declare const ActiveParts: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
78
- export type ActiveParts = z.infer<typeof ActiveParts>;
79
- export type LayoutContainerProps<T> = T & {
80
- role?: string;
81
- coordinate?: LayoutCoordinate;
82
- };
83
- /**
84
- * Provides for a plugin that can manage the app navigation.
85
- */
86
- declare const LocationProvidesSchema: S.mutable<S.Struct<{
87
- location: S.Struct<{
88
- active: S.SchemaClass<{
89
- main?: {
90
- path?: string | undefined;
91
- id: string;
92
- }[] | undefined;
93
- solo?: {
94
- path?: string | undefined;
95
- id: string;
96
- }[] | undefined;
97
- sidebar?: {
98
- path?: string | undefined;
99
- id: string;
100
- }[] | undefined;
101
- complementary?: {
102
- path?: string | undefined;
103
- id: string;
104
- }[] | undefined;
105
- fullScreen?: {
106
- path?: string | undefined;
107
- id: string;
108
- }[] | undefined;
109
- }, {
110
- main?: {
111
- id: string;
112
- path?: string | undefined;
113
- }[] | undefined;
114
- solo?: {
115
- id: string;
116
- path?: string | undefined;
117
- }[] | undefined;
118
- sidebar?: {
119
- id: string;
120
- path?: string | undefined;
121
- }[] | undefined;
122
- complementary?: {
123
- id: string;
124
- path?: string | undefined;
125
- }[] | undefined;
126
- fullScreen?: {
127
- id: string;
128
- path?: string | undefined;
129
- }[] | undefined;
130
- }, never>;
131
- closed: S.Array$<typeof S.String>;
132
- }>;
133
- }>>;
134
- export type LocationProvides = S.Schema.Type<typeof LocationProvidesSchema>;
135
- /**
136
- * Type guard for layout plugins.
137
- */
138
- export declare const isLayoutParts: (value: unknown) => value is LayoutParts;
139
- export declare const isLayoutAdjustment: (value: unknown) => value is LayoutAdjustment;
140
- export declare const parseNavigationPlugin: (plugin: Plugin) => Plugin<LocationProvides> | undefined;
141
- /**
142
- * Utilities.
143
- */
144
- /** Extracts all unique IDs from the layout parts. */
145
- export declare const openIds: (layout: LayoutParts, parts?: LayoutPart[]) => string[];
146
- export declare const firstIdInPart: (layout: LayoutParts | undefined, part: LayoutPart) => string | undefined;
147
- export declare const indexInPart: (layout: LayoutParts | undefined, layoutCoordinate: LayoutCoordinate | undefined) => number | undefined;
148
- export declare const partLength: (layout: LayoutParts | undefined, part: LayoutPart | undefined) => number;
149
- export declare enum NavigationAction {
150
- OPEN = "dxos.org/plugin/navigation/action/open",
151
- ADD_TO_ACTIVE = "dxos.org/plugin/navigation/action/add-to-active",
152
- SET = "dxos.org/plugin/navigation/action/set",
153
- ADJUST = "dxos.org/plugin/navigation/action/adjust",
154
- CLOSE = "dxos.org/plugin/navigation/action/close",
155
- EXPOSE = "dxos.org/plugin/navigation/action/expose"
156
- }
157
- /**
158
- * Expected payload for navigation actions.
159
- */
160
- export declare namespace NavigationAction {
161
- /**
162
- * An additive overlay to apply to `location.active` (i.e. the result is a union of previous active and the argument)
163
- */
164
- type Open = IntentData<{
165
- activeParts: ActiveParts;
166
- }>;
167
- /**
168
- * Payload for adding an item to the active items.
169
- */
170
- type AddToActive = IntentData<{
171
- part: LayoutPart;
172
- id: string;
173
- scrollIntoView?: boolean;
174
- pivotId?: string;
175
- positioning?: 'start' | 'end';
176
- }>;
177
- /**
178
- * A subtractive overlay to apply to `location.active` (i.e. the result is a subtraction from the previous active of the argument)
179
- */
180
- type Close = IntentData<{
181
- activeParts: ActiveParts;
182
- noToggle?: boolean;
183
- }>;
184
- /**
185
- * The active parts to directly set, to be used when working with URLs or restoring a specific state.
186
- */
187
- type Set = IntentData<{
188
- activeParts: ActiveParts;
189
- }>;
190
- /**
191
- * An atomic transaction to apply to `location.active`, describing which element to (attempt to) move to which location.
192
- */
193
- type Adjust = IntentData<LayoutAdjustment>;
194
- }
195
- export {};
196
- //# sourceMappingURL=navigation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/common/navigation.ts"],"names":[],"mappings":"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"}
@@ -1,22 +0,0 @@
1
- import { z } from 'zod';
2
- import { type Plugin } from '../plugin-host';
3
- export declare const ResourceKey: z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>;
4
- export type ResourceKey = z.infer<typeof ResourceKey>;
5
- export declare const ResourceLanguage: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>>;
6
- export type ResourceLanguage = z.infer<typeof ResourceLanguage>;
7
- /**
8
- * A resource is a collection of translations for a language.
9
- */
10
- export declare const Resource: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>>>;
11
- export type Resource = z.infer<typeof Resource>;
12
- /**
13
- * Provides for a plugin that exposes translations.
14
- */
15
- export type TranslationsProvides = {
16
- translations: Readonly<Resource[]>;
17
- };
18
- /**
19
- * Type guard for translation plugins.
20
- */
21
- export declare const parseTranslationsPlugin: (plugin: Plugin) => Plugin<TranslationsProvides> | undefined;
22
- //# sourceMappingURL=translations.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/common/translations.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAG7C,eAAO,MAAM,WAAW,+DAA2C,CAAC;AACpE,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEtD,eAAO,MAAM,gBAAgB,yFAAwB,CAAC;AACtD,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEhE;;GAEG;AACH,eAAO,MAAM,QAAQ,mHAA6B,CAAC;AACnD,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC;AAEhD;;GAEG;AAEH,MAAM,MAAM,oBAAoB,GAAG;IACjC,YAAY,EAAE,QAAQ,CAAC,QAAQ,EAAE,CAAC,CAAC;CACpC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,uBAAuB,WAAY,MAAM,6CAGrD,CAAC"}