@dxos/plugin-simple-layout 0.8.4-main.3fbcb4aa9b → 0.8.4-main.4668b7de9b
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/LICENSE +102 -5
- package/dist/lib/neutral/SimpleLayoutPlugin.mjs +1 -1
- package/dist/lib/neutral/SimpleLayoutPlugin.mjs.map +3 -3
- package/dist/lib/neutral/{app-graph-builder-EYQKLRRP.mjs → app-graph-builder-MSPO34DT.mjs} +2 -2
- package/dist/lib/neutral/{app-graph-builder-EYQKLRRP.mjs.map → app-graph-builder-MSPO34DT.mjs.map} +1 -1
- package/dist/lib/neutral/capabilities/index.mjs +2 -2
- package/dist/lib/neutral/{chunk-AMTEDJHG.mjs → chunk-OK5336TS.mjs} +7 -4
- package/dist/lib/neutral/chunk-OK5336TS.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-XVUAQHKU.mjs → chunk-QRTV5UNX.mjs} +2 -2
- package/dist/lib/neutral/components/index.mjs +17 -12
- package/dist/lib/neutral/components/index.mjs.map +3 -3
- package/dist/lib/neutral/hooks/index.mjs +1 -1
- package/dist/lib/neutral/hooks/index.mjs.map +1 -1
- package/dist/lib/neutral/index.mjs +1 -1
- package/dist/lib/neutral/meta.json +1 -1
- package/dist/lib/neutral/meta.mjs +1 -1
- package/dist/lib/neutral/{open-XI2T7D5O.mjs → open-APISM3AA.mjs} +16 -2
- package/dist/lib/neutral/open-APISM3AA.mjs.map +7 -0
- package/dist/lib/neutral/operations/index.mjs +1 -1
- package/dist/lib/neutral/plugin.mjs +2 -2
- package/dist/lib/neutral/{react-surface-REZMYKQV.mjs → react-surface-N3PGKIYV.mjs} +4 -4
- package/dist/lib/neutral/{react-surface-REZMYKQV.mjs.map → react-surface-N3PGKIYV.mjs.map} +1 -1
- package/dist/types/src/components/Popover/Popover.d.ts.map +1 -1
- package/dist/types/src/components/SimpleLayout/AppBar.d.ts.map +1 -1
- package/dist/types/src/components/SimpleLayout/NavBar.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +1 -1
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/operations/open.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +31 -35
- package/src/SimpleLayoutPlugin.ts +1 -1
- package/src/capabilities/app-graph-builder.ts +1 -1
- package/src/capabilities/react-surface.tsx +3 -3
- package/src/components/Home/Home.tsx +3 -3
- package/src/components/NavBranch/NavBranch.tsx +3 -3
- package/src/components/Popover/Popover.tsx +7 -5
- package/src/components/SimpleLayout/AppBar.tsx +44 -41
- package/src/components/SimpleLayout/NavBar.tsx +1 -1
- package/src/components/SimpleLayout/SimpleLayout.stories.tsx +3 -3
- package/src/hooks/actions.ts +1 -1
- package/src/meta.ts +6 -4
- package/src/operations/open.ts +23 -4
- package/dist/lib/neutral/chunk-AMTEDJHG.mjs.map +0 -7
- package/dist/lib/neutral/open-XI2T7D5O.mjs.map +0 -7
- /package/dist/lib/neutral/{chunk-XVUAQHKU.mjs.map → chunk-QRTV5UNX.mjs.map} +0 -0
package/LICENSE
CHANGED
|
@@ -1,8 +1,105 @@
|
|
|
1
|
-
|
|
2
|
-
Copyright (c) 2022 DXOS
|
|
1
|
+
# Functional Source License, Version 1.1, ALv2 Future License
|
|
3
2
|
|
|
4
|
-
|
|
3
|
+
## Abbreviation
|
|
5
4
|
|
|
6
|
-
|
|
5
|
+
FSL-1.1-Apache-2.0
|
|
7
6
|
|
|
8
|
-
|
|
7
|
+
## Notice
|
|
8
|
+
|
|
9
|
+
Copyright 2026 DXOS
|
|
10
|
+
|
|
11
|
+
## Terms and Conditions
|
|
12
|
+
|
|
13
|
+
### Licensor ("We")
|
|
14
|
+
|
|
15
|
+
The party offering the Software under these Terms and Conditions.
|
|
16
|
+
|
|
17
|
+
### The Software
|
|
18
|
+
|
|
19
|
+
The "Software" is each version of the software that we make available under
|
|
20
|
+
these Terms and Conditions, as indicated by our inclusion of these Terms and
|
|
21
|
+
Conditions with the Software.
|
|
22
|
+
|
|
23
|
+
### License Grant
|
|
24
|
+
|
|
25
|
+
Subject to your compliance with this License Grant and the Patents,
|
|
26
|
+
Redistribution and Trademark clauses below, we hereby grant you the right to
|
|
27
|
+
use, copy, modify, create derivative works, publicly perform, publicly display
|
|
28
|
+
and redistribute the Software for any Permitted Purpose identified below.
|
|
29
|
+
|
|
30
|
+
### Permitted Purpose
|
|
31
|
+
|
|
32
|
+
A Permitted Purpose is any purpose other than a Competing Use. A Competing Use
|
|
33
|
+
means making the Software available to others in a commercial product or
|
|
34
|
+
service that:
|
|
35
|
+
|
|
36
|
+
1. substitutes for the Software;
|
|
37
|
+
|
|
38
|
+
2. substitutes for any other product or service we offer using the Software
|
|
39
|
+
that exists as of the date we make the Software available; or
|
|
40
|
+
|
|
41
|
+
3. offers the same or substantially similar functionality as the Software.
|
|
42
|
+
|
|
43
|
+
Permitted Purposes specifically include using the Software:
|
|
44
|
+
|
|
45
|
+
1. for your internal use and access;
|
|
46
|
+
|
|
47
|
+
2. for non-commercial education;
|
|
48
|
+
|
|
49
|
+
3. for non-commercial research; and
|
|
50
|
+
|
|
51
|
+
4. in connection with professional services that you provide to a licensee
|
|
52
|
+
using the Software in accordance with these Terms and Conditions.
|
|
53
|
+
|
|
54
|
+
### Patents
|
|
55
|
+
|
|
56
|
+
To the extent your use for a Permitted Purpose would necessarily infringe our
|
|
57
|
+
patents, the license grant above includes a license under our patents. If you
|
|
58
|
+
make a claim against any party that the Software infringes or contributes to
|
|
59
|
+
the infringement of any patent, then your patent license to the Software ends
|
|
60
|
+
immediately.
|
|
61
|
+
|
|
62
|
+
### Redistribution
|
|
63
|
+
|
|
64
|
+
The Terms and Conditions apply to all copies, modifications and derivatives of
|
|
65
|
+
the Software.
|
|
66
|
+
|
|
67
|
+
If you redistribute any copies, modifications or derivatives of the Software,
|
|
68
|
+
you must include a copy of or a link to these Terms and Conditions and not
|
|
69
|
+
remove any copyright notices provided in or with the Software.
|
|
70
|
+
|
|
71
|
+
### Disclaimer
|
|
72
|
+
|
|
73
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR
|
|
74
|
+
IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR
|
|
75
|
+
PURPOSE, MERCHANTABILITY, TITLE OR NON-INFRINGEMENT.
|
|
76
|
+
|
|
77
|
+
IN NO EVENT WILL WE HAVE ANY LIABILITY TO YOU ARISING OUT OF OR RELATED TO THE
|
|
78
|
+
SOFTWARE, INCLUDING INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES,
|
|
79
|
+
EVEN IF WE HAVE BEEN INFORMED OF THEIR POSSIBILITY IN ADVANCE.
|
|
80
|
+
|
|
81
|
+
### Trademarks
|
|
82
|
+
|
|
83
|
+
Except for displaying the License Details and identifying us as the origin of
|
|
84
|
+
the Software, you have no right under these Terms and Conditions to use our
|
|
85
|
+
trademarks, trade names, service marks or product names.
|
|
86
|
+
|
|
87
|
+
## Grant of Future License
|
|
88
|
+
|
|
89
|
+
We hereby irrevocably grant you an additional license to use the Software under
|
|
90
|
+
the Apache License, Version 2.0 that is effective on the second anniversary of
|
|
91
|
+
the date we make the Software available. On or after that date, you may use the
|
|
92
|
+
Software under the Apache License, Version 2.0, in which case the following
|
|
93
|
+
will apply:
|
|
94
|
+
|
|
95
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
96
|
+
this file except in compliance with the License.
|
|
97
|
+
|
|
98
|
+
You may obtain a copy of the License at
|
|
99
|
+
|
|
100
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
101
|
+
|
|
102
|
+
Unless required by applicable law or agreed to in writing, software distributed
|
|
103
|
+
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
|
104
|
+
CONDITIONS OF ANY KIND, either express or implied. See the License for the
|
|
105
|
+
specific language governing permissions and limitations under the License.
|
|
@@ -41,7 +41,7 @@ var SimpleLayoutPlugin = Plugin.define(meta).pipe(AppPlugin.addAppGraphModule({
|
|
|
41
41
|
activate: ReactSurface
|
|
42
42
|
}), Plugin.addModule({
|
|
43
43
|
id: Capability.getModuleTag(UrlHandler),
|
|
44
|
-
activatesOn: ActivationEvent.allOf(ActivationEvents.
|
|
44
|
+
activatesOn: ActivationEvent.allOf(ActivationEvents.ProcessManagerReady, SimpleLayoutEvents.StateReady),
|
|
45
45
|
activate: UrlHandler
|
|
46
46
|
}), Plugin.make);
|
|
47
47
|
var SimpleLayoutPlugin_default = SimpleLayoutPlugin;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
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.
|
|
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,
|
|
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", "
|
|
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.ProcessManagerReady, 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,qBAAqBnB,mBAAmBe,UAAU;EACtGV,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", "ProcessManagerReady", "make"]
|
|
7
7
|
}
|
|
@@ -7,7 +7,7 @@ import { AppCapabilities, AppNode } from "@dxos/app-toolkit";
|
|
|
7
7
|
import { GraphBuilder, NodeMatcher } from "@dxos/plugin-graph";
|
|
8
8
|
var app_graph_builder_default = Capability.makeModule(Effect.fnUntraced(function* () {
|
|
9
9
|
const extensions = yield* GraphBuilder.createExtension({
|
|
10
|
-
id: "org.dxos.plugin.simpleLayout.
|
|
10
|
+
id: "org.dxos.plugin.simpleLayout.notFound",
|
|
11
11
|
match: NodeMatcher.whenRoot,
|
|
12
12
|
connector: () => Effect.succeed([
|
|
13
13
|
AppNode.makeNotFound()
|
|
@@ -18,4 +18,4 @@ var app_graph_builder_default = Capability.makeModule(Effect.fnUntraced(function
|
|
|
18
18
|
export {
|
|
19
19
|
app_graph_builder_default as default
|
|
20
20
|
};
|
|
21
|
-
//# sourceMappingURL=app-graph-builder-
|
|
21
|
+
//# sourceMappingURL=app-graph-builder-MSPO34DT.mjs.map
|
package/dist/lib/neutral/{app-graph-builder-EYQKLRRP.mjs.map → app-graph-builder-MSPO34DT.mjs.map}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/capabilities/app-graph-builder.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capability } from '@dxos/app-framework';\nimport { AppCapabilities, AppNode } from '@dxos/app-toolkit';\nimport { GraphBuilder, NodeMatcher } from '@dxos/plugin-graph';\n\nexport default Capability.makeModule(\n Effect.fnUntraced(function* () {\n const extensions = yield* GraphBuilder.createExtension({\n id: 'org.dxos.plugin.simpleLayout.
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capability } from '@dxos/app-framework';\nimport { AppCapabilities, AppNode } from '@dxos/app-toolkit';\nimport { GraphBuilder, NodeMatcher } from '@dxos/plugin-graph';\n\nexport default Capability.makeModule(\n Effect.fnUntraced(function* () {\n const extensions = yield* GraphBuilder.createExtension({\n id: 'org.dxos.plugin.simpleLayout.notFound',\n match: NodeMatcher.whenRoot,\n connector: () => Effect.succeed([AppNode.makeNotFound()]),\n });\n\n return Capability.contributes(AppCapabilities.AppGraphBuilder, extensions);\n }),\n);\n"],
|
|
5
5
|
"mappings": ";;;AAIA,YAAYA,YAAY;AAExB,SAASC,kBAAkB;AAC3B,SAASC,iBAAiBC,eAAe;AACzC,SAASC,cAAcC,mBAAmB;AAE1C,IAAA,4BAAeJ,WAAWK,WACjBC,kBAAW,aAAA;AAChB,QAAMC,aAAa,OAAOJ,aAAaK,gBAAgB;IACrDC,IAAI;IACJC,OAAON,YAAYO;IACnBC,WAAW,MAAaC,eAAQ;MAACX,QAAQY,aAAY;KAAG;EAC1D,CAAA;AAEA,SAAOd,WAAWe,YAAYd,gBAAgBe,iBAAiBT,UAAAA;AACjE,CAAA,CAAA;",
|
|
6
6
|
"names": ["Effect", "Capability", "AppCapabilities", "AppNode", "GraphBuilder", "NodeMatcher", "makeModule", "fnUntraced", "extensions", "createExtension", "id", "match", "whenRoot", "connector", "succeed", "makeNotFound", "contributes", "AppGraphBuilder"]
|
|
7
7
|
}
|
|
@@ -2,10 +2,10 @@ import "../chunk-J5LGTIGS.mjs";
|
|
|
2
2
|
|
|
3
3
|
// src/capabilities/index.ts
|
|
4
4
|
import { Capability } from "@dxos/app-framework";
|
|
5
|
-
var AppGraphBuilder = Capability.lazy("AppGraphBuilder", () => import("../app-graph-builder-
|
|
5
|
+
var AppGraphBuilder = Capability.lazy("AppGraphBuilder", () => import("../app-graph-builder-MSPO34DT.mjs"));
|
|
6
6
|
var OperationHandler = Capability.lazy("OperationHandler", () => import("../operation-handler-EAIE7KPR.mjs"));
|
|
7
7
|
var ReactRoot = Capability.lazy("ReactRoot", () => import("../react-root-VE265VX4.mjs"));
|
|
8
|
-
var ReactSurface = Capability.lazy("ReactSurface", () => import("../react-surface-
|
|
8
|
+
var ReactSurface = Capability.lazy("ReactSurface", () => import("../react-surface-N3PGKIYV.mjs"));
|
|
9
9
|
var SpotlightDismiss = Capability.lazy("SpotlightDismiss", () => import("../spotlight-dismiss-EIYW5E7M.mjs"));
|
|
10
10
|
var State = Capability.lazy("State", () => import("../state-7NXKBLPY.mjs"));
|
|
11
11
|
var UrlHandler = Capability.lazy("UrlHandler", () => import("../url-handler-GZXUUAHD.mjs"));
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
// src/meta.ts
|
|
2
|
+
import { Plugin } from "@dxos/app-framework";
|
|
3
|
+
import { DXN } from "@dxos/keys";
|
|
2
4
|
import { trim } from "@dxos/util";
|
|
3
|
-
var meta = {
|
|
4
|
-
|
|
5
|
+
var meta = Plugin.makeMeta({
|
|
6
|
+
key: DXN.make("org.dxos.plugin.simpleLayout"),
|
|
5
7
|
name: "Simple Layout",
|
|
8
|
+
author: "DXOS",
|
|
6
9
|
description: trim`
|
|
7
10
|
Minimal layout plugin for simplified UI contexts like popover windows.
|
|
8
11
|
Provides basic content rendering without sidebars or complex navigation.
|
|
@@ -11,9 +14,9 @@ var meta = {
|
|
|
11
14
|
tags: [
|
|
12
15
|
"system"
|
|
13
16
|
]
|
|
14
|
-
};
|
|
17
|
+
});
|
|
15
18
|
|
|
16
19
|
export {
|
|
17
20
|
meta
|
|
18
21
|
};
|
|
19
|
-
//# sourceMappingURL=chunk-
|
|
22
|
+
//# sourceMappingURL=chunk-OK5336TS.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/meta.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Plugin } from '@dxos/app-framework';\nimport { DXN } from '@dxos/keys';\nimport { trim } from '@dxos/util';\n\nexport const meta = Plugin.makeMeta({\n key: DXN.make('org.dxos.plugin.simpleLayout'),\n name: 'Simple Layout',\n author: 'DXOS',\n description: trim`\n Minimal layout plugin for simplified UI contexts like popover windows.\n Provides basic content rendering without sidebars or complex navigation.\n `,\n icon: 'ph--layout--regular',\n tags: ['system'],\n});\n"],
|
|
5
|
+
"mappings": ";AAIA,SAASA,cAAc;AACvB,SAASC,WAAW;AACpB,SAASC,YAAY;AAEd,IAAMC,OAAOH,OAAOI,SAAS;EAClCC,KAAKJ,IAAIK,KAAK,8BAAA;EACdC,MAAM;EACNC,QAAQ;EACRC,aAAaP;;;;EAIbQ,MAAM;EACNC,MAAM;IAAC;;AACT,CAAA;",
|
|
6
|
+
"names": ["Plugin", "DXN", "trim", "meta", "makeMeta", "key", "make", "name", "author", "description", "icon", "tags"]
|
|
7
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// src/operations/index.ts
|
|
2
2
|
import { OperationHandlerSet } from "@dxos/compute";
|
|
3
|
-
var SimpleLayoutOperationHandlerSet = OperationHandlerSet.lazy(() => import("./close-WKMURGUB.mjs"), () => import("./open-
|
|
3
|
+
var SimpleLayoutOperationHandlerSet = OperationHandlerSet.lazy(() => import("./close-WKMURGUB.mjs"), () => import("./open-APISM3AA.mjs"), () => import("./revert-workspace-ST6NZUNG.mjs"), () => import("./set-6ZRLWPJS.mjs"), () => import("./set-layout-mode-L22HRCKS.mjs"), () => import("./switch-workspace-PYWPTMFO.mjs"), () => import("./update-complementary-HKWF5OXT.mjs"), () => import("./update-dialog-P4ASXCE7.mjs"), () => import("./update-popover-REAKC2GN.mjs"), () => import("./update-sidebar-O5SQPR6Q.mjs"));
|
|
4
4
|
|
|
5
5
|
export {
|
|
6
6
|
SimpleLayoutOperationHandlerSet
|
|
7
7
|
};
|
|
8
|
-
//# sourceMappingURL=chunk-
|
|
8
|
+
//# sourceMappingURL=chunk-QRTV5UNX.mjs.map
|
|
@@ -158,11 +158,11 @@ var WorkspaceTile = (props) => {
|
|
|
158
158
|
fullWidth: true,
|
|
159
159
|
tabIndex: -1,
|
|
160
160
|
"data-selected": isSelected,
|
|
161
|
-
classNames: mx("dx-focus-ring", isSelected && "bg-
|
|
161
|
+
classNames: mx("dx-focus-ring", isSelected && "bg-selected-surface"),
|
|
162
162
|
onClick: handleSelect,
|
|
163
163
|
ref: cardRef
|
|
164
|
-
}, /* @__PURE__ */ React2.createElement(Card.
|
|
165
|
-
density: "
|
|
164
|
+
}, /* @__PURE__ */ React2.createElement(Card.Header, {
|
|
165
|
+
density: "md"
|
|
166
166
|
}, /* @__PURE__ */ React2.createElement(Avatar.Root, null, /* @__PURE__ */ React2.createElement(Avatar.Content, {
|
|
167
167
|
icon: data.properties.icon,
|
|
168
168
|
hue: data.properties.hue,
|
|
@@ -509,6 +509,7 @@ var PopoverContent = () => {
|
|
|
509
509
|
sticky: "always",
|
|
510
510
|
hideWhenDetached: true,
|
|
511
511
|
collisionBoundary: collisionBoundaries,
|
|
512
|
+
onOpenAutoFocus: (event) => event.preventDefault(),
|
|
512
513
|
onInteractOutside: handleInteractOutside,
|
|
513
514
|
onEscapeKeyDown: handleInteractOutside
|
|
514
515
|
}, /* @__PURE__ */ React5.createElement(Popover.Viewport, null, state.popoverKind === "base" && state.popoverContent && "component" in state.popoverContent && /* @__PURE__ */ React5.createElement(Surface.Surface, {
|
|
@@ -518,7 +519,8 @@ var PopoverContent = () => {
|
|
|
518
519
|
}), state.popoverKind === "card" && /* @__PURE__ */ React5.createElement(Card2.Root, {
|
|
519
520
|
border: false,
|
|
520
521
|
classNames: "dx-card-popover"
|
|
521
|
-
}, /* @__PURE__ */ React5.createElement(Card2.
|
|
522
|
+
}, /* @__PURE__ */ React5.createElement(Card2.Header, null, /* @__PURE__ */ React5.createElement(Card2.DragHandle, null), state.popoverTitle ? /* @__PURE__ */ React5.createElement(Card2.Title, null, toLocalizedString2(state.popoverTitle, t)) : /* @__PURE__ */ React5.createElement("span", null), /* @__PURE__ */ React5.createElement(Card2.ActionIconButton, {
|
|
523
|
+
action: "close",
|
|
522
524
|
onClick: handleClose
|
|
523
525
|
})), state.popoverContent && "subject" in state.popoverContent && /* @__PURE__ */ React5.createElement(Surface.Surface, {
|
|
524
526
|
type: AppSurface.Card,
|
|
@@ -530,9 +532,10 @@ var PopoverContent = () => {
|
|
|
530
532
|
// src/components/SimpleLayout/AppBar.tsx
|
|
531
533
|
import { useAtomValue } from "@effect-atom/atom-react";
|
|
532
534
|
import React6, { Fragment } from "react";
|
|
533
|
-
import { IconButton, Popover as Popover2, Toolbar, useTranslation as useTranslation3 } from "@dxos/react-ui";
|
|
535
|
+
import { DensityProvider, IconButton, Popover as Popover2, Toolbar, useTranslation as useTranslation3 } from "@dxos/react-ui";
|
|
536
|
+
import { composable, composableProps } from "@dxos/react-ui";
|
|
534
537
|
import { Menu, useMenuActions } from "@dxos/react-ui-menu";
|
|
535
|
-
import {
|
|
538
|
+
import { osTranslations } from "@dxos/ui-theme";
|
|
536
539
|
import { meta as meta3 } from "#meta";
|
|
537
540
|
var APP_BAR_NAME = "SimpleLayout.AppBar";
|
|
538
541
|
var AppBar = composable(({ classNames, title, actions, showBackButton, popoverAnchorId, onAction, onBack, ...props }, forwardedRef) => {
|
|
@@ -545,10 +548,12 @@ var AppBar = composable(({ classNames, title, actions, showBackButton, popoverAn
|
|
|
545
548
|
ns: osTranslations
|
|
546
549
|
});
|
|
547
550
|
const AnchorRoot = popoverAnchorId ? Popover2.Anchor : Fragment;
|
|
548
|
-
return /* @__PURE__ */ React6.createElement(
|
|
551
|
+
return /* @__PURE__ */ React6.createElement(DensityProvider, {
|
|
552
|
+
density: "md"
|
|
553
|
+
}, /* @__PURE__ */ React6.createElement(Toolbar.Root, {
|
|
549
554
|
...composableProps(props, {
|
|
550
555
|
role: "banner",
|
|
551
|
-
classNames: "grid grid-cols-[var(--dx-rail-size)_1fr_var(--dx-rail-size)] items-center dx-density-
|
|
556
|
+
classNames: "grid grid-cols-[var(--dx-rail-size)_1fr_var(--dx-rail-size)] items-center dx-density-md"
|
|
552
557
|
}),
|
|
553
558
|
ref: forwardedRef
|
|
554
559
|
}, keyboardOpen ? /* @__PURE__ */ React6.createElement(IconButton, {
|
|
@@ -575,7 +580,7 @@ var AppBar = composable(({ classNames, title, actions, showBackButton, popoverAn
|
|
|
575
580
|
icon: "ph--dots-three-vertical--regular",
|
|
576
581
|
iconOnly: true,
|
|
577
582
|
label: t("actions-menu.label")
|
|
578
|
-
})), /* @__PURE__ */ React6.createElement(Menu.Content, null))) : /* @__PURE__ */ React6.createElement("span", null));
|
|
583
|
+
})), /* @__PURE__ */ React6.createElement(Menu.Content, null))) : /* @__PURE__ */ React6.createElement("span", null)));
|
|
579
584
|
});
|
|
580
585
|
AppBar.displayName = APP_BAR_NAME;
|
|
581
586
|
|
|
@@ -590,8 +595,8 @@ import { useAppBarProps, useNavbarActions, useSimpleLayoutState as useSimpleLayo
|
|
|
590
595
|
|
|
591
596
|
// src/components/SimpleLayout/NavBar.tsx
|
|
592
597
|
import React7 from "react";
|
|
598
|
+
import { composable as composable2, composableProps as composableProps2 } from "@dxos/react-ui";
|
|
593
599
|
import { Menu as Menu2, useMenuActions as useMenuActions2 } from "@dxos/react-ui-menu";
|
|
594
|
-
import { composable as composable2, composableProps as composableProps2 } from "@dxos/ui-theme";
|
|
595
600
|
var NAVBAR_NAME = "SimpleLayout.NavBar";
|
|
596
601
|
var NavBar = composable2(({ actions, onAction, ...props }, forwardedRef) => {
|
|
597
602
|
const menuActions = useMenuActions2(actions);
|
|
@@ -893,9 +898,9 @@ var NavBranchTile = (props) => {
|
|
|
893
898
|
fullWidth: true,
|
|
894
899
|
tabIndex: -1,
|
|
895
900
|
"data-selected": isSelected,
|
|
896
|
-
classNames: mx3("dx-focus-ring cursor-pointer", isSelected && "bg-
|
|
901
|
+
classNames: mx3("dx-focus-ring cursor-pointer", isSelected && "bg-selected-surface"),
|
|
897
902
|
onClick: handleSelect
|
|
898
|
-
}, /* @__PURE__ */ React12.createElement(Card3.
|
|
903
|
+
}, /* @__PURE__ */ React12.createElement(Card3.Header, null, /* @__PURE__ */ React12.createElement(Avatar2.Root, null, /* @__PURE__ */ React12.createElement(Avatar2.Content, {
|
|
899
904
|
hue: data.properties.hue,
|
|
900
905
|
icon: data.properties.icon,
|
|
901
906
|
hueVariant: "transparent",
|