@dxos/plugin-simple-layout 0.0.0 → 0.8.4-main.1c7ec43d41

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 (207) hide show
  1. package/dist/lib/browser/SimpleLayoutPlugin-Q5BZE6KD.mjs +50 -0
  2. package/dist/lib/browser/SimpleLayoutPlugin-Q5BZE6KD.mjs.map +7 -0
  3. package/dist/lib/browser/index.mjs +25 -0
  4. package/dist/lib/browser/index.mjs.map +7 -0
  5. package/dist/lib/browser/meta.json +1 -0
  6. package/dist/lib/browser/translations.mjs +34 -0
  7. package/dist/lib/browser/translations.mjs.map +7 -0
  8. package/dist/lib/node-esm/SimpleLayoutPlugin-OD45TNPO.mjs +52 -0
  9. package/dist/lib/node-esm/SimpleLayoutPlugin-OD45TNPO.mjs.map +7 -0
  10. package/dist/lib/node-esm/index.mjs +27 -0
  11. package/dist/lib/node-esm/index.mjs.map +7 -0
  12. package/dist/lib/node-esm/meta.json +1 -0
  13. package/dist/lib/node-esm/translations.mjs +36 -0
  14. package/dist/lib/node-esm/translations.mjs.map +7 -0
  15. package/dist/types/src/SimpleLayoutPlugin.d.ts +8 -0
  16. package/dist/types/src/SimpleLayoutPlugin.d.ts.map +1 -0
  17. package/dist/types/src/capabilities/app-graph-builder.d.ts +6 -0
  18. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -0
  19. package/dist/types/src/capabilities/index.d.ts +22 -0
  20. package/dist/types/src/capabilities/index.d.ts.map +1 -0
  21. package/dist/types/src/capabilities/operation-handler.d.ts +6 -0
  22. package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
  23. package/dist/types/src/capabilities/react-root.d.ts +9 -0
  24. package/dist/types/src/capabilities/react-root.d.ts.map +1 -0
  25. package/dist/types/src/capabilities/react-surface.d.ts +5 -0
  26. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
  27. package/dist/types/src/capabilities/spotlight-dismiss.d.ts +14 -0
  28. package/dist/types/src/capabilities/spotlight-dismiss.d.ts.map +1 -0
  29. package/dist/types/src/capabilities/state.d.ts +19 -0
  30. package/dist/types/src/capabilities/state.d.ts.map +1 -0
  31. package/dist/types/src/capabilities/url-handler.d.ts +12 -0
  32. package/dist/types/src/capabilities/url-handler.d.ts.map +1 -0
  33. package/dist/types/src/components/ContentError.stories.d.ts +46 -0
  34. package/dist/types/src/components/ContentError.stories.d.ts.map +1 -0
  35. package/dist/types/src/components/DebugOverlay/DebugOverlay.d.ts +19 -0
  36. package/dist/types/src/components/DebugOverlay/DebugOverlay.d.ts.map +1 -0
  37. package/dist/types/src/components/DebugOverlay/index.d.ts +2 -0
  38. package/dist/types/src/components/DebugOverlay/index.d.ts.map +1 -0
  39. package/dist/types/src/components/Dialog/Dialog.d.ts +3 -0
  40. package/dist/types/src/components/Dialog/Dialog.d.ts.map +1 -0
  41. package/dist/types/src/components/Dialog/index.d.ts +2 -0
  42. package/dist/types/src/components/Dialog/index.d.ts.map +1 -0
  43. package/dist/types/src/components/Home/Home.d.ts +7 -0
  44. package/dist/types/src/components/Home/Home.d.ts.map +1 -0
  45. package/dist/types/src/components/Home/index.d.ts +2 -0
  46. package/dist/types/src/components/Home/index.d.ts.map +1 -0
  47. package/dist/types/src/components/Loading/Loading.d.ts +3 -0
  48. package/dist/types/src/components/Loading/Loading.d.ts.map +1 -0
  49. package/dist/types/src/components/Loading/Loading.stories.d.ts +13 -0
  50. package/dist/types/src/components/Loading/Loading.stories.d.ts.map +1 -0
  51. package/dist/types/src/components/Loading/index.d.ts +2 -0
  52. package/dist/types/src/components/Loading/index.d.ts.map +1 -0
  53. package/dist/types/src/components/MobileLayout/MobileLayout.d.ts +35 -0
  54. package/dist/types/src/components/MobileLayout/MobileLayout.d.ts.map +1 -0
  55. package/dist/types/src/components/MobileLayout/MobileLayout.stories.d.ts +7 -0
  56. package/dist/types/src/components/MobileLayout/MobileLayout.stories.d.ts.map +1 -0
  57. package/dist/types/src/components/MobileLayout/index.d.ts +2 -0
  58. package/dist/types/src/components/MobileLayout/index.d.ts.map +1 -0
  59. package/dist/types/src/components/NavBranch/NavBranch.d.ts +11 -0
  60. package/dist/types/src/components/NavBranch/NavBranch.d.ts.map +1 -0
  61. package/dist/types/src/components/NavBranch/index.d.ts +2 -0
  62. package/dist/types/src/components/NavBranch/index.d.ts.map +1 -0
  63. package/dist/types/src/components/Popover/Popover.d.ts +4 -0
  64. package/dist/types/src/components/Popover/Popover.d.ts.map +1 -0
  65. package/dist/types/src/components/Popover/index.d.ts +2 -0
  66. package/dist/types/src/components/Popover/index.d.ts.map +1 -0
  67. package/dist/types/src/components/SimpleLayout/AppBar.d.ts +24 -0
  68. package/dist/types/src/components/SimpleLayout/AppBar.d.ts.map +1 -0
  69. package/dist/types/src/components/SimpleLayout/AppBar.stories.d.ts +54 -0
  70. package/dist/types/src/components/SimpleLayout/AppBar.stories.d.ts.map +1 -0
  71. package/dist/types/src/components/SimpleLayout/Drawer.d.ts +6 -0
  72. package/dist/types/src/components/SimpleLayout/Drawer.d.ts.map +1 -0
  73. package/dist/types/src/components/SimpleLayout/Main.d.ts +6 -0
  74. package/dist/types/src/components/SimpleLayout/Main.d.ts.map +1 -0
  75. package/dist/types/src/components/SimpleLayout/NavBar.d.ts +16 -0
  76. package/dist/types/src/components/SimpleLayout/NavBar.d.ts.map +1 -0
  77. package/dist/types/src/components/SimpleLayout/NavBar.stories.d.ts +49 -0
  78. package/dist/types/src/components/SimpleLayout/NavBar.stories.d.ts.map +1 -0
  79. package/dist/types/src/components/SimpleLayout/SimpleLayout.d.ts +3 -0
  80. package/dist/types/src/components/SimpleLayout/SimpleLayout.d.ts.map +1 -0
  81. package/dist/types/src/components/SimpleLayout/SimpleLayout.stories.d.ts +48 -0
  82. package/dist/types/src/components/SimpleLayout/SimpleLayout.stories.d.ts.map +1 -0
  83. package/dist/types/src/components/SimpleLayout/index.d.ts +5 -0
  84. package/dist/types/src/components/SimpleLayout/index.d.ts.map +1 -0
  85. package/dist/types/src/components/hooks.d.ts +7 -0
  86. package/dist/types/src/components/hooks.d.ts.map +1 -0
  87. package/dist/types/src/components/index.d.ts +8 -0
  88. package/dist/types/src/components/index.d.ts.map +1 -0
  89. package/dist/types/src/hooks/actions.d.ts +19 -0
  90. package/dist/types/src/hooks/actions.d.ts.map +1 -0
  91. package/dist/types/src/hooks/index.d.ts +7 -0
  92. package/dist/types/src/hooks/index.d.ts.map +1 -0
  93. package/dist/types/src/hooks/useAppBarProps.d.ts +7 -0
  94. package/dist/types/src/hooks/useAppBarProps.d.ts.map +1 -0
  95. package/dist/types/src/hooks/useCompanions.d.ts +12 -0
  96. package/dist/types/src/hooks/useCompanions.d.ts.map +1 -0
  97. package/dist/types/src/hooks/useDrawerActions.d.ts +13 -0
  98. package/dist/types/src/hooks/useDrawerActions.d.ts.map +1 -0
  99. package/dist/types/src/hooks/useNavbarActions.d.ts +14 -0
  100. package/dist/types/src/hooks/useNavbarActions.d.ts.map +1 -0
  101. package/dist/types/src/hooks/useSimpleLayoutState.d.ts +7 -0
  102. package/dist/types/src/hooks/useSimpleLayoutState.d.ts.map +1 -0
  103. package/dist/types/src/index.d.ts +4 -0
  104. package/dist/types/src/index.d.ts.map +1 -0
  105. package/dist/types/src/meta.d.ts +3 -0
  106. package/dist/types/src/meta.d.ts.map +1 -0
  107. package/dist/types/src/operations/close.d.ts +5 -0
  108. package/dist/types/src/operations/close.d.ts.map +1 -0
  109. package/dist/types/src/operations/index.d.ts +3 -0
  110. package/dist/types/src/operations/index.d.ts.map +1 -0
  111. package/dist/types/src/operations/open.d.ts +5 -0
  112. package/dist/types/src/operations/open.d.ts.map +1 -0
  113. package/dist/types/src/operations/revert-workspace.d.ts +5 -0
  114. package/dist/types/src/operations/revert-workspace.d.ts.map +1 -0
  115. package/dist/types/src/operations/set-layout-mode.d.ts +5 -0
  116. package/dist/types/src/operations/set-layout-mode.d.ts.map +1 -0
  117. package/dist/types/src/operations/set.d.ts +5 -0
  118. package/dist/types/src/operations/set.d.ts.map +1 -0
  119. package/dist/types/src/operations/state-access.d.ts +8 -0
  120. package/dist/types/src/operations/state-access.d.ts.map +1 -0
  121. package/dist/types/src/operations/switch-workspace.d.ts +5 -0
  122. package/dist/types/src/operations/switch-workspace.d.ts.map +1 -0
  123. package/dist/types/src/operations/update-complementary.d.ts +5 -0
  124. package/dist/types/src/operations/update-complementary.d.ts.map +1 -0
  125. package/dist/types/src/operations/update-dialog.d.ts +5 -0
  126. package/dist/types/src/operations/update-dialog.d.ts.map +1 -0
  127. package/dist/types/src/operations/update-popover.d.ts +5 -0
  128. package/dist/types/src/operations/update-popover.d.ts.map +1 -0
  129. package/dist/types/src/operations/update-sidebar.d.ts +5 -0
  130. package/dist/types/src/operations/update-sidebar.d.ts.map +1 -0
  131. package/dist/types/src/translations.d.ts +32 -0
  132. package/dist/types/src/translations.d.ts.map +1 -0
  133. package/dist/types/src/types/capabilities.d.ts +44 -0
  134. package/dist/types/src/types/capabilities.d.ts.map +1 -0
  135. package/dist/types/src/types/events.d.ts +6 -0
  136. package/dist/types/src/types/events.d.ts.map +1 -0
  137. package/dist/types/src/types/index.d.ts +3 -0
  138. package/dist/types/src/types/index.d.ts.map +1 -0
  139. package/dist/types/tsconfig.tsbuildinfo +1 -0
  140. package/package.json +58 -29
  141. package/src/SimpleLayoutPlugin.ts +39 -11
  142. package/src/capabilities/app-graph-builder.ts +21 -0
  143. package/src/capabilities/index.ts +13 -3
  144. package/src/capabilities/operation-handler.ts +14 -0
  145. package/src/capabilities/{react-root/react-root.tsx → react-root.tsx} +4 -4
  146. package/src/capabilities/react-surface.tsx +50 -0
  147. package/src/{hooks/useSpotlightDismiss.ts → capabilities/spotlight-dismiss.ts} +31 -40
  148. package/src/capabilities/state.tsx +52 -0
  149. package/src/capabilities/url-handler.ts +161 -0
  150. package/src/components/ContentError.stories.tsx +9 -8
  151. package/src/components/DebugOverlay/DebugOverlay.tsx +96 -0
  152. package/src/components/DebugOverlay/index.ts +5 -0
  153. package/src/components/Dialog/Dialog.tsx +26 -15
  154. package/src/components/Home/Home.tsx +80 -80
  155. package/src/components/{ContentLoading.stories.tsx → Loading/Loading.stories.tsx} +5 -5
  156. package/src/components/{ContentLoading.tsx → Loading/Loading.tsx} +2 -2
  157. package/src/components/Loading/index.ts +5 -0
  158. package/src/components/MobileLayout/MobileLayout.stories.tsx +133 -0
  159. package/src/components/MobileLayout/MobileLayout.tsx +374 -0
  160. package/src/components/MobileLayout/index.ts +5 -0
  161. package/src/components/NavBranch/NavBranch.tsx +124 -0
  162. package/src/components/NavBranch/index.ts +5 -0
  163. package/src/components/Popover/Popover.tsx +49 -27
  164. package/src/components/SimpleLayout/AppBar.stories.tsx +144 -0
  165. package/src/components/SimpleLayout/AppBar.tsx +94 -0
  166. package/src/components/SimpleLayout/Drawer.tsx +104 -0
  167. package/src/components/SimpleLayout/Main.tsx +54 -61
  168. package/src/components/SimpleLayout/NavBar.stories.tsx +164 -0
  169. package/src/components/SimpleLayout/NavBar.tsx +19 -83
  170. package/src/components/SimpleLayout/SimpleLayout.stories.tsx +44 -61
  171. package/src/components/SimpleLayout/SimpleLayout.tsx +45 -8
  172. package/src/components/SimpleLayout/index.ts +3 -0
  173. package/src/components/hooks.ts +26 -0
  174. package/src/components/index.ts +4 -1
  175. package/src/hooks/actions.ts +84 -0
  176. package/src/hooks/index.ts +6 -1
  177. package/src/hooks/useAppBarProps.ts +95 -0
  178. package/src/hooks/useCompanions.ts +22 -0
  179. package/src/hooks/useDrawerActions.ts +100 -0
  180. package/src/hooks/useNavbarActions.ts +87 -0
  181. package/src/hooks/useSimpleLayoutState.ts +30 -0
  182. package/src/index.ts +7 -1
  183. package/src/meta.ts +2 -1
  184. package/src/operations/close.ts +34 -0
  185. package/src/operations/index.ts +16 -0
  186. package/src/operations/open.ts +63 -0
  187. package/src/operations/revert-workspace.ts +22 -0
  188. package/src/operations/set-layout-mode.ts +12 -0
  189. package/src/operations/set.ts +23 -0
  190. package/src/operations/state-access.ts +19 -0
  191. package/src/operations/switch-workspace.ts +26 -0
  192. package/src/operations/update-complementary.ts +35 -0
  193. package/src/operations/update-dialog.ts +28 -0
  194. package/src/operations/update-popover.ts +35 -0
  195. package/src/operations/update-sidebar.ts +12 -0
  196. package/src/translations.ts +21 -13
  197. package/src/types/capabilities.ts +23 -7
  198. package/src/types/events.ts +15 -0
  199. package/src/types/index.ts +1 -0
  200. package/src/capabilities/operation-resolver/index.ts +0 -10
  201. package/src/capabilities/operation-resolver/operation-resolver.ts +0 -135
  202. package/src/capabilities/react-root/index.ts +0 -7
  203. package/src/capabilities/state/index.ts +0 -9
  204. package/src/capabilities/state/state.tsx +0 -60
  205. package/src/components/ContentError.tsx +0 -23
  206. package/src/components/SimpleLayout/Banner.tsx +0 -60
  207. package/src/components/SimpleLayout/NavBarstories.tsx +0 -59
