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

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 (167) hide show
  1. package/dist/lib/browser/{chunk-P77G4YTR.mjs → chunk-7VLT3S46.mjs} +3 -3
  2. package/dist/lib/browser/chunk-7VLT3S46.mjs.map +7 -0
  3. package/dist/lib/browser/chunk-TMZNLVT2.mjs +1170 -0
  4. package/dist/lib/browser/chunk-TMZNLVT2.mjs.map +7 -0
  5. package/dist/lib/browser/index.mjs +20 -19
  6. package/dist/lib/browser/index.mjs.map +3 -3
  7. package/dist/lib/browser/meta.json +1 -1
  8. package/dist/lib/browser/{operation-resolver-775UYAC2.mjs → operation-resolver-BYRIQOQT.mjs} +30 -28
  9. package/dist/lib/browser/operation-resolver-BYRIQOQT.mjs.map +7 -0
  10. package/dist/lib/browser/{react-root-KM55OMGJ.mjs → react-root-MMB575WY.mjs} +5 -5
  11. package/dist/lib/browser/react-root-MMB575WY.mjs.map +7 -0
  12. package/dist/lib/browser/{react-surface-BABGAWGY.mjs → react-surface-M6CURANW.mjs} +10 -8
  13. package/dist/lib/browser/react-surface-M6CURANW.mjs.map +7 -0
  14. package/dist/lib/browser/{spotlight-dismiss-VSNOPETH.mjs → spotlight-dismiss-67PHYS5B.mjs} +3 -3
  15. package/dist/lib/browser/spotlight-dismiss-67PHYS5B.mjs.map +7 -0
  16. package/dist/lib/browser/{state-OUFTC2KV.mjs → state-A3PGDWWZ.mjs} +5 -4
  17. package/dist/lib/browser/state-A3PGDWWZ.mjs.map +7 -0
  18. package/dist/lib/browser/url-handler-HTIUY6WL.mjs +152 -0
  19. package/dist/lib/browser/url-handler-HTIUY6WL.mjs.map +7 -0
  20. package/dist/lib/node-esm/chunk-FLOYBAHE.mjs +1171 -0
  21. package/dist/lib/node-esm/chunk-FLOYBAHE.mjs.map +7 -0
  22. package/dist/lib/node-esm/{chunk-F5TEKVJG.mjs → chunk-VIDE5UMB.mjs} +3 -3
  23. package/dist/lib/node-esm/chunk-VIDE5UMB.mjs.map +7 -0
  24. package/dist/lib/node-esm/index.mjs +20 -19
  25. package/dist/lib/node-esm/index.mjs.map +3 -3
  26. package/dist/lib/node-esm/meta.json +1 -1
  27. package/dist/lib/node-esm/{operation-resolver-LDNYS3DI.mjs → operation-resolver-BDTFNCS2.mjs} +30 -28
  28. package/dist/lib/node-esm/operation-resolver-BDTFNCS2.mjs.map +7 -0
  29. package/dist/lib/node-esm/{react-root-36UYFEEB.mjs → react-root-ENZKVSY4.mjs} +5 -5
  30. package/dist/lib/node-esm/react-root-ENZKVSY4.mjs.map +7 -0
  31. package/dist/lib/node-esm/{react-surface-CGHFVWU3.mjs → react-surface-ITVNQYLG.mjs} +10 -8
  32. package/dist/lib/node-esm/react-surface-ITVNQYLG.mjs.map +7 -0
  33. package/dist/lib/node-esm/{spotlight-dismiss-L5PCWIJG.mjs → spotlight-dismiss-RMLRZUVY.mjs} +3 -3
  34. package/dist/lib/node-esm/spotlight-dismiss-RMLRZUVY.mjs.map +7 -0
  35. package/dist/lib/node-esm/{state-Q2ZA26W5.mjs → state-ZCFZTTPL.mjs} +5 -4
  36. package/dist/lib/node-esm/state-ZCFZTTPL.mjs.map +7 -0
  37. package/dist/lib/node-esm/url-handler-WBVVKVPC.mjs +153 -0
  38. package/dist/lib/node-esm/url-handler-WBVVKVPC.mjs.map +7 -0
  39. package/dist/types/src/SimpleLayoutPlugin.d.ts.map +1 -1
  40. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +2 -2
  41. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +1 -1
  42. package/dist/types/src/capabilities/react-root/react-root.d.ts +1 -1
  43. package/dist/types/src/capabilities/react-root/react-root.d.ts.map +1 -1
  44. package/dist/types/src/capabilities/react-surface/index.d.ts +1 -1
  45. package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -1
  46. package/dist/types/src/capabilities/react-surface/react-surface.d.ts +2 -2
  47. package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -1
  48. package/dist/types/src/capabilities/spotlight-dismiss/index.d.ts +1 -1
  49. package/dist/types/src/capabilities/spotlight-dismiss/index.d.ts.map +1 -1
  50. package/dist/types/src/capabilities/spotlight-dismiss/spotlight-dismiss.d.ts +1 -1
  51. package/dist/types/src/capabilities/spotlight-dismiss/spotlight-dismiss.d.ts.map +1 -1
  52. package/dist/types/src/capabilities/state/index.d.ts +1 -1
  53. package/dist/types/src/capabilities/state/state.d.ts +1 -1
  54. package/dist/types/src/capabilities/state/state.d.ts.map +1 -1
  55. package/dist/types/src/capabilities/url-handler/url-handler.d.ts +3 -1
  56. package/dist/types/src/capabilities/url-handler/url-handler.d.ts.map +1 -1
  57. package/dist/types/src/components/ContentError.stories.d.ts +1 -3
  58. package/dist/types/src/components/ContentError.stories.d.ts.map +1 -1
  59. package/dist/types/src/components/Home/Home.d.ts.map +1 -1
  60. package/dist/types/src/components/MobileLayout/MobileLayout.d.ts +35 -0
  61. package/dist/types/src/components/MobileLayout/MobileLayout.d.ts.map +1 -0
  62. package/dist/types/src/components/MobileLayout/MobileLayout.stories.d.ts +7 -0
  63. package/dist/types/src/components/MobileLayout/MobileLayout.stories.d.ts.map +1 -0
  64. package/dist/types/src/components/MobileLayout/index.d.ts +2 -0
  65. package/dist/types/src/components/MobileLayout/index.d.ts.map +1 -0
  66. package/dist/types/src/components/Popover/Popover.d.ts.map +1 -1
  67. package/dist/types/src/components/SimpleLayout/AppBar.d.ts +26 -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 +47 -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 +1 -1
  72. package/dist/types/src/components/SimpleLayout/Drawer.d.ts.map +1 -1
  73. package/dist/types/src/components/SimpleLayout/Main.d.ts.map +1 -1
  74. package/dist/types/src/components/SimpleLayout/NavBar.d.ts +10 -3
  75. package/dist/types/src/components/SimpleLayout/NavBar.d.ts.map +1 -1
  76. package/dist/types/src/components/SimpleLayout/NavBar.stories.d.ts +4 -4
  77. package/dist/types/src/components/SimpleLayout/NavBar.stories.d.ts.map +1 -1
  78. package/dist/types/src/components/SimpleLayout/SimpleLayout.d.ts.map +1 -1
  79. package/dist/types/src/components/SimpleLayout/SimpleLayout.stories.d.ts.map +1 -1
  80. package/dist/types/src/components/SimpleLayout/index.d.ts +3 -0
  81. package/dist/types/src/components/SimpleLayout/index.d.ts.map +1 -1
  82. package/dist/types/src/components/Workspace/Workspace.d.ts +3 -1
  83. package/dist/types/src/components/Workspace/Workspace.d.ts.map +1 -1
  84. package/dist/types/src/components/index.d.ts +1 -0
  85. package/dist/types/src/components/index.d.ts.map +1 -1
  86. package/dist/types/src/hooks/actions.d.ts +20 -0
  87. package/dist/types/src/hooks/actions.d.ts.map +1 -0
  88. package/dist/types/src/hooks/index.d.ts +4 -0
  89. package/dist/types/src/hooks/index.d.ts.map +1 -1
  90. package/dist/types/src/hooks/useAppBarProps.d.ts +7 -0
  91. package/dist/types/src/hooks/useAppBarProps.d.ts.map +1 -0
  92. package/dist/types/src/hooks/useCompanions.d.ts +5 -1
  93. package/dist/types/src/hooks/useCompanions.d.ts.map +1 -1
  94. package/dist/types/src/hooks/useDrawerActions.d.ts +13 -0
  95. package/dist/types/src/hooks/useDrawerActions.d.ts.map +1 -0
  96. package/dist/types/src/hooks/useNavbarActions.d.ts +14 -0
  97. package/dist/types/src/hooks/useNavbarActions.d.ts.map +1 -0
  98. package/dist/types/src/hooks/useSimpleLayoutState.d.ts +3 -3
  99. package/dist/types/src/hooks/useSimpleLayoutState.d.ts.map +1 -1
  100. package/dist/types/src/types/capabilities.d.ts +7 -6
  101. package/dist/types/src/types/capabilities.d.ts.map +1 -1
  102. package/dist/types/src/types/events.d.ts.map +1 -1
  103. package/dist/types/tsconfig.tsbuildinfo +1 -1
  104. package/package.json +36 -30
  105. package/src/SimpleLayoutPlugin.ts +10 -9
  106. package/src/capabilities/operation-resolver/operation-resolver.ts +24 -22
  107. package/src/capabilities/react-root/react-root.tsx +2 -2
  108. package/src/capabilities/react-surface/react-surface.tsx +6 -5
  109. package/src/capabilities/spotlight-dismiss/spotlight-dismiss.ts +2 -2
  110. package/src/capabilities/state/state.tsx +4 -3
  111. package/src/capabilities/url-handler/url-handler.ts +111 -34
  112. package/src/components/ContentError.stories.tsx +8 -7
  113. package/src/components/ContentLoading.stories.tsx +2 -2
  114. package/src/components/ContentLoading.tsx +1 -1
  115. package/src/components/Dialog/Dialog.tsx +5 -5
  116. package/src/components/Home/Home.tsx +41 -33
  117. package/src/components/MobileLayout/MobileLayout.stories.tsx +129 -0
  118. package/src/components/MobileLayout/MobileLayout.tsx +305 -0
  119. package/src/components/MobileLayout/index.ts +5 -0
  120. package/src/components/Popover/Popover.tsx +17 -7
  121. package/src/components/SimpleLayout/AppBar.stories.tsx +144 -0
  122. package/src/components/SimpleLayout/AppBar.tsx +94 -0
  123. package/src/components/SimpleLayout/Drawer.tsx +22 -68
  124. package/src/components/SimpleLayout/Main.tsx +40 -29
  125. package/src/components/SimpleLayout/NavBar.stories.tsx +131 -23
  126. package/src/components/SimpleLayout/NavBar.tsx +15 -47
  127. package/src/components/SimpleLayout/SimpleLayout.stories.tsx +20 -11
  128. package/src/components/SimpleLayout/SimpleLayout.tsx +38 -19
  129. package/src/components/SimpleLayout/index.ts +3 -0
  130. package/src/components/Workspace/Workspace.tsx +34 -24
  131. package/src/components/hooks.ts +4 -4
  132. package/src/components/index.ts +1 -0
  133. package/src/hooks/actions.ts +85 -0
  134. package/src/hooks/index.ts +4 -0
  135. package/src/hooks/useAppBarProps.ts +116 -0
  136. package/src/hooks/useCompanions.ts +8 -5
  137. package/src/hooks/useDrawerActions.ts +98 -0
  138. package/src/hooks/useNavbarActions.ts +86 -0
  139. package/src/hooks/useSimpleLayoutState.ts +5 -5
  140. package/src/types/capabilities.ts +10 -6
  141. package/src/types/events.ts +3 -2
  142. package/dist/lib/browser/chunk-LR3EE3VB.mjs +0 -789
  143. package/dist/lib/browser/chunk-LR3EE3VB.mjs.map +0 -7
  144. package/dist/lib/browser/chunk-P77G4YTR.mjs.map +0 -7
  145. package/dist/lib/browser/operation-resolver-775UYAC2.mjs.map +0 -7
  146. package/dist/lib/browser/react-root-KM55OMGJ.mjs.map +0 -7
  147. package/dist/lib/browser/react-surface-BABGAWGY.mjs.map +0 -7
  148. package/dist/lib/browser/spotlight-dismiss-VSNOPETH.mjs.map +0 -7
  149. package/dist/lib/browser/state-OUFTC2KV.mjs.map +0 -7
  150. package/dist/lib/browser/url-handler-DOUFQIAC.mjs +0 -54
  151. package/dist/lib/browser/url-handler-DOUFQIAC.mjs.map +0 -7
  152. package/dist/lib/node-esm/chunk-F5TEKVJG.mjs.map +0 -7
  153. package/dist/lib/node-esm/chunk-HB2B3LLG.mjs +0 -790
  154. package/dist/lib/node-esm/chunk-HB2B3LLG.mjs.map +0 -7
  155. package/dist/lib/node-esm/operation-resolver-LDNYS3DI.mjs.map +0 -7
  156. package/dist/lib/node-esm/react-root-36UYFEEB.mjs.map +0 -7
  157. package/dist/lib/node-esm/react-surface-CGHFVWU3.mjs.map +0 -7
  158. package/dist/lib/node-esm/spotlight-dismiss-L5PCWIJG.mjs.map +0 -7
  159. package/dist/lib/node-esm/state-Q2ZA26W5.mjs.map +0 -7
  160. package/dist/lib/node-esm/url-handler-DVAZZEUO.mjs +0 -55
  161. package/dist/lib/node-esm/url-handler-DVAZZEUO.mjs.map +0 -7
  162. package/dist/types/src/components/ContentError.d.ts +0 -5
  163. package/dist/types/src/components/ContentError.d.ts.map +0 -1
  164. package/dist/types/src/components/SimpleLayout/Banner.d.ts +0 -8
  165. package/dist/types/src/components/SimpleLayout/Banner.d.ts.map +0 -1
  166. package/src/components/ContentError.tsx +0 -23
  167. package/src/components/SimpleLayout/Banner.tsx +0 -113
