@dxos/plugin-simple-layout 0.8.4-main.9be5663bfe → 0.8.4-main.abd8ff62ef
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 +17 -75
- 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 +17 -75
- 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 +1 -0
- package/dist/types/src/SimpleLayoutPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +2 -2
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/operation-handler.d.ts +1 -1
- package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-root.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/capabilities/spotlight-dismiss.d.ts +1 -1
- package/dist/types/src/capabilities/spotlight-dismiss.d.ts.map +1 -1
- package/dist/types/src/capabilities/state.d.ts.map +1 -1
- package/dist/types/src/capabilities/url-handler.d.ts.map +1 -1
- package/dist/types/src/components/ContentError.stories.d.ts +21 -21
- package/dist/types/src/components/ContentError.stories.d.ts.map +1 -1
- package/dist/types/src/components/DebugOverlay/DebugOverlay.d.ts.map +1 -1
- 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.stories.d.ts.map +1 -1
- 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.map +1 -1
- package/dist/types/src/components/Popover/Popover.d.ts.map +1 -1
- package/dist/types/src/components/SimpleLayout/AppBar.d.ts +1 -1
- package/dist/types/src/components/SimpleLayout/AppBar.stories.d.ts +21 -21
- 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 +1 -1
- package/dist/types/src/components/SimpleLayout/NavBar.stories.d.ts +22 -22
- package/dist/types/src/components/SimpleLayout/NavBar.stories.d.ts.map +1 -1
- package/dist/types/src/components/SimpleLayout/SimpleLayout.stories.d.ts +21 -21
- package/dist/types/src/components/SimpleLayout/SimpleLayout.stories.d.ts.map +1 -1
- package/dist/types/src/components/hooks.d.ts.map +1 -1
- package/dist/types/src/hooks/actions.d.ts +1 -1
- package/dist/types/src/hooks/actions.d.ts.map +1 -1
- package/dist/types/src/hooks/useAppBarProps.d.ts +1 -1
- 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/index.d.ts +3 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/operations/close.d.ts +1 -1
- package/dist/types/src/operations/close.d.ts.map +1 -1
- package/dist/types/src/operations/index.d.ts +1 -1
- package/dist/types/src/operations/index.d.ts.map +1 -1
- package/dist/types/src/operations/open.d.ts +1 -1
- package/dist/types/src/operations/open.d.ts.map +1 -1
- package/dist/types/src/operations/revert-workspace.d.ts +1 -1
- package/dist/types/src/operations/revert-workspace.d.ts.map +1 -1
- package/dist/types/src/operations/set-layout-mode.d.ts +1 -1
- package/dist/types/src/operations/set-layout-mode.d.ts.map +1 -1
- package/dist/types/src/operations/set.d.ts +1 -1
- package/dist/types/src/operations/set.d.ts.map +1 -1
- package/dist/types/src/operations/switch-workspace.d.ts +1 -1
- package/dist/types/src/operations/switch-workspace.d.ts.map +1 -1
- package/dist/types/src/operations/update-complementary.d.ts +1 -1
- package/dist/types/src/operations/update-complementary.d.ts.map +1 -1
- package/dist/types/src/operations/update-dialog.d.ts +1 -1
- package/dist/types/src/operations/update-dialog.d.ts.map +1 -1
- package/dist/types/src/operations/update-popover.d.ts +1 -1
- package/dist/types/src/operations/update-popover.d.ts.map +1 -1
- package/dist/types/src/operations/update-sidebar.d.ts +1 -1
- package/dist/types/src/operations/update-sidebar.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +21 -22
- package/dist/types/src/translations.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 +38 -30
- package/src/SimpleLayoutPlugin.ts +4 -3
- package/src/capabilities/app-graph-builder.ts +1 -1
- package/src/capabilities/index.ts +1 -1
- package/src/capabilities/operation-handler.ts +1 -1
- package/src/capabilities/react-surface.tsx +1 -1
- package/src/components/ContentError.stories.tsx +1 -1
- package/src/components/Dialog/Dialog.tsx +13 -2
- package/src/components/MobileLayout/MobileLayout.stories.tsx +2 -2
- package/src/components/NavBranch/NavBranch.tsx +1 -5
- package/src/components/Popover/Popover.tsx +6 -3
- package/src/components/SimpleLayout/AppBar.stories.tsx +2 -1
- package/src/components/SimpleLayout/Drawer.tsx +8 -2
- package/src/components/SimpleLayout/Main.tsx +2 -2
- package/src/components/SimpleLayout/NavBar.stories.tsx +2 -1
- package/src/components/SimpleLayout/SimpleLayout.stories.tsx +3 -3
- package/src/hooks/useAppBarProps.ts +0 -20
- package/src/index.ts +7 -1
- package/src/meta.ts +1 -1
- package/src/operations/close.ts +1 -1
- package/src/operations/index.ts +1 -1
- package/src/operations/open.ts +1 -1
- package/src/operations/revert-workspace.ts +1 -1
- package/src/operations/set-layout-mode.ts +1 -1
- package/src/operations/set.ts +1 -1
- package/src/operations/switch-workspace.ts +1 -1
- package/src/operations/update-complementary.ts +1 -1
- package/src/operations/update-dialog.ts +1 -1
- package/src/operations/update-popover.ts +1 -1
- package/src/operations/update-sidebar.ts +1 -1
- package/src/translations.ts +1 -1
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// src/SimpleLayoutPlugin.ts
|
|
2
|
+
import { ActivationEvent, ActivationEvents, Capability, Plugin } from "@dxos/app-framework";
|
|
3
|
+
import { AppActivationEvents, AppPlugin } from "@dxos/app-toolkit";
|
|
4
|
+
import { AppGraphBuilder, OperationHandler, ReactRoot, ReactSurface, SpotlightDismiss, State, UrlHandler } from "#capabilities";
|
|
5
|
+
import { meta } from "#meta";
|
|
6
|
+
import { translations } from "#translations";
|
|
7
|
+
import { SimpleLayoutEvents } from "#types";
|
|
8
|
+
var SimpleLayoutPlugin = Plugin.define(meta).pipe(AppPlugin.addAppGraphModule({
|
|
9
|
+
activate: AppGraphBuilder
|
|
10
|
+
}), AppPlugin.addOperationHandlerModule({
|
|
11
|
+
activate: OperationHandler
|
|
12
|
+
}), AppPlugin.addTranslationsModule({
|
|
13
|
+
translations
|
|
14
|
+
}), Plugin.addModule(({ isPopover = false }) => ({
|
|
15
|
+
id: Capability.getModuleTag(State),
|
|
16
|
+
activatesOn: ActivationEvents.Startup,
|
|
17
|
+
firesAfterActivation: [
|
|
18
|
+
SimpleLayoutEvents.StateReady,
|
|
19
|
+
AppActivationEvents.LayoutReady
|
|
20
|
+
],
|
|
21
|
+
activate: () => State({
|
|
22
|
+
initialState: {
|
|
23
|
+
isPopover
|
|
24
|
+
}
|
|
25
|
+
})
|
|
26
|
+
})), Plugin.addModule(({ isPopover = false }) => ({
|
|
27
|
+
id: Capability.getModuleTag(SpotlightDismiss),
|
|
28
|
+
activatesOn: ActivationEvents.Startup,
|
|
29
|
+
activate: () => SpotlightDismiss({
|
|
30
|
+
isPopover
|
|
31
|
+
})
|
|
32
|
+
})), Plugin.addModule({
|
|
33
|
+
id: Capability.getModuleTag(ReactRoot),
|
|
34
|
+
activatesOn: ActivationEvents.Startup,
|
|
35
|
+
activate: ReactRoot
|
|
36
|
+
}), Plugin.addModule({
|
|
37
|
+
id: Capability.getModuleTag(ReactSurface),
|
|
38
|
+
activatesOn: ActivationEvents.Startup,
|
|
39
|
+
activate: ReactSurface
|
|
40
|
+
}), Plugin.addModule({
|
|
41
|
+
id: Capability.getModuleTag(UrlHandler),
|
|
42
|
+
activatesOn: ActivationEvent.allOf(ActivationEvents.OperationInvokerReady, SimpleLayoutEvents.StateReady),
|
|
43
|
+
activate: UrlHandler
|
|
44
|
+
}), Plugin.make);
|
|
45
|
+
var SimpleLayoutPlugin_default = SimpleLayoutPlugin;
|
|
46
|
+
export {
|
|
47
|
+
SimpleLayoutPlugin,
|
|
48
|
+
SimpleLayoutPlugin_default as default
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=SimpleLayoutPlugin-Q5BZE6KD.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/SimpleLayoutPlugin.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { ActivationEvent, ActivationEvents, Capability, Plugin } from '@dxos/app-framework';\nimport { AppActivationEvents, AppPlugin } from '@dxos/app-toolkit';\n\nimport {\n AppGraphBuilder,\n OperationHandler,\n ReactRoot,\n ReactSurface,\n SpotlightDismiss,\n State,\n UrlHandler,\n} from '#capabilities';\nimport { meta } from '#meta';\nimport { translations } from '#translations';\nimport { SimpleLayoutEvents } from '#types';\n\nexport type SimpleLayoutPluginOptions = {\n /** Determines if running in popover window context (hides mobile-specific UI). */\n isPopover?: boolean;\n};\n\nexport const SimpleLayoutPlugin = Plugin.define<SimpleLayoutPluginOptions>(meta).pipe(\n AppPlugin.addAppGraphModule({ activate: AppGraphBuilder }),\n AppPlugin.addOperationHandlerModule({ activate: OperationHandler }),\n AppPlugin.addTranslationsModule({ translations }),\n Plugin.addModule(({ isPopover = false }) => ({\n id: Capability.getModuleTag(State),\n activatesOn: ActivationEvents.Startup,\n firesAfterActivation: [SimpleLayoutEvents.StateReady, AppActivationEvents.LayoutReady],\n activate: () => State({ initialState: { isPopover } }),\n })),\n Plugin.addModule(({ isPopover = false }) => ({\n id: Capability.getModuleTag(SpotlightDismiss),\n activatesOn: ActivationEvents.Startup,\n activate: () => SpotlightDismiss({ isPopover }),\n })),\n Plugin.addModule({\n id: Capability.getModuleTag(ReactRoot),\n activatesOn: ActivationEvents.Startup,\n activate: ReactRoot,\n }),\n Plugin.addModule({\n id: Capability.getModuleTag(ReactSurface),\n activatesOn: ActivationEvents.Startup,\n activate: ReactSurface,\n }),\n Plugin.addModule({\n id: Capability.getModuleTag(UrlHandler),\n activatesOn: ActivationEvent.allOf(ActivationEvents.OperationInvokerReady, SimpleLayoutEvents.StateReady),\n activate: UrlHandler,\n }),\n Plugin.make,\n);\n\nexport default SimpleLayoutPlugin;\n"],
|
|
5
|
+
"mappings": ";AAIA,SAASA,iBAAiBC,kBAAkBC,YAAYC,cAAc;AACtE,SAASC,qBAAqBC,iBAAiB;AAE/C,SACEC,iBACAC,kBACAC,WACAC,cACAC,kBACAC,OACAC,kBACK;AACP,SAASC,YAAY;AACrB,SAASC,oBAAoB;AAC7B,SAASC,0BAA0B;AAO5B,IAAMC,qBAAqBb,OAAOc,OAAkCJ,IAAAA,EAAMK,KAC/Eb,UAAUc,kBAAkB;EAAEC,UAAUd;AAAgB,CAAA,GACxDD,UAAUgB,0BAA0B;EAAED,UAAUb;AAAiB,CAAA,GACjEF,UAAUiB,sBAAsB;EAAER;AAAa,CAAA,GAC/CX,OAAOoB,UAAU,CAAC,EAAEC,YAAY,MAAK,OAAQ;EAC3CC,IAAIvB,WAAWwB,aAAaf,KAAAA;EAC5BgB,aAAa1B,iBAAiB2B;EAC9BC,sBAAsB;IAACd,mBAAmBe;IAAY1B,oBAAoB2B;;EAC1EX,UAAU,MAAMT,MAAM;IAAEqB,cAAc;MAAER;IAAU;EAAE,CAAA;AACtD,EAAA,GACArB,OAAOoB,UAAU,CAAC,EAAEC,YAAY,MAAK,OAAQ;EAC3CC,IAAIvB,WAAWwB,aAAahB,gBAAAA;EAC5BiB,aAAa1B,iBAAiB2B;EAC9BR,UAAU,MAAMV,iBAAiB;IAAEc;EAAU,CAAA;AAC/C,EAAA,GACArB,OAAOoB,UAAU;EACfE,IAAIvB,WAAWwB,aAAalB,SAAAA;EAC5BmB,aAAa1B,iBAAiB2B;EAC9BR,UAAUZ;AACZ,CAAA,GACAL,OAAOoB,UAAU;EACfE,IAAIvB,WAAWwB,aAAajB,YAAAA;EAC5BkB,aAAa1B,iBAAiB2B;EAC9BR,UAAUX;AACZ,CAAA,GACAN,OAAOoB,UAAU;EACfE,IAAIvB,WAAWwB,aAAad,UAAAA;EAC5Be,aAAa3B,gBAAgBiC,MAAMhC,iBAAiBiC,uBAAuBnB,mBAAmBe,UAAU;EACxGV,UAAUR;AACZ,CAAA,GACAT,OAAOgC,IAAI;AAGb,IAAA,6BAAenB;",
|
|
6
|
+
"names": ["ActivationEvent", "ActivationEvents", "Capability", "Plugin", "AppActivationEvents", "AppPlugin", "AppGraphBuilder", "OperationHandler", "ReactRoot", "ReactSurface", "SpotlightDismiss", "State", "UrlHandler", "meta", "translations", "SimpleLayoutEvents", "SimpleLayoutPlugin", "define", "pipe", "addAppGraphModule", "activate", "addOperationHandlerModule", "addTranslationsModule", "addModule", "isPopover", "id", "getModuleTag", "activatesOn", "Startup", "firesAfterActivation", "StateReady", "LayoutReady", "initialState", "allOf", "OperationInvokerReady", "make"]
|
|
7
|
+
}
|
|
@@ -1,80 +1,22 @@
|
|
|
1
|
-
// src/
|
|
2
|
-
import {
|
|
3
|
-
import { AppActivationEvents, AppPlugin } from "@dxos/app-toolkit";
|
|
4
|
-
import { AppGraphBuilder, OperationHandler, ReactRoot, ReactSurface, SpotlightDismiss, State, UrlHandler } from "#capabilities";
|
|
5
|
-
import { meta as meta2 } from "#meta";
|
|
6
|
-
import { SimpleLayoutEvents } from "#types";
|
|
1
|
+
// src/index.ts
|
|
2
|
+
import { Plugin } from "@dxos/app-framework";
|
|
7
3
|
|
|
8
|
-
// src/
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"settings.heading": "Settings",
|
|
20
|
-
"back.label": "Back",
|
|
21
|
-
"browse.label": "Browse",
|
|
22
|
-
"notifications.label": "Notifications",
|
|
23
|
-
"profile.label": "Profile",
|
|
24
|
-
"app-menu.label": "App menu",
|
|
25
|
-
"main-menu.label": "Main menu",
|
|
26
|
-
"companions-menu.label": "Companions",
|
|
27
|
-
"error-fallback.message": "An error occurred",
|
|
28
|
-
"drawer.label": "Drawer",
|
|
29
|
-
"close-drawer.label": "Close drawer",
|
|
30
|
-
"expand-drawer.label": "Expand drawer",
|
|
31
|
-
"collapse-drawer.label": "Collapse drawer",
|
|
32
|
-
"actions-menu.label": "Actions",
|
|
33
|
-
"done.label": "Done"
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
];
|
|
4
|
+
// src/meta.ts
|
|
5
|
+
import { trim } from "@dxos/util";
|
|
6
|
+
var meta = {
|
|
7
|
+
id: "org.dxos.plugin.simpleLayout",
|
|
8
|
+
name: "Simple Layout",
|
|
9
|
+
description: trim`
|
|
10
|
+
Minimal layout plugin for simplified UI contexts like popover windows.
|
|
11
|
+
Provides basic content rendering without sidebars or complex navigation.
|
|
12
|
+
`,
|
|
13
|
+
icon: "ph--layout--regular"
|
|
14
|
+
};
|
|
38
15
|
|
|
39
|
-
// src/
|
|
40
|
-
var SimpleLayoutPlugin = Plugin.
|
|
41
|
-
activate: AppGraphBuilder
|
|
42
|
-
}), AppPlugin.addOperationHandlerModule({
|
|
43
|
-
activate: OperationHandler
|
|
44
|
-
}), AppPlugin.addTranslationsModule({
|
|
45
|
-
translations
|
|
46
|
-
}), Plugin.addModule(({ isPopover = false }) => ({
|
|
47
|
-
id: Capability.getModuleTag(State),
|
|
48
|
-
activatesOn: ActivationEvents.Startup,
|
|
49
|
-
activatesAfter: [
|
|
50
|
-
SimpleLayoutEvents.StateReady,
|
|
51
|
-
AppActivationEvents.LayoutReady
|
|
52
|
-
],
|
|
53
|
-
activate: () => State({
|
|
54
|
-
initialState: {
|
|
55
|
-
isPopover
|
|
56
|
-
}
|
|
57
|
-
})
|
|
58
|
-
})), Plugin.addModule(({ isPopover = false }) => ({
|
|
59
|
-
id: Capability.getModuleTag(SpotlightDismiss),
|
|
60
|
-
activatesOn: ActivationEvents.Startup,
|
|
61
|
-
activate: () => SpotlightDismiss({
|
|
62
|
-
isPopover
|
|
63
|
-
})
|
|
64
|
-
})), Plugin.addModule({
|
|
65
|
-
id: Capability.getModuleTag(ReactRoot),
|
|
66
|
-
activatesOn: ActivationEvents.Startup,
|
|
67
|
-
activate: ReactRoot
|
|
68
|
-
}), Plugin.addModule({
|
|
69
|
-
id: Capability.getModuleTag(ReactSurface),
|
|
70
|
-
activatesOn: ActivationEvents.Startup,
|
|
71
|
-
activate: ReactSurface
|
|
72
|
-
}), Plugin.addModule({
|
|
73
|
-
id: Capability.getModuleTag(UrlHandler),
|
|
74
|
-
activatesOn: ActivationEvent.allOf(ActivationEvents.OperationInvokerReady, SimpleLayoutEvents.StateReady),
|
|
75
|
-
activate: UrlHandler
|
|
76
|
-
}), Plugin.make);
|
|
16
|
+
// src/index.ts
|
|
17
|
+
var SimpleLayoutPlugin = Plugin.lazy(meta, () => import("./SimpleLayoutPlugin-Q5BZE6KD.mjs"));
|
|
77
18
|
export {
|
|
78
|
-
SimpleLayoutPlugin
|
|
19
|
+
SimpleLayoutPlugin,
|
|
20
|
+
meta
|
|
79
21
|
};
|
|
80
22
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../../src/
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport {
|
|
5
|
-
"mappings": ";AAIA,SAASA,
|
|
6
|
-
"names": ["
|
|
3
|
+
"sources": ["../../../src/index.ts", "../../../src/meta.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Plugin } from '@dxos/app-framework';\n\nimport { meta } from './meta';\n\nexport const SimpleLayoutPlugin = Plugin.lazy(meta, () => import('./SimpleLayoutPlugin'));\n\nexport * from './meta';\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { type Plugin } from '@dxos/app-framework';\nimport { trim } from '@dxos/util';\n\nexport const meta: Plugin.Meta = {\n id: 'org.dxos.plugin.simpleLayout',\n name: 'Simple Layout',\n description: trim`\n Minimal layout plugin for simplified UI contexts like popover windows.\n Provides basic content rendering without sidebars or complex navigation.\n `,\n icon: 'ph--layout--regular',\n};\n"],
|
|
5
|
+
"mappings": ";AAIA,SAASA,cAAc;;;ACCvB,SAASC,YAAY;AAEd,IAAMC,OAAoB;EAC/BC,IAAI;EACJC,MAAM;EACNC,aAAaJ;;;;EAIbK,MAAM;AACR;;;ADPO,IAAMC,qBAAqBC,OAAOC,KAAKC,MAAM,MAAM,OAAO,mCAAA,CAAA;",
|
|
6
|
+
"names": ["Plugin", "trim", "meta", "id", "name", "description", "icon", "SimpleLayoutPlugin", "Plugin", "lazy", "meta"]
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"src/
|
|
1
|
+
{"inputs":{"src/meta.ts":{"bytes":1403,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/SimpleLayoutPlugin.ts":{"bytes":7143,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#translations","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":994,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/SimpleLayoutPlugin.ts","kind":"dynamic-import","original":"./SimpleLayoutPlugin"}],"format":"esm"},"src/translations.ts":{"bytes":3537,"imports":[{"path":"@dxos/react-ui-search/translations","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1108},"dist/lib/browser/index.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"dist/lib/browser/SimpleLayoutPlugin-Q5BZE6KD.mjs","kind":"dynamic-import"}],"exports":["SimpleLayoutPlugin","meta"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":141},"src/meta.ts":{"bytesInOutput":322}},"bytes":588},"dist/lib/browser/translations.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1667},"dist/lib/browser/translations.mjs":{"imports":[{"path":"@dxos/react-ui-search/translations","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"exports":["translations"],"entryPoint":"src/translations.ts","inputs":{"src/translations.ts":{"bytesInOutput":978}},"bytes":1070},"dist/lib/browser/SimpleLayoutPlugin-Q5BZE6KD.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3769},"dist/lib/browser/SimpleLayoutPlugin-Q5BZE6KD.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#translations","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"exports":["SimpleLayoutPlugin","default"],"entryPoint":"src/SimpleLayoutPlugin.ts","inputs":{"src/SimpleLayoutPlugin.ts":{"bytesInOutput":1678}},"bytes":1838}}}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// src/translations.ts
|
|
2
|
+
import { translations as searchTranslations } from "@dxos/react-ui-search/translations";
|
|
3
|
+
import { meta } from "#meta";
|
|
4
|
+
var translations = [
|
|
5
|
+
...searchTranslations,
|
|
6
|
+
{
|
|
7
|
+
"en-US": {
|
|
8
|
+
[meta.id]: {
|
|
9
|
+
"plugin.name": "Simple layout",
|
|
10
|
+
"settings.title": "Simple layout settings",
|
|
11
|
+
"workspaces.heading": "Workspaces",
|
|
12
|
+
"settings.heading": "Settings",
|
|
13
|
+
"back.label": "Back",
|
|
14
|
+
"browse.label": "Browse",
|
|
15
|
+
"notifications.label": "Notifications",
|
|
16
|
+
"profile.label": "Profile",
|
|
17
|
+
"app-menu.label": "App menu",
|
|
18
|
+
"main-menu.label": "Main menu",
|
|
19
|
+
"companions-menu.label": "Companions",
|
|
20
|
+
"error-fallback.message": "An error occurred",
|
|
21
|
+
"drawer.label": "Drawer",
|
|
22
|
+
"close-drawer.label": "Close drawer",
|
|
23
|
+
"expand-drawer.label": "Expand drawer",
|
|
24
|
+
"collapse-drawer.label": "Collapse drawer",
|
|
25
|
+
"actions-menu.label": "Actions",
|
|
26
|
+
"done.label": "Done"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
];
|
|
31
|
+
export {
|
|
32
|
+
translations
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=translations.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/translations.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { type Resource } from '@dxos/react-ui';\nimport { translations as searchTranslations } from '@dxos/react-ui-search/translations';\n\nimport { meta } from '#meta';\n\nexport const translations = [\n ...searchTranslations,\n {\n 'en-US': {\n [meta.id]: {\n 'plugin.name': 'Simple layout',\n 'settings.title': 'Simple layout settings',\n 'workspaces.heading': 'Workspaces',\n 'settings.heading': 'Settings',\n 'back.label': 'Back',\n 'browse.label': 'Browse',\n 'notifications.label': 'Notifications',\n 'profile.label': 'Profile',\n 'app-menu.label': 'App menu',\n 'main-menu.label': 'Main menu',\n 'companions-menu.label': 'Companions',\n 'error-fallback.message': 'An error occurred',\n 'drawer.label': 'Drawer',\n 'close-drawer.label': 'Close drawer',\n 'expand-drawer.label': 'Expand drawer',\n 'collapse-drawer.label': 'Collapse drawer',\n 'actions-menu.label': 'Actions',\n 'done.label': 'Done',\n },\n },\n },\n] as const satisfies Resource[];\n"],
|
|
5
|
+
"mappings": ";AAKA,SAASA,gBAAgBC,0BAA0B;AAEnD,SAASC,YAAY;AAEd,IAAMF,eAAe;KACvBC;EACH;IACE,SAAS;MACP,CAACC,KAAKC,EAAE,GAAG;QACT,eAAe;QACf,kBAAkB;QAClB,sBAAsB;QACtB,oBAAoB;QACpB,cAAc;QACd,gBAAgB;QAChB,uBAAuB;QACvB,iBAAiB;QACjB,kBAAkB;QAClB,mBAAmB;QACnB,yBAAyB;QACzB,0BAA0B;QAC1B,gBAAgB;QAChB,sBAAsB;QACtB,uBAAuB;QACvB,yBAAyB;QACzB,sBAAsB;QACtB,cAAc;MAChB;IACF;EACF;;",
|
|
6
|
+
"names": ["translations", "searchTranslations", "meta", "id"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
+
|
|
3
|
+
// src/SimpleLayoutPlugin.ts
|
|
4
|
+
import { ActivationEvent, ActivationEvents, Capability, Plugin } from "@dxos/app-framework";
|
|
5
|
+
import { AppActivationEvents, AppPlugin } from "@dxos/app-toolkit";
|
|
6
|
+
import { AppGraphBuilder, OperationHandler, ReactRoot, ReactSurface, SpotlightDismiss, State, UrlHandler } from "#capabilities";
|
|
7
|
+
import { meta } from "#meta";
|
|
8
|
+
import { translations } from "#translations";
|
|
9
|
+
import { SimpleLayoutEvents } from "#types";
|
|
10
|
+
var SimpleLayoutPlugin = Plugin.define(meta).pipe(AppPlugin.addAppGraphModule({
|
|
11
|
+
activate: AppGraphBuilder
|
|
12
|
+
}), AppPlugin.addOperationHandlerModule({
|
|
13
|
+
activate: OperationHandler
|
|
14
|
+
}), AppPlugin.addTranslationsModule({
|
|
15
|
+
translations
|
|
16
|
+
}), Plugin.addModule(({ isPopover = false }) => ({
|
|
17
|
+
id: Capability.getModuleTag(State),
|
|
18
|
+
activatesOn: ActivationEvents.Startup,
|
|
19
|
+
firesAfterActivation: [
|
|
20
|
+
SimpleLayoutEvents.StateReady,
|
|
21
|
+
AppActivationEvents.LayoutReady
|
|
22
|
+
],
|
|
23
|
+
activate: () => State({
|
|
24
|
+
initialState: {
|
|
25
|
+
isPopover
|
|
26
|
+
}
|
|
27
|
+
})
|
|
28
|
+
})), Plugin.addModule(({ isPopover = false }) => ({
|
|
29
|
+
id: Capability.getModuleTag(SpotlightDismiss),
|
|
30
|
+
activatesOn: ActivationEvents.Startup,
|
|
31
|
+
activate: () => SpotlightDismiss({
|
|
32
|
+
isPopover
|
|
33
|
+
})
|
|
34
|
+
})), Plugin.addModule({
|
|
35
|
+
id: Capability.getModuleTag(ReactRoot),
|
|
36
|
+
activatesOn: ActivationEvents.Startup,
|
|
37
|
+
activate: ReactRoot
|
|
38
|
+
}), Plugin.addModule({
|
|
39
|
+
id: Capability.getModuleTag(ReactSurface),
|
|
40
|
+
activatesOn: ActivationEvents.Startup,
|
|
41
|
+
activate: ReactSurface
|
|
42
|
+
}), Plugin.addModule({
|
|
43
|
+
id: Capability.getModuleTag(UrlHandler),
|
|
44
|
+
activatesOn: ActivationEvent.allOf(ActivationEvents.OperationInvokerReady, SimpleLayoutEvents.StateReady),
|
|
45
|
+
activate: UrlHandler
|
|
46
|
+
}), Plugin.make);
|
|
47
|
+
var SimpleLayoutPlugin_default = SimpleLayoutPlugin;
|
|
48
|
+
export {
|
|
49
|
+
SimpleLayoutPlugin,
|
|
50
|
+
SimpleLayoutPlugin_default as default
|
|
51
|
+
};
|
|
52
|
+
//# sourceMappingURL=SimpleLayoutPlugin-OD45TNPO.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/SimpleLayoutPlugin.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { ActivationEvent, ActivationEvents, Capability, Plugin } from '@dxos/app-framework';\nimport { AppActivationEvents, AppPlugin } from '@dxos/app-toolkit';\n\nimport {\n AppGraphBuilder,\n OperationHandler,\n ReactRoot,\n ReactSurface,\n SpotlightDismiss,\n State,\n UrlHandler,\n} from '#capabilities';\nimport { meta } from '#meta';\nimport { translations } from '#translations';\nimport { SimpleLayoutEvents } from '#types';\n\nexport type SimpleLayoutPluginOptions = {\n /** Determines if running in popover window context (hides mobile-specific UI). */\n isPopover?: boolean;\n};\n\nexport const SimpleLayoutPlugin = Plugin.define<SimpleLayoutPluginOptions>(meta).pipe(\n AppPlugin.addAppGraphModule({ activate: AppGraphBuilder }),\n AppPlugin.addOperationHandlerModule({ activate: OperationHandler }),\n AppPlugin.addTranslationsModule({ translations }),\n Plugin.addModule(({ isPopover = false }) => ({\n id: Capability.getModuleTag(State),\n activatesOn: ActivationEvents.Startup,\n firesAfterActivation: [SimpleLayoutEvents.StateReady, AppActivationEvents.LayoutReady],\n activate: () => State({ initialState: { isPopover } }),\n })),\n Plugin.addModule(({ isPopover = false }) => ({\n id: Capability.getModuleTag(SpotlightDismiss),\n activatesOn: ActivationEvents.Startup,\n activate: () => SpotlightDismiss({ isPopover }),\n })),\n Plugin.addModule({\n id: Capability.getModuleTag(ReactRoot),\n activatesOn: ActivationEvents.Startup,\n activate: ReactRoot,\n }),\n Plugin.addModule({\n id: Capability.getModuleTag(ReactSurface),\n activatesOn: ActivationEvents.Startup,\n activate: ReactSurface,\n }),\n Plugin.addModule({\n id: Capability.getModuleTag(UrlHandler),\n activatesOn: ActivationEvent.allOf(ActivationEvents.OperationInvokerReady, SimpleLayoutEvents.StateReady),\n activate: UrlHandler,\n }),\n Plugin.make,\n);\n\nexport default SimpleLayoutPlugin;\n"],
|
|
5
|
+
"mappings": ";;;AAIA,SAASA,iBAAiBC,kBAAkBC,YAAYC,cAAc;AACtE,SAASC,qBAAqBC,iBAAiB;AAE/C,SACEC,iBACAC,kBACAC,WACAC,cACAC,kBACAC,OACAC,kBACK;AACP,SAASC,YAAY;AACrB,SAASC,oBAAoB;AAC7B,SAASC,0BAA0B;AAO5B,IAAMC,qBAAqBb,OAAOc,OAAkCJ,IAAAA,EAAMK,KAC/Eb,UAAUc,kBAAkB;EAAEC,UAAUd;AAAgB,CAAA,GACxDD,UAAUgB,0BAA0B;EAAED,UAAUb;AAAiB,CAAA,GACjEF,UAAUiB,sBAAsB;EAAER;AAAa,CAAA,GAC/CX,OAAOoB,UAAU,CAAC,EAAEC,YAAY,MAAK,OAAQ;EAC3CC,IAAIvB,WAAWwB,aAAaf,KAAAA;EAC5BgB,aAAa1B,iBAAiB2B;EAC9BC,sBAAsB;IAACd,mBAAmBe;IAAY1B,oBAAoB2B;;EAC1EX,UAAU,MAAMT,MAAM;IAAEqB,cAAc;MAAER;IAAU;EAAE,CAAA;AACtD,EAAA,GACArB,OAAOoB,UAAU,CAAC,EAAEC,YAAY,MAAK,OAAQ;EAC3CC,IAAIvB,WAAWwB,aAAahB,gBAAAA;EAC5BiB,aAAa1B,iBAAiB2B;EAC9BR,UAAU,MAAMV,iBAAiB;IAAEc;EAAU,CAAA;AAC/C,EAAA,GACArB,OAAOoB,UAAU;EACfE,IAAIvB,WAAWwB,aAAalB,SAAAA;EAC5BmB,aAAa1B,iBAAiB2B;EAC9BR,UAAUZ;AACZ,CAAA,GACAL,OAAOoB,UAAU;EACfE,IAAIvB,WAAWwB,aAAajB,YAAAA;EAC5BkB,aAAa1B,iBAAiB2B;EAC9BR,UAAUX;AACZ,CAAA,GACAN,OAAOoB,UAAU;EACfE,IAAIvB,WAAWwB,aAAad,UAAAA;EAC5Be,aAAa3B,gBAAgBiC,MAAMhC,iBAAiBiC,uBAAuBnB,mBAAmBe,UAAU;EACxGV,UAAUR;AACZ,CAAA,GACAT,OAAOgC,IAAI;AAGb,IAAA,6BAAenB;",
|
|
6
|
+
"names": ["ActivationEvent", "ActivationEvents", "Capability", "Plugin", "AppActivationEvents", "AppPlugin", "AppGraphBuilder", "OperationHandler", "ReactRoot", "ReactSurface", "SpotlightDismiss", "State", "UrlHandler", "meta", "translations", "SimpleLayoutEvents", "SimpleLayoutPlugin", "define", "pipe", "addAppGraphModule", "activate", "addOperationHandlerModule", "addTranslationsModule", "addModule", "isPopover", "id", "getModuleTag", "activatesOn", "Startup", "firesAfterActivation", "StateReady", "LayoutReady", "initialState", "allOf", "OperationInvokerReady", "make"]
|
|
7
|
+
}
|
|
@@ -1,82 +1,24 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
2
|
|
|
3
|
-
// src/
|
|
4
|
-
import {
|
|
5
|
-
import { AppActivationEvents, AppPlugin } from "@dxos/app-toolkit";
|
|
6
|
-
import { AppGraphBuilder, OperationHandler, ReactRoot, ReactSurface, SpotlightDismiss, State, UrlHandler } from "#capabilities";
|
|
7
|
-
import { meta as meta2 } from "#meta";
|
|
8
|
-
import { SimpleLayoutEvents } from "#types";
|
|
3
|
+
// src/index.ts
|
|
4
|
+
import { Plugin } from "@dxos/app-framework";
|
|
9
5
|
|
|
10
|
-
// src/
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"settings.heading": "Settings",
|
|
22
|
-
"back.label": "Back",
|
|
23
|
-
"browse.label": "Browse",
|
|
24
|
-
"notifications.label": "Notifications",
|
|
25
|
-
"profile.label": "Profile",
|
|
26
|
-
"app-menu.label": "App menu",
|
|
27
|
-
"main-menu.label": "Main menu",
|
|
28
|
-
"companions-menu.label": "Companions",
|
|
29
|
-
"error-fallback.message": "An error occurred",
|
|
30
|
-
"drawer.label": "Drawer",
|
|
31
|
-
"close-drawer.label": "Close drawer",
|
|
32
|
-
"expand-drawer.label": "Expand drawer",
|
|
33
|
-
"collapse-drawer.label": "Collapse drawer",
|
|
34
|
-
"actions-menu.label": "Actions",
|
|
35
|
-
"done.label": "Done"
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
];
|
|
6
|
+
// src/meta.ts
|
|
7
|
+
import { trim } from "@dxos/util";
|
|
8
|
+
var meta = {
|
|
9
|
+
id: "org.dxos.plugin.simpleLayout",
|
|
10
|
+
name: "Simple Layout",
|
|
11
|
+
description: trim`
|
|
12
|
+
Minimal layout plugin for simplified UI contexts like popover windows.
|
|
13
|
+
Provides basic content rendering without sidebars or complex navigation.
|
|
14
|
+
`,
|
|
15
|
+
icon: "ph--layout--regular"
|
|
16
|
+
};
|
|
40
17
|
|
|
41
|
-
// src/
|
|
42
|
-
var SimpleLayoutPlugin = Plugin.
|
|
43
|
-
activate: AppGraphBuilder
|
|
44
|
-
}), AppPlugin.addOperationHandlerModule({
|
|
45
|
-
activate: OperationHandler
|
|
46
|
-
}), AppPlugin.addTranslationsModule({
|
|
47
|
-
translations
|
|
48
|
-
}), Plugin.addModule(({ isPopover = false }) => ({
|
|
49
|
-
id: Capability.getModuleTag(State),
|
|
50
|
-
activatesOn: ActivationEvents.Startup,
|
|
51
|
-
activatesAfter: [
|
|
52
|
-
SimpleLayoutEvents.StateReady,
|
|
53
|
-
AppActivationEvents.LayoutReady
|
|
54
|
-
],
|
|
55
|
-
activate: () => State({
|
|
56
|
-
initialState: {
|
|
57
|
-
isPopover
|
|
58
|
-
}
|
|
59
|
-
})
|
|
60
|
-
})), Plugin.addModule(({ isPopover = false }) => ({
|
|
61
|
-
id: Capability.getModuleTag(SpotlightDismiss),
|
|
62
|
-
activatesOn: ActivationEvents.Startup,
|
|
63
|
-
activate: () => SpotlightDismiss({
|
|
64
|
-
isPopover
|
|
65
|
-
})
|
|
66
|
-
})), Plugin.addModule({
|
|
67
|
-
id: Capability.getModuleTag(ReactRoot),
|
|
68
|
-
activatesOn: ActivationEvents.Startup,
|
|
69
|
-
activate: ReactRoot
|
|
70
|
-
}), Plugin.addModule({
|
|
71
|
-
id: Capability.getModuleTag(ReactSurface),
|
|
72
|
-
activatesOn: ActivationEvents.Startup,
|
|
73
|
-
activate: ReactSurface
|
|
74
|
-
}), Plugin.addModule({
|
|
75
|
-
id: Capability.getModuleTag(UrlHandler),
|
|
76
|
-
activatesOn: ActivationEvent.allOf(ActivationEvents.OperationInvokerReady, SimpleLayoutEvents.StateReady),
|
|
77
|
-
activate: UrlHandler
|
|
78
|
-
}), Plugin.make);
|
|
18
|
+
// src/index.ts
|
|
19
|
+
var SimpleLayoutPlugin = Plugin.lazy(meta, () => import("./SimpleLayoutPlugin-OD45TNPO.mjs"));
|
|
79
20
|
export {
|
|
80
|
-
SimpleLayoutPlugin
|
|
21
|
+
SimpleLayoutPlugin,
|
|
22
|
+
meta
|
|
81
23
|
};
|
|
82
24
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../../src/
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport {
|
|
5
|
-
"mappings": ";;;AAIA,SAASA,
|
|
6
|
-
"names": ["
|
|
3
|
+
"sources": ["../../../src/index.ts", "../../../src/meta.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Plugin } from '@dxos/app-framework';\n\nimport { meta } from './meta';\n\nexport const SimpleLayoutPlugin = Plugin.lazy(meta, () => import('./SimpleLayoutPlugin'));\n\nexport * from './meta';\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { type Plugin } from '@dxos/app-framework';\nimport { trim } from '@dxos/util';\n\nexport const meta: Plugin.Meta = {\n id: 'org.dxos.plugin.simpleLayout',\n name: 'Simple Layout',\n description: trim`\n Minimal layout plugin for simplified UI contexts like popover windows.\n Provides basic content rendering without sidebars or complex navigation.\n `,\n icon: 'ph--layout--regular',\n};\n"],
|
|
5
|
+
"mappings": ";;;AAIA,SAASA,cAAc;;;ACCvB,SAASC,YAAY;AAEd,IAAMC,OAAoB;EAC/BC,IAAI;EACJC,MAAM;EACNC,aAAaJ;;;;EAIbK,MAAM;AACR;;;ADPO,IAAMC,qBAAqBC,OAAOC,KAAKC,MAAM,MAAM,OAAO,mCAAA,CAAA;",
|
|
6
|
+
"names": ["Plugin", "trim", "meta", "id", "name", "description", "icon", "SimpleLayoutPlugin", "Plugin", "lazy", "meta"]
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"src/
|
|
1
|
+
{"inputs":{"src/meta.ts":{"bytes":1403,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/SimpleLayoutPlugin.ts":{"bytes":7143,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#translations","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":994,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/SimpleLayoutPlugin.ts","kind":"dynamic-import","original":"./SimpleLayoutPlugin"}],"format":"esm"},"src/translations.ts":{"bytes":3537,"imports":[{"path":"@dxos/react-ui-search/translations","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1110},"dist/lib/node-esm/index.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"dist/lib/node-esm/SimpleLayoutPlugin-OD45TNPO.mjs","kind":"dynamic-import"}],"exports":["SimpleLayoutPlugin","meta"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":141},"src/meta.ts":{"bytesInOutput":322}},"bytes":681},"dist/lib/node-esm/translations.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1669},"dist/lib/node-esm/translations.mjs":{"imports":[{"path":"@dxos/react-ui-search/translations","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"exports":["translations"],"entryPoint":"src/translations.ts","inputs":{"src/translations.ts":{"bytesInOutput":978}},"bytes":1163},"dist/lib/node-esm/SimpleLayoutPlugin-OD45TNPO.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3771},"dist/lib/node-esm/SimpleLayoutPlugin-OD45TNPO.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#translations","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"exports":["SimpleLayoutPlugin","default"],"entryPoint":"src/SimpleLayoutPlugin.ts","inputs":{"src/SimpleLayoutPlugin.ts":{"bytesInOutput":1678}},"bytes":1931}}}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
+
|
|
3
|
+
// src/translations.ts
|
|
4
|
+
import { translations as searchTranslations } from "@dxos/react-ui-search/translations";
|
|
5
|
+
import { meta } from "#meta";
|
|
6
|
+
var translations = [
|
|
7
|
+
...searchTranslations,
|
|
8
|
+
{
|
|
9
|
+
"en-US": {
|
|
10
|
+
[meta.id]: {
|
|
11
|
+
"plugin.name": "Simple layout",
|
|
12
|
+
"settings.title": "Simple layout settings",
|
|
13
|
+
"workspaces.heading": "Workspaces",
|
|
14
|
+
"settings.heading": "Settings",
|
|
15
|
+
"back.label": "Back",
|
|
16
|
+
"browse.label": "Browse",
|
|
17
|
+
"notifications.label": "Notifications",
|
|
18
|
+
"profile.label": "Profile",
|
|
19
|
+
"app-menu.label": "App menu",
|
|
20
|
+
"main-menu.label": "Main menu",
|
|
21
|
+
"companions-menu.label": "Companions",
|
|
22
|
+
"error-fallback.message": "An error occurred",
|
|
23
|
+
"drawer.label": "Drawer",
|
|
24
|
+
"close-drawer.label": "Close drawer",
|
|
25
|
+
"expand-drawer.label": "Expand drawer",
|
|
26
|
+
"collapse-drawer.label": "Collapse drawer",
|
|
27
|
+
"actions-menu.label": "Actions",
|
|
28
|
+
"done.label": "Done"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
];
|
|
33
|
+
export {
|
|
34
|
+
translations
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=translations.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/translations.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { type Resource } from '@dxos/react-ui';\nimport { translations as searchTranslations } from '@dxos/react-ui-search/translations';\n\nimport { meta } from '#meta';\n\nexport const translations = [\n ...searchTranslations,\n {\n 'en-US': {\n [meta.id]: {\n 'plugin.name': 'Simple layout',\n 'settings.title': 'Simple layout settings',\n 'workspaces.heading': 'Workspaces',\n 'settings.heading': 'Settings',\n 'back.label': 'Back',\n 'browse.label': 'Browse',\n 'notifications.label': 'Notifications',\n 'profile.label': 'Profile',\n 'app-menu.label': 'App menu',\n 'main-menu.label': 'Main menu',\n 'companions-menu.label': 'Companions',\n 'error-fallback.message': 'An error occurred',\n 'drawer.label': 'Drawer',\n 'close-drawer.label': 'Close drawer',\n 'expand-drawer.label': 'Expand drawer',\n 'collapse-drawer.label': 'Collapse drawer',\n 'actions-menu.label': 'Actions',\n 'done.label': 'Done',\n },\n },\n },\n] as const satisfies Resource[];\n"],
|
|
5
|
+
"mappings": ";;;AAKA,SAASA,gBAAgBC,0BAA0B;AAEnD,SAASC,YAAY;AAEd,IAAMF,eAAe;KACvBC;EACH;IACE,SAAS;MACP,CAACC,KAAKC,EAAE,GAAG;QACT,eAAe;QACf,kBAAkB;QAClB,sBAAsB;QACtB,oBAAoB;QACpB,cAAc;QACd,gBAAgB;QAChB,uBAAuB;QACvB,iBAAiB;QACjB,kBAAkB;QAClB,mBAAmB;QACnB,yBAAyB;QACzB,0BAA0B;QAC1B,gBAAgB;QAChB,sBAAsB;QACtB,uBAAuB;QACvB,yBAAyB;QACzB,sBAAsB;QACtB,cAAc;MAChB;IACF;EACF;;",
|
|
6
|
+
"names": ["translations", "searchTranslations", "meta", "id"]
|
|
7
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SimpleLayoutPlugin.d.ts","sourceRoot":"","sources":["../../../src/SimpleLayoutPlugin.ts"],"names":[],"mappings":"AAIA,OAAO,EAAiD,MAAM,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"SimpleLayoutPlugin.d.ts","sourceRoot":"","sources":["../../../src/SimpleLayoutPlugin.ts"],"names":[],"mappings":"AAIA,OAAO,EAAiD,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAgB5F,MAAM,MAAM,yBAAyB,GAAG;IACtC,kFAAkF;IAClF,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,kBAAkB,iDA+B9B,CAAC;eAEa,kBAAkB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-graph-builder.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/app-graph-builder.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,OAAO,EAAE,YAAY,EAAe,MAAM,oBAAoB,CAAC
|
|
1
|
+
{"version":3,"file":"app-graph-builder.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/app-graph-builder.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,OAAO,EAAE,YAAY,EAAe,MAAM,oBAAoB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Capability } from '@dxos/app-framework';
|
|
2
|
-
import { OperationHandlerSet } from '@dxos/
|
|
2
|
+
import { OperationHandlerSet } from '@dxos/compute';
|
|
3
3
|
export declare const AppGraphBuilder: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-graph").BuilderExtensions>>, Error>;
|
|
4
4
|
export declare const OperationHandler: Capability.LazyCapability<OperationHandlerSet.OperationHandlerSet, Capability.ModuleReturn, Error>;
|
|
5
5
|
export declare const ReactRoot: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<Readonly<{
|
|
@@ -7,7 +7,7 @@ export declare const ReactRoot: Capability.LazyCapability<void, Capability.Capab
|
|
|
7
7
|
root: import("react").FC<import("react").PropsWithChildren>;
|
|
8
8
|
}>>>, Error>;
|
|
9
9
|
export declare const ReactSurface: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-framework/Capabilities").ReactSurface>>, Error>;
|
|
10
|
-
export declare const SpotlightDismiss: Capability.LazyCapability<import("./spotlight-dismiss").SpotlightDismissOptions | undefined,
|
|
10
|
+
export declare const SpotlightDismiss: Capability.LazyCapability<import("./spotlight-dismiss").SpotlightDismissOptions | undefined, Capability.Capability<Capability.InterfaceDef<null>> | [], Error>;
|
|
11
11
|
export declare const State: Capability.LazyCapability<import("./state").SimpleLayoutStateOptions | undefined, [Capability.Capability<Capability.InterfaceDef<import("@effect-atom/atom/Atom").Writable<import("../types").SimpleLayoutState, import("../types").SimpleLayoutState>>>, Capability.Capability<Capability.InterfaceDef<import("@effect-atom/atom/Atom").Atom<Readonly<{
|
|
12
12
|
mode: string;
|
|
13
13
|
dialogOpen: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpD,eAAO,MAAM,eAAe,qIAA0E,CAAC;AACvG,eAAO,MAAM,gBAAgB,oGAG5B,CAAC;AACF,eAAO,MAAM,SAAS;;;YAA6D,CAAC;AACpF,eAAO,MAAM,YAAY,iJAAmE,CAAC;AAC7F,eAAO,MAAM,gBAAgB,gKAA2E,CAAC;AACzG,eAAO,MAAM,KAAK;;;;;;;;;cAAoD,CAAC;AACvE,eAAO,MAAM,UAAU,8FAA+D,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as Effect from 'effect/Effect';
|
|
2
2
|
import { Capability } from '@dxos/app-framework';
|
|
3
|
-
import type { OperationHandlerSet } from '@dxos/
|
|
3
|
+
import type { OperationHandlerSet } from '@dxos/compute';
|
|
4
4
|
declare const _default: (props: OperationHandlerSet.OperationHandlerSet) => Effect.Effect<Capability.ModuleReturn, Error, Capability.Service>;
|
|
5
5
|
export default _default;
|
|
6
6
|
//# sourceMappingURL=operation-handler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operation-handler.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/operation-handler.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"operation-handler.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/operation-handler.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-root.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-root.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC
|
|
1
|
+
{"version":3,"file":"react-root.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-root.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-surface.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC
|
|
1
|
+
{"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-surface.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -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<
|
|
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
|