@@ -0,0 +1,50 @@
1
+ // src/SimpleLayoutPlugin.ts
2
+ import { ActivationEvent, ActivationEvents, Capability, Plugin } from "@dxos/app-framework";
3
+ import { AppActivationEvents, AppPlugin } from "@dxos/app-toolkit";
4
+ import { AppGraphBuilder, OperationHandler, ReactRoot, ReactSurface, SpotlightDismiss, State, UrlHandler } from "#capabilities";
5
+ import { meta } from "#meta";
6
+ import { translations } from "#translations";
7
+ import { SimpleLayoutEvents } from "#types";
8
+ var SimpleLayoutPlugin = Plugin.define(meta).pipe(AppPlugin.addAppGraphModule({
9
+ activate: AppGraphBuilder
10
+ }), AppPlugin.addOperationHandlerModule({
11
+ activate: OperationHandler
12
+ }), AppPlugin.addTranslationsModule({
13
+ translations
14
+ }), Plugin.addModule(({ isPopover = false }) => ({
15
+ id: Capability.getModuleTag(State),
16
+ activatesOn: ActivationEvents.Startup,
17
+ firesAfterActivation: [
18
+ SimpleLayoutEvents.StateReady,
19
+ AppActivationEvents.LayoutReady
20
+ ],
21
+ activate: () => State({
22
+ initialState: {
23
+ isPopover
24
+ }
25
+ })
26
+ })), Plugin.addModule(({ isPopover = false }) => ({
27
+ id: Capability.getModuleTag(SpotlightDismiss),
28
+ activatesOn: ActivationEvents.Startup,
29
+ activate: () => SpotlightDismiss({
30
+ isPopover
31
+ })
32
+ })), Plugin.addModule({
33
+ id: Capability.getModuleTag(ReactRoot),
34
+ activatesOn: ActivationEvents.Startup,
35
+ activate: ReactRoot
36
+ }), Plugin.addModule({
37
+ id: Capability.getModuleTag(ReactSurface),
38
+ activatesOn: ActivationEvents.Startup,
39
+ activate: ReactSurface
40
+ }), Plugin.addModule({
41
+ id: Capability.getModuleTag(UrlHandler),
42
+ activatesOn: ActivationEvent.allOf(ActivationEvents.OperationInvokerReady, SimpleLayoutEvents.StateReady),
43
+ activate: UrlHandler
44
+ }), Plugin.make);
45
+ var SimpleLayoutPlugin_default = SimpleLayoutPlugin;
46
+ export {
47
+ SimpleLayoutPlugin,
48
+ SimpleLayoutPlugin_default as default
49
+ };
50
+ //# sourceMappingURL=SimpleLayoutPlugin-Q5BZE6KD.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/SimpleLayoutPlugin.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { ActivationEvent, ActivationEvents, Capability, Plugin } from '@dxos/app-framework';\nimport { AppActivationEvents, AppPlugin } from '@dxos/app-toolkit';\n\nimport {\n AppGraphBuilder,\n OperationHandler,\n ReactRoot,\n ReactSurface,\n SpotlightDismiss,\n State,\n UrlHandler,\n} from '#capabilities';\nimport { meta } from '#meta';\nimport { translations } from '#translations';\nimport { SimpleLayoutEvents } from '#types';\n\nexport type SimpleLayoutPluginOptions = {\n /** Determines if running in popover window context (hides mobile-specific UI). */\n isPopover?: boolean;\n};\n\nexport const SimpleLayoutPlugin = Plugin.define<SimpleLayoutPluginOptions>(meta).pipe(\n AppPlugin.addAppGraphModule({ activate: AppGraphBuilder }),\n AppPlugin.addOperationHandlerModule({ activate: OperationHandler }),\n AppPlugin.addTranslationsModule({ translations }),\n Plugin.addModule(({ isPopover = false }) => ({\n id: Capability.getModuleTag(State),\n activatesOn: ActivationEvents.Startup,\n firesAfterActivation: [SimpleLayoutEvents.StateReady, AppActivationEvents.LayoutReady],\n activate: () => State({ initialState: { isPopover } }),\n })),\n Plugin.addModule(({ isPopover = false }) => ({\n id: Capability.getModuleTag(SpotlightDismiss),\n activatesOn: ActivationEvents.Startup,\n activate: () => SpotlightDismiss({ isPopover }),\n })),\n Plugin.addModule({\n id: Capability.getModuleTag(ReactRoot),\n activatesOn: ActivationEvents.Startup,\n activate: ReactRoot,\n }),\n Plugin.addModule({\n id: Capability.getModuleTag(ReactSurface),\n activatesOn: ActivationEvents.Startup,\n activate: ReactSurface,\n }),\n Plugin.addModule({\n id: Capability.getModuleTag(UrlHandler),\n activatesOn: ActivationEvent.allOf(ActivationEvents.OperationInvokerReady, SimpleLayoutEvents.StateReady),\n activate: UrlHandler,\n }),\n Plugin.make,\n);\n\nexport default SimpleLayoutPlugin;\n"],
5
+ "mappings": ";AAIA,SAASA,iBAAiBC,kBAAkBC,YAAYC,cAAc;AACtE,SAASC,qBAAqBC,iBAAiB;AAE/C,SACEC,iBACAC,kBACAC,WACAC,cACAC,kBACAC,OACAC,kBACK;AACP,SAASC,YAAY;AACrB,SAASC,oBAAoB;AAC7B,SAASC,0BAA0B;AAO5B,IAAMC,qBAAqBb,OAAOc,OAAkCJ,IAAAA,EAAMK,KAC/Eb,UAAUc,kBAAkB;EAAEC,UAAUd;AAAgB,CAAA,GACxDD,UAAUgB,0BAA0B;EAAED,UAAUb;AAAiB,CAAA,GACjEF,UAAUiB,sBAAsB;EAAER;AAAa,CAAA,GAC/CX,OAAOoB,UAAU,CAAC,EAAEC,YAAY,MAAK,OAAQ;EAC3CC,IAAIvB,WAAWwB,aAAaf,KAAAA;EAC5BgB,aAAa1B,iBAAiB2B;EAC9BC,sBAAsB;IAACd,mBAAmBe;IAAY1B,oBAAoB2B;;EAC1EX,UAAU,MAAMT,MAAM;IAAEqB,cAAc;MAAER;IAAU;EAAE,CAAA;AACtD,EAAA,GACArB,OAAOoB,UAAU,CAAC,EAAEC,YAAY,MAAK,OAAQ;EAC3CC,IAAIvB,WAAWwB,aAAahB,gBAAAA;EAC5BiB,aAAa1B,iBAAiB2B;EAC9BR,UAAU,MAAMV,iBAAiB;IAAEc;EAAU,CAAA;AAC/C,EAAA,GACArB,OAAOoB,UAAU;EACfE,IAAIvB,WAAWwB,aAAalB,SAAAA;EAC5BmB,aAAa1B,iBAAiB2B;EAC9BR,UAAUZ;AACZ,CAAA,GACAL,OAAOoB,UAAU;EACfE,IAAIvB,WAAWwB,aAAajB,YAAAA;EAC5BkB,aAAa1B,iBAAiB2B;EAC9BR,UAAUX;AACZ,CAAA,GACAN,OAAOoB,UAAU;EACfE,IAAIvB,WAAWwB,aAAad,UAAAA;EAC5Be,aAAa3B,gBAAgBiC,MAAMhC,iBAAiBiC,uBAAuBnB,mBAAmBe,UAAU;EACxGV,UAAUR;AACZ,CAAA,GACAT,OAAOgC,IAAI;AAGb,IAAA,6BAAenB;",
6
+ "names": ["ActivationEvent", "ActivationEvents", "Capability", "Plugin", "AppActivationEvents", "AppPlugin", "AppGraphBuilder", "OperationHandler", "ReactRoot", "ReactSurface", "SpotlightDismiss", "State", "UrlHandler", "meta", "translations", "SimpleLayoutEvents", "SimpleLayoutPlugin", "define", "pipe", "addAppGraphModule", "activate", "addOperationHandlerModule", "addTranslationsModule", "addModule", "isPopover", "id", "getModuleTag", "activatesOn", "Startup", "firesAfterActivation", "StateReady", "LayoutReady", "initialState", "allOf", "OperationInvokerReady", "make"]
7
+ }
@@ -0,0 +1,25 @@
1
+ // src/index.ts
2
+ import { Plugin } from "@dxos/app-framework";
3
+
4
+ // src/meta.ts
5
+ import { trim } from "@dxos/util";
6
+ var meta = {
7
+ id: "org.dxos.plugin.simpleLayout",
8
+ name: "Simple Layout",
9
+ description: trim`
10
+ Minimal layout plugin for simplified UI contexts like popover windows.
11
+ Provides basic content rendering without sidebars or complex navigation.
12
+ `,
13
+ icon: "ph--layout--regular",
14
+ tags: [
15
+ "system"
16
+ ]
17
+ };
18
+
19
+ // src/index.ts
20
+ var SimpleLayoutPlugin = Plugin.lazy(meta, () => import("./SimpleLayoutPlugin-Q5BZE6KD.mjs"));
21
+ export {
22
+ SimpleLayoutPlugin,
23
+ meta
24
+ };
25
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/index.ts", "../../../src/meta.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Plugin } from '@dxos/app-framework';\n\nimport { meta } from './meta';\n\nexport const SimpleLayoutPlugin = Plugin.lazy(meta, () => import('./SimpleLayoutPlugin'));\n\nexport * from './meta';\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { type Plugin } from '@dxos/app-framework';\nimport { trim } from '@dxos/util';\n\nexport const meta: Plugin.Meta = {\n id: 'org.dxos.plugin.simpleLayout',\n name: 'Simple Layout',\n description: trim`\n Minimal layout plugin for simplified UI contexts like popover windows.\n Provides basic content rendering without sidebars or complex navigation.\n `,\n icon: 'ph--layout--regular',\n tags: ['system'],\n};\n"],
5
+ "mappings": ";AAIA,SAASA,cAAc;;;ACCvB,SAASC,YAAY;AAEd,IAAMC,OAAoB;EAC/BC,IAAI;EACJC,MAAM;EACNC,aAAaJ;;;;EAIbK,MAAM;EACNC,MAAM;IAAC;;AACT;;;ADRO,IAAMC,qBAAqBC,OAAOC,KAAKC,MAAM,MAAM,OAAO,mCAAA,CAAA;",
6
+ "names": ["Plugin", "trim", "meta", "id", "name", "description", "icon", "tags", "SimpleLayoutPlugin", "Plugin", "lazy", "meta"]
7
+ }
@@ -0,0 +1 @@
1
+ {"inputs":{"src/meta.ts":{"bytes":1507,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/SimpleLayoutPlugin.ts":{"bytes":7143,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#translations","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":994,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/SimpleLayoutPlugin.ts","kind":"dynamic-import","original":"./SimpleLayoutPlugin"}],"format":"esm"},"src/translations.ts":{"bytes":3537,"imports":[{"path":"@dxos/react-ui-search/translations","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1154},"dist/lib/browser/index.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"dist/lib/browser/SimpleLayoutPlugin-Q5BZE6KD.mjs","kind":"dynamic-import"}],"exports":["SimpleLayoutPlugin","meta"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":141},"src/meta.ts":{"bytesInOutput":350}},"bytes":616},"dist/lib/browser/translations.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1667},"dist/lib/browser/translations.mjs":{"imports":[{"path":"@dxos/react-ui-search/translations","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"exports":["translations"],"entryPoint":"src/translations.ts","inputs":{"src/translations.ts":{"bytesInOutput":978}},"bytes":1070},"dist/lib/browser/SimpleLayoutPlugin-Q5BZE6KD.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3769},"dist/lib/browser/SimpleLayoutPlugin-Q5BZE6KD.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#translations","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"exports":["SimpleLayoutPlugin","default"],"entryPoint":"src/SimpleLayoutPlugin.ts","inputs":{"src/SimpleLayoutPlugin.ts":{"bytesInOutput":1678}},"bytes":1838}}}
@@ -0,0 +1,34 @@
1
+ // src/translations.ts
2
+ import { translations as searchTranslations } from "@dxos/react-ui-search/translations";
3
+ import { meta } from "#meta";
4
+ var translations = [
5
+ ...searchTranslations,
6
+ {
7
+ "en-US": {
8
+ [meta.id]: {
9
+ "plugin.name": "Simple layout",
10
+ "settings.title": "Simple layout settings",
11
+ "workspaces.heading": "Workspaces",
12
+ "settings.heading": "Settings",
13
+ "back.label": "Back",
14
+ "browse.label": "Browse",
15
+ "notifications.label": "Notifications",
16
+ "profile.label": "Profile",
17
+ "app-menu.label": "App menu",
18
+ "main-menu.label": "Main menu",
19
+ "companions-menu.label": "Companions",
20
+ "error-fallback.message": "An error occurred",
21
+ "drawer.label": "Drawer",
22
+ "close-drawer.label": "Close drawer",
23
+ "expand-drawer.label": "Expand drawer",
24
+ "collapse-drawer.label": "Collapse drawer",
25
+ "actions-menu.label": "Actions",
26
+ "done.label": "Done"
27
+ }
28
+ }
29
+ }
30
+ ];
31
+ export {
32
+ translations
33
+ };
34
+ //# sourceMappingURL=translations.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/translations.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { type Resource } from '@dxos/react-ui';\nimport { translations as searchTranslations } from '@dxos/react-ui-search/translations';\n\nimport { meta } from '#meta';\n\nexport const translations = [\n ...searchTranslations,\n {\n 'en-US': {\n [meta.id]: {\n 'plugin.name': 'Simple layout',\n 'settings.title': 'Simple layout settings',\n 'workspaces.heading': 'Workspaces',\n 'settings.heading': 'Settings',\n 'back.label': 'Back',\n 'browse.label': 'Browse',\n 'notifications.label': 'Notifications',\n 'profile.label': 'Profile',\n 'app-menu.label': 'App menu',\n 'main-menu.label': 'Main menu',\n 'companions-menu.label': 'Companions',\n 'error-fallback.message': 'An error occurred',\n 'drawer.label': 'Drawer',\n 'close-drawer.label': 'Close drawer',\n 'expand-drawer.label': 'Expand drawer',\n 'collapse-drawer.label': 'Collapse drawer',\n 'actions-menu.label': 'Actions',\n 'done.label': 'Done',\n },\n },\n },\n] as const satisfies Resource[];\n"],
5
+ "mappings": ";AAKA,SAASA,gBAAgBC,0BAA0B;AAEnD,SAASC,YAAY;AAEd,IAAMF,eAAe;KACvBC;EACH;IACE,SAAS;MACP,CAACC,KAAKC,EAAE,GAAG;QACT,eAAe;QACf,kBAAkB;QAClB,sBAAsB;QACtB,oBAAoB;QACpB,cAAc;QACd,gBAAgB;QAChB,uBAAuB;QACvB,iBAAiB;QACjB,kBAAkB;QAClB,mBAAmB;QACnB,yBAAyB;QACzB,0BAA0B;QAC1B,gBAAgB;QAChB,sBAAsB;QACtB,uBAAuB;QACvB,yBAAyB;QACzB,sBAAsB;QACtB,cAAc;MAChB;IACF;EACF;;",
6
+ "names": ["translations", "searchTranslations", "meta", "id"]
7
+ }
@@ -0,0 +1,52 @@
1
+ import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
+
3
+ // src/SimpleLayoutPlugin.ts
4
+ import { ActivationEvent, ActivationEvents, Capability, Plugin } from "@dxos/app-framework";
5
+ import { AppActivationEvents, AppPlugin } from "@dxos/app-toolkit";
6
+ import { AppGraphBuilder, OperationHandler, ReactRoot, ReactSurface, SpotlightDismiss, State, UrlHandler } from "#capabilities";
7
+ import { meta } from "#meta";
8
+ import { translations } from "#translations";
9
+ import { SimpleLayoutEvents } from "#types";
10
+ var SimpleLayoutPlugin = Plugin.define(meta).pipe(AppPlugin.addAppGraphModule({
11
+ activate: AppGraphBuilder
12
+ }), AppPlugin.addOperationHandlerModule({
13
+ activate: OperationHandler
14
+ }), AppPlugin.addTranslationsModule({
15
+ translations
16
+ }), Plugin.addModule(({ isPopover = false }) => ({
17
+ id: Capability.getModuleTag(State),
18
+ activatesOn: ActivationEvents.Startup,
19
+ firesAfterActivation: [
20
+ SimpleLayoutEvents.StateReady,
21
+ AppActivationEvents.LayoutReady
22
+ ],
23
+ activate: () => State({
24
+ initialState: {
25
+ isPopover
26
+ }
27
+ })
28
+ })), Plugin.addModule(({ isPopover = false }) => ({
29
+ id: Capability.getModuleTag(SpotlightDismiss),
30
+ activatesOn: ActivationEvents.Startup,
31
+ activate: () => SpotlightDismiss({
32
+ isPopover
33
+ })
34
+ })), Plugin.addModule({
35
+ id: Capability.getModuleTag(ReactRoot),
36
+ activatesOn: ActivationEvents.Startup,
37
+ activate: ReactRoot
38
+ }), Plugin.addModule({
39
+ id: Capability.getModuleTag(ReactSurface),
40
+ activatesOn: ActivationEvents.Startup,
41
+ activate: ReactSurface
42
+ }), Plugin.addModule({
43
+ id: Capability.getModuleTag(UrlHandler),
44
+ activatesOn: ActivationEvent.allOf(ActivationEvents.OperationInvokerReady, SimpleLayoutEvents.StateReady),
45
+ activate: UrlHandler
46
+ }), Plugin.make);
47
+ var SimpleLayoutPlugin_default = SimpleLayoutPlugin;
48
+ export {
49
+ SimpleLayoutPlugin,
50
+ SimpleLayoutPlugin_default as default
51
+ };
52
+ //# sourceMappingURL=SimpleLayoutPlugin-OD45TNPO.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/SimpleLayoutPlugin.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { ActivationEvent, ActivationEvents, Capability, Plugin } from '@dxos/app-framework';\nimport { AppActivationEvents, AppPlugin } from '@dxos/app-toolkit';\n\nimport {\n AppGraphBuilder,\n OperationHandler,\n ReactRoot,\n ReactSurface,\n SpotlightDismiss,\n State,\n UrlHandler,\n} from '#capabilities';\nimport { meta } from '#meta';\nimport { translations } from '#translations';\nimport { SimpleLayoutEvents } from '#types';\n\nexport type SimpleLayoutPluginOptions = {\n /** Determines if running in popover window context (hides mobile-specific UI). */\n isPopover?: boolean;\n};\n\nexport const SimpleLayoutPlugin = Plugin.define<SimpleLayoutPluginOptions>(meta).pipe(\n AppPlugin.addAppGraphModule({ activate: AppGraphBuilder }),\n AppPlugin.addOperationHandlerModule({ activate: OperationHandler }),\n AppPlugin.addTranslationsModule({ translations }),\n Plugin.addModule(({ isPopover = false }) => ({\n id: Capability.getModuleTag(State),\n activatesOn: ActivationEvents.Startup,\n firesAfterActivation: [SimpleLayoutEvents.StateReady, AppActivationEvents.LayoutReady],\n activate: () => State({ initialState: { isPopover } }),\n })),\n Plugin.addModule(({ isPopover = false }) => ({\n id: Capability.getModuleTag(SpotlightDismiss),\n activatesOn: ActivationEvents.Startup,\n activate: () => SpotlightDismiss({ isPopover }),\n })),\n Plugin.addModule({\n id: Capability.getModuleTag(ReactRoot),\n activatesOn: ActivationEvents.Startup,\n activate: ReactRoot,\n }),\n Plugin.addModule({\n id: Capability.getModuleTag(ReactSurface),\n activatesOn: ActivationEvents.Startup,\n activate: ReactSurface,\n }),\n Plugin.addModule({\n id: Capability.getModuleTag(UrlHandler),\n activatesOn: ActivationEvent.allOf(ActivationEvents.OperationInvokerReady, SimpleLayoutEvents.StateReady),\n activate: UrlHandler,\n }),\n Plugin.make,\n);\n\nexport default SimpleLayoutPlugin;\n"],
5
+ "mappings": ";;;AAIA,SAASA,iBAAiBC,kBAAkBC,YAAYC,cAAc;AACtE,SAASC,qBAAqBC,iBAAiB;AAE/C,SACEC,iBACAC,kBACAC,WACAC,cACAC,kBACAC,OACAC,kBACK;AACP,SAASC,YAAY;AACrB,SAASC,oBAAoB;AAC7B,SAASC,0BAA0B;AAO5B,IAAMC,qBAAqBb,OAAOc,OAAkCJ,IAAAA,EAAMK,KAC/Eb,UAAUc,kBAAkB;EAAEC,UAAUd;AAAgB,CAAA,GACxDD,UAAUgB,0BAA0B;EAAED,UAAUb;AAAiB,CAAA,GACjEF,UAAUiB,sBAAsB;EAAER;AAAa,CAAA,GAC/CX,OAAOoB,UAAU,CAAC,EAAEC,YAAY,MAAK,OAAQ;EAC3CC,IAAIvB,WAAWwB,aAAaf,KAAAA;EAC5BgB,aAAa1B,iBAAiB2B;EAC9BC,sBAAsB;IAACd,mBAAmBe;IAAY1B,oBAAoB2B;;EAC1EX,UAAU,MAAMT,MAAM;IAAEqB,cAAc;MAAER;IAAU;EAAE,CAAA;AACtD,EAAA,GACArB,OAAOoB,UAAU,CAAC,EAAEC,YAAY,MAAK,OAAQ;EAC3CC,IAAIvB,WAAWwB,aAAahB,gBAAAA;EAC5BiB,aAAa1B,iBAAiB2B;EAC9BR,UAAU,MAAMV,iBAAiB;IAAEc;EAAU,CAAA;AAC/C,EAAA,GACArB,OAAOoB,UAAU;EACfE,IAAIvB,WAAWwB,aAAalB,SAAAA;EAC5BmB,aAAa1B,iBAAiB2B;EAC9BR,UAAUZ;AACZ,CAAA,GACAL,OAAOoB,UAAU;EACfE,IAAIvB,WAAWwB,aAAajB,YAAAA;EAC5BkB,aAAa1B,iBAAiB2B;EAC9BR,UAAUX;AACZ,CAAA,GACAN,OAAOoB,UAAU;EACfE,IAAIvB,WAAWwB,aAAad,UAAAA;EAC5Be,aAAa3B,gBAAgBiC,MAAMhC,iBAAiBiC,uBAAuBnB,mBAAmBe,UAAU;EACxGV,UAAUR;AACZ,CAAA,GACAT,OAAOgC,IAAI;AAGb,IAAA,6BAAenB;",
6
+ "names": ["ActivationEvent", "ActivationEvents", "Capability", "Plugin", "AppActivationEvents", "AppPlugin", "AppGraphBuilder", "OperationHandler", "ReactRoot", "ReactSurface", "SpotlightDismiss", "State", "UrlHandler", "meta", "translations", "SimpleLayoutEvents", "SimpleLayoutPlugin", "define", "pipe", "addAppGraphModule", "activate", "addOperationHandlerModule", "addTranslationsModule", "addModule", "isPopover", "id", "getModuleTag", "activatesOn", "Startup", "firesAfterActivation", "StateReady", "LayoutReady", "initialState", "allOf", "OperationInvokerReady", "make"]
7
+ }
@@ -0,0 +1,27 @@
1
+ import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
+
3
+ // src/index.ts
4
+ import { Plugin } from "@dxos/app-framework";
5
+
6
+ // src/meta.ts
7
+ import { trim } from "@dxos/util";
8
+ var meta = {
9
+ id: "org.dxos.plugin.simpleLayout",
10
+ name: "Simple Layout",
11
+ description: trim`
12
+ Minimal layout plugin for simplified UI contexts like popover windows.
13
+ Provides basic content rendering without sidebars or complex navigation.
14
+ `,
15
+ icon: "ph--layout--regular",
16
+ tags: [
17
+ "system"
18
+ ]
19
+ };
20
+
21
+ // src/index.ts
22
+ var SimpleLayoutPlugin = Plugin.lazy(meta, () => import("./SimpleLayoutPlugin-OD45TNPO.mjs"));
23
+ export {
24
+ SimpleLayoutPlugin,
25
+ meta
26
+ };
27
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/index.ts", "../../../src/meta.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Plugin } from '@dxos/app-framework';\n\nimport { meta } from './meta';\n\nexport const SimpleLayoutPlugin = Plugin.lazy(meta, () => import('./SimpleLayoutPlugin'));\n\nexport * from './meta';\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { type Plugin } from '@dxos/app-framework';\nimport { trim } from '@dxos/util';\n\nexport const meta: Plugin.Meta = {\n id: 'org.dxos.plugin.simpleLayout',\n name: 'Simple Layout',\n description: trim`\n Minimal layout plugin for simplified UI contexts like popover windows.\n Provides basic content rendering without sidebars or complex navigation.\n `,\n icon: 'ph--layout--regular',\n tags: ['system'],\n};\n"],
5
+ "mappings": ";;;AAIA,SAASA,cAAc;;;ACCvB,SAASC,YAAY;AAEd,IAAMC,OAAoB;EAC/BC,IAAI;EACJC,MAAM;EACNC,aAAaJ;;;;EAIbK,MAAM;EACNC,MAAM;IAAC;;AACT;;;ADRO,IAAMC,qBAAqBC,OAAOC,KAAKC,MAAM,MAAM,OAAO,mCAAA,CAAA;",
6
+ "names": ["Plugin", "trim", "meta", "id", "name", "description", "icon", "tags", "SimpleLayoutPlugin", "Plugin", "lazy", "meta"]
7
+ }
@@ -0,0 +1 @@
1
+ {"inputs":{"src/meta.ts":{"bytes":1507,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/SimpleLayoutPlugin.ts":{"bytes":7143,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#translations","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":994,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/SimpleLayoutPlugin.ts","kind":"dynamic-import","original":"./SimpleLayoutPlugin"}],"format":"esm"},"src/translations.ts":{"bytes":3537,"imports":[{"path":"@dxos/react-ui-search/translations","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1156},"dist/lib/node-esm/index.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"dist/lib/node-esm/SimpleLayoutPlugin-OD45TNPO.mjs","kind":"dynamic-import"}],"exports":["SimpleLayoutPlugin","meta"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":141},"src/meta.ts":{"bytesInOutput":350}},"bytes":709},"dist/lib/node-esm/translations.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1669},"dist/lib/node-esm/translations.mjs":{"imports":[{"path":"@dxos/react-ui-search/translations","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"exports":["translations"],"entryPoint":"src/translations.ts","inputs":{"src/translations.ts":{"bytesInOutput":978}},"bytes":1163},"dist/lib/node-esm/SimpleLayoutPlugin-OD45TNPO.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3771},"dist/lib/node-esm/SimpleLayoutPlugin-OD45TNPO.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#translations","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"exports":["SimpleLayoutPlugin","default"],"entryPoint":"src/SimpleLayoutPlugin.ts","inputs":{"src/SimpleLayoutPlugin.ts":{"bytesInOutput":1678}},"bytes":1931}}}
@@ -0,0 +1,36 @@
1
+ import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
+
3
+ // src/translations.ts
4
+ import { translations as searchTranslations } from "@dxos/react-ui-search/translations";
5
+ import { meta } from "#meta";
6
+ var translations = [
7
+ ...searchTranslations,
8
+ {
9
+ "en-US": {
10
+ [meta.id]: {
11
+ "plugin.name": "Simple layout",
12
+ "settings.title": "Simple layout settings",
13
+ "workspaces.heading": "Workspaces",
14
+ "settings.heading": "Settings",
15
+ "back.label": "Back",
16
+ "browse.label": "Browse",
17
+ "notifications.label": "Notifications",
18
+ "profile.label": "Profile",
19
+ "app-menu.label": "App menu",
20
+ "main-menu.label": "Main menu",
21
+ "companions-menu.label": "Companions",
22
+ "error-fallback.message": "An error occurred",
23
+ "drawer.label": "Drawer",
24
+ "close-drawer.label": "Close drawer",
25
+ "expand-drawer.label": "Expand drawer",
26
+ "collapse-drawer.label": "Collapse drawer",
27
+ "actions-menu.label": "Actions",
28
+ "done.label": "Done"
29
+ }
30
+ }
31
+ }
32
+ ];
33
+ export {
34
+ translations
35
+ };
36
+ //# sourceMappingURL=translations.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/translations.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { type Resource } from '@dxos/react-ui';\nimport { translations as searchTranslations } from '@dxos/react-ui-search/translations';\n\nimport { meta } from '#meta';\n\nexport const translations = [\n ...searchTranslations,\n {\n 'en-US': {\n [meta.id]: {\n 'plugin.name': 'Simple layout',\n 'settings.title': 'Simple layout settings',\n 'workspaces.heading': 'Workspaces',\n 'settings.heading': 'Settings',\n 'back.label': 'Back',\n 'browse.label': 'Browse',\n 'notifications.label': 'Notifications',\n 'profile.label': 'Profile',\n 'app-menu.label': 'App menu',\n 'main-menu.label': 'Main menu',\n 'companions-menu.label': 'Companions',\n 'error-fallback.message': 'An error occurred',\n 'drawer.label': 'Drawer',\n 'close-drawer.label': 'Close drawer',\n 'expand-drawer.label': 'Expand drawer',\n 'collapse-drawer.label': 'Collapse drawer',\n 'actions-menu.label': 'Actions',\n 'done.label': 'Done',\n },\n },\n },\n] as const satisfies Resource[];\n"],
5
+ "mappings": ";;;AAKA,SAASA,gBAAgBC,0BAA0B;AAEnD,SAASC,YAAY;AAEd,IAAMF,eAAe;KACvBC;EACH;IACE,SAAS;MACP,CAACC,KAAKC,EAAE,GAAG;QACT,eAAe;QACf,kBAAkB;QAClB,sBAAsB;QACtB,oBAAoB;QACpB,cAAc;QACd,gBAAgB;QAChB,uBAAuB;QACvB,iBAAiB;QACjB,kBAAkB;QAClB,mBAAmB;QACnB,yBAAyB;QACzB,0BAA0B;QAC1B,gBAAgB;QAChB,sBAAsB;QACtB,uBAAuB;QACvB,yBAAyB;QACzB,sBAAsB;QACtB,cAAc;MAChB;IACF;EACF;;",
6
+ "names": ["translations", "searchTranslations", "meta", "id"]
7
+ }
@@ -0,0 +1,8 @@
1
+ import { Plugin } from '@dxos/app-framework';
2
+ export type SimpleLayoutPluginOptions = {
3
+ /** Determines if running in popover window context (hides mobile-specific UI). */
4
+ isPopover?: boolean;
5
+ };
6
+ export declare const SimpleLayoutPlugin: Plugin.PluginFactory<SimpleLayoutPluginOptions>;
7
+ export default SimpleLayoutPlugin;
8
+ //# sourceMappingURL=SimpleLayoutPlugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SimpleLayoutPlugin.d.ts","sourceRoot":"","sources":["../../../src/SimpleLayoutPlugin.ts"],"names":[],"mappings":"AAIA,OAAO,EAAiD,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAgB5F,MAAM,MAAM,yBAAyB,GAAG;IACtC,kFAAkF;IAClF,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,kBAAkB,iDA+B9B,CAAC;eAEa,kBAAkB"}
@@ -0,0 +1,6 @@
1
+ import * as Effect from 'effect/Effect';
2
+ import { Capability } from '@dxos/app-framework';
3
+ import { GraphBuilder } from '@dxos/plugin-graph';
4
+ declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<GraphBuilder.BuilderExtensions>>, never, never>;
5
+ export default _default;
6
+ //# sourceMappingURL=app-graph-builder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-graph-builder.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/app-graph-builder.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,OAAO,EAAE,YAAY,EAAe,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { Capability } from '@dxos/app-framework';
2
+ import { OperationHandlerSet } from '@dxos/compute';
3
+ export declare const AppGraphBuilder: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-graph").BuilderExtensions>>, Error>;
4
+ export declare const OperationHandler: Capability.LazyCapability<OperationHandlerSet.OperationHandlerSet, Capability.ModuleReturn, Error>;
5
+ export declare const ReactRoot: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<Readonly<{
6
+ id: string;
7
+ root: import("react").FC<import("react").PropsWithChildren>;
8
+ }>>>, Error>;
9
+ export declare const ReactSurface: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-framework/Capabilities").ReactSurface>>, Error>;
10
+ export declare const SpotlightDismiss: Capability.LazyCapability<import("./spotlight-dismiss").SpotlightDismissOptions | undefined, Capability.Capability<Capability.InterfaceDef<null>> | [], Error>;
11
+ export declare const State: Capability.LazyCapability<import("./state").SimpleLayoutStateOptions | undefined, [Capability.Capability<Capability.InterfaceDef<import("@effect-atom/atom/Atom").Writable<import("../types").SimpleLayoutState, import("../types").SimpleLayoutState>>>, Capability.Capability<Capability.InterfaceDef<import("@effect-atom/atom/Atom").Atom<Readonly<{
12
+ mode: string;
13
+ dialogOpen: boolean;
14
+ sidebarOpen: boolean;
15
+ complementarySidebarOpen: boolean;
16
+ workspace: string;
17
+ active: string[];
18
+ inactive: string[];
19
+ scrollIntoView: string | undefined;
20
+ }>>>>], Error>;
21
+ export declare const UrlHandler: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<null>>, Error>;
22
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpD,eAAO,MAAM,eAAe,qIAA0E,CAAC;AACvG,eAAO,MAAM,gBAAgB,oGAG5B,CAAC;AACF,eAAO,MAAM,SAAS;;;YAA6D,CAAC;AACpF,eAAO,MAAM,YAAY,iJAAmE,CAAC;AAC7F,eAAO,MAAM,gBAAgB,gKAA2E,CAAC;AACzG,eAAO,MAAM,KAAK;;;;;;;;;cAAoD,CAAC;AACvE,eAAO,MAAM,UAAU,8FAA+D,CAAC"}
@@ -0,0 +1,6 @@
1
+ import * as Effect from 'effect/Effect';
2
+ import { Capability } from '@dxos/app-framework';
3
+ import type { OperationHandlerSet } from '@dxos/compute';
4
+ declare const _default: (props: OperationHandlerSet.OperationHandlerSet) => Effect.Effect<Capability.ModuleReturn, Error, Capability.Service>;
5
+ export default _default;
6
+ //# sourceMappingURL=operation-handler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operation-handler.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/operation-handler.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC"}
@@ -0,0 +1,9 @@
1
+ import * as Effect from 'effect/Effect';
2
+ import React from 'react';
3
+ import { Capability } from '@dxos/app-framework';
4
+ declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<Readonly<{
5
+ id: string;
6
+ root: React.FC<React.PropsWithChildren>;
7
+ }>>>, never, never>;
8
+ export default _default;
9
+ //# sourceMappingURL=react-root.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"react-root.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-root.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,5 @@
1
+ import * as Effect from 'effect/Effect';
2
+ import { Capabilities, Capability } from '@dxos/app-framework';
3
+ declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<Capabilities.ReactSurface>>, never, never>;
4
+ export default _default;
5
+ //# sourceMappingURL=react-surface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-surface.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,14 @@
1
+ import * as Effect from 'effect/Effect';
2
+ import { Capability } from '@dxos/app-framework';
3
+ export type SpotlightDismissOptions = {
4
+ /** Whether running in popover window context. */
5
+ isPopover?: boolean;
6
+ };
7
+ /**
8
+ * Capability that sets up spotlight panel dismiss behavior.
9
+ * When running in Tauri popover mode, listens for focus loss and Escape key
10
+ * to dismiss the spotlight panel. Runs at startup before React renders.
11
+ */
12
+ declare const _default: (props: SpotlightDismissOptions | undefined) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<null>> | [], never, never>;
13
+ export default _default;
14
+ //# sourceMappingURL=spotlight-dismiss.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spotlight-dismiss.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/spotlight-dismiss.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAoB/D,MAAM,MAAM,uBAAuB,GAAG;IACpC,iDAAiD;IACjD,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF;;;;GAIG"}
@@ -0,0 +1,19 @@
1
+ import { Atom } from '@effect-atom/atom-react';
2
+ import * as Effect from 'effect/Effect';
3
+ import { Capability } from '@dxos/app-framework';
4
+ import { type SimpleLayoutState } from '#types';
5
+ export type SimpleLayoutStateOptions = {
6
+ initialState?: Partial<SimpleLayoutState>;
7
+ };
8
+ declare const _default: (props: SimpleLayoutStateOptions | undefined) => Effect.Effect<[Capability.Capability<Capability.InterfaceDef<Atom.Writable<SimpleLayoutState, SimpleLayoutState>>>, Capability.Capability<Capability.InterfaceDef<Atom.Atom<Readonly<{
9
+ mode: string;
10
+ dialogOpen: boolean;
11
+ sidebarOpen: boolean;
12
+ complementarySidebarOpen: boolean;
13
+ workspace: string;
14
+ active: string[];
15
+ inactive: string[];
16
+ scrollIntoView: string | undefined;
17
+ }>>>>], never, never>;
18
+ export default _default;
19
+ //# sourceMappingURL=state.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/state.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAIjD,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAahD,MAAM,MAAM,wBAAwB,GAAG;IACrC,YAAY,CAAC,EAAE,OAAO,CAAC,iBAAiB,CAAC,CAAC;CAC3C,CAAC"}
@@ -0,0 +1,12 @@
1
+ import * as Effect from 'effect/Effect';
2
+ import { Capability } from '@dxos/app-framework';
3
+ /**
4
+ * URL handler for simple layout that syncs browser URL with layout state.
5
+ * URL paths map directly to qualified graph IDs with the leading `root` segment stripped.
6
+ * Root is represented as `/`.
7
+ *
8
+ * On Tauri, also listens for deep links via the deep-link plugin.
9
+ */
10
+ declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<null>>, Error, Capability.Service>;
11
+ export default _default;
12
+ //# sourceMappingURL=url-handler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"url-handler.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/url-handler.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAQ/D;;;;;;GAMG"}
@@ -0,0 +1,46 @@
1
+ import { type StoryObj } from '@storybook/react-vite';
2
+ declare const meta: {
3
+ title: string;
4
+ component: ({ children, error, title, data }: import("@dxos/react-ui").ErrorFallbackProps) => React.JSX.Element;
5
+ decorators: import("@storybook/react").Decorator[];
6
+ parameters: {
7
+ layout: string;
8
+ translations: [{
9
+ readonly 'en-US': {
10
+ readonly "@dxos/react-ui-search": {
11
+ readonly 'search.placeholder': 'Search...';
12
+ readonly 'empty-results.message': 'No matching objects';
13
+ };
14
+ };
15
+ }, {
16
+ readonly 'en-US': {
17
+ readonly [x: string]: {
18
+ readonly 'plugin.name': 'Simple layout';
19
+ readonly 'settings.title': 'Simple layout settings';
20
+ readonly 'workspaces.heading': 'Workspaces';
21
+ readonly 'settings.heading': 'Settings';
22
+ readonly 'back.label': 'Back';
23
+ readonly 'browse.label': 'Browse';
24
+ readonly 'notifications.label': 'Notifications';
25
+ readonly 'profile.label': 'Profile';
26
+ readonly 'app-menu.label': 'App menu';
27
+ readonly 'main-menu.label': 'Main menu';
28
+ readonly 'companions-menu.label': 'Companions';
29
+ readonly 'error-fallback.message': 'An error occurred';
30
+ readonly 'drawer.label': 'Drawer';
31
+ readonly 'close-drawer.label': 'Close drawer';
32
+ readonly 'expand-drawer.label': 'Expand drawer';
33
+ readonly 'collapse-drawer.label': 'Collapse drawer';
34
+ readonly 'actions-menu.label': 'Actions';
35
+ readonly 'done.label': 'Done';
36
+ };
37
+ };
38
+ }];
39
+ };
40
+ };
41
+ export default meta;
42
+ type Story = StoryObj<typeof meta>;
43
+ export declare const Default: Story;
44
+ export declare const WithError: Story;
45
+ export declare const WithTypeError: Story;
46
+ //# sourceMappingURL=ContentError.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContentError.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/ContentError.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAOjE,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQ4B,CAAC;eAExB,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAIvB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAI3B,CAAC"}
@@ -0,0 +1,19 @@
1
+ import React, { type PropsWithChildren } from 'react';
2
+ type DebugOverlayContextValue = {
3
+ /** Log a timestamped message to the on-screen debug overlay. */
4
+ dbg: (msg: string) => void;
5
+ };
6
+ declare const useDebugLog: (consumerName: string) => DebugOverlayContextValue;
7
+ type DebugOverlayRootProps = PropsWithChildren<{
8
+ /**
9
+ * When true (default), renders the on-screen log panel.
10
+ * Set to false to suppress the overlay while keeping the context available.
11
+ */
12
+ enabled?: boolean;
13
+ maxLines?: number;
14
+ }>;
15
+ export declare const DebugOverlay: {
16
+ Root: ({ children, enabled, maxLines }: DebugOverlayRootProps) => React.JSX.Element;
17
+ };
18
+ export { useDebugLog };
19
+ //# sourceMappingURL=DebugOverlay.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DebugOverlay.d.ts","sourceRoot":"","sources":["../../../../../src/components/DebugOverlay/DebugOverlay.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAuB,MAAM,OAAO,CAAC;AAQ3E,KAAK,wBAAwB,GAAG;IAC9B,gEAAgE;IAChE,GAAG,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CAC5B,CAAC;AAGF,QAAA,MAA6B,WAAW,oDAEtC,CAAC;AAMH,KAAK,qBAAqB,GAAG,iBAAiB,CAAC;IAC7C;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC,CAAC;AAyDH,eAAO,MAAM,YAAY;IACvB,IAAI,oCA9CiE,qBAAqB;CA+C3F,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { DebugOverlay, useDebugLog } from './DebugOverlay';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/DebugOverlay/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const Dialog: () => React.JSX.Element;
3
+ //# sourceMappingURL=Dialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../../src/components/Dialog/Dialog.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,eAAO,MAAM,MAAM,yBAmClB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './Dialog';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Dialog/index.ts"],"names":[],"mappings":"AAIA,cAAc,UAAU,CAAC"}
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ export type HomeProps = {};
3
+ /**
4
+ * Home screen.
5
+ */
6
+ export declare const Home: (_: HomeProps) => React.JSX.Element;
7
+ //# sourceMappingURL=Home.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Home.d.ts","sourceRoot":"","sources":["../../../../../src/components/Home/Home.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAiBvE,MAAM,MAAM,SAAS,GAAG,EAAE,CAAC;AAE3B;;GAEG;AACH,eAAO,MAAM,IAAI,MAAO,SAAS,sBAoChC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './Home';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Home/index.ts"],"names":[],"mappings":"AAIA,cAAc,QAAQ,CAAC"}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const Loading: () => React.JSX.Element;
3
+ //# sourceMappingURL=Loading.d.ts.map