@dxos/plugin-simple-layout 0.8.4-main.c85a9c8dae → 0.8.4-main.fcc0d83b33

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 (227) hide show
  1. package/dist/lib/browser/index.mjs +15 -68
  2. package/dist/lib/browser/index.mjs.map +4 -4
  3. package/dist/lib/browser/meta.json +1 -1
  4. package/dist/lib/browser/translations.mjs +34 -0
  5. package/dist/lib/browser/translations.mjs.map +7 -0
  6. package/dist/lib/node-esm/index.mjs +15 -67
  7. package/dist/lib/node-esm/index.mjs.map +4 -4
  8. package/dist/lib/node-esm/meta.json +1 -1
  9. package/dist/lib/node-esm/translations.mjs +36 -0
  10. package/dist/lib/node-esm/translations.mjs.map +7 -0
  11. package/dist/types/src/SimpleLayoutPlugin.d.ts +1 -1
  12. package/dist/types/src/SimpleLayoutPlugin.d.ts.map +1 -1
  13. package/dist/types/src/capabilities/app-graph-builder.d.ts +6 -0
  14. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -0
  15. package/dist/types/src/capabilities/index.d.ts +21 -6
  16. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  17. package/dist/types/src/capabilities/operation-handler.d.ts +6 -0
  18. package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
  19. package/dist/types/src/capabilities/react-root.d.ts.map +1 -0
  20. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
  21. package/dist/types/src/capabilities/{spotlight-dismiss/spotlight-dismiss.d.ts → spotlight-dismiss.d.ts} +1 -1
  22. package/dist/types/src/capabilities/spotlight-dismiss.d.ts.map +1 -0
  23. package/dist/types/src/capabilities/{state/state.d.ts → state.d.ts} +1 -1
  24. package/dist/types/src/capabilities/state.d.ts.map +1 -0
  25. package/dist/types/src/capabilities/{url-handler/url-handler.d.ts → url-handler.d.ts} +3 -3
  26. package/dist/types/src/capabilities/url-handler.d.ts.map +1 -0
  27. package/dist/types/src/components/ContentError.stories.d.ts +26 -19
  28. package/dist/types/src/components/ContentError.stories.d.ts.map +1 -1
  29. package/dist/types/src/components/DebugOverlay/DebugOverlay.d.ts +19 -0
  30. package/dist/types/src/components/DebugOverlay/DebugOverlay.d.ts.map +1 -0
  31. package/dist/types/src/components/DebugOverlay/index.d.ts +2 -0
  32. package/dist/types/src/components/DebugOverlay/index.d.ts.map +1 -0
  33. package/dist/types/src/components/Dialog/Dialog.d.ts.map +1 -1
  34. package/dist/types/src/components/Home/Home.d.ts.map +1 -1
  35. package/dist/types/src/components/Loading/Loading.d.ts +3 -0
  36. package/dist/types/src/components/Loading/Loading.d.ts.map +1 -0
  37. package/dist/types/src/components/{ContentLoading.stories.d.ts → Loading/Loading.stories.d.ts} +1 -1
  38. package/dist/types/src/components/Loading/Loading.stories.d.ts.map +1 -0
  39. package/dist/types/src/components/Loading/index.d.ts +2 -0
  40. package/dist/types/src/components/Loading/index.d.ts.map +1 -0
  41. package/dist/types/src/components/MobileLayout/MobileLayout.d.ts +2 -2
  42. package/dist/types/src/components/MobileLayout/MobileLayout.d.ts.map +1 -1
  43. package/dist/types/src/components/MobileLayout/MobileLayout.stories.d.ts.map +1 -1
  44. package/dist/types/src/components/NavBranch/NavBranch.d.ts +11 -0
  45. package/dist/types/src/components/NavBranch/NavBranch.d.ts.map +1 -0
  46. package/dist/types/src/components/NavBranch/index.d.ts +2 -0
  47. package/dist/types/src/components/NavBranch/index.d.ts.map +1 -0
  48. package/dist/types/src/components/Popover/Popover.d.ts.map +1 -1
  49. package/dist/types/src/components/SimpleLayout/AppBar.d.ts +5 -7
  50. package/dist/types/src/components/SimpleLayout/AppBar.d.ts.map +1 -1
  51. package/dist/types/src/components/SimpleLayout/AppBar.stories.d.ts +29 -22
  52. package/dist/types/src/components/SimpleLayout/AppBar.stories.d.ts.map +1 -1
  53. package/dist/types/src/components/SimpleLayout/Drawer.d.ts +4 -7
  54. package/dist/types/src/components/SimpleLayout/Drawer.d.ts.map +1 -1
  55. package/dist/types/src/components/SimpleLayout/Main.d.ts +4 -7
  56. package/dist/types/src/components/SimpleLayout/Main.d.ts.map +1 -1
  57. package/dist/types/src/components/SimpleLayout/NavBar.d.ts +5 -7
  58. package/dist/types/src/components/SimpleLayout/NavBar.d.ts.map +1 -1
  59. package/dist/types/src/components/SimpleLayout/NavBar.stories.d.ts +29 -23
  60. package/dist/types/src/components/SimpleLayout/NavBar.stories.d.ts.map +1 -1
  61. package/dist/types/src/components/SimpleLayout/SimpleLayout.d.ts.map +1 -1
  62. package/dist/types/src/components/SimpleLayout/SimpleLayout.stories.d.ts +26 -25
  63. package/dist/types/src/components/SimpleLayout/SimpleLayout.stories.d.ts.map +1 -1
  64. package/dist/types/src/components/hooks.d.ts +4 -2
  65. package/dist/types/src/components/hooks.d.ts.map +1 -1
  66. package/dist/types/src/components/index.d.ts +3 -2
  67. package/dist/types/src/components/index.d.ts.map +1 -1
  68. package/dist/types/src/hooks/actions.d.ts +5 -6
  69. package/dist/types/src/hooks/actions.d.ts.map +1 -1
  70. package/dist/types/src/hooks/useAppBarProps.d.ts +2 -2
  71. package/dist/types/src/hooks/useAppBarProps.d.ts.map +1 -1
  72. package/dist/types/src/hooks/useCompanions.d.ts.map +1 -1
  73. package/dist/types/src/hooks/useDrawerActions.d.ts.map +1 -1
  74. package/dist/types/src/hooks/useNavbarActions.d.ts.map +1 -1
  75. package/dist/types/src/hooks/useSimpleLayoutState.d.ts +1 -1
  76. package/dist/types/src/hooks/useSimpleLayoutState.d.ts.map +1 -1
  77. package/dist/types/src/operations/close.d.ts +5 -0
  78. package/dist/types/src/operations/close.d.ts.map +1 -0
  79. package/dist/types/src/operations/index.d.ts +3 -0
  80. package/dist/types/src/operations/index.d.ts.map +1 -0
  81. package/dist/types/src/operations/open.d.ts +5 -0
  82. package/dist/types/src/operations/open.d.ts.map +1 -0
  83. package/dist/types/src/operations/revert-workspace.d.ts +5 -0
  84. package/dist/types/src/operations/revert-workspace.d.ts.map +1 -0
  85. package/dist/types/src/operations/set-layout-mode.d.ts +5 -0
  86. package/dist/types/src/operations/set-layout-mode.d.ts.map +1 -0
  87. package/dist/types/src/operations/set.d.ts +5 -0
  88. package/dist/types/src/operations/set.d.ts.map +1 -0
  89. package/dist/types/src/operations/state-access.d.ts +8 -0
  90. package/dist/types/src/operations/state-access.d.ts.map +1 -0
  91. package/dist/types/src/operations/switch-workspace.d.ts +5 -0
  92. package/dist/types/src/operations/switch-workspace.d.ts.map +1 -0
  93. package/dist/types/src/operations/update-complementary.d.ts +5 -0
  94. package/dist/types/src/operations/update-complementary.d.ts.map +1 -0
  95. package/dist/types/src/operations/update-dialog.d.ts +5 -0
  96. package/dist/types/src/operations/update-dialog.d.ts.map +1 -0
  97. package/dist/types/src/operations/update-popover.d.ts +5 -0
  98. package/dist/types/src/operations/update-popover.d.ts.map +1 -0
  99. package/dist/types/src/operations/update-sidebar.d.ts +5 -0
  100. package/dist/types/src/operations/update-sidebar.d.ts.map +1 -0
  101. package/dist/types/src/translations.d.ts +26 -20
  102. package/dist/types/src/translations.d.ts.map +1 -1
  103. package/dist/types/src/types/capabilities.d.ts +10 -2
  104. package/dist/types/src/types/capabilities.d.ts.map +1 -1
  105. package/dist/types/src/types/events.d.ts.map +1 -1
  106. package/dist/types/tsconfig.tsbuildinfo +1 -1
  107. package/package.json +47 -30
  108. package/src/SimpleLayoutPlugin.ts +16 -7
  109. package/src/capabilities/app-graph-builder.ts +21 -0
  110. package/src/capabilities/index.ts +13 -6
  111. package/src/capabilities/operation-handler.ts +14 -0
  112. package/src/capabilities/{react-root/react-root.tsx → react-root.tsx} +2 -2
  113. package/src/capabilities/{react-surface/react-surface.tsx → react-surface.tsx} +17 -8
  114. package/src/capabilities/{state/state.tsx → state.tsx} +2 -2
  115. package/src/capabilities/url-handler.ts +161 -0
  116. package/src/components/ContentError.stories.tsx +1 -1
  117. package/src/components/DebugOverlay/DebugOverlay.tsx +96 -0
  118. package/src/components/DebugOverlay/index.ts +5 -0
  119. package/src/components/Dialog/Dialog.tsx +14 -3
  120. package/src/components/Home/Home.tsx +32 -32
  121. package/src/components/{ContentLoading.stories.tsx → Loading/Loading.stories.tsx} +4 -4
  122. package/src/components/{ContentLoading.tsx → Loading/Loading.tsx} +1 -1
  123. package/src/components/Loading/index.ts +5 -0
  124. package/src/components/MobileLayout/MobileLayout.stories.tsx +21 -17
  125. package/src/components/MobileLayout/MobileLayout.tsx +118 -49
  126. package/src/components/{Workspace/Workspace.tsx → NavBranch/NavBranch.tsx} +40 -41
  127. package/src/components/{Workspace → NavBranch}/index.ts +1 -1
  128. package/src/components/Popover/Popover.tsx +10 -16
  129. package/src/components/SimpleLayout/AppBar.stories.tsx +10 -10
  130. package/src/components/SimpleLayout/AppBar.tsx +60 -60
  131. package/src/components/SimpleLayout/Drawer.tsx +30 -31
  132. package/src/components/SimpleLayout/Main.tsx +21 -26
  133. package/src/components/SimpleLayout/NavBar.stories.tsx +2 -2
  134. package/src/components/SimpleLayout/NavBar.tsx +8 -9
  135. package/src/components/SimpleLayout/SimpleLayout.stories.tsx +44 -67
  136. package/src/components/SimpleLayout/SimpleLayout.tsx +33 -34
  137. package/src/components/hooks.ts +8 -8
  138. package/src/components/index.ts +3 -2
  139. package/src/hooks/actions.ts +15 -16
  140. package/src/hooks/useAppBarProps.ts +9 -30
  141. package/src/hooks/useDrawerActions.ts +13 -11
  142. package/src/hooks/useNavbarActions.ts +8 -7
  143. package/src/hooks/useSimpleLayoutState.ts +1 -1
  144. package/src/meta.ts +1 -1
  145. package/src/operations/close.ts +34 -0
  146. package/src/operations/index.ts +16 -0
  147. package/src/operations/open.ts +63 -0
  148. package/src/operations/revert-workspace.ts +22 -0
  149. package/src/operations/set-layout-mode.ts +12 -0
  150. package/src/operations/set.ts +23 -0
  151. package/src/operations/state-access.ts +19 -0
  152. package/src/operations/switch-workspace.ts +26 -0
  153. package/src/operations/update-complementary.ts +35 -0
  154. package/src/operations/update-dialog.ts +28 -0
  155. package/src/operations/update-popover.ts +35 -0
  156. package/src/operations/update-sidebar.ts +12 -0
  157. package/src/translations.ts +21 -19
  158. package/src/types/capabilities.ts +4 -4
  159. package/dist/lib/browser/chunk-7VLT3S46.mjs +0 -29
  160. package/dist/lib/browser/chunk-7VLT3S46.mjs.map +0 -7
  161. package/dist/lib/browser/chunk-TMZNLVT2.mjs +0 -1170
  162. package/dist/lib/browser/chunk-TMZNLVT2.mjs.map +0 -7
  163. package/dist/lib/browser/operation-resolver-BYRIQOQT.mjs +0 -205
  164. package/dist/lib/browser/operation-resolver-BYRIQOQT.mjs.map +0 -7
  165. package/dist/lib/browser/react-root-MMB575WY.mjs +0 -21
  166. package/dist/lib/browser/react-root-MMB575WY.mjs.map +0 -7
  167. package/dist/lib/browser/react-surface-M6CURANW.mjs +0 -41
  168. package/dist/lib/browser/react-surface-M6CURANW.mjs.map +0 -7
  169. package/dist/lib/browser/spotlight-dismiss-67PHYS5B.mjs +0 -66
  170. package/dist/lib/browser/spotlight-dismiss-67PHYS5B.mjs.map +0 -7
  171. package/dist/lib/browser/state-A3PGDWWZ.mjs +0 -48
  172. package/dist/lib/browser/state-A3PGDWWZ.mjs.map +0 -7
  173. package/dist/lib/browser/url-handler-HTIUY6WL.mjs +0 -152
  174. package/dist/lib/browser/url-handler-HTIUY6WL.mjs.map +0 -7
  175. package/dist/lib/node-esm/chunk-FLOYBAHE.mjs +0 -1171
  176. package/dist/lib/node-esm/chunk-FLOYBAHE.mjs.map +0 -7
  177. package/dist/lib/node-esm/chunk-VIDE5UMB.mjs +0 -31
  178. package/dist/lib/node-esm/chunk-VIDE5UMB.mjs.map +0 -7
  179. package/dist/lib/node-esm/operation-resolver-BDTFNCS2.mjs +0 -206
  180. package/dist/lib/node-esm/operation-resolver-BDTFNCS2.mjs.map +0 -7
  181. package/dist/lib/node-esm/react-root-ENZKVSY4.mjs +0 -22
  182. package/dist/lib/node-esm/react-root-ENZKVSY4.mjs.map +0 -7
  183. package/dist/lib/node-esm/react-surface-ITVNQYLG.mjs +0 -42
  184. package/dist/lib/node-esm/react-surface-ITVNQYLG.mjs.map +0 -7
  185. package/dist/lib/node-esm/spotlight-dismiss-RMLRZUVY.mjs +0 -68
  186. package/dist/lib/node-esm/spotlight-dismiss-RMLRZUVY.mjs.map +0 -7
  187. package/dist/lib/node-esm/state-ZCFZTTPL.mjs +0 -49
  188. package/dist/lib/node-esm/state-ZCFZTTPL.mjs.map +0 -7
  189. package/dist/lib/node-esm/url-handler-WBVVKVPC.mjs +0 -153
  190. package/dist/lib/node-esm/url-handler-WBVVKVPC.mjs.map +0 -7
  191. package/dist/types/src/capabilities/operation-resolver/index.d.ts +0 -3
  192. package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +0 -1
  193. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +0 -5
  194. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +0 -1
  195. package/dist/types/src/capabilities/react-root/index.d.ts +0 -6
  196. package/dist/types/src/capabilities/react-root/index.d.ts.map +0 -1
  197. package/dist/types/src/capabilities/react-root/react-root.d.ts.map +0 -1
  198. package/dist/types/src/capabilities/react-surface/index.d.ts +0 -3
  199. package/dist/types/src/capabilities/react-surface/index.d.ts.map +0 -1
  200. package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +0 -1
  201. package/dist/types/src/capabilities/spotlight-dismiss/index.d.ts +0 -3
  202. package/dist/types/src/capabilities/spotlight-dismiss/index.d.ts.map +0 -1
  203. package/dist/types/src/capabilities/spotlight-dismiss/spotlight-dismiss.d.ts.map +0 -1
  204. package/dist/types/src/capabilities/state/index.d.ts +0 -13
  205. package/dist/types/src/capabilities/state/index.d.ts.map +0 -1
  206. package/dist/types/src/capabilities/state/state.d.ts.map +0 -1
  207. package/dist/types/src/capabilities/url-handler/index.d.ts +0 -3
  208. package/dist/types/src/capabilities/url-handler/index.d.ts.map +0 -1
  209. package/dist/types/src/capabilities/url-handler/url-handler.d.ts.map +0 -1
  210. package/dist/types/src/components/ContentLoading.d.ts +0 -3
  211. package/dist/types/src/components/ContentLoading.d.ts.map +0 -1
  212. package/dist/types/src/components/ContentLoading.stories.d.ts.map +0 -1
  213. package/dist/types/src/components/Workspace/Workspace.d.ts +0 -11
  214. package/dist/types/src/components/Workspace/Workspace.d.ts.map +0 -1
  215. package/dist/types/src/components/Workspace/index.d.ts +0 -2
  216. package/dist/types/src/components/Workspace/index.d.ts.map +0 -1
  217. package/src/capabilities/operation-resolver/index.ts +0 -10
  218. package/src/capabilities/operation-resolver/operation-resolver.ts +0 -217
  219. package/src/capabilities/react-root/index.ts +0 -7
  220. package/src/capabilities/react-surface/index.ts +0 -7
  221. package/src/capabilities/spotlight-dismiss/index.ts +0 -7
  222. package/src/capabilities/state/index.ts +0 -9
  223. package/src/capabilities/url-handler/index.ts +0 -7
  224. package/src/capabilities/url-handler/url-handler.ts +0 -157
  225. /package/dist/types/src/capabilities/{react-root/react-root.d.ts → react-root.d.ts} +0 -0
  226. /package/dist/types/src/capabilities/{react-surface/react-surface.d.ts → react-surface.d.ts} +0 -0
  227. /package/src/capabilities/{spotlight-dismiss/spotlight-dismiss.ts → spotlight-dismiss.ts} +0 -0
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/capabilities/react-surface/react-surface.tsx"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport React from 'react';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { Surface } from '@dxos/app-framework/ui';\nimport { Node } from '@dxos/plugin-graph';\n\nimport { Home, Workspace } from '../../components';\nimport { meta } from '../../meta';\n\ntype SurfaceData = {\n attendableId: string;\n properties: Record<string, any>;\n};\n\nconst ALLOWED_DISPOSITIONS = ['workspace', 'user-account', 'pin-end', 'alternate-tree'];\n\nexport default Capability.makeModule(() =>\n Effect.succeed(\n Capability.contributes(Capabilities.ReactSurface, [\n Surface.create({\n id: `${meta.id}/home`,\n role: 'article',\n filter: (data): data is SurfaceData => data.attendableId === Node.RootId,\n component: () => <Home />,\n }),\n Surface.create({\n id: `${meta.id}/workspace-article`,\n role: 'article',\n position: 'fallback',\n filter: (data): data is SurfaceData =>\n ALLOWED_DISPOSITIONS.includes((data.properties as Record<string, any>)?.disposition),\n component: ({ data }) => <Workspace id={data.attendableId} />,\n }),\n ]),\n ),\n);\n"],
5
- "mappings": ";;;;;;;;;;AAIA,YAAYA,YAAY;AACxB,OAAOC,WAAW;AAElB,SAASC,cAAcC,kBAAkB;AACzC,SAASC,eAAe;AACxB,SAASC,YAAY;AAUrB,IAAMC,uBAAuB;EAAC;EAAa;EAAgB;EAAW;;AAEtE,IAAA,wBAAeC,WAAWC,WAAW,MAC5BC,eACLF,WAAWG,YAAYC,aAAaC,cAAc;EAChDC,QAAQC,OAAO;IACbC,IAAI,GAAGC,KAAKD,EAAE;IACdE,MAAM;IACNC,QAAQ,CAACC,SAA8BA,KAAKC,iBAAiBC,KAAKC;IAClEC,WAAW,MAAM,sBAAA,cAACC,MAAAA,IAAAA;EACpB,CAAA;EACAX,QAAQC,OAAO;IACbC,IAAI,GAAGC,KAAKD,EAAE;IACdE,MAAM;IACNQ,UAAU;IACVP,QAAQ,CAACC,SACPb,qBAAqBoB,SAAUP,KAAKQ,YAAoCC,WAAAA;IAC1EL,WAAW,CAAC,EAAEJ,KAAI,MAAO,sBAAA,cAACU,WAAAA;MAAUd,IAAII,KAAKC;;EAC/C,CAAA;CACD,CAAA,CAAA;",
6
- "names": ["Effect", "React", "Capabilities", "Capability", "Surface", "Node", "ALLOWED_DISPOSITIONS", "Capability", "makeModule", "succeed", "contributes", "Capabilities", "ReactSurface", "Surface", "create", "id", "meta", "role", "filter", "data", "attendableId", "Node", "RootId", "component", "Home", "position", "includes", "properties", "disposition", "Workspace"]
7
- }
@@ -1,68 +0,0 @@
1
- import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
-
3
- // src/capabilities/spotlight-dismiss/spotlight-dismiss.ts
4
- import * as Effect from "effect/Effect";
5
- import { Capabilities, Capability } from "@dxos/app-framework";
6
- import { log } from "@dxos/log";
7
- import { isTauri } from "@dxos/util";
8
- var __dxlog_file = "/__w/dxos/dxos/packages/plugins/plugin-simple-layout/src/capabilities/spotlight-dismiss/spotlight-dismiss.ts";
9
- var getTauriWindow = () => {
10
- const tauri = globalThis.__TAURI__;
11
- return tauri?.window;
12
- };
13
- var getTauriCore = () => {
14
- const tauri = globalThis.__TAURI__;
15
- return tauri?.core;
16
- };
17
- var spotlight_dismiss_default = Capability.makeModule(({ isPopover = false } = {}) => Effect.promise(async () => {
18
- if (!isPopover || !isTauri()) {
19
- return [];
20
- }
21
- let focusCleanup;
22
- try {
23
- const tauriWindow = getTauriWindow();
24
- const tauriCore = getTauriCore();
25
- if (tauriWindow && tauriCore) {
26
- const win = tauriWindow.getCurrentWindow();
27
- focusCleanup = await win.onFocusChanged(async ({ payload }) => {
28
- if (!payload) {
29
- await tauriCore.invoke("hide_spotlight");
30
- }
31
- });
32
- }
33
- } catch (err) {
34
- log.catch(err, void 0, {
35
- F: __dxlog_file,
36
- L: 60,
37
- S: void 0,
38
- C: (f, a) => f(...a)
39
- });
40
- }
41
- const handleKeyDown = async (event) => {
42
- if (event.key === "Escape") {
43
- event.preventDefault();
44
- try {
45
- const tauriCore = getTauriCore();
46
- if (tauriCore) {
47
- await tauriCore.invoke("hide_spotlight");
48
- }
49
- } catch (err) {
50
- log.catch(err, void 0, {
51
- F: __dxlog_file,
52
- L: 73,
53
- S: void 0,
54
- C: (f, a) => f(...a)
55
- });
56
- }
57
- }
58
- };
59
- window.addEventListener("keydown", handleKeyDown);
60
- return Capability.contributes(Capabilities.Null, null, () => Effect.sync(() => {
61
- focusCleanup?.();
62
- window.removeEventListener("keydown", handleKeyDown);
63
- }));
64
- }));
65
- export {
66
- spotlight_dismiss_default as default
67
- };
68
- //# sourceMappingURL=spotlight-dismiss-RMLRZUVY.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/capabilities/spotlight-dismiss/spotlight-dismiss.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\n// Based on the frontend-driven dismiss pattern from:\n// https://github.com/Jedliu/tauri-template-demo\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { log } from '@dxos/log';\nimport { isTauri } from '@dxos/util';\n\n/**\n * Get the Tauri window API from the global object.\n */\nconst getTauriWindow = (): any => {\n const tauri = (globalThis as any).__TAURI__;\n return tauri?.window;\n};\n\n/**\n * Get the Tauri core API (invoke) from the global object.\n */\nconst getTauriCore = (): any => {\n const tauri = (globalThis as any).__TAURI__;\n return tauri?.core;\n};\n\nexport type SpotlightDismissOptions = {\n /** Whether running in popover window context. */\n isPopover?: boolean;\n};\n\n/**\n * Capability that sets up spotlight panel dismiss behavior.\n * When running in Tauri popover mode, listens for focus loss and Escape key\n * to dismiss the spotlight panel. Runs at startup before React renders.\n */\nexport default Capability.makeModule(({ isPopover = false }: SpotlightDismissOptions = {}) =>\n Effect.promise(async () => {\n if (!isPopover || !isTauri()) {\n return [];\n }\n\n // Set up focus listener.\n let focusCleanup: (() => void) | undefined;\n try {\n const tauriWindow = getTauriWindow();\n const tauriCore = getTauriCore();\n if (tauriWindow && tauriCore) {\n const win = tauriWindow.getCurrentWindow();\n focusCleanup = await win.onFocusChanged(async ({ payload }: { payload: boolean }) => {\n if (!payload) {\n await tauriCore.invoke('hide_spotlight');\n }\n });\n }\n } catch (err) {\n log.catch(err);\n }\n\n // Set up Escape key listener.\n const handleKeyDown = async (event: KeyboardEvent) => {\n if (event.key === 'Escape') {\n event.preventDefault();\n try {\n const tauriCore = getTauriCore();\n if (tauriCore) {\n await tauriCore.invoke('hide_spotlight');\n }\n } catch (err) {\n log.catch(err);\n }\n }\n };\n window.addEventListener('keydown', handleKeyDown);\n\n return Capability.contributes(Capabilities.Null, null, () =>\n Effect.sync(() => {\n focusCleanup?.();\n window.removeEventListener('keydown', handleKeyDown);\n }),\n );\n }),\n);\n"],
5
- "mappings": ";;;AAOA,YAAYA,YAAY;AAExB,SAASC,cAAcC,kBAAkB;AACzC,SAASC,WAAW;AACpB,SAASC,eAAe;;AAKxB,IAAMC,iBAAiB,MAAA;AACrB,QAAMC,QAASC,WAAmBC;AAClC,SAAOF,OAAOG;AAChB;AAKA,IAAMC,eAAe,MAAA;AACnB,QAAMJ,QAASC,WAAmBC;AAClC,SAAOF,OAAOK;AAChB;AAYA,IAAA,4BAAeT,WAAWU,WAAW,CAAC,EAAEC,YAAY,MAAK,IAA8B,CAAC,MAC/EC,eAAQ,YAAA;AACb,MAAI,CAACD,aAAa,CAACT,QAAAA,GAAW;AAC5B,WAAO,CAAA;EACT;AAGA,MAAIW;AACJ,MAAI;AACF,UAAMC,cAAcX,eAAAA;AACpB,UAAMY,YAAYP,aAAAA;AAClB,QAAIM,eAAeC,WAAW;AAC5B,YAAMC,MAAMF,YAAYG,iBAAgB;AACxCJ,qBAAe,MAAMG,IAAIE,eAAe,OAAO,EAAEC,QAAO,MAAwB;AAC9E,YAAI,CAACA,SAAS;AACZ,gBAAMJ,UAAUK,OAAO,gBAAA;QACzB;MACF,CAAA;IACF;EACF,SAASC,KAAK;AACZpB,QAAIqB,MAAMD,KAAAA,QAAAA;;;;;;EACZ;AAGA,QAAME,gBAAgB,OAAOC,UAAAA;AAC3B,QAAIA,MAAMC,QAAQ,UAAU;AAC1BD,YAAME,eAAc;AACpB,UAAI;AACF,cAAMX,YAAYP,aAAAA;AAClB,YAAIO,WAAW;AACb,gBAAMA,UAAUK,OAAO,gBAAA;QACzB;MACF,SAASC,KAAK;AACZpB,YAAIqB,MAAMD,KAAAA,QAAAA;;;;;;MACZ;IACF;EACF;AACAd,SAAOoB,iBAAiB,WAAWJ,aAAAA;AAEnC,SAAOvB,WAAW4B,YAAY7B,aAAa8B,MAAM,MAAM,MAC9CC,YAAK,MAAA;AACVjB,mBAAAA;AACAN,WAAOwB,oBAAoB,WAAWR,aAAAA;EACxC,CAAA,CAAA;AAEJ,CAAA,CAAA;",
6
- "names": ["Effect", "Capabilities", "Capability", "log", "isTauri", "getTauriWindow", "tauri", "globalThis", "__TAURI__", "window", "getTauriCore", "core", "makeModule", "isPopover", "promise", "focusCleanup", "tauriWindow", "tauriCore", "win", "getCurrentWindow", "onFocusChanged", "payload", "invoke", "err", "catch", "handleKeyDown", "event", "key", "preventDefault", "addEventListener", "contributes", "Null", "sync", "removeEventListener"]
7
- }
@@ -1,49 +0,0 @@
1
- import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
- import {
3
- SimpleLayoutState
4
- } from "./chunk-VIDE5UMB.mjs";
5
-
6
- // src/capabilities/state/state.tsx
7
- import { Atom } from "@effect-atom/atom-react";
8
- import * as Effect from "effect/Effect";
9
- import { Capability } from "@dxos/app-framework";
10
- import { AppCapabilities } from "@dxos/app-toolkit";
11
- import { Node } from "@dxos/plugin-graph";
12
- var defaultState = {
13
- dialogOpen: false,
14
- workspace: Node.RootId,
15
- previousWorkspace: Node.RootId,
16
- history: [],
17
- isPopover: false,
18
- companionVariant: void 0,
19
- drawerState: "closed"
20
- };
21
- var state_default = Capability.makeModule(({ initialState } = {}) => Effect.sync(() => {
22
- const stateAtom = Atom.make({
23
- ...defaultState,
24
- ...initialState
25
- });
26
- const layoutAtom = Atom.make((get) => {
27
- const state = get(stateAtom);
28
- return {
29
- mode: "simple",
30
- dialogOpen: state.dialogOpen,
31
- sidebarOpen: false,
32
- complementarySidebarOpen: false,
33
- workspace: state.workspace,
34
- active: state.active ? [
35
- state.active
36
- ] : [],
37
- inactive: [],
38
- scrollIntoView: void 0
39
- };
40
- });
41
- return [
42
- Capability.contributes(SimpleLayoutState, stateAtom),
43
- Capability.contributes(AppCapabilities.Layout, layoutAtom)
44
- ];
45
- }));
46
- export {
47
- state_default as default
48
- };
49
- //# sourceMappingURL=state-ZCFZTTPL.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/capabilities/state/state.tsx"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Atom } from '@effect-atom/atom-react';\nimport * as Effect from 'effect/Effect';\n\nimport { Capability } from '@dxos/app-framework';\nimport { AppCapabilities } from '@dxos/app-toolkit';\nimport { Node } from '@dxos/plugin-graph';\n\nimport { type SimpleLayoutState } from '../../types';\nimport { SimpleLayoutState as SimpleLayoutStateCapability } from '../../types';\n\nconst defaultState: SimpleLayoutState = {\n dialogOpen: false,\n workspace: Node.RootId,\n previousWorkspace: Node.RootId,\n history: [],\n isPopover: false,\n companionVariant: undefined,\n drawerState: 'closed',\n};\n\nexport type SimpleLayoutStateOptions = {\n initialState?: Partial<SimpleLayoutState>;\n};\n\nexport default Capability.makeModule(({ initialState }: SimpleLayoutStateOptions = {}) =>\n Effect.sync(() => {\n const stateAtom = Atom.make<SimpleLayoutState>({ ...defaultState, ...initialState });\n\n const layoutAtom = Atom.make((get): AppCapabilities.Layout => {\n const state = get(stateAtom);\n return {\n mode: 'simple',\n dialogOpen: state.dialogOpen,\n sidebarOpen: false,\n complementarySidebarOpen: false,\n workspace: state.workspace,\n active: state.active ? [state.active] : [],\n inactive: [],\n scrollIntoView: undefined,\n };\n });\n\n return [\n Capability.contributes(SimpleLayoutStateCapability, stateAtom),\n Capability.contributes(AppCapabilities.Layout, layoutAtom),\n ];\n }),\n);\n"],
5
- "mappings": ";;;;;;AAIA,SAASA,YAAY;AACrB,YAAYC,YAAY;AAExB,SAASC,kBAAkB;AAC3B,SAASC,uBAAuB;AAChC,SAASC,YAAY;AAKrB,IAAMC,eAAkC;EACtCC,YAAY;EACZC,WAAWC,KAAKC;EAChBC,mBAAmBF,KAAKC;EACxBE,SAAS,CAAA;EACTC,WAAW;EACXC,kBAAkBC;EAClBC,aAAa;AACf;AAMA,IAAA,gBAAeC,WAAWC,WAAW,CAAC,EAAEC,aAAY,IAA+B,CAAC,MAC3EC,YAAK,MAAA;AACV,QAAMC,YAAYC,KAAKC,KAAwB;IAAE,GAAGjB;IAAc,GAAGa;EAAa,CAAA;AAElF,QAAMK,aAAaF,KAAKC,KAAK,CAACE,QAAAA;AAC5B,UAAMC,QAAQD,IAAIJ,SAAAA;AAClB,WAAO;MACLM,MAAM;MACNpB,YAAYmB,MAAMnB;MAClBqB,aAAa;MACbC,0BAA0B;MAC1BrB,WAAWkB,MAAMlB;MACjBsB,QAAQJ,MAAMI,SAAS;QAACJ,MAAMI;UAAU,CAAA;MACxCC,UAAU,CAAA;MACVC,gBAAgBjB;IAClB;EACF,CAAA;AAEA,SAAO;IACLE,WAAWgB,YAAYC,mBAA6Bb,SAAAA;IACpDJ,WAAWgB,YAAYE,gBAAgBC,QAAQZ,UAAAA;;AAEnD,CAAA,CAAA;",
6
- "names": ["Atom", "Effect", "Capability", "AppCapabilities", "Node", "defaultState", "dialogOpen", "workspace", "Node", "RootId", "previousWorkspace", "history", "isPopover", "companionVariant", "undefined", "drawerState", "Capability", "makeModule", "initialState", "sync", "stateAtom", "Atom", "make", "layoutAtom", "get", "state", "mode", "sidebarOpen", "complementarySidebarOpen", "active", "inactive", "scrollIntoView", "contributes", "SimpleLayoutStateCapability", "AppCapabilities", "Layout"]
7
- }
@@ -1,153 +0,0 @@
1
- import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
- import {
3
- SimpleLayoutState
4
- } from "./chunk-VIDE5UMB.mjs";
5
-
6
- // src/capabilities/url-handler/url-handler.ts
7
- import * as Effect from "effect/Effect";
8
- import { Capabilities, Capability } from "@dxos/app-framework";
9
- import { LayoutOperation } from "@dxos/app-toolkit";
10
- import { log } from "@dxos/log";
11
- import { Node } from "@dxos/plugin-graph";
12
- import { isTauri } from "@dxos/util";
13
- var __dxlog_file = "/__w/dxos/dxos/packages/plugins/plugin-simple-layout/src/capabilities/url-handler/url-handler.ts";
14
- var url_handler_default = Capability.makeModule(Effect.fnUntraced(function* () {
15
- const { invokeSync } = yield* Capability.get(Capabilities.OperationInvoker);
16
- const handlePathNavigation = (pathname) => {
17
- log.info("[UrlHandler] Navigating to path", {
18
- pathname
19
- }, {
20
- F: __dxlog_file,
21
- L: 31,
22
- S: this,
23
- C: (f, a) => f(...a)
24
- });
25
- const [_, nextWorkspace, nextActive] = pathname.split("/");
26
- const targetWorkspace = !nextWorkspace || nextWorkspace === "root" ? Node.RootId : nextWorkspace;
27
- invokeSync(LayoutOperation.SwitchWorkspace, {
28
- subject: targetWorkspace
29
- });
30
- if (nextActive) {
31
- invokeSync(LayoutOperation.Open, {
32
- subject: [
33
- nextActive
34
- ]
35
- });
36
- }
37
- };
38
- const onNavigation = handleNavigation(handlePathNavigation);
39
- yield* Effect.sync(() => onNavigation());
40
- window.addEventListener("popstate", onNavigation);
41
- let unlistenDeepLink;
42
- if (isTauri()) {
43
- yield* Effect.tryPromise({
44
- try: async () => {
45
- const { getCurrent, onOpenUrl } = await import("@tauri-apps/plugin-deep-link");
46
- const launchUrls = await getCurrent();
47
- if (launchUrls && launchUrls.length > 0) {
48
- log.info("[UrlHandler] App launched with deep links", {
49
- urls: launchUrls
50
- }, {
51
- F: __dxlog_file,
52
- L: 62,
53
- S: this,
54
- C: (f, a) => f(...a)
55
- });
56
- for (const url of launchUrls) {
57
- handleDeepLink(url, handlePathNavigation);
58
- }
59
- }
60
- unlistenDeepLink = await onOpenUrl((urls) => {
61
- log.info("[UrlHandler] Deep links received", {
62
- urls
63
- }, {
64
- F: __dxlog_file,
65
- L: 70,
66
- S: this,
67
- C: (f, a) => f(...a)
68
- });
69
- for (const url of urls) {
70
- handleDeepLink(url, handlePathNavigation);
71
- }
72
- });
73
- log.info("[UrlHandler] Deep link listener initialized", void 0, {
74
- F: __dxlog_file,
75
- L: 76,
76
- S: this,
77
- C: (f, a) => f(...a)
78
- });
79
- },
80
- catch: (error) => {
81
- log.warn("[UrlHandler] Failed to initialize deep link listener", {
82
- error
83
- }, {
84
- F: __dxlog_file,
85
- L: 79,
86
- S: this,
87
- C: (f, a) => f(...a)
88
- });
89
- return error;
90
- }
91
- }).pipe(Effect.catchAll(() => Effect.void));
92
- }
93
- let lastWorkspace;
94
- let lastActive;
95
- const unsubscribe = yield* Capabilities.subscribeAtom(SimpleLayoutState, (state) => {
96
- const { workspace, active } = state;
97
- if (workspace !== lastWorkspace || active !== lastActive) {
98
- lastWorkspace = workspace;
99
- lastActive = active;
100
- const path = pathFromState(workspace, active);
101
- if (window.location.pathname !== path) {
102
- history.pushState(null, "", `${path}${window.location.search}`);
103
- }
104
- }
105
- });
106
- return Capability.contributes(Capabilities.Null, null, () => Effect.sync(() => {
107
- window.removeEventListener("popstate", onNavigation);
108
- unsubscribe();
109
- unlistenDeepLink?.();
110
- }));
111
- }));
112
- var isRedirectPath = (pathname) => pathname.startsWith("/redirect/");
113
- var pathFromState = (workspace, active) => workspace === Node.RootId ? active ? `/${Node.RootId}/${active}` : "/" : active ? `/${workspace}/${active}` : `/${workspace}`;
114
- var handleNavigation = (navigate) => () => navigate(window.location.pathname);
115
- var handleDeepLink = (urlString, navigate) => {
116
- log.info("[UrlHandler] Deep link received", {
117
- url: urlString
118
- }, {
119
- F: __dxlog_file,
120
- L: 146,
121
- S: void 0,
122
- C: (f, a) => f(...a)
123
- });
124
- try {
125
- const url = new URL(urlString);
126
- if (isRedirectPath(url.pathname)) {
127
- log.info("[UrlHandler] Skipping redirect path (handled elsewhere)", {
128
- pathname: url.pathname
129
- }, {
130
- F: __dxlog_file,
131
- L: 150,
132
- S: void 0,
133
- C: (f, a) => f(...a)
134
- });
135
- return;
136
- }
137
- navigate(url.pathname);
138
- } catch (error) {
139
- log.warn("[UrlHandler] Failed to parse deep link URL", {
140
- urlString,
141
- error
142
- }, {
143
- F: __dxlog_file,
144
- L: 155,
145
- S: void 0,
146
- C: (f, a) => f(...a)
147
- });
148
- }
149
- };
150
- export {
151
- url_handler_default as default
152
- };
153
- //# sourceMappingURL=url-handler-WBVVKVPC.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/capabilities/url-handler/url-handler.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { LayoutOperation } from '@dxos/app-toolkit';\nimport { log } from '@dxos/log';\nimport { Node } from '@dxos/plugin-graph';\nimport { isTauri } from '@dxos/util';\n\nimport { type SimpleLayoutState, SimpleLayoutState as SimpleLayoutStateCapability } from '../../types';\n\n/**\n * URL handler for simple layout that syncs browser URL with layout state.\n * URL format: /{workspace} or /{workspace}/{active}\n * Root is represented as / or /root.\n *\n * On mobile Tauri, also listens for deep links via the deep-link plugin.\n */\nexport default Capability.makeModule(\n Effect.fnUntraced(function* () {\n const { invokeSync } = yield* Capability.get(Capabilities.OperationInvoker);\n\n /**\n * Handle navigation from a pathname.\n * Parses path and updates state accordingly.\n */\n const handlePathNavigation = (pathname: string) => {\n log.info('[UrlHandler] Navigating to path', { pathname });\n\n // Parse URL segments: /{workspace}/{active}\n const [_, nextWorkspace, nextActive] = pathname.split('/');\n\n // Determine target workspace (empty or 'root' means Node.RootId).\n const targetWorkspace = !nextWorkspace || nextWorkspace === 'root' ? Node.RootId : nextWorkspace;\n\n // Navigate via operations (they will update state accordingly).\n invokeSync(LayoutOperation.SwitchWorkspace, { subject: targetWorkspace });\n if (nextActive) {\n invokeSync(LayoutOperation.Open, { subject: [nextActive] });\n }\n };\n\n const onNavigation = handleNavigation(handlePathNavigation);\n\n // Handle initial URL and listen for browser navigation.\n yield* Effect.sync(() => onNavigation());\n window.addEventListener('popstate', onNavigation);\n\n // Set up deep link listener for mobile Tauri.\n let unlistenDeepLink: (() => void) | undefined;\n if (isTauri()) {\n yield* Effect.tryPromise({\n try: async () => {\n const { getCurrent, onOpenUrl } = await import('@tauri-apps/plugin-deep-link');\n\n // Check if app was launched via deep link (cold start).\n const launchUrls = await getCurrent();\n if (launchUrls && launchUrls.length > 0) {\n log.info('[UrlHandler] App launched with deep links', { urls: launchUrls });\n for (const url of launchUrls) {\n handleDeepLink(url, handlePathNavigation);\n }\n }\n\n // Listen for deep links while app is running.\n unlistenDeepLink = await onOpenUrl((urls) => {\n log.info('[UrlHandler] Deep links received', { urls });\n for (const url of urls) {\n handleDeepLink(url, handlePathNavigation);\n }\n });\n\n log.info('[UrlHandler] Deep link listener initialized');\n },\n catch: (error) => {\n log.warn('[UrlHandler] Failed to initialize deep link listener', { error });\n return error;\n },\n }).pipe(Effect.catchAll(() => Effect.void));\n }\n\n // Subscribe to state changes to update the URL.\n let lastWorkspace: string | undefined;\n let lastActive: string | undefined;\n const unsubscribe = yield* Capabilities.subscribeAtom(SimpleLayoutStateCapability, (state: SimpleLayoutState) => {\n const { workspace, active } = state;\n\n // Only update URL if relevant state changed.\n if (workspace !== lastWorkspace || active !== lastActive) {\n lastWorkspace = workspace;\n lastActive = active;\n\n const path = pathFromState(workspace, active);\n if (window.location.pathname !== path) {\n history.pushState(null, '', `${path}${window.location.search}`);\n }\n }\n });\n\n return Capability.contributes(Capabilities.Null, null, () =>\n Effect.sync(() => {\n window.removeEventListener('popstate', onNavigation);\n unsubscribe();\n unlistenDeepLink?.();\n }),\n );\n }),\n);\n\n// TODO(wittjosiah): Instead of hardcoding redirect paths, we should either:\n// 1. Validate that the workspace exists in the graph before navigating.\n// 2. Implement more structured routing with explicit route definitions.\n/**\n * Check if a path is a special redirect path that shouldn't be navigated to.\n * These paths are handled by other systems (e.g., OAuth).\n */\nconst isRedirectPath = (pathname: string): boolean => pathname.startsWith('/redirect/');\n\n/**\n * Build pathname from layout state. Root workspace is / or /root/{active}.\n */\nconst pathFromState = (workspace: string, active: string | undefined): string =>\n workspace === Node.RootId\n ? active\n ? `/${Node.RootId}/${active}`\n : '/'\n : active\n ? `/${workspace}/${active}`\n : `/${workspace}`;\n\n/**\n * Returns a handler for navigation events (initial load and popstate) that navigates to current pathname.\n */\nconst handleNavigation =\n (navigate: (pathname: string) => void): (() => void) =>\n () =>\n navigate(window.location.pathname);\n\n/**\n * Handle deep link URL from Tauri. Parses the URL and calls navigate unless it's a redirect path.\n */\nconst handleDeepLink = (urlString: string, navigate: (pathname: string) => void): void => {\n log.info('[UrlHandler] Deep link received', { url: urlString });\n try {\n const url = new URL(urlString);\n if (isRedirectPath(url.pathname)) {\n log.info('[UrlHandler] Skipping redirect path (handled elsewhere)', { pathname: url.pathname });\n return;\n }\n navigate(url.pathname);\n } catch (error) {\n log.warn('[UrlHandler] Failed to parse deep link URL', { urlString, error });\n }\n};\n"],
5
- "mappings": "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",
6
- "names": ["Effect", "Capabilities", "Capability", "LayoutOperation", "log", "Node", "isTauri", "Capability", "makeModule", "fnUntraced", "invokeSync", "get", "Capabilities", "OperationInvoker", "handlePathNavigation", "pathname", "log", "info", "_", "nextWorkspace", "nextActive", "split", "targetWorkspace", "Node", "RootId", "LayoutOperation", "SwitchWorkspace", "subject", "Open", "onNavigation", "handleNavigation", "sync", "window", "addEventListener", "unlistenDeepLink", "isTauri", "tryPromise", "try", "getCurrent", "onOpenUrl", "launchUrls", "length", "urls", "url", "handleDeepLink", "catch", "error", "warn", "pipe", "catchAll", "void", "lastWorkspace", "lastActive", "unsubscribe", "subscribeAtom", "SimpleLayoutStateCapability", "state", "workspace", "active", "path", "pathFromState", "location", "history", "pushState", "search", "contributes", "Null", "removeEventListener", "isRedirectPath", "startsWith", "navigate", "urlString", "URL"]
7
- }
@@ -1,3 +0,0 @@
1
- import { type Capability } from '@dxos/app-framework';
2
- export declare const OperationResolver: Capability.LazyCapability;
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/operation-resolver/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAA6B,MAAM,qBAAqB,CAAC;AAEjF,eAAO,MAAM,iBAAiB,EAAE,UAAU,CAAC,cAG1C,CAAC"}
@@ -1,5 +0,0 @@
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.OperationResolver[]>>, Error, Capability.Service>;
4
- export default _default;
5
- //# sourceMappingURL=operation-resolver.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"operation-resolver.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/operation-resolver/operation-resolver.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;;AAgB/D,wBAkME"}
@@ -1,6 +0,0 @@
1
- import { Capability } from '@dxos/app-framework';
2
- export declare const ReactRoot: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<Readonly<{
3
- id: string;
4
- root: import("react").FC<import("react").PropsWithChildren>;
5
- }>>>, Error>;
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/react-root/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,eAAO,MAAM,SAAS;;;YAA6D,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"react-root.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/react-root/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;;;;;AAK/D,wBASE"}
@@ -1,3 +0,0 @@
1
- import { Capability } from '@dxos/app-framework';
2
- export declare const ReactSurface: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-framework/Capabilities").ReactSurface>>, Error>;
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/react-surface/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,eAAO,MAAM,YAAY,iJAAmE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/react-surface/react-surface.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;;AAc/D,wBAmBE"}
@@ -1,3 +0,0 @@
1
- import { Capability } from '@dxos/app-framework';
2
- export declare const SpotlightDismiss: Capability.LazyCapability<import("./spotlight-dismiss").SpotlightDismissOptions | undefined, [] | Capability.Capability<Capability.InterfaceDef<null>>, Error>;
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/spotlight-dismiss/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,eAAO,MAAM,gBAAgB,gKAA2E,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"spotlight-dismiss.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/spotlight-dismiss/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;;AACH,wBA8CE"}
@@ -1,13 +0,0 @@
1
- import { Capability } from '@dxos/app-framework';
2
- 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<{
3
- mode: string;
4
- dialogOpen: boolean;
5
- sidebarOpen: boolean;
6
- complementarySidebarOpen: boolean;
7
- workspace: string;
8
- active: string[];
9
- inactive: string[];
10
- scrollIntoView: string | undefined;
11
- }>>>>], Error>;
12
- export type { SimpleLayoutStateOptions } from './state';
13
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/state/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,eAAO,MAAM,KAAK;;;;;;;;;cAAoD,CAAC;AAEvE,YAAY,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/state/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,aAAa,CAAC;AAarD,MAAM,MAAM,wBAAwB,GAAG;IACrC,YAAY,CAAC,EAAE,OAAO,CAAC,iBAAiB,CAAC,CAAC;CAC3C,CAAC;;;;;;;;;;;AAEF,wBAuBE"}
@@ -1,3 +0,0 @@
1
- import { Capability } from '@dxos/app-framework';
2
- export declare const UrlHandler: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<null>>, Error>;
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/url-handler/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,eAAO,MAAM,UAAU,8FAA+D,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"url-handler.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/url-handler/url-handler.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAQ/D;;;;;;GAMG;;AACH,wBAyFE"}
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- export declare const ContentLoading: () => React.JSX.Element;
3
- //# sourceMappingURL=ContentLoading.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ContentLoading.d.ts","sourceRoot":"","sources":["../../../../src/components/ContentLoading.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,eAAO,MAAM,cAAc,yBAE1B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ContentLoading.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/ContentLoading.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAMjE,QAAA,MAAM,IAAI;;;;;;;CAO6B,CAAC;AAExC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- export type WorkspaceProps = {
3
- id: string;
4
- };
5
- /**
6
- * Displays the contents of a workspace disposition graph node as a searchable list.
7
- * Shows direct children of the workspace with icons and labels,
8
- * allowing users to filter via search and navigate by selecting an item.
9
- */
10
- export declare const Workspace: ({ id }: WorkspaceProps) => React.JSX.Element;
11
- //# sourceMappingURL=Workspace.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Workspace.d.ts","sourceRoot":"","sources":["../../../../../src/components/Workspace/Workspace.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAe9D,MAAM,MAAM,cAAc,GAAG;IAC3B,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,SAAS,GAAI,QAAQ,cAAc,sBAqC/C,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from './Workspace';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Workspace/index.ts"],"names":[],"mappings":"AAIA,cAAc,aAAa,CAAC"}
@@ -1,10 +0,0 @@
1
- //
2
- // Copyright 2025 DXOS.org
3
- //
4
-
5
- import { type Capability, Capability as Capability$ } from '@dxos/app-framework';
6
-
7
- export const OperationResolver: Capability.LazyCapability = Capability$.lazy(
8
- 'OperationResolver',
9
- () => import('./operation-resolver'),
10
- );