@dxos/plugin-deck 0.8.2-main.f081794 → 0.8.2-main.fbd8ed0
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/{app-graph-builder-VYZ4IWI3.mjs → app-graph-builder-R7COZ4A6.mjs} +16 -15
- package/dist/lib/browser/app-graph-builder-R7COZ4A6.mjs.map +7 -0
- package/dist/lib/browser/{check-app-scheme-SEYECDHI.mjs → check-app-scheme-7AXGR6UT.mjs} +2 -3
- package/dist/lib/browser/check-app-scheme-7AXGR6UT.mjs.map +7 -0
- package/dist/lib/browser/chunk-3O2UZVBA.mjs +121 -0
- package/dist/lib/browser/chunk-3O2UZVBA.mjs.map +7 -0
- package/dist/lib/browser/chunk-JAYQ5BTF.mjs +157 -0
- package/dist/lib/browser/chunk-JAYQ5BTF.mjs.map +7 -0
- package/dist/lib/browser/{chunk-VP6FCWFV.mjs → chunk-KIGMELV2.mjs} +257 -247
- package/dist/lib/browser/chunk-KIGMELV2.mjs.map +7 -0
- package/dist/lib/browser/{state-Z6UY2Z3M.mjs → chunk-OF5RIATN.mjs} +6 -4
- package/dist/lib/browser/chunk-OF5RIATN.mjs.map +7 -0
- package/dist/lib/browser/chunk-TRFYUEBA.mjs +145 -0
- package/dist/lib/browser/chunk-TRFYUEBA.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +4 -5
- package/dist/lib/browser/index.mjs.map +1 -1
- package/dist/lib/browser/{intent-resolver-6AK45PT5.mjs → intent-resolver-MAKOS57L.mjs} +86 -63
- package/dist/lib/browser/intent-resolver-MAKOS57L.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-root-KA2IL5RA.mjs → react-root-DGQVIHXP.mjs} +6 -6
- package/dist/lib/browser/{react-surface-LIPGYEYN.mjs → react-surface-PXBXIOPU.mjs} +6 -6
- package/dist/lib/browser/{settings-6NU7CF2B.mjs → settings-UBWJF7J7.mjs} +4 -4
- package/dist/lib/browser/{settings-6NU7CF2B.mjs.map → settings-UBWJF7J7.mjs.map} +3 -3
- package/dist/lib/browser/state-4WFB4SDO.mjs +10 -0
- package/dist/lib/browser/state-4WFB4SDO.mjs.map +7 -0
- package/dist/lib/browser/{tools-VDVQTJMD.mjs → tools-IVPIPTVA.mjs} +7 -7
- package/dist/lib/browser/tools-IVPIPTVA.mjs.map +7 -0
- package/dist/lib/browser/types.mjs +1 -1
- package/dist/lib/browser/{url-handler-3CARFXQK.mjs → url-handler-JSYGSVSB.mjs} +4 -4
- package/dist/lib/browser/url-handler-JSYGSVSB.mjs.map +7 -0
- package/dist/types/src/capabilities/app-graph-builder.d.ts +2 -179
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/check-app-scheme.d.ts +2 -2
- package/dist/types/src/capabilities/check-app-scheme.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +5 -180
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/intent-resolver.d.ts +2 -2
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -1
- package/dist/types/src/capabilities/state.d.ts +2 -2
- package/dist/types/src/capabilities/state.d.ts.map +1 -1
- package/dist/types/src/capabilities/tools.d.ts.map +1 -1
- package/dist/types/src/capabilities/url-handler.d.ts +2 -2
- package/dist/types/src/capabilities/url-handler.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/Banner.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/ContentEmpty.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/DeckLayout.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/Popover.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/StatusBar.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/Toast.d.ts.map +1 -1
- package/dist/types/src/components/DeckSettings/DeckSettings.d.ts.map +1 -1
- package/dist/types/src/components/Plank/Plank.d.ts +18 -5
- package/dist/types/src/components/Plank/Plank.d.ts.map +1 -1
- package/dist/types/src/components/Plank/Plank.stories.d.ts +3 -3
- package/dist/types/src/components/Plank/Plank.stories.d.ts.map +1 -1
- package/dist/types/src/components/Plank/PlankControls.d.ts +1 -0
- package/dist/types/src/components/Plank/PlankControls.d.ts.map +1 -1
- package/dist/types/src/components/Plank/PlankError.d.ts.map +1 -1
- package/dist/types/src/components/Plank/PlankHeading.d.ts.map +1 -1
- package/dist/types/src/components/Sidebar/ComplementarySidebar.d.ts.map +1 -1
- package/dist/types/src/components/Sidebar/Sidebar.d.ts.map +1 -1
- package/dist/types/src/components/Sidebar/SidebarButton.d.ts +2 -1
- package/dist/types/src/components/Sidebar/SidebarButton.d.ts.map +1 -1
- package/dist/types/src/hooks/index.d.ts +5 -1
- package/dist/types/src/hooks/index.d.ts.map +1 -1
- package/dist/types/src/hooks/useBreakpoints.d.ts.map +1 -0
- package/dist/types/src/hooks/useCompanions.d.ts.map +1 -0
- package/dist/types/src/hooks/useDeckCompanions.d.ts +13 -0
- package/dist/types/src/hooks/useDeckCompanions.d.ts.map +1 -0
- package/dist/types/src/hooks/useHoistStatusbar.d.ts.map +1 -0
- package/dist/types/src/hooks/useNodeActionExpander.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +1 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/layout.d.ts.map +1 -1
- package/dist/types/src/types.d.ts +104 -104
- package/dist/types/src/types.d.ts.map +1 -1
- package/dist/types/src/util/index.d.ts +1 -4
- package/dist/types/src/util/index.d.ts.map +1 -1
- package/dist/types/src/util/layoutAppliesTopbar.d.ts.map +1 -1
- package/dist/types/src/util/overscroll.d.ts.map +1 -1
- package/dist/types/src/util/set-active.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +36 -29
- package/src/capabilities/app-graph-builder.ts +120 -92
- package/src/capabilities/check-app-scheme.ts +3 -7
- package/src/capabilities/index.ts +1 -0
- package/src/capabilities/intent-resolver.ts +140 -114
- package/src/capabilities/settings.ts +2 -2
- package/src/capabilities/state.ts +4 -2
- package/src/capabilities/tools.ts +4 -3
- package/src/capabilities/url-handler.ts +4 -4
- package/src/components/DeckLayout/ContentEmpty.tsx +3 -2
- package/src/components/DeckLayout/DeckLayout.tsx +12 -10
- package/src/components/DeckLayout/Popover.tsx +71 -43
- package/src/components/Plank/Plank.stories.tsx +20 -8
- package/src/components/Plank/Plank.tsx +101 -66
- package/src/components/Plank/PlankControls.tsx +26 -30
- package/src/components/Plank/PlankError.tsx +2 -6
- package/src/components/Plank/PlankHeading.tsx +23 -8
- package/src/components/Sidebar/ComplementarySidebar.tsx +4 -35
- package/src/components/Sidebar/Sidebar.tsx +2 -1
- package/src/components/Sidebar/SidebarButton.tsx +30 -7
- package/src/components/fragments.ts +1 -1
- package/src/hooks/index.ts +5 -1
- package/src/{util → hooks}/useCompanions.ts +3 -3
- package/src/hooks/useDeckCompanions.ts +33 -0
- package/src/hooks/useNodeActionExpander.ts +3 -8
- package/src/index.ts +1 -1
- package/src/types.ts +72 -71
- package/src/util/index.ts +1 -4
- package/dist/lib/browser/app-graph-builder-VYZ4IWI3.mjs.map +0 -7
- package/dist/lib/browser/check-app-scheme-SEYECDHI.mjs.map +0 -7
- package/dist/lib/browser/chunk-4QSEGMY3.mjs +0 -24
- package/dist/lib/browser/chunk-4QSEGMY3.mjs.map +0 -7
- package/dist/lib/browser/chunk-6HJZL3WT.mjs +0 -118
- package/dist/lib/browser/chunk-6HJZL3WT.mjs.map +0 -7
- package/dist/lib/browser/chunk-FLOVGNYB.mjs +0 -81
- package/dist/lib/browser/chunk-FLOVGNYB.mjs.map +0 -7
- package/dist/lib/browser/chunk-VP6FCWFV.mjs.map +0 -7
- package/dist/lib/browser/chunk-ZMJMCN7O.mjs +0 -157
- package/dist/lib/browser/chunk-ZMJMCN7O.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-6AK45PT5.mjs.map +0 -7
- package/dist/lib/browser/state-Z6UY2Z3M.mjs.map +0 -7
- package/dist/lib/browser/tools-VDVQTJMD.mjs.map +0 -7
- package/dist/lib/browser/url-handler-3CARFXQK.mjs.map +0 -7
- package/dist/types/src/util/useBreakpoints.d.ts.map +0 -1
- package/dist/types/src/util/useCompanions.d.ts.map +0 -1
- package/dist/types/src/util/useHoistStatusbar.d.ts.map +0 -1
- /package/dist/lib/browser/{react-root-KA2IL5RA.mjs.map → react-root-DGQVIHXP.mjs.map} +0 -0
- /package/dist/lib/browser/{react-surface-LIPGYEYN.mjs.map → react-surface-PXBXIOPU.mjs.map} +0 -0
- /package/dist/types/src/{util → hooks}/useBreakpoints.d.ts +0 -0
- /package/dist/types/src/{util → hooks}/useCompanions.d.ts +0 -0
- /package/dist/types/src/{util → hooks}/useHoistStatusbar.d.ts +0 -0
- /package/src/{util → hooks}/useBreakpoints.ts +0 -0
- /package/src/{util → hooks}/useHoistStatusbar.ts +0 -0
|
@@ -6,18 +6,19 @@ import {
|
|
|
6
6
|
} from "./chunk-NSATFAEE.mjs";
|
|
7
7
|
|
|
8
8
|
// packages/plugins/plugin-deck/src/capabilities/app-graph-builder.ts
|
|
9
|
+
import { Rx } from "@effect-rx/rx-react";
|
|
10
|
+
import { Option, pipe } from "effect";
|
|
9
11
|
import { Capabilities, contributes, createIntent, LayoutAction } from "@dxos/app-framework";
|
|
10
12
|
import { AttentionCapabilities } from "@dxos/plugin-attention";
|
|
11
|
-
import { createExtension, ROOT_ID } from "@dxos/plugin-graph";
|
|
13
|
+
import { createExtension, ROOT_ID, rxFromSignal } from "@dxos/plugin-graph";
|
|
12
14
|
var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBuilder, createExtension({
|
|
13
15
|
id: DECK_PLUGIN,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
const state = context.requestCapability(DeckCapabilities.MutableDeckState);
|
|
16
|
+
actions: (node) => Rx.make((get) => pipe(get(node), Option.flatMap((node2) => node2.id === ROOT_ID ? Option.some(node2) : Option.none()), Option.map(() => {
|
|
17
|
+
const state = context.getCapability(DeckCapabilities.MutableDeckState);
|
|
17
18
|
const _fullscreen = {
|
|
18
19
|
id: `${LayoutAction.UpdateLayout._tag}/fullscreen`,
|
|
19
20
|
data: async () => {
|
|
20
|
-
const { dispatchPromise: dispatch } = context.
|
|
21
|
+
const { dispatchPromise: dispatch } = context.getCapability(Capabilities.IntentDispatcher);
|
|
21
22
|
await dispatch(createIntent(LayoutAction.SetLayoutMode, {
|
|
22
23
|
part: "mode",
|
|
23
24
|
options: {
|
|
@@ -42,10 +43,10 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
42
43
|
const closeCurrent = {
|
|
43
44
|
id: `${LayoutAction.Close._tag}/current`,
|
|
44
45
|
data: async () => {
|
|
45
|
-
const attention = context.
|
|
46
|
+
const attention = context.getCapability(AttentionCapabilities.Attention);
|
|
46
47
|
const attended = attention.current.at(-1);
|
|
47
48
|
if (attended) {
|
|
48
|
-
const { dispatchPromise: dispatch } = context.
|
|
49
|
+
const { dispatchPromise: dispatch } = context.getCapability(Capabilities.IntentDispatcher);
|
|
49
50
|
await dispatch(createIntent(LayoutAction.Close, {
|
|
50
51
|
part: "main",
|
|
51
52
|
subject: [
|
|
@@ -70,8 +71,8 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
70
71
|
const closeOthers = {
|
|
71
72
|
id: `${LayoutAction.Close._tag}/others`,
|
|
72
73
|
data: async () => {
|
|
73
|
-
const { dispatchPromise: dispatch } = context.
|
|
74
|
-
const attention = context.
|
|
74
|
+
const { dispatchPromise: dispatch } = context.getCapability(Capabilities.IntentDispatcher);
|
|
75
|
+
const attention = context.getCapability(AttentionCapabilities.Attention);
|
|
75
76
|
const attended = attention.current.at(-1);
|
|
76
77
|
const ids = state.deck.active.filter((id) => id !== attended) ?? [];
|
|
77
78
|
await dispatch(createIntent(LayoutAction.Close, {
|
|
@@ -95,7 +96,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
95
96
|
const closeAll = {
|
|
96
97
|
id: `${LayoutAction.Close._tag}/all`,
|
|
97
98
|
data: async () => {
|
|
98
|
-
const { dispatchPromise: dispatch } = context.
|
|
99
|
+
const { dispatchPromise: dispatch } = context.getCapability(Capabilities.IntentDispatcher);
|
|
99
100
|
await dispatch(createIntent(LayoutAction.Close, {
|
|
100
101
|
part: "main",
|
|
101
102
|
subject: state.deck.active,
|
|
@@ -121,7 +122,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
121
122
|
},
|
|
122
123
|
properties: {
|
|
123
124
|
label: [
|
|
124
|
-
state.sidebarState === "expanded" ? "collapse navigation sidebar label" : "open navigation sidebar label",
|
|
125
|
+
get(rxFromSignal(() => state.sidebarState === "expanded" ? "collapse navigation sidebar label" : "open navigation sidebar label")),
|
|
125
126
|
{
|
|
126
127
|
ns: DECK_PLUGIN
|
|
127
128
|
}
|
|
@@ -135,17 +136,17 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
135
136
|
l0Breakpoint: "lg"
|
|
136
137
|
}
|
|
137
138
|
};
|
|
138
|
-
return !state.deck.solo ? [
|
|
139
|
+
return get(rxFromSignal(() => !state.deck.solo ? [
|
|
139
140
|
closeCurrent,
|
|
140
141
|
closeOthers,
|
|
141
142
|
closeAll,
|
|
142
143
|
toggleSidebar
|
|
143
144
|
] : [
|
|
144
145
|
toggleSidebar
|
|
145
|
-
];
|
|
146
|
-
}
|
|
146
|
+
]));
|
|
147
|
+
}), Option.getOrElse(() => [])))
|
|
147
148
|
}));
|
|
148
149
|
export {
|
|
149
150
|
app_graph_builder_default as default
|
|
150
151
|
};
|
|
151
|
-
//# sourceMappingURL=app-graph-builder-
|
|
152
|
+
//# sourceMappingURL=app-graph-builder-R7COZ4A6.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/app-graph-builder.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Rx } from '@effect-rx/rx-react';\nimport { Option, pipe } from 'effect';\n\nimport { Capabilities, contributes, createIntent, LayoutAction, type PluginContext } from '@dxos/app-framework';\nimport { AttentionCapabilities } from '@dxos/plugin-attention';\nimport { createExtension, ROOT_ID, rxFromSignal } from '@dxos/plugin-graph';\n\nimport { DeckCapabilities } from './capabilities';\nimport { DECK_PLUGIN } from '../meta';\n\nexport default (context: PluginContext) =>\n contributes(\n Capabilities.AppGraphBuilder,\n createExtension({\n id: DECK_PLUGIN,\n actions: (node) =>\n Rx.make((get) =>\n pipe(\n get(node),\n Option.flatMap((node) => (node.id === ROOT_ID ? Option.some(node) : Option.none())),\n Option.map(() => {\n const state = context.getCapability(DeckCapabilities.MutableDeckState);\n\n // NOTE(Zan): This is currently disabled.\n // TODO(Zan): Fullscreen needs to know the active node and provide that to the layout part.\n const _fullscreen = {\n id: `${LayoutAction.UpdateLayout._tag}/fullscreen`,\n data: async () => {\n const { dispatchPromise: dispatch } = context.getCapability(Capabilities.IntentDispatcher);\n await dispatch(\n createIntent(LayoutAction.SetLayoutMode, { part: 'mode', options: { mode: 'fullscreen' } }),\n );\n },\n properties: {\n label: ['toggle fullscreen label', { ns: DECK_PLUGIN }],\n icon: 'ph--arrows-out--regular',\n keyBinding: {\n macos: 'ctrl+meta+f',\n windows: 'shift+ctrl+f',\n },\n },\n };\n\n const closeCurrent = {\n id: `${LayoutAction.Close._tag}/current`,\n data: async () => {\n const attention = context.getCapability(AttentionCapabilities.Attention);\n const attended = attention.current.at(-1);\n if (attended) {\n const { dispatchPromise: dispatch } = context.getCapability(Capabilities.IntentDispatcher);\n await dispatch(\n createIntent(LayoutAction.Close, {\n part: 'main',\n subject: [attended],\n options: { state: false },\n }),\n );\n }\n },\n properties: {\n label: ['close current label', { ns: DECK_PLUGIN }],\n icon: 'ph--x--regular',\n },\n };\n\n const closeOthers = {\n id: `${LayoutAction.Close._tag}/others`,\n data: async () => {\n const { dispatchPromise: dispatch } = context.getCapability(Capabilities.IntentDispatcher);\n const attention = context.getCapability(AttentionCapabilities.Attention);\n const attended = attention.current.at(-1);\n const ids = state.deck.active.filter((id) => id !== attended) ?? [];\n await dispatch(\n createIntent(LayoutAction.Close, { part: 'main', subject: ids, options: { state: false } }),\n );\n },\n properties: {\n label: ['close others label', { ns: DECK_PLUGIN }],\n icon: 'ph--x-square--regular',\n },\n };\n\n const closeAll = {\n id: `${LayoutAction.Close._tag}/all`,\n data: async () => {\n const { dispatchPromise: dispatch } = context.getCapability(Capabilities.IntentDispatcher);\n await dispatch(\n createIntent(LayoutAction.Close, {\n part: 'main',\n subject: state.deck.active,\n options: { state: false },\n }),\n );\n },\n properties: {\n label: ['close all label', { ns: DECK_PLUGIN }],\n icon: 'ph--x-circle--regular',\n },\n };\n\n const toggleSidebar = {\n id: `${LayoutAction.UpdateSidebar._tag}/nav`,\n data: async () => {\n state.sidebarState = state.sidebarState === 'expanded' ? 'collapsed' : 'expanded';\n },\n properties: {\n label: [\n get(\n rxFromSignal(() =>\n state.sidebarState === 'expanded'\n ? 'collapse navigation sidebar label'\n : 'open navigation sidebar label',\n ),\n ),\n { ns: DECK_PLUGIN },\n ],\n icon: 'ph--sidebar--regular',\n keyBinding: {\n macos: 'meta+b',\n },\n disposition: 'pin-end',\n position: 'hoist',\n l0Breakpoint: 'lg',\n },\n };\n\n return get(\n rxFromSignal(() =>\n !state.deck.solo ? [closeCurrent, closeOthers, closeAll, toggleSidebar] : [toggleSidebar],\n ),\n );\n }),\n Option.getOrElse(() => []),\n ),\n ),\n }),\n );\n"],
|
|
5
|
+
"mappings": ";;;;;;;;AAIA,SAASA,UAAU;AACnB,SAASC,QAAQC,YAAY;AAE7B,SAASC,cAAcC,aAAaC,cAAcC,oBAAwC;AAC1F,SAASC,6BAA6B;AACtC,SAASC,iBAAiBC,SAASC,oBAAoB;AAKvD,IAAA,4BAAe,CAACC,YACdC,YACEC,aAAaC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O;QACT;QACAqB,aAAa;QACbC,UAAU;QACVC,cAAc;MAChB;IACF;AAEA,WAAOrD,IACLkD,aAAa,MACX,CAAC1C,MAAMmC,KAAKW,OAAO;MAACtB;MAAcS;MAAaK;MAAUC;QAAiB;MAACA;KAAc,CAAA;EAG/F,CAAA,GACA7C,OAAOqD,UAAU,MAAM,CAAA,CAAE,CAAA,CAAA;AAGjC,CAAA,CAAA;",
|
|
6
|
+
"names": ["Rx", "Option", "pipe", "Capabilities", "contributes", "createIntent", "LayoutAction", "AttentionCapabilities", "createExtension", "ROOT_ID", "rxFromSignal", "context", "contributes", "Capabilities", "AppGraphBuilder", "createExtension", "id", "DECK_PLUGIN", "actions", "node", "Rx", "make", "get", "pipe", "Option", "flatMap", "ROOT_ID", "some", "none", "map", "state", "getCapability", "DeckCapabilities", "MutableDeckState", "_fullscreen", "LayoutAction", "UpdateLayout", "_tag", "data", "dispatchPromise", "dispatch", "IntentDispatcher", "createIntent", "SetLayoutMode", "part", "options", "mode", "properties", "label", "ns", "icon", "keyBinding", "macos", "windows", "closeCurrent", "Close", "attention", "AttentionCapabilities", "Attention", "attended", "current", "at", "subject", "closeOthers", "ids", "deck", "active", "filter", "closeAll", "toggleSidebar", "UpdateSidebar", "sidebarState", "rxFromSignal", "disposition", "position", "l0Breakpoint", "solo", "getOrElse"]
|
|
7
|
+
}
|
|
@@ -20,8 +20,7 @@ var checkAppScheme = (url) => {
|
|
|
20
20
|
});
|
|
21
21
|
};
|
|
22
22
|
var check_app_scheme_default = async (context) => {
|
|
23
|
-
const
|
|
24
|
-
const settings = settingsStore.getStore(DECK_PLUGIN)?.value;
|
|
23
|
+
const settings = context.getCapability(Capabilities.SettingsStore).getStore(DECK_PLUGIN)?.value;
|
|
25
24
|
if (!isSocket && settings?.enableNativeRedirect) {
|
|
26
25
|
checkAppScheme(appScheme);
|
|
27
26
|
}
|
|
@@ -30,4 +29,4 @@ var check_app_scheme_default = async (context) => {
|
|
|
30
29
|
export {
|
|
31
30
|
check_app_scheme_default as default
|
|
32
31
|
};
|
|
33
|
-
//# sourceMappingURL=check-app-scheme-
|
|
32
|
+
//# sourceMappingURL=check-app-scheme-7AXGR6UT.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/check-app-scheme.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capabilities, contributes, type PluginContext } from '@dxos/app-framework';\n\nimport { DECK_PLUGIN } from '../meta';\nimport { type DeckSettingsProps } from '../types';\n\nconst isSocket = !!(globalThis as any).__args;\n\n// TODO(mjamesderocher): Can we get this directly from Socket?\nconst appScheme = 'composer://';\n\n// TODO(mjamesderocher): Factor out as part of NavigationPlugin.\nconst checkAppScheme = (url: string) => {\n const iframe = document.createElement('iframe');\n iframe.style.display = 'none';\n document.body.appendChild(iframe);\n\n iframe.src = url + window.location.pathname.replace(/^\\/+/, '') + window.location.search;\n\n const timer = setTimeout(() => {\n document.body.removeChild(iframe);\n }, 3000);\n\n window.addEventListener('pagehide', (event) => {\n clearTimeout(timer);\n document.body.removeChild(iframe);\n });\n};\n\nexport default async (context: PluginContext) => {\n const settings = context.getCapability(Capabilities.SettingsStore).getStore<DeckSettingsProps>(DECK_PLUGIN)?.value;\n if (!isSocket && settings?.enableNativeRedirect) {\n checkAppScheme(appScheme);\n }\n\n return contributes(Capabilities.Null, null);\n};\n"],
|
|
5
|
+
"mappings": ";;;;;AAIA,SAASA,cAAcC,mBAAuC;AAK9D,IAAMC,WAAW,CAAC,CAAEC,WAAmBC;AAGvC,IAAMC,YAAY;AAGlB,IAAMC,iBAAiB,CAACC,QAAAA;AACtB,QAAMC,SAASC,SAASC,cAAc,QAAA;AACtCF,SAAOG,MAAMC,UAAU;AACvBH,WAASI,KAAKC,YAAYN,MAAAA;AAE1BA,SAAOO,MAAMR,MAAMS,OAAOC,SAASC,SAASC,QAAQ,QAAQ,EAAA,IAAMH,OAAOC,SAASG;AAElF,QAAMC,QAAQC,WAAW,MAAA;AACvBb,aAASI,KAAKU,YAAYf,MAAAA;EAC5B,GAAG,GAAA;AAEHQ,SAAOQ,iBAAiB,YAAY,CAACC,UAAAA;AACnCC,iBAAaL,KAAAA;AACbZ,aAASI,KAAKU,YAAYf,MAAAA;EAC5B,CAAA;AACF;AAEA,IAAA,2BAAe,OAAOmB,YAAAA;AACpB,QAAMC,WAAWD,QAAQE,cAAcC,aAAaC,aAAa,EAAEC,SAA4BC,WAAAA,GAAcC;AAC7G,MAAI,CAAChC,YAAY0B,UAAUO,sBAAsB;AAC/C7B,mBAAeD,SAAAA;EACjB;AAEA,SAAO+B,YAAYN,aAAaO,MAAM,IAAA;AACxC;",
|
|
6
|
+
"names": ["Capabilities", "contributes", "isSocket", "globalThis", "__args", "appScheme", "checkAppScheme", "url", "iframe", "document", "createElement", "style", "display", "body", "appendChild", "src", "window", "location", "pathname", "replace", "search", "timer", "setTimeout", "removeChild", "addEventListener", "event", "clearTimeout", "context", "settings", "getCapability", "Capabilities", "SettingsStore", "getStore", "DECK_PLUGIN", "value", "enableNativeRedirect", "contributes", "Null"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ATTENDABLE_PATH_SEPARATOR,
|
|
3
|
+
DECK_COMPANION_TYPE,
|
|
4
|
+
PLANK_COMPANION_TYPE
|
|
5
|
+
} from "./chunk-JAYQ5BTF.mjs";
|
|
6
|
+
import {
|
|
7
|
+
DECK_PLUGIN
|
|
8
|
+
} from "./chunk-NSATFAEE.mjs";
|
|
9
|
+
|
|
10
|
+
// packages/plugins/plugin-deck/src/hooks/useCompanions.ts
|
|
11
|
+
import { useMemo } from "react";
|
|
12
|
+
import { useAppGraph } from "@dxos/app-framework";
|
|
13
|
+
import { useConnections } from "@dxos/plugin-graph";
|
|
14
|
+
import { byPosition } from "@dxos/util";
|
|
15
|
+
var useCompanions = (id) => {
|
|
16
|
+
const { graph } = useAppGraph();
|
|
17
|
+
const nodes = useConnections(graph, id);
|
|
18
|
+
const companions = nodes.filter((node) => node.type === PLANK_COMPANION_TYPE);
|
|
19
|
+
return useMemo(() => companions.toSorted((a, b) => byPosition(a.properties, b.properties)), [
|
|
20
|
+
companions
|
|
21
|
+
]);
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
// packages/plugins/plugin-deck/src/hooks/useBreakpoints.ts
|
|
25
|
+
import { useMediaQuery } from "@dxos/react-ui";
|
|
26
|
+
var useBreakpoints = () => {
|
|
27
|
+
const [isNotMobile] = useMediaQuery("md");
|
|
28
|
+
const [isDesktop] = useMediaQuery("lg");
|
|
29
|
+
return isDesktop ? "desktop" : isNotMobile ? "tablet" : "mobile";
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
// packages/plugins/plugin-deck/src/hooks/useDeckCompanions.ts
|
|
33
|
+
import { useAppGraph as useAppGraph2 } from "@dxos/app-framework";
|
|
34
|
+
import { ROOT_ID, useConnections as useConnections2 } from "@dxos/plugin-graph";
|
|
35
|
+
import { byPosition as byPosition2 } from "@dxos/util";
|
|
36
|
+
var getCompanionId = (id) => {
|
|
37
|
+
const [_, companionId] = id.split(ATTENDABLE_PATH_SEPARATOR);
|
|
38
|
+
return companionId ?? "never";
|
|
39
|
+
};
|
|
40
|
+
var useDeckCompanions = () => {
|
|
41
|
+
const { graph } = useAppGraph2();
|
|
42
|
+
const connections = useConnections2(graph, ROOT_ID);
|
|
43
|
+
const companions = connections.filter((node) => node.type === DECK_COMPANION_TYPE);
|
|
44
|
+
return companions.toSorted((a, b) => byPosition2(a.properties, b.properties));
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
// packages/plugins/plugin-deck/src/hooks/useHoistStatusbar.ts
|
|
48
|
+
import { useMemo as useMemo2 } from "react";
|
|
49
|
+
import { Capabilities, useCapability } from "@dxos/app-framework";
|
|
50
|
+
import { useThemeContext } from "@dxos/react-ui";
|
|
51
|
+
var useHoistStatusbar = (breakpoint, layoutMode) => {
|
|
52
|
+
const enableStatusbar = useCapability(Capabilities.SettingsStore).getStore(DECK_PLUGIN).value.enableStatusbar;
|
|
53
|
+
const { safeAreaPadding } = useThemeContext();
|
|
54
|
+
return useMemo2(() => {
|
|
55
|
+
return breakpoint === "desktop" && layoutMode !== "solo--fullscreen" && !!enableStatusbar && safeAreaPadding?.bottom === 0;
|
|
56
|
+
}, [
|
|
57
|
+
enableStatusbar,
|
|
58
|
+
breakpoint,
|
|
59
|
+
safeAreaPadding?.bottom,
|
|
60
|
+
layoutMode
|
|
61
|
+
]);
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
// packages/plugins/plugin-deck/src/hooks/useMainSize.ts
|
|
65
|
+
import { useMainContext } from "@dxos/react-ui";
|
|
66
|
+
var useMainSize = () => {
|
|
67
|
+
const { navigationSidebarState, complementarySidebarState } = useMainContext("DeckPluginPlank");
|
|
68
|
+
return {
|
|
69
|
+
"data-sidebar-inline-start-state": navigationSidebarState,
|
|
70
|
+
"data-sidebar-inline-end-state": complementarySidebarState
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
// packages/plugins/plugin-deck/src/hooks/useNodeActionExpander.ts
|
|
75
|
+
import { useEffect } from "react";
|
|
76
|
+
import { getGraph } from "@dxos/plugin-graph";
|
|
77
|
+
var useNodeActionExpander = (node) => {
|
|
78
|
+
useEffect(() => {
|
|
79
|
+
if (node) {
|
|
80
|
+
const frame = requestAnimationFrame(() => {
|
|
81
|
+
const graph = getGraph(node);
|
|
82
|
+
graph.expand(node.id);
|
|
83
|
+
});
|
|
84
|
+
return () => cancelAnimationFrame(frame);
|
|
85
|
+
}
|
|
86
|
+
}, [
|
|
87
|
+
node
|
|
88
|
+
]);
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
// packages/plugins/plugin-deck/src/capabilities/index.ts
|
|
92
|
+
import { lazy } from "@dxos/app-framework";
|
|
93
|
+
var AppGraphBuilder = lazy(() => import("./app-graph-builder-R7COZ4A6.mjs"));
|
|
94
|
+
var CheckAppScheme = lazy(() => import("./check-app-scheme-7AXGR6UT.mjs"));
|
|
95
|
+
var DeckSettings = lazy(() => import("./settings-UBWJF7J7.mjs"));
|
|
96
|
+
var DeckState = lazy(() => import("./state-4WFB4SDO.mjs"));
|
|
97
|
+
var LayoutIntentResolver = lazy(() => import("./intent-resolver-MAKOS57L.mjs"));
|
|
98
|
+
var ReactRoot = lazy(() => import("./react-root-DGQVIHXP.mjs"));
|
|
99
|
+
var ReactSurface = lazy(() => import("./react-surface-PXBXIOPU.mjs"));
|
|
100
|
+
var Tools = lazy(() => import("./tools-IVPIPTVA.mjs"));
|
|
101
|
+
var UrlHandler = lazy(() => import("./url-handler-JSYGSVSB.mjs"));
|
|
102
|
+
|
|
103
|
+
export {
|
|
104
|
+
useBreakpoints,
|
|
105
|
+
useCompanions,
|
|
106
|
+
getCompanionId,
|
|
107
|
+
useDeckCompanions,
|
|
108
|
+
useHoistStatusbar,
|
|
109
|
+
useMainSize,
|
|
110
|
+
useNodeActionExpander,
|
|
111
|
+
AppGraphBuilder,
|
|
112
|
+
CheckAppScheme,
|
|
113
|
+
DeckSettings,
|
|
114
|
+
DeckState,
|
|
115
|
+
LayoutIntentResolver,
|
|
116
|
+
ReactRoot,
|
|
117
|
+
ReactSurface,
|
|
118
|
+
Tools,
|
|
119
|
+
UrlHandler
|
|
120
|
+
};
|
|
121
|
+
//# sourceMappingURL=chunk-3O2UZVBA.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/hooks/useCompanions.ts", "../../../src/hooks/useBreakpoints.ts", "../../../src/hooks/useDeckCompanions.ts", "../../../src/hooks/useHoistStatusbar.ts", "../../../src/hooks/useMainSize.ts", "../../../src/hooks/useNodeActionExpander.ts", "../../../src/capabilities/index.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { useMemo } from 'react';\n\nimport { useAppGraph } from '@dxos/app-framework';\nimport { useConnections } from '@dxos/plugin-graph';\nimport { byPosition } from '@dxos/util';\n\nimport { PLANK_COMPANION_TYPE } from '../types';\n\nexport const useCompanions = (id?: string) => {\n const { graph } = useAppGraph();\n const nodes = useConnections(graph, id);\n const companions = nodes.filter((node) => node.type === PLANK_COMPANION_TYPE);\n return useMemo(() => companions.toSorted((a, b) => byPosition(a.properties, b.properties)), [companions]);\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { useMediaQuery } from '@dxos/react-ui';\n\nexport const useBreakpoints = () => {\n const [isNotMobile] = useMediaQuery('md');\n const [isDesktop] = useMediaQuery('lg');\n return isDesktop ? 'desktop' : isNotMobile ? 'tablet' : 'mobile';\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { type Label, useAppGraph } from '@dxos/app-framework';\nimport { ROOT_ID, useConnections, type Node } from '@dxos/plugin-graph';\nimport { byPosition, type Position } from '@dxos/util';\n\nimport { ATTENDABLE_PATH_SEPARATOR, DECK_COMPANION_TYPE } from '../types';\n\nexport const getCompanionId = (id: string) => {\n const [_, companionId] = id.split(ATTENDABLE_PATH_SEPARATOR);\n return companionId ?? 'never';\n};\n\nexport type DeckCompanion = Node<\n any,\n {\n label: Label;\n icon: string;\n // TODO(burdon): Scroll area should be controlled by surface.\n /** If true, the panel will not be wrapped in a scroll area. */\n fixed?: boolean;\n position?: Position;\n }\n>;\n\nexport const useDeckCompanions = (): DeckCompanion[] => {\n const { graph } = useAppGraph();\n const connections = useConnections(graph, ROOT_ID);\n const companions = connections.filter((node) => node.type === DECK_COMPANION_TYPE) as DeckCompanion[];\n return companions.toSorted((a, b) => byPosition(a.properties, b.properties));\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { useMemo } from 'react';\n\nimport { Capabilities, useCapability } from '@dxos/app-framework';\nimport { useThemeContext } from '@dxos/react-ui';\n\nimport { DECK_PLUGIN } from '../meta';\nimport type { DeckSettingsProps, LayoutMode } from '../types';\n\nexport const useHoistStatusbar = (breakpoint: string, layoutMode?: LayoutMode): boolean => {\n const enableStatusbar = useCapability(Capabilities.SettingsStore).getStore<DeckSettingsProps>(DECK_PLUGIN)!.value\n .enableStatusbar;\n const { safeAreaPadding } = useThemeContext();\n return useMemo(() => {\n return (\n breakpoint === 'desktop' &&\n layoutMode !== 'solo--fullscreen' &&\n !!enableStatusbar &&\n safeAreaPadding?.bottom === 0\n );\n }, [enableStatusbar, breakpoint, safeAreaPadding?.bottom, layoutMode]);\n};\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport { useMainContext } from '@dxos/react-ui';\n\nexport const useMainSize = () => {\n const { navigationSidebarState, complementarySidebarState } = useMainContext('DeckPluginPlank');\n return {\n 'data-sidebar-inline-start-state': navigationSidebarState,\n 'data-sidebar-inline-end-state': complementarySidebarState,\n };\n};\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport { useEffect } from 'react';\n\nimport { getGraph, type Node } from '@dxos/plugin-graph';\n\nexport const useNodeActionExpander = (node?: Node) => {\n useEffect(() => {\n if (node) {\n const frame = requestAnimationFrame(() => {\n const graph = getGraph(node);\n graph.expand(node.id);\n });\n return () => cancelAnimationFrame(frame);\n }\n }, [node]);\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { lazy } from '@dxos/app-framework';\n\nexport const AppGraphBuilder = lazy(() => import('./app-graph-builder'));\nexport const CheckAppScheme = lazy(() => import('./check-app-scheme'));\nexport const DeckSettings = lazy(() => import('./settings'));\nexport const DeckState = lazy(() => import('./state'));\nexport const LayoutIntentResolver = lazy(() => import('./intent-resolver'));\nexport const ReactRoot = lazy(() => import('./react-root'));\nexport const ReactSurface = lazy(() => import('./react-surface'));\nexport const Tools = lazy(() => import('./tools'));\nexport const UrlHandler = lazy(() => import('./url-handler'));\n\nexport * from './capabilities';\nexport * from './state';\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;AAIA,SAASA,eAAe;AAExB,SAASC,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ompanions", "id", "graph", "useAppGraph", "nodes", "useConnections", "companions", "filter", "node", "type", "PLANK_COMPANION_TYPE", "useMemo", "toSorted", "a", "b", "byPosition", "properties", "useMediaQuery", "useBreakpoints", "isNotMobile", "useMediaQuery", "isDesktop", "useAppGraph", "ROOT_ID", "useConnections", "byPosition", "getCompanionId", "id", "_", "companionId", "split", "ATTENDABLE_PATH_SEPARATOR", "useDeckCompanions", "graph", "useAppGraph", "connections", "useConnections", "ROOT_ID", "companions", "filter", "node", "type", "DECK_COMPANION_TYPE", "toSorted", "a", "b", "byPosition", "properties", "useMemo", "Capabilities", "useCapability", "useThemeContext", "useHoistStatusbar", "breakpoint", "layoutMode", "enableStatusbar", "useCapability", "Capabilities", "SettingsStore", "getStore", "DECK_PLUGIN", "value", "safeAreaPadding", "useThemeContext", "useMemo", "bottom", "useMainContext", "useMainSize", "navigationSidebarState", "complementarySidebarState", "useMainContext", "useEffect", "getGraph", "useNodeActionExpander", "node", "useEffect", "frame", "requestAnimationFrame", "graph", "getGraph", "expand", "id", "cancelAnimationFrame", "lazy", "AppGraphBuilder", "lazy", "CheckAppScheme", "DeckSettings", "DeckState", "LayoutIntentResolver", "ReactRoot", "ReactSurface", "Tools", "UrlHandler"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DECK_PLUGIN
|
|
3
|
+
} from "./chunk-NSATFAEE.mjs";
|
|
4
|
+
|
|
5
|
+
// packages/plugins/plugin-deck/src/types.ts
|
|
6
|
+
import { Schema } from "effect";
|
|
7
|
+
import { LayoutAction } from "@dxos/app-framework";
|
|
8
|
+
import { ATTENDABLE_PATH_SEPARATOR } from "@dxos/react-ui-attention";
|
|
9
|
+
var PLANK_COMPANION_TYPE = "dxos.org/plugin/deck/plank-companion";
|
|
10
|
+
var DECK_COMPANION_TYPE = "dxos.org/plugin/deck/deck-companion";
|
|
11
|
+
var NewPlankPositions = [
|
|
12
|
+
"start",
|
|
13
|
+
"end"
|
|
14
|
+
];
|
|
15
|
+
var OverscrollOptions = [
|
|
16
|
+
"none",
|
|
17
|
+
"centering"
|
|
18
|
+
];
|
|
19
|
+
var DeckSettingsSchema = Schema.Struct({
|
|
20
|
+
showHints: Schema.optional(Schema.Boolean),
|
|
21
|
+
enableDeck: Schema.optional(Schema.Boolean),
|
|
22
|
+
enableStatusbar: Schema.optional(Schema.Boolean),
|
|
23
|
+
enableNativeRedirect: Schema.optional(Schema.Boolean),
|
|
24
|
+
newPlankPositioning: Schema.optional(Schema.Literal(...NewPlankPositions)),
|
|
25
|
+
overscroll: Schema.optional(Schema.Literal(...OverscrollOptions))
|
|
26
|
+
}).pipe(Schema.mutable);
|
|
27
|
+
var PlankSizing = Schema.Record({
|
|
28
|
+
key: Schema.String,
|
|
29
|
+
value: Schema.Number
|
|
30
|
+
});
|
|
31
|
+
var DeckState = Schema.Struct({
|
|
32
|
+
/** If false, the deck has not yet left solo mode and new planks should be soloed. */
|
|
33
|
+
initialized: Schema.Boolean,
|
|
34
|
+
active: Schema.mutable(Schema.Array(Schema.String)),
|
|
35
|
+
// TODO(wittjosiah): Piping into both mutable and optional caused invalid typescript output.
|
|
36
|
+
activeCompanions: Schema.optional(Schema.mutable(Schema.Record({
|
|
37
|
+
key: Schema.String,
|
|
38
|
+
value: Schema.String
|
|
39
|
+
}))),
|
|
40
|
+
inactive: Schema.mutable(Schema.Array(Schema.String)),
|
|
41
|
+
solo: Schema.optional(Schema.String),
|
|
42
|
+
fullscreen: Schema.Boolean,
|
|
43
|
+
plankSizing: Schema.mutable(PlankSizing),
|
|
44
|
+
companionFrameSizing: Schema.mutable(PlankSizing)
|
|
45
|
+
});
|
|
46
|
+
var defaultDeck = {
|
|
47
|
+
initialized: false,
|
|
48
|
+
active: [],
|
|
49
|
+
activeCompanions: {},
|
|
50
|
+
inactive: [],
|
|
51
|
+
solo: void 0,
|
|
52
|
+
fullscreen: false,
|
|
53
|
+
plankSizing: {},
|
|
54
|
+
companionFrameSizing: {}
|
|
55
|
+
};
|
|
56
|
+
var LayoutMode = Schema.Literal("deck", "solo", "solo--fullscreen");
|
|
57
|
+
var isLayoutMode = (value) => Schema.is(LayoutMode)(value);
|
|
58
|
+
var getMode = (deck) => {
|
|
59
|
+
if (deck.solo) {
|
|
60
|
+
return deck.fullscreen ? "solo--fullscreen" : "solo";
|
|
61
|
+
}
|
|
62
|
+
return "deck";
|
|
63
|
+
};
|
|
64
|
+
var DeckPluginState = Schema.Struct({
|
|
65
|
+
sidebarState: Schema.Literal("closed", "collapsed", "expanded"),
|
|
66
|
+
complementarySidebarState: Schema.Literal("closed", "collapsed", "expanded"),
|
|
67
|
+
complementarySidebarPanel: Schema.optional(Schema.String),
|
|
68
|
+
dialogOpen: Schema.Boolean,
|
|
69
|
+
dialogBlockAlign: Schema.optional(Schema.Literal("start", "center", "end")),
|
|
70
|
+
dialogType: Schema.optional(Schema.Literal("default", "alert")),
|
|
71
|
+
/** Data to be passed to the dialog Surface. */
|
|
72
|
+
dialogContent: Schema.optional(Schema.Any),
|
|
73
|
+
popoverOpen: Schema.Boolean,
|
|
74
|
+
popoverSide: Schema.optional(Schema.Literal("top", "right", "bottom", "left")),
|
|
75
|
+
popoverAnchor: Schema.optional(Schema.Any),
|
|
76
|
+
popoverAnchorId: Schema.optional(Schema.String),
|
|
77
|
+
/** Data to be passed to the popover Surface. */
|
|
78
|
+
popoverContent: Schema.optional(Schema.Any),
|
|
79
|
+
toasts: Schema.mutable(Schema.Array(LayoutAction.Toast)),
|
|
80
|
+
currentUndoId: Schema.optional(Schema.String),
|
|
81
|
+
activeDeck: Schema.String,
|
|
82
|
+
previousDeck: Schema.String,
|
|
83
|
+
decks: Schema.mutable(Schema.Record({
|
|
84
|
+
key: Schema.String,
|
|
85
|
+
value: Schema.mutable(DeckState)
|
|
86
|
+
})),
|
|
87
|
+
previousMode: Schema.mutable(Schema.Record({
|
|
88
|
+
key: Schema.String,
|
|
89
|
+
value: LayoutMode
|
|
90
|
+
})),
|
|
91
|
+
deck: Schema.mutable(DeckState),
|
|
92
|
+
/** The identifier of a component to scroll into view when it is mounted. */
|
|
93
|
+
scrollIntoView: Schema.optional(Schema.String)
|
|
94
|
+
}).pipe(Schema.mutable);
|
|
95
|
+
var DECK_ACTION = `${DECK_PLUGIN}/action`;
|
|
96
|
+
var DeckAction;
|
|
97
|
+
(function(DeckAction2) {
|
|
98
|
+
const PartAdjustmentSchema = Schema.Union(Schema.Literal("close").annotations({
|
|
99
|
+
description: "Close the plank."
|
|
100
|
+
}), Schema.Literal("companion").annotations({
|
|
101
|
+
description: "Open the companion plank."
|
|
102
|
+
}), Schema.Literal("solo").annotations({
|
|
103
|
+
description: "Solo the plank."
|
|
104
|
+
}), Schema.Literal("solo--fullscreen").annotations({
|
|
105
|
+
description: "Fullscreen the plank."
|
|
106
|
+
}), Schema.Literal("increment-start").annotations({
|
|
107
|
+
description: "Move the plank towards the start of the deck."
|
|
108
|
+
}), Schema.Literal("increment-end").annotations({
|
|
109
|
+
description: "Move the plank towards the end of the deck."
|
|
110
|
+
}));
|
|
111
|
+
DeckAction2.Adjustment = Schema.mutable(Schema.Struct({
|
|
112
|
+
id: Schema.String,
|
|
113
|
+
type: PartAdjustmentSchema
|
|
114
|
+
}));
|
|
115
|
+
class Adjust extends Schema.TaggedClass()(`${DECK_ACTION}/adjust`, {
|
|
116
|
+
input: DeckAction2.Adjustment,
|
|
117
|
+
output: Schema.Void
|
|
118
|
+
}) {
|
|
119
|
+
}
|
|
120
|
+
DeckAction2.Adjust = Adjust;
|
|
121
|
+
class UpdatePlankSize extends Schema.TaggedClass()(`${DECK_ACTION}/update-plank-size`, {
|
|
122
|
+
input: Schema.Struct({
|
|
123
|
+
id: Schema.String,
|
|
124
|
+
size: Schema.Number
|
|
125
|
+
}),
|
|
126
|
+
output: Schema.Void
|
|
127
|
+
}) {
|
|
128
|
+
}
|
|
129
|
+
DeckAction2.UpdatePlankSize = UpdatePlankSize;
|
|
130
|
+
class ChangeCompanion extends Schema.TaggedClass()(`${DECK_ACTION}/change-companion`, {
|
|
131
|
+
input: Schema.Struct({
|
|
132
|
+
primary: Schema.String,
|
|
133
|
+
companion: Schema.Union(Schema.String, Schema.Null)
|
|
134
|
+
}),
|
|
135
|
+
output: Schema.Void
|
|
136
|
+
}) {
|
|
137
|
+
}
|
|
138
|
+
DeckAction2.ChangeCompanion = ChangeCompanion;
|
|
139
|
+
})(DeckAction || (DeckAction = {}));
|
|
140
|
+
|
|
141
|
+
export {
|
|
142
|
+
PLANK_COMPANION_TYPE,
|
|
143
|
+
DECK_COMPANION_TYPE,
|
|
144
|
+
NewPlankPositions,
|
|
145
|
+
OverscrollOptions,
|
|
146
|
+
DeckSettingsSchema,
|
|
147
|
+
PlankSizing,
|
|
148
|
+
DeckState,
|
|
149
|
+
defaultDeck,
|
|
150
|
+
isLayoutMode,
|
|
151
|
+
getMode,
|
|
152
|
+
DeckPluginState,
|
|
153
|
+
DECK_ACTION,
|
|
154
|
+
DeckAction,
|
|
155
|
+
ATTENDABLE_PATH_SEPARATOR
|
|
156
|
+
};
|
|
157
|
+
//# sourceMappingURL=chunk-JAYQ5BTF.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/types.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Schema } from 'effect';\n\nimport { LayoutAction } from '@dxos/app-framework';\nimport { type DeepReadonly } from '@dxos/util';\n\nimport { DECK_PLUGIN } from './meta';\n\nexport { ATTENDABLE_PATH_SEPARATOR } from '@dxos/react-ui-attention';\n\nexport const PLANK_COMPANION_TYPE = 'dxos.org/plugin/deck/plank-companion';\nexport const DECK_COMPANION_TYPE = 'dxos.org/plugin/deck/deck-companion';\n\n// TODO(Zan): In the future we should consider adding new planks adjacent to the attended plank.\nexport const NewPlankPositions = ['start', 'end'] as const;\nexport type NewPlankPositioning = (typeof NewPlankPositions)[number];\n\nexport const OverscrollOptions = ['none', 'centering'] as const;\nexport type Overscroll = (typeof OverscrollOptions)[number];\n\nexport type Part = 'solo' | 'deck' | 'complementary';\nexport type ResolvedPart = Part | 'solo-primary' | 'solo-companion';\n\nexport const DeckSettingsSchema = Schema.Struct({\n showHints: Schema.optional(Schema.Boolean),\n enableDeck: Schema.optional(Schema.Boolean),\n enableStatusbar: Schema.optional(Schema.Boolean),\n enableNativeRedirect: Schema.optional(Schema.Boolean),\n newPlankPositioning: Schema.optional(Schema.Literal(...NewPlankPositions)),\n overscroll: Schema.optional(Schema.Literal(...OverscrollOptions)),\n}).pipe(Schema.mutable);\nexport type DeckSettingsProps = Schema.Schema.Type<typeof DeckSettingsSchema>;\n\nexport const PlankSizing = Schema.Record({ key: Schema.String, value: Schema.Number });\nexport type PlankSizing = Schema.Schema.Type<typeof PlankSizing>;\n\n// State of an individual deck.\nexport const DeckState = Schema.Struct({\n /** If false, the deck has not yet left solo mode and new planks should be soloed. */\n initialized: Schema.Boolean,\n active: Schema.mutable(Schema.Array(Schema.String)),\n // TODO(wittjosiah): Piping into both mutable and optional caused invalid typescript output.\n activeCompanions: Schema.optional(Schema.mutable(Schema.Record({ key: Schema.String, value: Schema.String }))),\n inactive: Schema.mutable(Schema.Array(Schema.String)),\n solo: Schema.optional(Schema.String),\n fullscreen: Schema.Boolean,\n plankSizing: Schema.mutable(PlankSizing),\n companionFrameSizing: Schema.mutable(PlankSizing),\n});\nexport type DeckState = Schema.Schema.Type<typeof DeckState>;\n\nexport const defaultDeck: DeckState = {\n initialized: false,\n active: [],\n activeCompanions: {},\n inactive: [],\n solo: undefined,\n fullscreen: false,\n plankSizing: {},\n companionFrameSizing: {},\n};\n\nconst LayoutMode = Schema.Literal('deck', 'solo', 'solo--fullscreen');\nexport type LayoutMode = Schema.Schema.Type<typeof LayoutMode>;\nexport const isLayoutMode = (value: any): value is LayoutMode => Schema.is(LayoutMode)(value);\n\nexport const getMode = (deck: DeckState | DeepReadonly<DeckState>): LayoutMode => {\n if (deck.solo) {\n return deck.fullscreen ? 'solo--fullscreen' : 'solo';\n }\n\n return 'deck';\n};\n\n// State of the deck plugin.\nexport const DeckPluginState = Schema.Struct({\n sidebarState: Schema.Literal('closed', 'collapsed', 'expanded'),\n complementarySidebarState: Schema.Literal('closed', 'collapsed', 'expanded'),\n complementarySidebarPanel: Schema.optional(Schema.String),\n\n dialogOpen: Schema.Boolean,\n dialogBlockAlign: Schema.optional(Schema.Literal('start', 'center', 'end')),\n dialogType: Schema.optional(Schema.Literal('default', 'alert')),\n /** Data to be passed to the dialog Surface. */\n dialogContent: Schema.optional(Schema.Any),\n\n popoverOpen: Schema.Boolean,\n popoverSide: Schema.optional(Schema.Literal('top', 'right', 'bottom', 'left')),\n popoverAnchor: Schema.optional(Schema.Any),\n popoverAnchorId: Schema.optional(Schema.String),\n /** Data to be passed to the popover Surface. */\n popoverContent: Schema.optional(Schema.Any),\n\n toasts: Schema.mutable(Schema.Array(LayoutAction.Toast)),\n currentUndoId: Schema.optional(Schema.String),\n\n activeDeck: Schema.String,\n previousDeck: Schema.String,\n decks: Schema.mutable(Schema.Record({ key: Schema.String, value: Schema.mutable(DeckState) })),\n previousMode: Schema.mutable(Schema.Record({ key: Schema.String, value: LayoutMode })),\n deck: Schema.mutable(DeckState),\n\n /** The identifier of a component to scroll into view when it is mounted. */\n scrollIntoView: Schema.optional(Schema.String),\n}).pipe(Schema.mutable);\n\nexport type DeckPluginState = Schema.Schema.Type<typeof DeckPluginState>;\n\nexport const DECK_ACTION = `${DECK_PLUGIN}/action`;\n\nexport namespace DeckAction {\n const PartAdjustmentSchema = Schema.Union(\n Schema.Literal('close').annotations({ description: 'Close the plank.' }),\n Schema.Literal('companion').annotations({ description: 'Open the companion plank.' }),\n Schema.Literal('solo').annotations({ description: 'Solo the plank.' }),\n Schema.Literal('solo--fullscreen').annotations({ description: 'Fullscreen the plank.' }),\n Schema.Literal('increment-start').annotations({ description: 'Move the plank towards the start of the deck.' }),\n Schema.Literal('increment-end').annotations({ description: 'Move the plank towards the end of the deck.' }),\n );\n export type PartAdjustment = Schema.Schema.Type<typeof PartAdjustmentSchema>;\n export const Adjustment = Schema.mutable(Schema.Struct({ id: Schema.String, type: PartAdjustmentSchema }));\n export type Adjustment = Schema.Schema.Type<typeof Adjustment>;\n\n // An atomic transaction to apply to the deck, describing which element to move to which location.\n export class Adjust extends Schema.TaggedClass<Adjust>()(`${DECK_ACTION}/adjust`, {\n input: Adjustment,\n output: Schema.Void,\n }) {}\n\n export class UpdatePlankSize extends Schema.TaggedClass<UpdatePlankSize>()(`${DECK_ACTION}/update-plank-size`, {\n input: Schema.Struct({\n id: Schema.String,\n size: Schema.Number,\n }),\n output: Schema.Void,\n }) {}\n\n export class ChangeCompanion extends Schema.TaggedClass<ChangeCompanion>()(`${DECK_ACTION}/change-companion`, {\n input: Schema.Struct({\n primary: Schema.String,\n companion: Schema.Union(Schema.String, Schema.Null),\n }),\n output: Schema.Void,\n }) {}\n}\n"],
|
|
5
|
+
"mappings": ";;;;;AAIA,SAASA,cAAc;AAEvB,SAASC,oBAAoB;AAK7B,SAASC,iCAAiC;AAEnC,IAAMC,uBAAuB;AAC7B,IAAMC,sBAAsB;AAG5B,IAAMC,oBAAoB;EAAC;EAAS;;AAGpC,IAAMC,oBAAoB;EAAC;EAAQ;;AAMnC,IAAMC,qBAAqBC,OAAOC,OAAO;EAC9CC,WAAWF,OAAOG,SAASH,OAAOI,OAAO;EACzCC,YAAYL,OAAOG,SAASH,OAAOI,OAAO;EAC1CE,iBAAiBN,OAAOG,SAASH,OAAOI,OAAO;EAC/CG,sBAAsBP,OAAOG,SAASH,OAAOI,OAAO;EACpDI,qBAAqBR,OAAOG,SAASH,OAAOS,QAAO,GAAIZ,iBAAAA,CAAAA;EACvDa,YAAYV,OAAOG,SAASH,OAAOS,QAAO,GAAIX,iBAAAA,CAAAA;AAChD,CAAA,EAAGa,KAAKX,OAAOY,OAAO;AAGf,IAAMC,cAAcb,OAAOc,OAAO;EAAEC,KAAKf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E,OAAOS,QAAQ,iBAAA,EAAmBuD,YAAY;IAAEC,aAAa;EAAgD,CAAA,GAC7GjE,OAAOS,QAAQ,eAAA,EAAiBuD,YAAY;IAAEC,aAAa;EAA8C,CAAA,CAAA;cAG9FC,aAAalE,OAAOY,QAAQZ,OAAOC,OAAO;IAAEkE,IAAInE,OAAOgB;IAAQoD,MAAMN;EAAqB,CAAA,CAAA;EAIhG,MAAMO,eAAerE,OAAOsE,YAAW,EAAW,GAAGX,WAAAA,WAAsB;IAChFY,OAAKV,YAAEK;IACPM,QAAQxE,OAAOyE;EACjB,CAAA,EAAA;EAAI;cAHSJ,SAAAA;EAKN,MAAMK,wBAAwB1E,OAAOsE,YAAW,EAAoB,GAAGX,WAAAA,sBAAiC;IAC7GY,OAAOvE,OAAOC,OAAO;MACnBkE,IAAInE,OAAOgB;MACX2D,MAAM3E,OAAOkB;IACf,CAAA;IACAsD,QAAQxE,OAAOyE;EACjB,CAAA,EAAA;EAAI;cANSC,kBAAAA;EAQN,MAAME,wBAAwB5E,OAAOsE,YAAW,EAAoB,GAAGX,WAAAA,qBAAgC;IAC5GY,OAAOvE,OAAOC,OAAO;MACnB4E,SAAS7E,OAAOgB;MAChB8D,WAAW9E,OAAO+D,MAAM/D,OAAOgB,QAAQhB,OAAO+E,IAAI;IACpD,CAAA;IACAP,QAAQxE,OAAOyE;EACjB,CAAA,EAAA;EAAI;cANSG,kBAAAA;AAOf,GAlCiBf,eAAAA,aAAAA,CAAAA,EAAAA;",
|
|
6
|
+
"names": ["Schema", "LayoutAction", "ATTENDABLE_PATH_SEPARATOR", "PLANK_COMPANION_TYPE", "DECK_COMPANION_TYPE", "NewPlankPositions", "OverscrollOptions", "DeckSettingsSchema", "Schema", "Struct", "showHints", "optional", "Boolean", "enableDeck", "enableStatusbar", "enableNativeRedirect", "newPlankPositioning", "Literal", "overscroll", "pipe", "mutable", "PlankSizing", "Record", "key", "String", "value", "Number", "DeckState", "initialized", "active", "Array", "activeCompanions", "inactive", "solo", "fullscreen", "plankSizing", "companionFrameSizing", "defaultDeck", "undefined", "LayoutMode", "isLayoutMode", "is", "getMode", "deck", "DeckPluginState", "sidebarState", "complementarySidebarState", "complementarySidebarPanel", "dialogOpen", "dialogBlockAlign", "dialogType", "dialogContent", "Any", "popoverOpen", "popoverSide", "popoverAnchor", "popoverAnchorId", "popoverContent", "toasts", "LayoutAction", "Toast", "currentUndoId", "activeDeck", "previousDeck", "decks", "previousMode", "scrollIntoView", "DECK_ACTION", "DECK_PLUGIN", "DeckAction", "PartAdjustmentSchema", "Union", "annotations", "description", "Adjustment", "id", "type", "Adjust", "TaggedClass", "input", "output", "Void", "UpdatePlankSize", "size", "ChangeCompanion", "primary", "companion", "Null"]
|
|
7
|
+
}
|