@dxos/plugin-simple-layout 0.8.4-main.1068cf700f → 0.8.4-main.1c7ec43d41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/browser/SimpleLayoutPlugin-Q5BZE6KD.mjs +50 -0
- package/dist/lib/browser/SimpleLayoutPlugin-Q5BZE6KD.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +21 -97
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/translations.mjs +34 -0
- package/dist/lib/browser/translations.mjs.map +7 -0
- package/dist/lib/node-esm/SimpleLayoutPlugin-OD45TNPO.mjs +52 -0
- package/dist/lib/node-esm/SimpleLayoutPlugin-OD45TNPO.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +21 -96
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/translations.mjs +36 -0
- package/dist/lib/node-esm/translations.mjs.map +7 -0
- package/dist/types/src/SimpleLayoutPlugin.d.ts +2 -1
- package/dist/types/src/SimpleLayoutPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder.d.ts +6 -0
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +21 -6
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/operation-handler.d.ts +6 -0
- package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
- package/dist/types/src/capabilities/{react-root/react-root.d.ts → react-root.d.ts} +1 -1
- package/dist/types/src/capabilities/react-root.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface.d.ts +5 -0
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
- package/dist/types/src/capabilities/{spotlight-dismiss/spotlight-dismiss.d.ts → spotlight-dismiss.d.ts} +1 -1
- package/dist/types/src/capabilities/spotlight-dismiss.d.ts.map +1 -0
- package/dist/types/src/capabilities/{state/state.d.ts → state.d.ts} +2 -2
- package/dist/types/src/capabilities/state.d.ts.map +1 -0
- package/dist/types/src/capabilities/url-handler.d.ts +12 -0
- package/dist/types/src/capabilities/url-handler.d.ts.map +1 -0
- package/dist/types/src/components/ContentError.stories.d.ts +27 -22
- package/dist/types/src/components/ContentError.stories.d.ts.map +1 -1
- package/dist/types/src/components/DebugOverlay/DebugOverlay.d.ts +19 -0
- package/dist/types/src/components/DebugOverlay/DebugOverlay.d.ts.map +1 -0
- package/dist/types/src/components/DebugOverlay/index.d.ts +2 -0
- package/dist/types/src/components/DebugOverlay/index.d.ts.map +1 -0
- package/dist/types/src/components/Dialog/Dialog.d.ts.map +1 -1
- package/dist/types/src/components/Home/Home.d.ts.map +1 -1
- package/dist/types/src/components/Loading/Loading.d.ts +3 -0
- package/dist/types/src/components/Loading/Loading.d.ts.map +1 -0
- package/dist/types/src/components/{ContentLoading.stories.d.ts → Loading/Loading.stories.d.ts} +1 -1
- package/dist/types/src/components/Loading/Loading.stories.d.ts.map +1 -0
- package/dist/types/src/components/Loading/index.d.ts +2 -0
- package/dist/types/src/components/Loading/index.d.ts.map +1 -0
- package/dist/types/src/components/MobileLayout/MobileLayout.d.ts +2 -2
- package/dist/types/src/components/MobileLayout/MobileLayout.d.ts.map +1 -1
- package/dist/types/src/components/MobileLayout/MobileLayout.stories.d.ts.map +1 -1
- package/dist/types/src/components/NavBranch/NavBranch.d.ts +11 -0
- package/dist/types/src/components/NavBranch/NavBranch.d.ts.map +1 -0
- package/dist/types/src/components/NavBranch/index.d.ts +2 -0
- package/dist/types/src/components/NavBranch/index.d.ts.map +1 -0
- package/dist/types/src/components/Popover/Popover.d.ts.map +1 -1
- package/dist/types/src/components/SimpleLayout/AppBar.d.ts +5 -7
- package/dist/types/src/components/SimpleLayout/AppBar.d.ts.map +1 -1
- package/dist/types/src/components/SimpleLayout/AppBar.stories.d.ts +29 -22
- package/dist/types/src/components/SimpleLayout/AppBar.stories.d.ts.map +1 -1
- package/dist/types/src/components/SimpleLayout/Drawer.d.ts +4 -7
- package/dist/types/src/components/SimpleLayout/Drawer.d.ts.map +1 -1
- package/dist/types/src/components/SimpleLayout/Main.d.ts +4 -7
- package/dist/types/src/components/SimpleLayout/Main.d.ts.map +1 -1
- package/dist/types/src/components/SimpleLayout/NavBar.d.ts +5 -7
- package/dist/types/src/components/SimpleLayout/NavBar.d.ts.map +1 -1
- package/dist/types/src/components/SimpleLayout/NavBar.stories.d.ts +29 -23
- package/dist/types/src/components/SimpleLayout/NavBar.stories.d.ts.map +1 -1
- package/dist/types/src/components/SimpleLayout/SimpleLayout.d.ts.map +1 -1
- package/dist/types/src/components/SimpleLayout/SimpleLayout.stories.d.ts +26 -25
- package/dist/types/src/components/SimpleLayout/SimpleLayout.stories.d.ts.map +1 -1
- package/dist/types/src/components/hooks.d.ts +4 -2
- package/dist/types/src/components/hooks.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +3 -2
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/hooks/actions.d.ts +5 -6
- package/dist/types/src/hooks/actions.d.ts.map +1 -1
- package/dist/types/src/hooks/useAppBarProps.d.ts +2 -2
- package/dist/types/src/hooks/useAppBarProps.d.ts.map +1 -1
- package/dist/types/src/hooks/useCompanions.d.ts.map +1 -1
- package/dist/types/src/hooks/useDrawerActions.d.ts.map +1 -1
- package/dist/types/src/hooks/useNavbarActions.d.ts.map +1 -1
- package/dist/types/src/hooks/useSimpleLayoutState.d.ts +1 -1
- package/dist/types/src/hooks/useSimpleLayoutState.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +3 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/operations/close.d.ts +5 -0
- package/dist/types/src/operations/close.d.ts.map +1 -0
- package/dist/types/src/operations/index.d.ts +3 -0
- package/dist/types/src/operations/index.d.ts.map +1 -0
- package/dist/types/src/operations/open.d.ts +5 -0
- package/dist/types/src/operations/open.d.ts.map +1 -0
- package/dist/types/src/operations/revert-workspace.d.ts +5 -0
- package/dist/types/src/operations/revert-workspace.d.ts.map +1 -0
- package/dist/types/src/operations/set-layout-mode.d.ts +5 -0
- package/dist/types/src/operations/set-layout-mode.d.ts.map +1 -0
- package/dist/types/src/operations/set.d.ts +5 -0
- package/dist/types/src/operations/set.d.ts.map +1 -0
- package/dist/types/src/operations/state-access.d.ts +8 -0
- package/dist/types/src/operations/state-access.d.ts.map +1 -0
- package/dist/types/src/operations/switch-workspace.d.ts +5 -0
- package/dist/types/src/operations/switch-workspace.d.ts.map +1 -0
- package/dist/types/src/operations/update-complementary.d.ts +5 -0
- package/dist/types/src/operations/update-complementary.d.ts.map +1 -0
- package/dist/types/src/operations/update-dialog.d.ts +5 -0
- package/dist/types/src/operations/update-dialog.d.ts.map +1 -0
- package/dist/types/src/operations/update-popover.d.ts +5 -0
- package/dist/types/src/operations/update-popover.d.ts.map +1 -0
- package/dist/types/src/operations/update-sidebar.d.ts +5 -0
- package/dist/types/src/operations/update-sidebar.d.ts.map +1 -0
- package/dist/types/src/translations.d.ts +26 -20
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/capabilities.d.ts +10 -2
- package/dist/types/src/types/capabilities.d.ts.map +1 -1
- package/dist/types/src/types/events.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +49 -30
- package/src/SimpleLayoutPlugin.ts +18 -7
- package/src/capabilities/app-graph-builder.ts +21 -0
- package/src/capabilities/index.ts +13 -6
- package/src/capabilities/operation-handler.ts +14 -0
- package/src/capabilities/{react-root/react-root.tsx → react-root.tsx} +2 -2
- package/src/capabilities/{react-surface/react-surface.tsx → react-surface.tsx} +17 -8
- package/src/capabilities/{state/state.tsx → state.tsx} +2 -2
- package/src/capabilities/url-handler.ts +161 -0
- package/src/components/ContentError.stories.tsx +8 -7
- package/src/components/DebugOverlay/DebugOverlay.tsx +96 -0
- package/src/components/DebugOverlay/index.ts +5 -0
- package/src/components/Dialog/Dialog.tsx +15 -4
- package/src/components/Home/Home.tsx +38 -32
- package/src/components/{ContentLoading.stories.tsx → Loading/Loading.stories.tsx} +4 -4
- package/src/components/{ContentLoading.tsx → Loading/Loading.tsx} +2 -2
- package/src/components/Loading/index.ts +5 -0
- package/src/components/MobileLayout/MobileLayout.stories.tsx +38 -30
- package/src/components/MobileLayout/MobileLayout.tsx +118 -49
- package/src/components/{Workspace/Workspace.tsx → NavBranch/NavBranch.tsx} +44 -39
- package/src/components/{Workspace → NavBranch}/index.ts +1 -1
- package/src/components/Popover/Popover.tsx +12 -8
- package/src/components/SimpleLayout/AppBar.stories.tsx +12 -12
- package/src/components/SimpleLayout/AppBar.tsx +56 -63
- package/src/components/SimpleLayout/Drawer.tsx +38 -36
- package/src/components/SimpleLayout/Main.tsx +22 -25
- package/src/components/SimpleLayout/NavBar.stories.tsx +9 -9
- package/src/components/SimpleLayout/NavBar.tsx +10 -17
- package/src/components/SimpleLayout/SimpleLayout.stories.tsx +46 -69
- package/src/components/SimpleLayout/SimpleLayout.tsx +33 -34
- package/src/components/hooks.ts +8 -8
- package/src/components/index.ts +3 -2
- package/src/hooks/actions.ts +17 -18
- package/src/hooks/useAppBarProps.ts +14 -31
- package/src/hooks/useCompanions.ts +1 -1
- package/src/hooks/useDrawerActions.ts +15 -13
- package/src/hooks/useNavbarActions.ts +13 -12
- package/src/hooks/useSimpleLayoutState.ts +1 -1
- package/src/index.ts +7 -1
- package/src/meta.ts +2 -1
- package/src/operations/close.ts +34 -0
- package/src/operations/index.ts +16 -0
- package/src/operations/open.ts +63 -0
- package/src/operations/revert-workspace.ts +22 -0
- package/src/operations/set-layout-mode.ts +12 -0
- package/src/operations/set.ts +23 -0
- package/src/operations/state-access.ts +19 -0
- package/src/operations/switch-workspace.ts +26 -0
- package/src/operations/update-complementary.ts +35 -0
- package/src/operations/update-dialog.ts +28 -0
- package/src/operations/update-popover.ts +35 -0
- package/src/operations/update-sidebar.ts +12 -0
- package/src/translations.ts +21 -19
- package/src/types/capabilities.ts +4 -4
- package/src/types/events.ts +1 -1
- package/dist/lib/browser/chunk-7VLT3S46.mjs +0 -29
- package/dist/lib/browser/chunk-7VLT3S46.mjs.map +0 -7
- package/dist/lib/browser/chunk-O3BQBYMW.mjs +0 -1165
- package/dist/lib/browser/chunk-O3BQBYMW.mjs.map +0 -7
- package/dist/lib/browser/operation-resolver-BYRIQOQT.mjs +0 -205
- package/dist/lib/browser/operation-resolver-BYRIQOQT.mjs.map +0 -7
- package/dist/lib/browser/react-root-GPTKI5H2.mjs +0 -21
- package/dist/lib/browser/react-root-GPTKI5H2.mjs.map +0 -7
- package/dist/lib/browser/react-surface-LT5JJTPR.mjs +0 -41
- package/dist/lib/browser/react-surface-LT5JJTPR.mjs.map +0 -7
- package/dist/lib/browser/spotlight-dismiss-67PHYS5B.mjs +0 -66
- package/dist/lib/browser/spotlight-dismiss-67PHYS5B.mjs.map +0 -7
- package/dist/lib/browser/state-A3PGDWWZ.mjs +0 -48
- package/dist/lib/browser/state-A3PGDWWZ.mjs.map +0 -7
- package/dist/lib/browser/url-handler-HTIUY6WL.mjs +0 -152
- package/dist/lib/browser/url-handler-HTIUY6WL.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-UAWM4B2S.mjs +0 -1166
- package/dist/lib/node-esm/chunk-UAWM4B2S.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-VIDE5UMB.mjs +0 -31
- package/dist/lib/node-esm/chunk-VIDE5UMB.mjs.map +0 -7
- package/dist/lib/node-esm/operation-resolver-BDTFNCS2.mjs +0 -206
- package/dist/lib/node-esm/operation-resolver-BDTFNCS2.mjs.map +0 -7
- package/dist/lib/node-esm/react-root-GRG2OAI2.mjs +0 -22
- package/dist/lib/node-esm/react-root-GRG2OAI2.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-TCUSDIN2.mjs +0 -42
- package/dist/lib/node-esm/react-surface-TCUSDIN2.mjs.map +0 -7
- package/dist/lib/node-esm/spotlight-dismiss-RMLRZUVY.mjs +0 -68
- package/dist/lib/node-esm/spotlight-dismiss-RMLRZUVY.mjs.map +0 -7
- package/dist/lib/node-esm/state-ZCFZTTPL.mjs +0 -49
- package/dist/lib/node-esm/state-ZCFZTTPL.mjs.map +0 -7
- package/dist/lib/node-esm/url-handler-WBVVKVPC.mjs +0 -153
- package/dist/lib/node-esm/url-handler-WBVVKVPC.mjs.map +0 -7
- package/dist/types/src/capabilities/operation-resolver/index.d.ts +0 -3
- package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +0 -5
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-root/index.d.ts +0 -6
- package/dist/types/src/capabilities/react-root/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-root/react-root.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-surface/index.d.ts +0 -3
- package/dist/types/src/capabilities/react-surface/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts +0 -5
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +0 -1
- package/dist/types/src/capabilities/spotlight-dismiss/index.d.ts +0 -3
- package/dist/types/src/capabilities/spotlight-dismiss/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/spotlight-dismiss/spotlight-dismiss.d.ts.map +0 -1
- package/dist/types/src/capabilities/state/index.d.ts +0 -13
- package/dist/types/src/capabilities/state/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/state/state.d.ts.map +0 -1
- package/dist/types/src/capabilities/url-handler/index.d.ts +0 -3
- package/dist/types/src/capabilities/url-handler/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/url-handler/url-handler.d.ts +0 -12
- package/dist/types/src/capabilities/url-handler/url-handler.d.ts.map +0 -1
- package/dist/types/src/components/ContentError.d.ts +0 -5
- package/dist/types/src/components/ContentError.d.ts.map +0 -1
- package/dist/types/src/components/ContentLoading.d.ts +0 -3
- package/dist/types/src/components/ContentLoading.d.ts.map +0 -1
- package/dist/types/src/components/ContentLoading.stories.d.ts.map +0 -1
- package/dist/types/src/components/Workspace/Workspace.d.ts +0 -11
- package/dist/types/src/components/Workspace/Workspace.d.ts.map +0 -1
- package/dist/types/src/components/Workspace/index.d.ts +0 -2
- package/dist/types/src/components/Workspace/index.d.ts.map +0 -1
- package/src/capabilities/operation-resolver/index.ts +0 -10
- package/src/capabilities/operation-resolver/operation-resolver.ts +0 -217
- package/src/capabilities/react-root/index.ts +0 -7
- package/src/capabilities/react-surface/index.ts +0 -7
- package/src/capabilities/spotlight-dismiss/index.ts +0 -7
- package/src/capabilities/state/index.ts +0 -9
- package/src/capabilities/url-handler/index.ts +0 -7
- package/src/capabilities/url-handler/url-handler.ts +0 -157
- package/src/components/ContentError.tsx +0 -23
- /package/src/capabilities/{spotlight-dismiss/spotlight-dismiss.ts → spotlight-dismiss.ts} +0 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React, { type PropsWithChildren } from 'react';
|
|
2
|
+
type DebugOverlayContextValue = {
|
|
3
|
+
/** Log a timestamped message to the on-screen debug overlay. */
|
|
4
|
+
dbg: (msg: string) => void;
|
|
5
|
+
};
|
|
6
|
+
declare const useDebugLog: (consumerName: string) => DebugOverlayContextValue;
|
|
7
|
+
type DebugOverlayRootProps = PropsWithChildren<{
|
|
8
|
+
/**
|
|
9
|
+
* When true (default), renders the on-screen log panel.
|
|
10
|
+
* Set to false to suppress the overlay while keeping the context available.
|
|
11
|
+
*/
|
|
12
|
+
enabled?: boolean;
|
|
13
|
+
maxLines?: number;
|
|
14
|
+
}>;
|
|
15
|
+
export declare const DebugOverlay: {
|
|
16
|
+
Root: ({ children, enabled, maxLines }: DebugOverlayRootProps) => React.JSX.Element;
|
|
17
|
+
};
|
|
18
|
+
export { useDebugLog };
|
|
19
|
+
//# sourceMappingURL=DebugOverlay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DebugOverlay.d.ts","sourceRoot":"","sources":["../../../../../src/components/DebugOverlay/DebugOverlay.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAuB,MAAM,OAAO,CAAC;AAQ3E,KAAK,wBAAwB,GAAG;IAC9B,gEAAgE;IAChE,GAAG,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CAC5B,CAAC;AAGF,QAAA,MAA6B,WAAW,oDAEtC,CAAC;AAMH,KAAK,qBAAqB,GAAG,iBAAiB,CAAC;IAC7C;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC,CAAC;AAyDH,eAAO,MAAM,YAAY;IACvB,IAAI,oCA9CiE,qBAAqB;CA+C3F,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/DebugOverlay/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../../src/components/Dialog/Dialog.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../../src/components/Dialog/Dialog.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,eAAO,MAAM,MAAM,yBAmClB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Home.d.ts","sourceRoot":"","sources":["../../../../../src/components/Home/Home.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAkD,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Home.d.ts","sourceRoot":"","sources":["../../../../../src/components/Home/Home.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAiBvE,MAAM,MAAM,SAAS,GAAG,EAAE,CAAC;AAE3B;;GAEG;AACH,eAAO,MAAM,IAAI,MAAO,SAAS,sBAoChC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Loading.d.ts","sourceRoot":"","sources":["../../../../../src/components/Loading/Loading.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,eAAO,MAAM,OAAO,yBAEnB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Loading.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Loading/Loading.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAMjE,QAAA,MAAM,IAAI;;;;;QAKN,MAAM;;CAEsB,CAAC;eAElB,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Loading/index.ts"],"names":[],"mappings":"AAIA,cAAc,WAAW,CAAC"}
|
|
@@ -15,13 +15,13 @@ type MobileLayoutPanelProps = ThemedClassName<PropsWithChildren<{
|
|
|
15
15
|
};
|
|
16
16
|
}>>;
|
|
17
17
|
export declare const MobileLayout: {
|
|
18
|
-
Root: React.ForwardRefExoticComponent<Omit<
|
|
18
|
+
Root: React.ForwardRefExoticComponent<Omit<PropsWithChildren<{
|
|
19
19
|
transition?: number;
|
|
20
20
|
onKeyboardOpenChange?: (nextState: boolean) => void;
|
|
21
21
|
}>, "className"> & {
|
|
22
22
|
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
23
23
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
24
|
-
Panel: React.ForwardRefExoticComponent<Omit<
|
|
24
|
+
Panel: React.ForwardRefExoticComponent<Omit<PropsWithChildren<{
|
|
25
25
|
safe?: {
|
|
26
26
|
top: boolean;
|
|
27
27
|
bottom: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MobileLayout.d.ts","sourceRoot":"","sources":["../../../../../src/components/MobileLayout/MobileLayout.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,
|
|
1
|
+
{"version":3,"file":"MobileLayout.d.ts","sourceRoot":"","sources":["../../../../../src/components/MobileLayout/MobileLayout.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAoD,MAAM,OAAO,CAAC;AAIxG,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;AA2CF,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;IACvB,IAAI;qBApFW,MAAM;+BACI,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI;;;;IAoFrD,KAAK;eArCI;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"}
|
|
@@ -1 +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;
|
|
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;AA2G1E,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,qBAAqB,CAQrC,CAAC;eAEa,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,qBAAqB,CAAC,CAAC;AAE7C,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type NavBranchProps = {
|
|
3
|
+
id: string;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* Renders the children of a graph branch node as a searchable mosaic list.
|
|
7
|
+
* Used for any node with `role: 'branch'` or a workspace disposition, including
|
|
8
|
+
* spaces, collection sections, type sections, and schema nodes.
|
|
9
|
+
*/
|
|
10
|
+
export declare const NavBranch: ({ id }: NavBranchProps) => React.JSX.Element;
|
|
11
|
+
//# sourceMappingURL=NavBranch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NavBranch.d.ts","sourceRoot":"","sources":["../../../../../src/components/NavBranch/NavBranch.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAgBvE,MAAM,MAAM,cAAc,GAAG;IAC3B,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,SAAS,WAAY,cAAc,sBAmC/C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/NavBranch/index.ts"],"names":[],"mappings":"AAIA,cAAc,aAAa,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;
|
|
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,iBAAkB,iBAAiB,sBA+B1D,CAAC;AAEF,eAAO,MAAM,cAAc,yBAmE1B,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { type Atom } from '@effect-atom/atom-react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { type ThemedClassName } from '@dxos/react-ui';
|
|
4
3
|
import { type ActionExecutor, type ActionGraphProps } from '@dxos/react-ui-menu';
|
|
5
|
-
export type AppBarProps =
|
|
4
|
+
export type AppBarProps = {
|
|
6
5
|
/** Title/label to display in the banner. */
|
|
7
6
|
title?: string;
|
|
8
7
|
/** Action graph atom for the dropdown menu. */
|
|
@@ -15,12 +14,11 @@ export type AppBarProps = ThemedClassName<{
|
|
|
15
14
|
onAction?: ActionExecutor;
|
|
16
15
|
/** Callback when back button is clicked. */
|
|
17
16
|
onBack?: () => void;
|
|
18
|
-
}
|
|
17
|
+
};
|
|
19
18
|
/**
|
|
20
19
|
* AppBar component that renders a title, optional back button, and actions dropdown.
|
|
21
20
|
*/
|
|
22
|
-
export declare const AppBar: {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
};
|
|
21
|
+
export declare const AppBar: React.ForwardRefExoticComponent<Omit<AppBarProps, "className"> & {
|
|
22
|
+
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
23
|
+
} & Pick<React.HTMLAttributes<Element>, "children" | "className" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
|
|
26
24
|
//# sourceMappingURL=AppBar.d.ts.map
|
|
@@ -1 +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;
|
|
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;AAGxC,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,gBAAgB,EAAwB,MAAM,qBAAqB,CAAC;AASvG,MAAM,MAAM,WAAW,GAAG;IACxB,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;AAEF;;GAEG;AACH,eAAO,MAAM,MAAM;;2HAwDlB,CAAC"}
|
|
@@ -2,43 +2,50 @@ import { type StoryObj } from '@storybook/react-vite';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { type ActionGraphProps } from '@dxos/react-ui-menu';
|
|
4
4
|
import { type AppBarProps } from './AppBar';
|
|
5
|
-
type
|
|
5
|
+
type DefaultStoryProps = Omit<AppBarProps, 'actions'> & {
|
|
6
6
|
actions: ActionGraphProps;
|
|
7
7
|
};
|
|
8
8
|
declare const meta: {
|
|
9
9
|
title: string;
|
|
10
|
-
render: ({ actions: actionsProp, ...props }:
|
|
10
|
+
render: ({ actions: actionsProp, ...props }: DefaultStoryProps) => React.JSX.Element;
|
|
11
11
|
decorators: import("@storybook/react").Decorator[];
|
|
12
12
|
parameters: {
|
|
13
13
|
layout: string;
|
|
14
14
|
translations: [{
|
|
15
15
|
readonly 'en-US': {
|
|
16
|
-
readonly
|
|
17
|
-
readonly '
|
|
18
|
-
readonly '
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
readonly '
|
|
25
|
-
readonly '
|
|
26
|
-
readonly '
|
|
27
|
-
readonly '
|
|
28
|
-
readonly '
|
|
29
|
-
readonly '
|
|
30
|
-
readonly '
|
|
31
|
-
readonly '
|
|
32
|
-
readonly '
|
|
33
|
-
readonly '
|
|
34
|
-
readonly '
|
|
16
|
+
readonly "@dxos/react-ui-search": {
|
|
17
|
+
readonly 'search.placeholder': 'Search...';
|
|
18
|
+
readonly 'empty-results.message': 'No matching objects';
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
}, {
|
|
22
|
+
readonly 'en-US': {
|
|
23
|
+
readonly [x: string]: {
|
|
24
|
+
readonly 'plugin.name': 'Simple layout';
|
|
25
|
+
readonly 'settings.title': 'Simple layout settings';
|
|
26
|
+
readonly 'workspaces.heading': 'Workspaces';
|
|
27
|
+
readonly 'settings.heading': 'Settings';
|
|
28
|
+
readonly 'back.label': 'Back';
|
|
29
|
+
readonly 'browse.label': 'Browse';
|
|
30
|
+
readonly 'notifications.label': 'Notifications';
|
|
31
|
+
readonly 'profile.label': 'Profile';
|
|
32
|
+
readonly 'app-menu.label': 'App menu';
|
|
33
|
+
readonly 'main-menu.label': 'Main menu';
|
|
34
|
+
readonly 'companions-menu.label': 'Companions';
|
|
35
|
+
readonly 'error-fallback.message': 'An error occurred';
|
|
36
|
+
readonly 'drawer.label': 'Drawer';
|
|
37
|
+
readonly 'close-drawer.label': 'Close drawer';
|
|
38
|
+
readonly 'expand-drawer.label': 'Expand drawer';
|
|
39
|
+
readonly 'collapse-drawer.label': 'Collapse drawer';
|
|
40
|
+
readonly 'actions-menu.label': 'Actions';
|
|
41
|
+
readonly 'done.label': 'Done';
|
|
35
42
|
};
|
|
36
43
|
};
|
|
37
44
|
}];
|
|
38
45
|
};
|
|
39
46
|
};
|
|
40
47
|
export default meta;
|
|
41
|
-
type Story = StoryObj<
|
|
48
|
+
type Story = StoryObj<DefaultStoryProps>;
|
|
42
49
|
export declare const Default: Story;
|
|
43
50
|
export declare const NoBackButton: Story;
|
|
44
51
|
export declare const LongTitle: Story;
|
|
@@ -1 +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;
|
|
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;AAGvC,OAAO,EAAE,KAAK,gBAAgB,EAAoB,MAAM,qBAAqB,CAAC;AAO9E,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAyBpD,KAAK,iBAAiB,GAAG,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC,GAAG;IACtD,OAAO,EAAE,gBAAgB,CAAC;CAC3B,CAAC;AAWF,QAAA,MAAM,IAAI;;iDATgD,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwBtC,CAAC;eAEvB,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,iBAAiB,CAAC,CAAC;AAEzC,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"}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
(): React.JSX.Element;
|
|
7
|
-
displayName: string;
|
|
8
|
-
};
|
|
2
|
+
export declare function Drawer(): React.JSX.Element;
|
|
3
|
+
export declare namespace Drawer {
|
|
4
|
+
var displayName: string;
|
|
5
|
+
}
|
|
9
6
|
//# 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,KAAkB,MAAM,OAAO,CAAC
|
|
1
|
+
{"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../../../src/components/SimpleLayout/Drawer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAkB,MAAM,OAAO,CAAC"}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
(): React.JSX.Element;
|
|
7
|
-
displayName: string;
|
|
8
|
-
};
|
|
2
|
+
export declare function Main(): React.JSX.Element;
|
|
3
|
+
export declare namespace Main {
|
|
4
|
+
var displayName: string;
|
|
5
|
+
}
|
|
9
6
|
//# sourceMappingURL=Main.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Main.d.ts","sourceRoot":"","sources":["../../../../../src/components/SimpleLayout/Main.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAkB,MAAM,OAAO,CAAC
|
|
1
|
+
{"version":3,"file":"Main.d.ts","sourceRoot":"","sources":["../../../../../src/components/SimpleLayout/Main.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAkB,MAAM,OAAO,CAAC"}
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
import { type Atom } from '@effect-atom/atom-react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { type ThemedClassName } from '@dxos/react-ui';
|
|
4
3
|
import { type ActionExecutor, type ActionGraphProps } from '@dxos/react-ui-menu';
|
|
5
|
-
export type NavBarProps =
|
|
4
|
+
export type NavBarProps = {
|
|
6
5
|
/** Action graph atom for the toolbar. */
|
|
7
6
|
actions: Atom.Atom<ActionGraphProps>;
|
|
8
7
|
/** Action executor callback. */
|
|
9
8
|
onAction?: ActionExecutor;
|
|
10
|
-
}
|
|
9
|
+
};
|
|
11
10
|
/**
|
|
12
11
|
* Presentational navbar component that renders a toolbar from an action graph.
|
|
13
12
|
*/
|
|
14
|
-
export declare const NavBar: {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
};
|
|
13
|
+
export declare const NavBar: React.ForwardRefExoticComponent<Omit<NavBarProps, "className"> & {
|
|
14
|
+
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
15
|
+
} & Pick<React.HTMLAttributes<Element>, "children" | "className" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
|
|
18
16
|
//# 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,EAAE,KAAK,IAAI,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,
|
|
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,cAAc,EAAE,KAAK,gBAAgB,EAAwB,MAAM,qBAAqB,CAAC;AAKvG,MAAM,MAAM,WAAW,GAAG;IACxB,yCAAyC;IACzC,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;IACrC,gCAAgC;IAChC,QAAQ,CAAC,EAAE,cAAc,CAAC;CAC3B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,MAAM;;2HAQjB,CAAC"}
|
|
@@ -2,34 +2,40 @@ import { type StoryObj } from '@storybook/react-vite';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
};
|
|
5
|
+
component: React.ForwardRefExoticComponent<Omit<import("./NavBar").NavBarProps, "className"> & {
|
|
6
|
+
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
7
|
+
} & Pick<React.HTMLAttributes<Element>, "children" | "className" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
8
|
decorators: import("@storybook/react").Decorator[];
|
|
10
9
|
parameters: {
|
|
11
10
|
layout: string;
|
|
12
11
|
translations: [{
|
|
13
12
|
readonly 'en-US': {
|
|
14
|
-
readonly
|
|
15
|
-
readonly '
|
|
16
|
-
readonly '
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
readonly '
|
|
23
|
-
readonly '
|
|
24
|
-
readonly '
|
|
25
|
-
readonly '
|
|
26
|
-
readonly '
|
|
27
|
-
readonly '
|
|
28
|
-
readonly '
|
|
29
|
-
readonly '
|
|
30
|
-
readonly '
|
|
31
|
-
readonly '
|
|
32
|
-
readonly '
|
|
13
|
+
readonly "@dxos/react-ui-search": {
|
|
14
|
+
readonly 'search.placeholder': 'Search...';
|
|
15
|
+
readonly 'empty-results.message': 'No matching objects';
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
}, {
|
|
19
|
+
readonly 'en-US': {
|
|
20
|
+
readonly [x: string]: {
|
|
21
|
+
readonly 'plugin.name': 'Simple layout';
|
|
22
|
+
readonly 'settings.title': 'Simple layout settings';
|
|
23
|
+
readonly 'workspaces.heading': 'Workspaces';
|
|
24
|
+
readonly 'settings.heading': 'Settings';
|
|
25
|
+
readonly 'back.label': 'Back';
|
|
26
|
+
readonly 'browse.label': 'Browse';
|
|
27
|
+
readonly 'notifications.label': 'Notifications';
|
|
28
|
+
readonly 'profile.label': 'Profile';
|
|
29
|
+
readonly 'app-menu.label': 'App menu';
|
|
30
|
+
readonly 'main-menu.label': 'Main menu';
|
|
31
|
+
readonly 'companions-menu.label': 'Companions';
|
|
32
|
+
readonly 'error-fallback.message': 'An error occurred';
|
|
33
|
+
readonly 'drawer.label': 'Drawer';
|
|
34
|
+
readonly 'close-drawer.label': 'Close drawer';
|
|
35
|
+
readonly 'expand-drawer.label': 'Expand drawer';
|
|
36
|
+
readonly 'collapse-drawer.label': 'Collapse drawer';
|
|
37
|
+
readonly 'actions-menu.label': 'Actions';
|
|
38
|
+
readonly 'done.label': 'Done';
|
|
33
39
|
};
|
|
34
40
|
};
|
|
35
41
|
}];
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQqB,CAAC;eAEjB,IAAI;AAEnB,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SimpleLayout.d.ts","sourceRoot":"","sources":["../../../../../src/components/SimpleLayout/SimpleLayout.tsx"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"SimpleLayout.d.ts","sourceRoot":"","sources":["../../../../../src/components/SimpleLayout/SimpleLayout.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA4C,MAAM,OAAO,CAAC;AAcjE,eAAO,MAAM,YAAY,yBAuCxB,CAAC"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { type StoryObj } from '@storybook/react-vite';
|
|
2
|
+
/**
|
|
3
|
+
* NOTE: To expose to iphone on network:
|
|
4
|
+
* `moon run storybook-react:serve dev -H 0.0.0.0`
|
|
5
|
+
*/
|
|
2
6
|
declare const meta: {
|
|
3
7
|
title: string;
|
|
4
8
|
component: () => import("react").JSX.Element;
|
|
@@ -6,31 +10,32 @@ declare const meta: {
|
|
|
6
10
|
layout: string;
|
|
7
11
|
translations: ({
|
|
8
12
|
readonly 'en-US': {
|
|
9
|
-
readonly
|
|
10
|
-
readonly '
|
|
11
|
-
readonly '
|
|
12
|
-
readonly 'workspaces heading': "Workspaces";
|
|
13
|
-
readonly 'settings heading': "Settings";
|
|
14
|
-
readonly 'back label': "Back";
|
|
15
|
-
readonly 'browse label': "Browse";
|
|
16
|
-
readonly 'notifications label': "Notifications";
|
|
17
|
-
readonly 'profile label': "Profile";
|
|
18
|
-
readonly 'app menu label': "App menu";
|
|
19
|
-
readonly 'main menu label': "Main menu";
|
|
20
|
-
readonly 'companions menu label': "Companions";
|
|
21
|
-
readonly 'error fallback message': "An error occurred";
|
|
22
|
-
readonly 'search placeholder': "Search...";
|
|
23
|
-
readonly 'drawer label': "Drawer";
|
|
24
|
-
readonly 'close drawer label': "Close drawer";
|
|
25
|
-
readonly 'expand drawer label': "Expand drawer";
|
|
26
|
-
readonly 'collapse drawer label': "Collapse drawer";
|
|
27
|
-
readonly 'actions menu label': "Actions";
|
|
13
|
+
readonly "@dxos/react-ui-search": {
|
|
14
|
+
readonly 'search.placeholder': 'Search...';
|
|
15
|
+
readonly 'empty-results.message': 'No matching objects';
|
|
28
16
|
};
|
|
29
17
|
};
|
|
30
18
|
} | {
|
|
31
19
|
readonly 'en-US': {
|
|
32
|
-
readonly
|
|
33
|
-
readonly
|
|
20
|
+
readonly [x: string]: {
|
|
21
|
+
readonly 'plugin.name': 'Simple layout';
|
|
22
|
+
readonly 'settings.title': 'Simple layout settings';
|
|
23
|
+
readonly 'workspaces.heading': 'Workspaces';
|
|
24
|
+
readonly 'settings.heading': 'Settings';
|
|
25
|
+
readonly 'back.label': 'Back';
|
|
26
|
+
readonly 'browse.label': 'Browse';
|
|
27
|
+
readonly 'notifications.label': 'Notifications';
|
|
28
|
+
readonly 'profile.label': 'Profile';
|
|
29
|
+
readonly 'app-menu.label': 'App menu';
|
|
30
|
+
readonly 'main-menu.label': 'Main menu';
|
|
31
|
+
readonly 'companions-menu.label': 'Companions';
|
|
32
|
+
readonly 'error-fallback.message': 'An error occurred';
|
|
33
|
+
readonly 'drawer.label': 'Drawer';
|
|
34
|
+
readonly 'close-drawer.label': 'Close drawer';
|
|
35
|
+
readonly 'expand-drawer.label': 'Expand drawer';
|
|
36
|
+
readonly 'collapse-drawer.label': 'Collapse drawer';
|
|
37
|
+
readonly 'actions-menu.label': 'Actions';
|
|
38
|
+
readonly 'done.label': 'Done';
|
|
34
39
|
};
|
|
35
40
|
};
|
|
36
41
|
})[];
|
|
@@ -38,10 +43,6 @@ declare const meta: {
|
|
|
38
43
|
};
|
|
39
44
|
export default meta;
|
|
40
45
|
type Story = StoryObj<typeof meta>;
|
|
41
|
-
/**
|
|
42
|
-
* NOTE: To expose to iphone on network:
|
|
43
|
-
* `moon run storybook-react:serve dev -H 0.0.0.0`
|
|
44
|
-
*/
|
|
45
46
|
export declare const Default: Story;
|
|
46
47
|
export declare const Popover: Story;
|
|
47
48
|
//# sourceMappingURL=SimpleLayout.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SimpleLayout.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/SimpleLayout/SimpleLayout.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"SimpleLayout.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/SimpleLayout/SimpleLayout.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AA8DjE;;;GAGG;AACH,QAAA,MAAM,IAAI;;;;QAIN,MAAM;QACN,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEqB,CAAC;eAEvB,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Expand graph nodes along the full path from root to the given node ID.
|
|
3
|
+
* Walks each progressive prefix, ensuring ancestor nodes are materialized
|
|
4
|
+
* before attempting to access their children.
|
|
3
5
|
*/
|
|
4
|
-
export declare const
|
|
6
|
+
export declare const useExpandPath: (nodeId?: string) => void;
|
|
5
7
|
//# sourceMappingURL=hooks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../../src/components/hooks.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../../src/components/hooks.ts"],"names":[],"mappings":"AAUA;;;;GAIG;AACH,eAAO,MAAM,aAAa,YAAa,MAAM,SAU5C,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './DebugOverlay';
|
|
2
2
|
export * from './Home';
|
|
3
|
+
export * from './Loading';
|
|
3
4
|
export * from './MobileLayout';
|
|
4
5
|
export * from './Popover';
|
|
5
6
|
export * from './SimpleLayout';
|
|
6
|
-
export * from './
|
|
7
|
+
export * from './NavBranch';
|
|
7
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC"}
|
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import { type Atom } from '@effect-atom/atom-react';
|
|
2
|
-
import { type Capabilities } from '@dxos/app-framework';
|
|
3
2
|
import { type AppCapabilities } from '@dxos/app-toolkit';
|
|
4
3
|
import { type ActionGraphProps } from '@dxos/react-ui-menu';
|
|
5
|
-
import { type SimpleLayoutState } from '
|
|
6
|
-
export declare const PLANK_COMPANION_TYPE = "dxos.
|
|
4
|
+
import { type SimpleLayoutState } from '#types';
|
|
5
|
+
export declare const PLANK_COMPANION_TYPE = "org.dxos.plugin.deck.plank-companion";
|
|
7
6
|
export type CompanionActionsConfig = {
|
|
8
7
|
/** Prefix for companion action IDs (e.g. 'navbar' or 'drawer') */
|
|
9
8
|
idPrefix: string;
|
|
10
9
|
/** Optional: highlight companion with this variant */
|
|
11
10
|
selectedVariant?: string;
|
|
12
|
-
/**
|
|
13
|
-
|
|
11
|
+
/** State updater for toggling the drawer. */
|
|
12
|
+
updateState: (fn: (state: SimpleLayoutState) => SimpleLayoutState) => void;
|
|
14
13
|
};
|
|
15
14
|
/**
|
|
16
15
|
* Creates action graph nodes and edges for companion actions.
|
|
17
16
|
* Shared logic between useNavbarActions and useDrawerActions.
|
|
18
17
|
*/
|
|
19
|
-
export declare const createCompanionActions: (graph: AppCapabilities.AppGraph[
|
|
18
|
+
export declare const createCompanionActions: (graph: AppCapabilities.AppGraph['graph'], stateAtom: Atom.Atom<SimpleLayoutState>, get: (atom: Atom.Atom<any>) => any, config: CompanionActionsConfig) => Pick<ActionGraphProps, 'nodes' | 'edges'>;
|
|
20
19
|
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../src/hooks/actions.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAGpD,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../src/hooks/actions.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAGpD,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAGzD,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAG5D,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAGhD,eAAO,MAAM,oBAAoB,yCAAyC,CAAC;AAE3E,MAAM,MAAM,sBAAsB,GAAG;IACnC,kEAAkE;IAClE,QAAQ,EAAE,MAAM,CAAC;IACjB,sDAAsD;IACtD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,6CAA6C;IAC7C,WAAW,EAAE,CAAC,EAAE,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,iBAAiB,KAAK,IAAI,CAAC;CAC5E,CAAC;AAEF;;;GAGG;AAEH,eAAO,MAAM,sBAAsB,UAC1B,eAAe,CAAC,QAAQ,CAAC,OAAO,CAAC,aAC7B,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC,OAClC,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,GAAG,UAC1B,sBAAsB,KAC7B,IAAI,CAAC,gBAAgB,EAAE,OAAO,GAAG,OAAO,CA8C1C,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { type AppBarProps } from '
|
|
1
|
+
import { type AppBarProps } from '#components';
|
|
2
2
|
/**
|
|
3
3
|
* Hook that computes all AppBar props from the app graph.
|
|
4
4
|
* Derives activeId from state atom. Returns props ready to spread into the AppBar component.
|
|
5
5
|
*/
|
|
6
|
-
export declare const useAppBarProps: () => Omit<AppBarProps,
|
|
6
|
+
export declare const useAppBarProps: () => Omit<AppBarProps, 'classNames'>;
|
|
7
7
|
//# sourceMappingURL=useAppBarProps.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAppBarProps.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useAppBarProps.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useAppBarProps.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useAppBarProps.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;AAI/C;;;GAGG;AACH,eAAO,MAAM,cAAc,QAAO,IAAI,CAAC,WAAW,EAAE,YAAY,CAuE/D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCompanions.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useCompanions.ts"],"names":[],"mappings":"AAYA;;;GAGG;AACH,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"useCompanions.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useCompanions.ts"],"names":[],"mappings":"AAYA;;;GAGG;AACH,eAAO,MAAM,aAAa,YAAa,MAAM;;;;;;IAK5C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDrawerActions.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useDrawerActions.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAQ/C,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,gBAAgB,EAAsB,MAAM,qBAAqB,CAAC;AASrG,MAAM,MAAM,aAAa,GAAG;IAC1B,wCAAwC;IACxC,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;IACrC,gCAAgC;IAChC,QAAQ,EAAE,cAAc,CAAC;CAC1B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"useDrawerActions.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useDrawerActions.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAQ/C,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,gBAAgB,EAAsB,MAAM,qBAAqB,CAAC;AASrG,MAAM,MAAM,aAAa,GAAG;IAC1B,wCAAwC;IACxC,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;IACrC,gCAAgC;IAChC,QAAQ,EAAE,cAAc,CAAC;CAC1B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,iBAAkB,MAAM,KAAG,aAoEvD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useNavbarActions.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useNavbarActions.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAO/C,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,gBAAgB,EAGtB,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"useNavbarActions.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useNavbarActions.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAO/C,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,gBAAgB,EAGtB,MAAM,qBAAqB,CAAC;AAU7B,MAAM,MAAM,aAAa,GAAG;IAC1B,wCAAwC;IACxC,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;IACrC,gCAAgC;IAChC,QAAQ,EAAE,cAAc,CAAC;CAC1B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,QAAO,aAiDnC,CAAC"}
|