@dxos/app-framework 0.8.3 → 0.8.4-main.84f28bd

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 (235) hide show
  1. package/.swc/plugins/v7_linux_x86_64_13.0.0/f45bdff002284d9e8f9ef3f0be909de12da36c049cbcf261ac78fc00abb09a2d +0 -0
  2. package/.swc/plugins/v7_linux_x86_64_13.0.0/fce1bdb8e20a094e4af08bad09cc81497ed0e2e7c51223b07d371063cca18429 +0 -0
  3. package/README.md +0 -8
  4. package/dist/lib/browser/{app-graph-builder-BI4VVKSW.mjs → app-graph-builder-BGGXLD6T.mjs} +4 -4
  5. package/dist/lib/browser/{chunk-EHM4UI3V.mjs → chunk-2636QSIK.mjs} +24 -24
  6. package/dist/lib/browser/{chunk-EHM4UI3V.mjs.map → chunk-2636QSIK.mjs.map} +2 -2
  7. package/dist/lib/browser/{chunk-DIBVO47Z.mjs → chunk-DHZB7HG7.mjs} +25 -18
  8. package/dist/lib/browser/{chunk-DIBVO47Z.mjs.map → chunk-DHZB7HG7.mjs.map} +3 -3
  9. package/dist/lib/browser/{chunk-WWEJRWFX.mjs → chunk-ORWHM7CO.mjs} +2 -2
  10. package/dist/lib/browser/index.mjs +10 -10
  11. package/dist/lib/browser/index.mjs.map +3 -3
  12. package/dist/lib/browser/{intent-dispatcher-XVBOMF2Y.mjs → intent-dispatcher-TWKB22NI.mjs} +2 -2
  13. package/dist/lib/browser/{intent-resolver-3QMBXLIY.mjs → intent-resolver-O67UANYP.mjs} +4 -4
  14. package/dist/lib/browser/meta.json +1 -1
  15. package/dist/lib/browser/{store-5H7XPJGA.mjs → store-LFKDWHUQ.mjs} +3 -3
  16. package/dist/lib/browser/testing/index.mjs +3 -3
  17. package/dist/lib/browser/worker.mjs +1 -1
  18. package/dist/lib/node-esm/{app-graph-builder-NROP6RPQ.mjs → app-graph-builder-QHIJUYYW.mjs} +4 -4
  19. package/dist/lib/node-esm/{chunk-FHNZZWP4.mjs → chunk-NJAFK626.mjs} +25 -18
  20. package/dist/lib/node-esm/{chunk-FHNZZWP4.mjs.map → chunk-NJAFK626.mjs.map} +3 -3
  21. package/dist/lib/node-esm/{chunk-I6BVZMAH.mjs → chunk-UMZQERLE.mjs} +2 -2
  22. package/dist/lib/node-esm/{chunk-2J6FVECI.mjs → chunk-VSKRV3NW.mjs} +24 -24
  23. package/dist/lib/node-esm/{chunk-2J6FVECI.mjs.map → chunk-VSKRV3NW.mjs.map} +2 -2
  24. package/dist/lib/node-esm/index.mjs +10 -10
  25. package/dist/lib/node-esm/index.mjs.map +3 -3
  26. package/dist/lib/node-esm/{intent-dispatcher-7JPGLCQ5.mjs → intent-dispatcher-5PRM3KGH.mjs} +2 -2
  27. package/dist/lib/node-esm/{intent-resolver-VY4X5UHN.mjs → intent-resolver-K3D4BXQQ.mjs} +4 -4
  28. package/dist/lib/node-esm/meta.json +1 -1
  29. package/dist/lib/node-esm/{store-UKD2R2KA.mjs → store-53XDUBMD.mjs} +3 -3
  30. package/dist/lib/node-esm/testing/index.mjs +3 -3
  31. package/dist/lib/node-esm/worker.mjs +1 -1
  32. package/dist/types/src/common/capabilities.d.ts.map +1 -1
  33. package/dist/types/src/plugin-settings/translations.d.ts +7 -8
  34. package/dist/types/src/plugin-settings/translations.d.ts.map +1 -1
  35. package/dist/types/tsconfig.tsbuildinfo +1 -1
  36. package/moon.yml +14 -0
  37. package/package.json +27 -27
  38. package/src/App.tsx +3 -3
  39. package/src/common/capabilities.ts +1 -0
  40. package/src/core/manager.test.ts +1 -2
  41. package/src/plugin-settings/SettingsPlugin.ts +1 -1
  42. package/src/plugin-settings/translations.ts +4 -2
  43. package/typedoc/classes/CollaborationActions.InsertContent.html +40 -40
  44. package/typedoc/classes/ErrorBoundary.html +6 -6
  45. package/typedoc/classes/IntentAction.ShowUndo.html +41 -41
  46. package/typedoc/classes/IntentAction.Track.html +41 -41
  47. package/typedoc/classes/LayoutAction.AddToast.html +40 -40
  48. package/typedoc/classes/LayoutAction.Close.html +40 -40
  49. package/typedoc/classes/LayoutAction.Expose.html +40 -40
  50. package/typedoc/classes/LayoutAction.Open.html +40 -40
  51. package/typedoc/classes/LayoutAction.RevertWorkspace.html +40 -40
  52. package/typedoc/classes/LayoutAction.ScrollIntoView.html +40 -40
  53. package/typedoc/classes/LayoutAction.Set.html +40 -40
  54. package/typedoc/classes/LayoutAction.SetLayoutMode.html +40 -40
  55. package/typedoc/classes/LayoutAction.SwitchWorkspace.html +40 -40
  56. package/typedoc/classes/LayoutAction.UpdateComplementary.html +40 -40
  57. package/typedoc/classes/LayoutAction.UpdateDialog.html +40 -40
  58. package/typedoc/classes/LayoutAction.UpdateLayout.html +41 -41
  59. package/typedoc/classes/LayoutAction.UpdatePopover.html +40 -40
  60. package/typedoc/classes/LayoutAction.UpdateSidebar.html +40 -40
  61. package/typedoc/classes/Plugin.html +3 -3
  62. package/typedoc/classes/PluginContext.html +10 -10
  63. package/typedoc/classes/PluginManager.html +16 -16
  64. package/typedoc/classes/PluginModule.html +8 -8
  65. package/typedoc/classes/SettingsAction.Open.html +40 -40
  66. package/typedoc/classes/SettingsAction.OpenPluginRegistry.html +40 -40
  67. package/typedoc/functions/Events.createStateEvent.html +2 -2
  68. package/typedoc/functions/IntentPlugin.html +1 -1
  69. package/typedoc/functions/SettingsPlugin.html +1 -1
  70. package/typedoc/functions/allOf.html +2 -2
  71. package/typedoc/functions/chain.html +2 -2
  72. package/typedoc/functions/contributes.html +2 -2
  73. package/typedoc/functions/createDispatcher.html +2 -2
  74. package/typedoc/functions/createIntent.html +2 -2
  75. package/typedoc/functions/createResolver.html +2 -2
  76. package/typedoc/functions/createSurface.html +2 -2
  77. package/typedoc/functions/defineCapability.html +2 -2
  78. package/typedoc/functions/defineEvent.html +2 -2
  79. package/typedoc/functions/defineModule.html +2 -2
  80. package/typedoc/functions/definePlugin.html +2 -2
  81. package/typedoc/functions/eventKey.html +2 -2
  82. package/typedoc/functions/getEvents.html +2 -2
  83. package/typedoc/functions/isAllOf.html +2 -2
  84. package/typedoc/functions/isOneOf.html +2 -2
  85. package/typedoc/functions/isSurfaceAvailable.html +2 -2
  86. package/typedoc/functions/lazy.html +2 -2
  87. package/typedoc/functions/oneOf.html +2 -2
  88. package/typedoc/functions/useApp.html +2 -2
  89. package/typedoc/functions/useAppGraph.html +1 -1
  90. package/typedoc/functions/useCapabilities.html +2 -2
  91. package/typedoc/functions/useCapability.html +2 -2
  92. package/typedoc/functions/useIntentDispatcher.html +1 -1
  93. package/typedoc/functions/useIntentResolver.html +1 -1
  94. package/typedoc/functions/useLayout.html +1 -1
  95. package/typedoc/functions/usePluginManager.html +2 -2
  96. package/typedoc/hierarchy.html +1 -1
  97. package/typedoc/index.html +2 -6
  98. package/typedoc/interfaces/LayoutAction.Toast.html +2 -2
  99. package/typedoc/modules/Capabilities.html +1 -1
  100. package/typedoc/modules/CollaborationActions.html +1 -1
  101. package/typedoc/modules/Events.html +1 -1
  102. package/typedoc/modules/IntentAction.html +1 -1
  103. package/typedoc/modules/LayoutAction.html +2 -2
  104. package/typedoc/modules/SettingsAction.html +1 -1
  105. package/typedoc/modules.html +1 -1
  106. package/typedoc/types/ActivationEvent.html +3 -3
  107. package/typedoc/types/ActivationEvents.html +2 -2
  108. package/typedoc/types/AnyCapability.html +1 -1
  109. package/typedoc/types/AnyIntent.html +1 -1
  110. package/typedoc/types/AnyIntentChain.html +1 -1
  111. package/typedoc/types/AnyIntentEffectResult.html +1 -1
  112. package/typedoc/types/AnyIntentResolver.html +1 -1
  113. package/typedoc/types/AnyIntentResult.html +1 -1
  114. package/typedoc/types/Capabilities.FileUploader.html +1 -1
  115. package/typedoc/types/Capabilities.IntentResolver.html +1 -1
  116. package/typedoc/types/Capabilities.Layout.html +1 -1
  117. package/typedoc/types/Capabilities.Metadata.html +1 -1
  118. package/typedoc/types/Capabilities.ReactContext.html +1 -1
  119. package/typedoc/types/Capabilities.ReactRoot.html +1 -1
  120. package/typedoc/types/Capabilities.ReactSurface.html +1 -1
  121. package/typedoc/types/Capabilities.Settings.html +2 -2
  122. package/typedoc/types/Capability.html +5 -5
  123. package/typedoc/types/CreateAppOptions.html +2 -2
  124. package/typedoc/types/FileInfo.html +1 -1
  125. package/typedoc/types/Intent.html +6 -6
  126. package/typedoc/types/IntentChain.html +3 -3
  127. package/typedoc/types/IntentContext.html +2 -2
  128. package/typedoc/types/IntentData.html +1 -1
  129. package/typedoc/types/IntentDispatcher.html +2 -2
  130. package/typedoc/types/IntentDispatcherResult.html +2 -2
  131. package/typedoc/types/IntentEffectDefinition.html +2 -2
  132. package/typedoc/types/IntentEffectResult.html +6 -6
  133. package/typedoc/types/IntentParams.html +2 -2
  134. package/typedoc/types/IntentResolver.html +2 -2
  135. package/typedoc/types/IntentResultData.html +1 -1
  136. package/typedoc/types/IntentSchema.html +1 -1
  137. package/typedoc/types/IntentUndo.html +2 -2
  138. package/typedoc/types/InterfaceDef.html +3 -3
  139. package/typedoc/types/Label.html +1 -1
  140. package/typedoc/types/NodeSerializer.html +3 -3
  141. package/typedoc/types/PluginManagerOptions.html +2 -2
  142. package/typedoc/types/PluginMeta.html +9 -9
  143. package/typedoc/types/PromiseIntentDispatcher.html +2 -2
  144. package/typedoc/types/PromiseIntentUndo.html +2 -2
  145. package/typedoc/types/Resource.html +1 -1
  146. package/typedoc/types/ResourceKey.html +1 -1
  147. package/typedoc/types/ResourceLanguage.html +1 -1
  148. package/typedoc/types/SerializedNode.html +2 -2
  149. package/typedoc/types/SurfaceComponent.html +2 -2
  150. package/typedoc/types/SurfaceDefinition.html +2 -2
  151. package/typedoc/types/SurfaceProps.html +2 -2
  152. package/typedoc/variables/Capabilities.AnchorSort.html +1 -1
  153. package/typedoc/variables/Capabilities.AppGraph.html +1 -1
  154. package/typedoc/variables/Capabilities.AppGraphBuilder.html +1 -1
  155. package/typedoc/variables/Capabilities.AppGraphSerializer.html +1 -1
  156. package/typedoc/variables/Capabilities.ArtifactDefinition.html +1 -1
  157. package/typedoc/variables/Capabilities.FileUploader.html +1 -1
  158. package/typedoc/variables/Capabilities.IntentDispatcher.html +1 -1
  159. package/typedoc/variables/Capabilities.IntentResolver.html +1 -1
  160. package/typedoc/variables/Capabilities.Layout.html +1 -1
  161. package/typedoc/variables/Capabilities.Metadata.html +1 -1
  162. package/typedoc/variables/Capabilities.Null.html +1 -1
  163. package/typedoc/variables/Capabilities.PluginManager.html +1 -1
  164. package/typedoc/variables/Capabilities.ReactContext.html +1 -1
  165. package/typedoc/variables/Capabilities.ReactRoot.html +1 -1
  166. package/typedoc/variables/Capabilities.ReactSurface.html +1 -1
  167. package/typedoc/variables/Capabilities.RxRegistry.html +1 -1
  168. package/typedoc/variables/Capabilities.Settings.html +1 -1
  169. package/typedoc/variables/Capabilities.SettingsStore.html +1 -1
  170. package/typedoc/variables/Capabilities.Tools.html +1 -1
  171. package/typedoc/variables/Capabilities.Translations.html +1 -1
  172. package/typedoc/variables/Events.AppGraphReady.html +2 -2
  173. package/typedoc/variables/Events.DispatcherReady.html +2 -2
  174. package/typedoc/variables/Events.LayoutReady.html +1 -1
  175. package/typedoc/variables/Events.SettingsReady.html +2 -2
  176. package/typedoc/variables/Events.SetupAppGraph.html +2 -2
  177. package/typedoc/variables/Events.SetupArtifactDefinition.html +2 -2
  178. package/typedoc/variables/Events.SetupIntentResolver.html +2 -2
  179. package/typedoc/variables/Events.SetupMetadata.html +2 -2
  180. package/typedoc/variables/Events.SetupReactSurface.html +2 -2
  181. package/typedoc/variables/Events.SetupSettings.html +2 -2
  182. package/typedoc/variables/Events.SetupTranslations.html +2 -2
  183. package/typedoc/variables/Events.Startup.html +2 -2
  184. package/typedoc/variables/FileInfoSchema.html +1 -1
  185. package/typedoc/variables/INTENT_ACTION.html +1 -1
  186. package/typedoc/variables/INTENT_PLUGIN.html +1 -1
  187. package/typedoc/variables/LAYOUT_ACTION.html +1 -1
  188. package/typedoc/variables/LAYOUT_PLUGIN.html +1 -1
  189. package/typedoc/variables/Label.html +1 -1
  190. package/typedoc/variables/LayoutAction.Toast.html +1 -1
  191. package/typedoc/variables/LayoutAction.UPDATE_LAYOUT.html +1 -1
  192. package/typedoc/variables/PluginManagerProvider.html +2 -2
  193. package/typedoc/variables/Resource.html +2 -2
  194. package/typedoc/variables/ResourceKey.html +1 -1
  195. package/typedoc/variables/ResourceLanguage.html +1 -1
  196. package/typedoc/variables/SETTINGS_ACTION.html +1 -1
  197. package/typedoc/variables/SETTINGS_ID.html +1 -1
  198. package/typedoc/variables/SETTINGS_KEY.html +1 -1
  199. package/typedoc/variables/SETTINGS_PLUGIN.html +1 -1
  200. package/typedoc/variables/Surface.html +2 -2
  201. package/typedoc/variables/defaultFileTypes.html +1 -1
  202. package/vitest.config.ts +5 -2
  203. package/README.yml +0 -5
  204. package/dist/lib/node/app-graph-builder-H7QVE4MJ.cjs +0 -146
  205. package/dist/lib/node/app-graph-builder-H7QVE4MJ.cjs.map +0 -7
  206. package/dist/lib/node/chunk-G774ASXO.cjs +0 -58
  207. package/dist/lib/node/chunk-G774ASXO.cjs.map +0 -7
  208. package/dist/lib/node/chunk-VSOSVDQ3.cjs +0 -1551
  209. package/dist/lib/node/chunk-VSOSVDQ3.cjs.map +0 -7
  210. package/dist/lib/node/chunk-YGAY3H34.cjs +0 -429
  211. package/dist/lib/node/chunk-YGAY3H34.cjs.map +0 -7
  212. package/dist/lib/node/index.cjs +0 -193
  213. package/dist/lib/node/index.cjs.map +0 -7
  214. package/dist/lib/node/intent-dispatcher-C3SVKJ62.cjs +0 -32
  215. package/dist/lib/node/intent-dispatcher-C3SVKJ62.cjs.map +0 -7
  216. package/dist/lib/node/intent-resolver-IOJDYO34.cjs +0 -46
  217. package/dist/lib/node/intent-resolver-IOJDYO34.cjs.map +0 -7
  218. package/dist/lib/node/meta.json +0 -1
  219. package/dist/lib/node/store-ESF5VR57.cjs +0 -45
  220. package/dist/lib/node/store-ESF5VR57.cjs.map +0 -7
  221. package/dist/lib/node/testing/index.cjs +0 -119
  222. package/dist/lib/node/testing/index.cjs.map +0 -7
  223. package/dist/lib/node/worker.cjs +0 -101
  224. package/dist/lib/node/worker.cjs.map +0 -7
  225. package/project.json +0 -29
  226. /package/dist/lib/browser/{app-graph-builder-BI4VVKSW.mjs.map → app-graph-builder-BGGXLD6T.mjs.map} +0 -0
  227. /package/dist/lib/browser/{chunk-WWEJRWFX.mjs.map → chunk-ORWHM7CO.mjs.map} +0 -0
  228. /package/dist/lib/browser/{intent-dispatcher-XVBOMF2Y.mjs.map → intent-dispatcher-TWKB22NI.mjs.map} +0 -0
  229. /package/dist/lib/browser/{intent-resolver-3QMBXLIY.mjs.map → intent-resolver-O67UANYP.mjs.map} +0 -0
  230. /package/dist/lib/browser/{store-5H7XPJGA.mjs.map → store-LFKDWHUQ.mjs.map} +0 -0
  231. /package/dist/lib/node-esm/{app-graph-builder-NROP6RPQ.mjs.map → app-graph-builder-QHIJUYYW.mjs.map} +0 -0
  232. /package/dist/lib/node-esm/{chunk-I6BVZMAH.mjs.map → chunk-UMZQERLE.mjs.map} +0 -0
  233. /package/dist/lib/node-esm/{intent-dispatcher-7JPGLCQ5.mjs.map → intent-dispatcher-5PRM3KGH.mjs.map} +0 -0
  234. /package/dist/lib/node-esm/{intent-resolver-VY4X5UHN.mjs.map → intent-resolver-K3D4BXQQ.mjs.map} +0 -0
  235. /package/dist/lib/node-esm/{store-UKD2R2KA.mjs.map → store-53XDUBMD.mjs.map} +0 -0