@@ -1,12 +1,13 @@
1
1
  import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
2
  import {
3
3
  SimpleLayoutState
4
- } from "./chunk-F5TEKVJG.mjs";
4
+ } from "./chunk-VIDE5UMB.mjs";
5
5
 
6
6
  // src/capabilities/state/state.tsx
7
7
  import { Atom } from "@effect-atom/atom-react";
8
8
  import * as Effect from "effect/Effect";
9
- import { Capability, Common } from "@dxos/app-framework";
9
+ import { Capability } from "@dxos/app-framework";
10
+ import { AppCapabilities } from "@dxos/app-toolkit";
10
11
  import { Node } from "@dxos/plugin-graph";
11
12
  var defaultState = {
12
13
  dialogOpen: false,
@@ -39,10 +40,10 @@ var state_default = Capability.makeModule(({ initialState } = {}) => Effect.sync
39
40
  });
40
41
  return [
41
42
  Capability.contributes(SimpleLayoutState, stateAtom),
42
- Capability.contributes(Common.Capability.Layout, layoutAtom)
43
+ Capability.contributes(AppCapabilities.Layout, layoutAtom)
43
44
  ];
44
45
  }));
45
46
  export {
46
47
  state_default as default
47
48
  };
48
- //# sourceMappingURL=state-Q2ZA26W5.mjs.map
49
+ //# sourceMappingURL=state-ZCFZTTPL.mjs.map
@@ -0,0 +1,7 @@
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
+ }
@@ -0,0 +1,153 @@
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
@@ -0,0 +1,7 @@
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 +1 @@
1
- {"version":3,"file":"SimpleLayoutPlugin.d.ts","sourceRoot":"","sources":["../../../src/SimpleLayoutPlugin.ts"],"names":[],"mappings":"AAIA,OAAO,EAAuC,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAOlF,MAAM,MAAM,yBAAyB,GAAG;IACtC,4EAA4E;IAC5E,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,kBAAkB,iDA8B9B,CAAC"}
1
+ {"version":3,"file":"SimpleLayoutPlugin.d.ts","sourceRoot":"","sources":["../../../src/SimpleLayoutPlugin.ts"],"names":[],"mappings":"AAIA,OAAO,EAAiD,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAQ5F,MAAM,MAAM,yBAAyB,GAAG;IACtC,4EAA4E;IAC5E,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,kBAAkB,iDA8B9B,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import * as Effect from 'effect/Effect';
2
- import { Capability, Common } from '@dxos/app-framework';
3
- declare const _default: (props?: void | undefined) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<Common.Capability.OperationResolver[]>>, Error, Capability.Service>;
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
4
  export default _default;
5
5
  //# sourceMappingURL=operation-resolver.d.ts.map
@@ -1 +1 @@
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,UAAU,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;;AAezD,wBAiME"}
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,7 +1,7 @@
1
1
  import * as Effect from 'effect/Effect';
2
2
  import React from 'react';
3
3
  import { Capability } from '@dxos/app-framework';
4
- declare const _default: (props?: void | undefined) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<Readonly<{
4
+ declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<Readonly<{
5
5
  id: string;
6
6
  root: React.FC<React.PropsWithChildren>;
7
7
  }>>>, never, never>;
@@ -1 +1 @@
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,EAAE,UAAU,EAAU,MAAM,qBAAqB,CAAC;;;;;AAKzD,wBASE"}
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 +1,3 @@
1
1
  import { Capability } from '@dxos/app-framework';
2
- export declare const ReactSurface: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-framework/Common").Capability.ReactSurface>>, Error>;
2
+ export declare const ReactSurface: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-framework/Capabilities").ReactSurface>>, Error>;
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
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,sJAAmE,CAAC"}
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,5 +1,5 @@
1
1
  import * as Effect from 'effect/Effect';
2
- import { Capability, Common } from '@dxos/app-framework';
3
- declare const _default: (props?: void | undefined) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<Common.Capability.ReactSurface>>, never, never>;
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
4
  export default _default;
5
5
  //# sourceMappingURL=react-surface.d.ts.map
@@ -1 +1 @@
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,UAAU,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;;AAazD,wBAmBE"}
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 +1,3 @@
1
1
  import { Capability } from '@dxos/app-framework';
2
- export declare const SpotlightDismiss: Capability.LazyCapability<import("./spotlight-dismiss").SpotlightDismissOptions, [] | Capability.Capability<Capability.InterfaceDef<null>>, Error>;
2
+ export declare const SpotlightDismiss: Capability.LazyCapability<import("./spotlight-dismiss").SpotlightDismissOptions | undefined, [] | Capability.Capability<Capability.InterfaceDef<null>>, Error>;
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
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,oJAA2E,CAAC"}
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"}
@@ -9,6 +9,6 @@ export type SpotlightDismissOptions = {
9
9
  * When running in Tauri popover mode, listens for focus loss and Escape key
10
10
  * to dismiss the spotlight panel. Runs at startup before React renders.
11
11
  */
12
- declare const _default: (props?: SpotlightDismissOptions | undefined) => Effect.Effect<[] | Capability.Capability<Capability.InterfaceDef<null>>, never, never>;
12
+ declare const _default: (props: SpotlightDismissOptions | undefined) => Effect.Effect<[] | Capability.Capability<Capability.InterfaceDef<null>>, never, never>;
13
13
  export default _default;
14
14
  //# sourceMappingURL=spotlight-dismiss.d.ts.map
@@ -1 +1 @@
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,EAAE,UAAU,EAAU,MAAM,qBAAqB,CAAC;AAoBzD,MAAM,MAAM,uBAAuB,GAAG;IACpC,iDAAiD;IACjD,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF;;;;GAIG;;AACH,wBA8CE"}
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,5 +1,5 @@
1
1
  import { Capability } from '@dxos/app-framework';
2
- export declare const State: Capability.LazyCapability<import("./state").SimpleLayoutStateOptions, [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<{
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
3
  mode: string;
4
4
  dialogOpen: boolean;
5
5
  sidebarOpen: boolean;
@@ -5,7 +5,7 @@ import { type SimpleLayoutState } from '../../types';
5
5
  export type SimpleLayoutStateOptions = {
6
6
  initialState?: Partial<SimpleLayoutState>;
7
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<{
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
9
  mode: string;
10
10
  dialogOpen: boolean;
11
11
  sidebarOpen: boolean;
@@ -1 +1 @@
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,EAAU,MAAM,qBAAqB,CAAC;AAGzD,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
+ {"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"}
@@ -4,7 +4,9 @@ import { Capability } from '@dxos/app-framework';
4
4
  * URL handler for simple layout that syncs browser URL with layout state.
5
5
  * URL format: /{workspace} or /{workspace}/{active}
6
6
  * Root is represented as / or /root.
7
+ *
8
+ * On mobile Tauri, also listens for deep links via the deep-link plugin.
7
9
  */
8
- declare const _default: (props?: void | undefined) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<null>>, Error, Capability.Service>;
10
+ declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<null>>, Error, Capability.Service>;
9
11
  export default _default;
10
12
  //# sourceMappingURL=url-handler.d.ts.map
@@ -1 +1 @@
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,EAAE,UAAU,EAAU,MAAM,qBAAqB,CAAC;AAKzD;;;;GAIG;;AACH,wBA+DE"}
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,9 +1,7 @@
1
1
  import { type StoryObj } from '@storybook/react-vite';
2
2
  declare const meta: {
3
3
  title: string;
4
- component: ({ error }: {
5
- error?: Error;
6
- }) => import("react").JSX.Element;
4
+ component: ({ children, error, title, data }: import("@dxos/react-ui").ErrorFallbackProps) => React.JSX.Element;
7
5
  decorators: import("@storybook/react").Decorator[];
8
6
  parameters: {
9
7
  layout: string;
@@ -1 +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;AAQjE,QAAA,MAAM,IAAI;;;aACE,CAAC;;;;;;;yBALJ,CAAQ,IAAI,CAAC,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;CAYY,CAAC;AAEtC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAIvB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAI3B,CAAC"}
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;;;;;;;;yBAJI,CAAQ,IAAI,CAAC,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;CAYQ,CAAC;AAEvC,eAAe,IAAI,CAAC;AAEpB,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"}
@@ -1 +1 @@
1
- {"version":3,"file":"Home.d.ts","sourceRoot":"","sources":["../../../../../src/components/Home/Home.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAcvE,MAAM,MAAM,SAAS,GAAG,EAAE,CAAC;AAE3B;;GAEG;AACH,eAAO,MAAM,IAAI,GAAI,GAAG,SAAS,sBAiChC,CAAC"}
1
+ {"version":3,"file":"Home.d.ts","sourceRoot":"","sources":["../../../../../src/components/Home/Home.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAgBvE,MAAM,MAAM,SAAS,GAAG,EAAE,CAAC;AAE3B;;GAEG;AACH,eAAO,MAAM,IAAI,GAAI,GAAG,SAAS,sBAuChC,CAAC"}
@@ -0,0 +1,35 @@
1
+ import React, { type PropsWithChildren } from 'react';
2
+ import { type ThemedClassName } from '@dxos/react-ui';
3
+ type MobileLayoutContextValue = {
4
+ keyboardOpen: boolean;
5
+ };
6
+ declare const useMobileLayout: (consumerName: string) => MobileLayoutContextValue;
7
+ type MobileLayoutRootProps = ThemedClassName<PropsWithChildren<{
8
+ transition?: number;
9
+ onKeyboardOpenChange?: (nextState: boolean) => void;
10
+ }>>;
11
+ type MobileLayoutPanelProps = ThemedClassName<PropsWithChildren<{
12
+ safe?: {
13
+ top: boolean;
14
+ bottom: boolean;
15
+ };
16
+ }>>;
17
+ export declare const MobileLayout: {
18
+ Root: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<{
19
+ transition?: number;
20
+ onKeyboardOpenChange?: (nextState: boolean) => void;
21
+ }>, "className"> & {
22
+ classNames?: import("@dxos/ui-types").ClassNameValue;
23
+ } & React.RefAttributes<HTMLDivElement>>;
24
+ Panel: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<{
25
+ safe?: {
26
+ top: boolean;
27
+ bottom: boolean;
28
+ };
29
+ }>, "className"> & {
30
+ classNames?: import("@dxos/ui-types").ClassNameValue;
31
+ } & React.RefAttributes<HTMLDivElement>>;
32
+ };
33
+ export { useMobileLayout };
34
+ export type { MobileLayoutRootProps, MobileLayoutPanelProps };
35
+ //# sourceMappingURL=MobileLayout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MobileLayout.d.ts","sourceRoot":"","sources":["../../../../../src/components/MobileLayout/MobileLayout.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAmC,MAAM,OAAO,CAAC;AAIvF,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAatD,KAAK,wBAAwB,GAAG;IAC9B,YAAY,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,QAAA,MAA6B,eAAe,oDAA+D,CAAC;AAM5G,KAAK,qBAAqB,GAAG,eAAe,CAC1C,iBAAiB,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oBAAoB,CAAC,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;CACrD,CAAC,CACH,CAAC;AAsCF,KAAK,sBAAsB,GAAG,eAAe,CAC3C,iBAAiB,CAAC;IAChB,IAAI,CAAC,EAAE;QACL,GAAG,EAAE,OAAO,CAAC;QACb,MAAM,EAAE,OAAO,CAAC;KACjB,CAAC;CACH,CAAC,CACH,CAAC;AA8BF,eAAO,MAAM,YAAY;;qBA9ER,MAAM;+BACI,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI;;;;;eA0C5C;YACL,GAAG,EAAE,OAAO,CAAC;YACb,MAAM,EAAE,OAAO,CAAC;SACjB;;;;CAmCJ,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,CAAC;AAE3B,YAAY,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { type Meta, type StoryObj } from '@storybook/react-vite';
2
+ import { type MobileLayoutRootProps } from './MobileLayout';
3
+ declare const meta: Meta<MobileLayoutRootProps>;
4
+ export default meta;
5
+ type Story = StoryObj<MobileLayoutRootProps>;
6
+ export declare const Default: Story;
7
+ //# sourceMappingURL=MobileLayout.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MobileLayout.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/MobileLayout/MobileLayout.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAOjE,OAAO,EAAgB,KAAK,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAuG1E,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,qBAAqB,CAQrC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,qBAAqB,CAAC,CAAC;AAE7C,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './MobileLayout';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/MobileLayout/index.ts"],"names":[],"mappings":"AAIA,cAAc,gBAAgB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../../../src/components/Popover/Popover.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAqD,MAAM,OAAO,CAAC;AAiBzG,eAAO,MAAM,WAAW,GAAI,cAAc,iBAAiB,sBA+B1D,CAAC;AAEF,eAAO,MAAM,cAAc,yBAgE1B,CAAC"}
1
+ {"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../../../src/components/Popover/Popover.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAqD,MAAM,OAAO,CAAC;AAkBzG,eAAO,MAAM,WAAW,GAAI,cAAc,iBAAiB,sBA+B1D,CAAC;AAMF,eAAO,MAAM,cAAc,yBAqE1B,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { type Atom } from '@effect-atom/atom-react';
2
+ import React from 'react';
3
+ import { type ThemedClassName } from '@dxos/react-ui';
4
+ import { type ActionExecutor, type ActionGraphProps } from '@dxos/react-ui-menu';
5
+ export type AppBarProps = ThemedClassName<{
6
+ /** Title/label to display in the banner. */
7
+ title?: string;
8
+ /** Action graph atom for the dropdown menu. */
9
+ actions: Atom.Atom<ActionGraphProps>;
10
+ /** Whether to show the back button. */
11
+ showBackButton?: boolean;
12
+ /** Popover anchor ID for the dropdown trigger. */
13
+ popoverAnchorId?: string;
14
+ /** Action executor callback. */
15
+ onAction?: ActionExecutor;
16
+ /** Callback when back button is clicked. */
17
+ onBack?: () => void;
18
+ }>;
19
+ /**
20
+ * AppBar component that renders a title, optional back button, and actions dropdown.
21
+ */
22
+ export declare const AppBar: {
23
+ ({ classNames, title, actions, showBackButton, popoverAnchorId, onAction, onBack, }: AppBarProps): React.JSX.Element;
24
+ displayName: string;
25
+ };
26
+ //# sourceMappingURL=AppBar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppBar.d.ts","sourceRoot":"","sources":["../../../../../src/components/SimpleLayout/AppBar.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,IAAI,EAAgB,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,EAAuB,KAAK,eAAe,EAA2B,MAAM,gBAAgB,CAAC;AACpG,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,gBAAgB,EAAwB,MAAM,qBAAqB,CAAC;AAQvG,MAAM,MAAM,WAAW,GAAG,eAAe,CAAC;IACxC,4CAA4C;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+CAA+C;IAC/C,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;IACrC,uCAAuC;IACvC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,kDAAkD;IAClD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gCAAgC;IAChC,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,4CAA4C;IAC5C,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,MAAM;yFAQhB,WAAW;;CAiDb,CAAC"}
@@ -0,0 +1,47 @@
1
+ import { type StoryObj } from '@storybook/react-vite';
2
+ import React from 'react';
3
+ import { type ActionGraphProps } from '@dxos/react-ui-menu';
4
+ import { type AppBarProps } from './AppBar';
5
+ type StoryProps = Omit<AppBarProps, 'actions'> & {
6
+ actions: ActionGraphProps;
7
+ };
8
+ declare const meta: {
9
+ title: string;
10
+ render: ({ actions: actionsProp, ...props }: StoryProps) => React.JSX.Element;
11
+ decorators: import("@storybook/react").Decorator[];
12
+ parameters: {
13
+ layout: string;
14
+ translations: [{
15
+ readonly 'en-US': {
16
+ readonly [meta.id]: {
17
+ readonly 'plugin name': "Simple layout";
18
+ readonly 'settings title': "Simple layout settings";
19
+ readonly 'workspaces heading': "Workspaces";
20
+ readonly 'settings heading': "Settings";
21
+ readonly 'back label': "Back";
22
+ readonly 'browse label': "Browse";
23
+ readonly 'notifications label': "Notifications";
24
+ readonly 'profile label': "Profile";
25
+ readonly 'app menu label': "App menu";
26
+ readonly 'main menu label': "Main menu";
27
+ readonly 'companions menu label': "Companions";
28
+ readonly 'error fallback message': "An error occurred";
29
+ readonly 'search placeholder': "Search...";
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
+ };
36
+ };
37
+ }];
38
+ };
39
+ };
40
+ export default meta;
41
+ type Story = StoryObj<StoryProps>;
42
+ export declare const Default: Story;
43
+ export declare const NoBackButton: Story;
44
+ export declare const LongTitle: Story;
45
+ export declare const NoActions: Story;
46
+ export declare const Empty: Story;
47
+ //# sourceMappingURL=AppBar.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppBar.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/SimpleLayout/AppBar.stories.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAkB,MAAM,OAAO,CAAC;AAIvC,OAAO,EAAE,KAAK,gBAAgB,EAAoB,MAAM,qBAAqB,CAAC;AAM9E,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAyBpD,KAAK,UAAU,GAAG,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC,GAAG;IAC/C,OAAO,EAAE,gBAAgB,CAAC;CAC3B,CAAC;AAWF,QAAA,MAAM,IAAI;;iDATgD,UAAU;;;;;;yBAvCpD,CAAQ,IAAG,CAAC,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;CA+DM,CAAC;AAEtC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,UAAU,CAAC,CAAC;AAElC,eAAO,MAAM,OAAO,EAAE,KAiCrB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAO1B,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAQvB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAQvB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAInB,CAAC"}
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  * Companion drawer component.
4
4
  */
5
5
  export declare const Drawer: {
6
- (): React.JSX.Element | null;
6
+ (): React.JSX.Element;
7
7
  displayName: string;
8
8
  };
9
9
  //# sourceMappingURL=Drawer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../../../src/components/SimpleLayout/Drawer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAcpD;;GAEG;AACH,eAAO,MAAM,MAAM;;;CA0FlB,CAAC"}
1
+ {"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../../../src/components/SimpleLayout/Drawer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAcvC;;GAEG;AACH,eAAO,MAAM,MAAM;;;CA4ClB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Main.d.ts","sourceRoot":"","sources":["../../../../../src/components/SimpleLayout/Main.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAiBvC;;GAEG;AACH,eAAO,MAAM,IAAI;;;CA6ChB,CAAC"}
1
+ {"version":3,"file":"Main.d.ts","sourceRoot":"","sources":["../../../../../src/components/SimpleLayout/Main.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAmBvC;;GAEG;AACH,eAAO,MAAM,IAAI;;;CAsDhB,CAAC"}
@@ -1,11 +1,18 @@
1
+ import { type Atom } from '@effect-atom/atom-react';
1
2
  import React from 'react';
2
3
  import { type ThemedClassName } from '@dxos/react-ui';
4
+ import { type ActionExecutor, type ActionGraphProps } from '@dxos/react-ui-menu';
3
5
  export type NavBarProps = ThemedClassName<{
4
- /** Active AppGraph node ID. */
5
- activeId?: string;
6
+ /** Action graph atom for the toolbar. */
7
+ actions: Atom.Atom<ActionGraphProps>;
8
+ /** Action executor callback. */
9
+ onAction?: ActionExecutor;
6
10
  }>;
11
+ /**
12
+ * Presentational navbar component that renders a toolbar from an action graph.
13
+ */
7
14
  export declare const NavBar: {
8
- ({ classNames, activeId }: NavBarProps): React.JSX.Element;
15
+ ({ classNames, actions, onAction }: NavBarProps): React.JSX.Element;
9
16
  displayName: string;
10
17
  };
11
18
  //# sourceMappingURL=NavBar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NavBar.d.ts","sourceRoot":"","sources":["../../../../../src/components/SimpleLayout/NavBar.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAc,KAAK,eAAe,EAAuD,MAAM,gBAAgB,CAAC;AASvH,MAAM,MAAM,WAAW,GAAG,eAAe,CAAC;IACxC,+BAA+B;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC,CAAC;AAEH,eAAO,MAAM,MAAM;+BAA8B,WAAW;;CAwC3D,CAAC"}
1
+ {"version":3,"file":"NavBar.d.ts","sourceRoot":"","sources":["../../../../../src/components/SimpleLayout/NavBar.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,gBAAgB,EAAwB,MAAM,qBAAqB,CAAC;AAKvG,MAAM,MAAM,WAAW,GAAG,eAAe,CAAC;IACxC,yCAAyC;IACzC,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;IACrC,gCAAgC;IAChC,QAAQ,CAAC,EAAE,cAAc,CAAC;CAC3B,CAAC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,MAAM;wCAAuC,WAAW;;CAQpE,CAAC"}
@@ -1,8 +1,9 @@
1
1
  import { type StoryObj } from '@storybook/react-vite';
2
+ import React from 'react';
2
3
  declare const meta: {
3
4
  title: string;
4
5
  component: {
5
- ({ classNames, activeId }: import("./NavBar").NavBarProps): import("react").JSX.Element;
6
+ ({ classNames, actions, onAction }: import("./NavBar").NavBarProps): React.JSX.Element;
6
7
  displayName: string;
7
8
  };
8
9
  decorators: import("@storybook/react").Decorator[];
@@ -37,7 +38,6 @@ declare const meta: {
37
38
  export default meta;
38
39
  type Story = StoryObj<typeof meta>;
39
40
  export declare const Default: Story;
40
- export declare const BrowseActive: Story;
41
- export declare const NotificationsActive: Story;
42
- export declare const ProfileActive: Story;
41
+ export declare const CompanionsOnly: Story;
42
+ export declare const Empty: Story;
43
43
  //# sourceMappingURL=NavBar.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NavBar.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/SimpleLayout/NavBar.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAUjE,QAAA,MAAM,IAAI;;;;;;;;;;;yBARoD,CACzD,IAAI,CAAC,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;CAoBkB,CAAC;AAEhC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAI1B,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,KAIjC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAI3B,CAAC"}
1
+ {"version":3,"file":"NavBar.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/SimpleLayout/NavBar.stories.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAkB,MAAM,OAAO,CAAC;AAqFvC,QAAA,MAAM,IAAI;;;;;;;;;;;yBArFM,CAAQ,IAAG,CAAC,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;CA6FA,CAAC;AAEhC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAQnC,eAAO,MAAM,OAAO,EAAE,KA8BrB,CAAC;AAQF,eAAO,MAAM,cAAc,EAAE,KAG5B,CAAC;AAQF,eAAO,MAAM,KAAK,EAAE,KAGnB,CAAC"}