package/moon.yml ADDED
@@ -0,0 +1,14 @@
1
+ type: library
2
+ language: typescript
3
+ tags:
4
+ - pack
5
+ - ts-build
6
+ - ts-test
7
+ - typedoc
8
+ tasks:
9
+ compile:
10
+ args:
11
+ - '--entryPoint=src/index.ts'
12
+ - '--entryPoint=src/testing/index.ts'
13
+ - '--entryPoint=src/worker.ts'
14
+ - '--preactSignalTracking'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/app-framework",
3
- "version": "0.8.3",
3
+ "version": "0.8.4-main.84f28bd",
4
4
  "description": "A framework for building applications from composible plugins.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -28,10 +28,10 @@
28
28
  "types": "dist/types/src/index.d.ts",
29
29
  "typesVersions": {
30
30
  "*": {
31
- "./testing": [
31
+ "testing": [
32
32
  "dist/types/src/testing/index.d.ts"
33
33
  ],
34
- "./worker": [
34
+ "worker": [
35
35
  "dist/types/src/worker.d.ts"
36
36
  ]
37
37
  }
@@ -39,39 +39,39 @@
39
39
  "dependencies": {
40
40
  "@preact-signals/safe-react": "^0.9.0",
41
41
  "@preact/signals-core": "^1.9.0",
42
- "@dxos/app-graph": "0.8.3",
43
- "@dxos/ai": "0.8.3",
44
- "@dxos/artifact": "0.8.3",
45
- "@dxos/client-protocol": "0.8.3",
46
- "@dxos/debug": "0.8.3",
47
- "@dxos/async": "0.8.3",
48
- "@dxos/invariant": "0.8.3",
49
- "@dxos/echo-schema": "0.8.3",
50
- "@dxos/keys": "0.8.3",
51
- "@dxos/live-object": "0.8.3",
52
- "@dxos/log": "0.8.3",
53
- "@dxos/local-storage": "0.8.3",
54
- "@dxos/react-hooks": "0.8.3",
55
- "@dxos/util": "0.8.3",
56
- "@dxos/schema": "0.8.3"
42
+ "@dxos/ai": "0.8.4-main.84f28bd",
43
+ "@dxos/app-graph": "0.8.4-main.84f28bd",
44
+ "@dxos/async": "0.8.4-main.84f28bd",
45
+ "@dxos/artifact": "0.8.4-main.84f28bd",
46
+ "@dxos/client-protocol": "0.8.4-main.84f28bd",
47
+ "@dxos/debug": "0.8.4-main.84f28bd",
48
+ "@dxos/echo-schema": "0.8.4-main.84f28bd",
49
+ "@dxos/invariant": "0.8.4-main.84f28bd",
50
+ "@dxos/keys": "0.8.4-main.84f28bd",
51
+ "@dxos/live-object": "0.8.4-main.84f28bd",
52
+ "@dxos/local-storage": "0.8.4-main.84f28bd",
53
+ "@dxos/react-hooks": "0.8.4-main.84f28bd",
54
+ "@dxos/schema": "0.8.4-main.84f28bd",
55
+ "@dxos/log": "0.8.4-main.84f28bd",
56
+ "@dxos/util": "0.8.4-main.84f28bd"
57
57
  },
58
58
  "devDependencies": {
59
- "@effect-rx/rx-react": "^0.34.1",
60
- "@effect/platform": "0.80.12",
59
+ "@effect-rx/rx-react": "0.38.0",
60
+ "@effect/platform": "0.88.0",
61
61
  "@phosphor-icons/react": "^2.1.5",
62
62
  "@types/react": "~18.2.0",
63
- "effect": "3.14.21",
63
+ "effect": "3.16.13",
64
64
  "react": "~18.2.0",
65
65
  "typedoc": "0.28.1",
66
- "@dxos/echo-signals": "0.8.3",
67
- "@dxos/react-ui": "0.8.3",
68
- "@dxos/random": "0.8.3",
69
- "@dxos/react-ui-syntax-highlighter": "0.8.3",
70
- "@dxos/storybook-utils": "0.8.3"
66
+ "@dxos/echo-signals": "0.8.4-main.84f28bd",
67
+ "@dxos/random": "0.8.4-main.84f28bd",
68
+ "@dxos/react-ui": "0.8.4-main.84f28bd",
69
+ "@dxos/storybook-utils": "0.8.4-main.84f28bd",
70
+ "@dxos/react-ui-syntax-highlighter": "0.8.4-main.84f28bd"
71
71
  },
72
72
  "peerDependencies": {
73
73
  "@effect-rx/rx-react": "^0.34.1",
74
- "@effect/platform": "0.80.12",
74
+ "@effect/platform": "^0.80.12",
75
75
  "effect": "^3.13.3",
76
76
  "react": "~18.2.0"
77
77
  },
package/src/App.tsx CHANGED
@@ -248,10 +248,10 @@ const App = ({ placeholder: Placeholder, state }: AppProps) => {
248
248
  // Default fallback does not use tailwind or theme.
249
249
  const DefaultFallback = ({ error }: { error: Error }) => {
250
250
  return (
251
- <div style={{ padding: '1rem' }}>
251
+ <div style={{ margin: '0.5rem', padding: '1rem', overflow: 'hidden', border: '1px solid red' }}>
252
252
  {/* TODO(wittjosiah): Link to docs for replacing default. */}
253
- <h1 style={{ fontSize: '1.2rem', fontWeight: 700, margin: '0.5rem 0' }}>{error.message}</h1>
254
- <pre>{error.stack}</pre>
253
+ <h1 style={{ margin: '0.5rem 0', fontSize: '1.2rem' }}>[ERROR]: {error.message}</h1>
254
+ <pre style={{ overflow: 'auto', fontSize: '1rem' }}>{error.stack}</pre>
255
255
  </div>
256
256
  );
257
257
  };
@@ -67,6 +67,7 @@ export namespace Capabilities {
67
67
  }>;
68
68
  export const Layout = defineCapability<Layout>('dxos.org/app-framework/capability/layout');
69
69
 
70
+ // TODO(burdon): Why array?
70
71
  export const Translations = defineCapability<Readonly<Resource[]>>('dxos.org/app-framework/capability/translations');
71
72
 
72
73
  export const AppGraph = defineCapability<Readonly<Pick<GraphBuilder, 'graph' | 'explore'>>>(
@@ -3,8 +3,7 @@
3
3
  //
4
4
 
5
5
  import { effect } from '@preact/signals-core';
6
- import { afterEach } from 'node:test';
7
- import { describe, expect, it } from 'vitest';
6
+ import { afterEach, describe, expect, it } from 'vitest';
8
7
 
9
8
  import { Trigger } from '@dxos/async';
10
9
  import { raise } from '@dxos/debug';
@@ -3,7 +3,7 @@
3
3
  //
4
4
 
5
5
  import { SETTINGS_PLUGIN } from './actions';
6
- import translations from './translations';
6
+ import { translations } from './translations';
7
7
  import { Capabilities, Events } from '../common';
8
8
  import { contributes, defineModule, definePlugin, lazy } from '../core';
9
9
 
@@ -2,9 +2,11 @@
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
4
 
5
+ import { type Resource } from '@dxos/react-ui';
6
+
5
7
  import { SETTINGS_PLUGIN } from './actions';
6
8
 
7
- export default [
9
+ export const translations = [
8
10
  {
9
11
  'en-US': {
10
12
  [SETTINGS_PLUGIN]: {
@@ -14,4 +16,4 @@ export default [
14
16
  },
15
17
  },
16
18
  },
17
- ];
19
+ ] as const satisfies Resource[];