@dxos/plugin-deck 0.8.1-main.303c73a → 0.8.1-main.81238a8
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-IYHAGFA3.mjs → app-graph-builder-K4KVSHNT.mjs} +3 -3
- package/dist/lib/browser/{check-app-scheme-S3EYUPMF.mjs → check-app-scheme-6SS6I3RN.mjs} +2 -2
- package/dist/lib/browser/{chunk-N7TEPFVR.mjs → chunk-2WTHB3TG.mjs} +1 -1
- package/dist/lib/browser/{chunk-N7TEPFVR.mjs.map → chunk-2WTHB3TG.mjs.map} +2 -2
- package/dist/lib/browser/chunk-7A5DLPQ3.mjs +24 -0
- package/dist/lib/browser/{chunk-FYKBOM3C.mjs → chunk-7X43JKZG.mjs} +33 -3
- package/dist/lib/browser/chunk-7X43JKZG.mjs.map +7 -0
- package/dist/lib/browser/{chunk-63K74E3J.mjs → chunk-7YPIAXSW.mjs} +174 -69
- package/dist/lib/browser/chunk-7YPIAXSW.mjs.map +7 -0
- package/dist/lib/browser/{chunk-YCKJNTKG.mjs → chunk-RZLH5F56.mjs} +2 -2
- package/dist/lib/browser/{chunk-22AQ5IVX.mjs → chunk-WCNPMAR4.mjs} +2 -2
- package/dist/lib/browser/index.mjs +5 -4
- package/dist/lib/browser/index.mjs.map +2 -2
- package/dist/lib/browser/{intent-resolver-P5BVUQKU.mjs → intent-resolver-MEBOMCYI.mjs} +46 -17
- package/dist/lib/browser/intent-resolver-MEBOMCYI.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-root-ZQCTDM4Y.mjs → react-root-PPKFVPO7.mjs} +7 -7
- package/dist/lib/browser/{react-surface-RG3PVPY3.mjs → react-surface-7JBPPUHM.mjs} +7 -7
- package/dist/lib/browser/{settings-X3P2HKQJ.mjs → settings-DYS3FFMN.mjs} +3 -3
- package/dist/lib/browser/{state-2MOTLKVR.mjs → state-DRRCGMU2.mjs} +7 -11
- package/dist/lib/browser/state-DRRCGMU2.mjs.map +7 -0
- package/dist/lib/browser/tools-NDEUSO4R.mjs +78 -0
- package/dist/lib/browser/tools-NDEUSO4R.mjs.map +7 -0
- package/dist/lib/browser/types.mjs +10 -4
- package/dist/lib/browser/{url-handler-MVHTKUYA.mjs → url-handler-4BCN7AYC.mjs} +7 -9
- package/dist/lib/browser/url-handler-4BCN7AYC.mjs.map +7 -0
- package/dist/types/src/capabilities/capabilities.d.ts +26 -2
- package/dist/types/src/capabilities/capabilities.d.ts.map +1 -1
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -1
- package/dist/types/src/capabilities/state.d.ts +13 -1
- package/dist/types/src/capabilities/state.d.ts.map +1 -1
- package/dist/types/src/capabilities/tools.d.ts +1 -0
- package/dist/types/src/capabilities/tools.d.ts.map +1 -1
- package/dist/types/src/capabilities/url-handler.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/DeckLayout.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/NodePlankHeading.d.ts +6 -2
- package/dist/types/src/components/DeckLayout/NodePlankHeading.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/Plank.d.ts +4 -4
- package/dist/types/src/components/DeckLayout/Plank.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/PlankControls.d.ts +6 -1
- package/dist/types/src/components/DeckLayout/PlankControls.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +2 -5
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +1 -0
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types.d.ts +41 -10
- package/dist/types/src/types.d.ts.map +1 -1
- package/package.json +31 -31
- package/src/capabilities/intent-resolver.ts +29 -3
- package/src/capabilities/state.ts +2 -9
- package/src/capabilities/tools.ts +34 -22
- package/src/capabilities/url-handler.ts +2 -8
- package/src/components/DeckLayout/DeckLayout.tsx +34 -10
- package/src/components/DeckLayout/NodePlankHeading.tsx +49 -29
- package/src/components/DeckLayout/Plank.tsx +181 -111
- package/src/components/DeckLayout/PlankControls.tsx +34 -3
- package/src/meta.ts +2 -2
- package/src/translations.ts +1 -0
- package/src/types.ts +29 -0
- package/dist/lib/browser/chunk-63K74E3J.mjs.map +0 -7
- package/dist/lib/browser/chunk-ATPSUXXK.mjs +0 -24
- package/dist/lib/browser/chunk-FYKBOM3C.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-P5BVUQKU.mjs.map +0 -7
- package/dist/lib/browser/state-2MOTLKVR.mjs.map +0 -7
- package/dist/lib/browser/tools-64LXGLYR.mjs +0 -59
- package/dist/lib/browser/tools-64LXGLYR.mjs.map +0 -7
- package/dist/lib/browser/url-handler-MVHTKUYA.mjs.map +0 -7
- /package/dist/lib/browser/{app-graph-builder-IYHAGFA3.mjs.map → app-graph-builder-K4KVSHNT.mjs.map} +0 -0
- /package/dist/lib/browser/{check-app-scheme-S3EYUPMF.mjs.map → check-app-scheme-6SS6I3RN.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-ATPSUXXK.mjs.map → chunk-7A5DLPQ3.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-YCKJNTKG.mjs.map → chunk-RZLH5F56.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-22AQ5IVX.mjs.map → chunk-WCNPMAR4.mjs.map} +0 -0
- /package/dist/lib/browser/{react-root-ZQCTDM4Y.mjs.map → react-root-PPKFVPO7.mjs.map} +0 -0
- /package/dist/lib/browser/{react-surface-RG3PVPY3.mjs.map → react-surface-7JBPPUHM.mjs.map} +0 -0
- /package/dist/lib/browser/{settings-X3P2HKQJ.mjs.map → settings-DYS3FFMN.mjs.map} +0 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/tools.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport {\n contributes,\n createIntent,\n Capabilities,\n LayoutAction,\n type PromiseIntentDispatcher,\n} from '@dxos/app-framework';\nimport { defineTool, ToolResult } from '@dxos/artifact';\nimport { S } from '@dxos/echo-schema';\nimport { invariant } from '@dxos/invariant';\n\nimport { meta } from '../meta';\nimport { DeckAction } from '../types';\n\n// TODO(burdon): Factor out.\ndeclare global {\n interface ToolContextExtensions {\n dispatch?: PromiseIntentDispatcher;\n pivotId?: string;\n part?: 'deck' | 'dialog';\n }\n}\n\nexport default () =>\n contributes(Capabilities.Tools, [\n defineTool(meta.id, {\n name: 'show',\n description: `\n Show an item as a companion to an existing plank. This will make the item appear alongside the primary content.\n When supplying IDs, they must be fully qualified like space:object.\n `,\n caption: 'Showing item...',\n // TODO(wittjosiah): Refactor Layout/Navigation/Deck actions so that they can be used directly.\n schema: S.Struct({\n id: S.String.annotations({\n description: 'The ID of the item to show.',\n }),\n }),\n execute: async ({ id }, { extensions }) => {\n invariant(extensions?.pivotId, 'No pivot ID');\n invariant(extensions?.dispatch, 'No intent dispatcher');\n\n if (extensions.part === 'deck') {\n const { data, error } = await extensions.dispatch(\n createIntent(DeckAction.ChangeCompanion, {\n primary: extensions.pivotId,\n companion: id,\n }),\n );\n if (error) {\n return ToolResult.Error(error.message);\n }\n\n return ToolResult.Success(data);\n } else {\n const { data, error } = await extensions.dispatch(\n createIntent(LayoutAction.Open, {\n subject: [id],\n part: 'main',\n options: {\n pivotId: extensions.pivotId,\n positioning: 'end',\n },\n }),\n );\n if (error) {\n return ToolResult.Error(error.message);\n }\n\n return ToolResult.Success(data);\n }\n },\n }),\n ]);\n"],
|
|
5
|
+
"mappings": ";;;;;;;;AAIA,SACEA,aACAC,cACAC,cACAC,oBAEK;AACP,SAASC,YAAYC,kBAAkB;AACvC,SAASC,SAAS;AAClB,SAASC,iBAAiB;;AAc1B,IAAA,gBAAe,MACbC,YAAYC,aAAaC,OAAO;EAC9BC,WAAWC,KAAKC,IAAI;IAClBC,MAAM;IACNC,aAAa;;;;IAIbC,SAAS;;IAETC,QAAQC,EAAEC,OAAO;MACfN,IAAIK,EAAEE,OAAOC,YAAY;QACvBN,aAAa;MACf,CAAA;IACF,CAAA;IACAO,SAAS,OAAO,EAAET,GAAE,GAAI,EAAEU,WAAU,MAAE;AACpCC,gBAAUD,YAAYE,SAAS,eAAA;;;;;;;;;AAC/BD,gBAAUD,YAAYG,UAAU,wBAAA;;;;;;;;;AAEhC,UAAIH,WAAWI,SAAS,QAAQ;AAC9B,cAAM,EAAEC,MAAMC,MAAK,IAAK,MAAMN,WAAWG,SACvCI,aAAaC,WAAWC,iBAAiB;UACvCC,SAASV,WAAWE;UACpBS,WAAWrB;QACb,CAAA,CAAA;AAEF,YAAIgB,OAAO;AACT,iBAAOM,WAAWC,MAAMP,MAAMQ,OAAO;QACvC;AAEA,eAAOF,WAAWG,QAAQV,IAAAA;MAC5B,OAAO;AACL,cAAM,EAAEA,MAAMC,MAAK,IAAK,MAAMN,WAAWG,SACvCI,aAAaS,aAAaC,MAAM;UAC9BC,SAAS;YAAC5B;;UACVc,MAAM;UACNe,SAAS;YACPjB,SAASF,WAAWE;YACpBkB,aAAa;UACf;QACF,CAAA,CAAA;AAEF,YAAId,OAAO;AACT,iBAAOM,WAAWC,MAAMP,MAAMQ,OAAO;QACvC;AAEA,eAAOF,WAAWG,QAAQV,IAAAA;MAC5B;IACF;EACF,CAAA;CACD;",
|
|
6
|
+
"names": ["contributes", "createIntent", "Capabilities", "LayoutAction", "defineTool", "ToolResult", "S", "invariant", "contributes", "Capabilities", "Tools", "defineTool", "meta", "id", "name", "description", "caption", "schema", "S", "Struct", "String", "annotations", "execute", "extensions", "invariant", "pivotId", "dispatch", "part", "data", "error", "createIntent", "DeckAction", "ChangeCompanion", "primary", "companion", "ToolResult", "Error", "message", "Success", "LayoutAction", "Open", "subject", "options", "positioning"]
|
|
7
|
+
}
|
|
@@ -8,10 +8,13 @@ import {
|
|
|
8
8
|
OverscrollOptions,
|
|
9
9
|
PlankSizing,
|
|
10
10
|
SLUG_PATH_SEPARATOR,
|
|
11
|
+
defaultDeck,
|
|
11
12
|
getMode,
|
|
12
|
-
isLayoutMode
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
isLayoutMode,
|
|
14
|
+
surfaceVariant,
|
|
15
|
+
surfaceVariantSeparator
|
|
16
|
+
} from "./chunk-7X43JKZG.mjs";
|
|
17
|
+
import "./chunk-2WTHB3TG.mjs";
|
|
15
18
|
export {
|
|
16
19
|
DECK_ACTION,
|
|
17
20
|
Deck,
|
|
@@ -22,7 +25,10 @@ export {
|
|
|
22
25
|
OverscrollOptions,
|
|
23
26
|
PlankSizing,
|
|
24
27
|
SLUG_PATH_SEPARATOR,
|
|
28
|
+
defaultDeck,
|
|
25
29
|
getMode,
|
|
26
|
-
isLayoutMode
|
|
30
|
+
isLayoutMode,
|
|
31
|
+
surfaceVariant,
|
|
32
|
+
surfaceVariantSeparator
|
|
27
33
|
};
|
|
28
34
|
//# sourceMappingURL=types.mjs.map
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeckCapabilities
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import
|
|
3
|
+
} from "./chunk-WCNPMAR4.mjs";
|
|
4
|
+
import {
|
|
5
|
+
defaultDeck
|
|
6
|
+
} from "./chunk-7X43JKZG.mjs";
|
|
7
|
+
import "./chunk-2WTHB3TG.mjs";
|
|
5
8
|
|
|
6
9
|
// packages/plugins/plugin-deck/src/capabilities/url-handler.ts
|
|
7
10
|
import { Capabilities, contributes, createIntent, LayoutAction } from "@dxos/app-framework";
|
|
@@ -15,12 +18,7 @@ var url_handler_default = async (context) => {
|
|
|
15
18
|
state.activeDeck = "default";
|
|
16
19
|
state.decks = {
|
|
17
20
|
default: {
|
|
18
|
-
|
|
19
|
-
active: [],
|
|
20
|
-
inactive: [],
|
|
21
|
-
fullscreen: false,
|
|
22
|
-
solo: void 0,
|
|
23
|
-
plankSizing: {}
|
|
21
|
+
...defaultDeck
|
|
24
22
|
}
|
|
25
23
|
};
|
|
26
24
|
window.location.pathname = "/";
|
|
@@ -69,4 +67,4 @@ var url_handler_default = async (context) => {
|
|
|
69
67
|
export {
|
|
70
68
|
url_handler_default as default
|
|
71
69
|
};
|
|
72
|
-
//# sourceMappingURL=url-handler-
|
|
70
|
+
//# sourceMappingURL=url-handler-4BCN7AYC.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/url-handler.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capabilities, contributes, createIntent, LayoutAction, type PluginsContext } from '@dxos/app-framework';\nimport { scheduledEffect } from '@dxos/echo-signals/core';\n\nimport { DeckCapabilities } from './capabilities';\nimport { defaultDeck } from '../types';\n\n// TODO(wittjosiah): Cleanup the url handling. May justify introducing routing capabilities.\nexport default async (context: PluginsContext) => {\n const { dispatchPromise: dispatch } = context.requestCapability(Capabilities.IntentDispatcher) ?? {};\n const state = context.requestCapability(DeckCapabilities.MutableDeckState);\n\n const handleNavigation = async () => {\n const pathname = window.location.pathname;\n if (pathname === '/reset') {\n state.activeDeck = 'default';\n state.decks = {\n default: { ...defaultDeck },\n };\n window.location.pathname = '/';\n return;\n }\n\n const [_, nextDeck, nextSolo] = pathname.split('/');\n if (nextDeck && nextDeck !== state.activeDeck) {\n await dispatch(createIntent(LayoutAction.SwitchWorkspace, { part: 'workspace', subject: nextDeck }));\n }\n\n if (nextSolo && nextSolo !== state.deck.solo) {\n await dispatch(\n createIntent(LayoutAction.SetLayoutMode, { part: 'mode', subject: nextSolo, options: { mode: 'solo' } }),\n );\n } else if (!nextSolo && state.deck.solo) {\n await dispatch(createIntent(LayoutAction.SetLayoutMode, { part: 'mode', options: { mode: 'deck' } }));\n }\n };\n\n await handleNavigation();\n window.addEventListener('popstate', handleNavigation);\n\n const unsubscribe = scheduledEffect(\n () => ({ solo: state.deck.solo, activeDeck: state.activeDeck }),\n ({ solo, activeDeck }) => {\n const path = solo ? `/${activeDeck}/${solo}` : `/${activeDeck}`;\n if (window.location.pathname !== path) {\n // TODO(thure): In some browsers, this only preserves the most recent state change, even though this is not `history.replace`…\n history.pushState(null, '', `${path}${window.location.search}`);\n }\n },\n );\n\n return contributes(Capabilities.Null, null, () => {\n window.removeEventListener('popstate', handleNavigation);\n unsubscribe();\n });\n};\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;AAIA,SAASA,cAAcC,aAAaC,cAAcC,oBAAyC;AAC3F,SAASC,uBAAuB;AAMhC,IAAA,sBAAe,OAAOC,YAAAA;AACpB,QAAM,EAAEC,iBAAiBC,SAAQ,IAAKF,QAAQG,kBAAkBC,aAAaC,gBAAgB,KAAK,CAAC;AACnG,QAAMC,QAAQN,QAAQG,kBAAkBI,iBAAiBC,gBAAgB;AAEzE,QAAMC,mBAAmB,YAAA;AACvB,UAAMC,WAAWC,OAAOC,SAASF;AACjC,QAAIA,aAAa,UAAU;AACzBJ,YAAMO,aAAa;AACnBP,YAAMQ,QAAQ;QACZC,SAAS;UAAE,GAAGC;QAAY;MAC5B;AACAL,aAAOC,SAASF,WAAW;AAC3B;IACF;AAEA,UAAM,CAACO,GAAGC,UAAUC,QAAAA,IAAYT,SAASU,MAAM,GAAA;AAC/C,QAAIF,YAAYA,aAAaZ,MAAMO,YAAY;AAC7C,YAAMX,SAASmB,aAAaC,aAAaC,iBAAiB;QAAEC,MAAM;QAAaC,SAASP;MAAS,CAAA,CAAA;IACnG;AAEA,QAAIC,YAAYA,aAAab,MAAMoB,KAAKC,MAAM;AAC5C,YAAMzB,SACJmB,aAAaC,aAAaM,eAAe;QAAEJ,MAAM;QAAQC,SAASN;QAAUU,SAAS;UAAEC,MAAM;QAAO;MAAE,CAAA,CAAA;IAE1G,WAAW,CAACX,YAAYb,MAAMoB,KAAKC,MAAM;AACvC,YAAMzB,SAASmB,aAAaC,aAAaM,eAAe;QAAEJ,MAAM;QAAQK,SAAS;UAAEC,MAAM;QAAO;MAAE,CAAA,CAAA;IACpG;EACF;AAEA,QAAMrB,iBAAAA;AACNE,SAAOoB,iBAAiB,YAAYtB,gBAAAA;AAEpC,QAAMuB,cAAcC,gBAClB,OAAO;IAAEN,MAAMrB,MAAMoB,KAAKC;IAAMd,YAAYP,MAAMO;EAAW,IAC7D,CAAC,EAAEc,MAAMd,WAAU,MAAE;AACnB,UAAMqB,OAAOP,OAAO,IAAId,UAAAA,IAAcc,IAAAA,KAAS,IAAId,UAAAA;AACnD,QAAIF,OAAOC,SAASF,aAAawB,MAAM;AAErCC,cAAQC,UAAU,MAAM,IAAI,GAAGF,IAAAA,GAAOvB,OAAOC,SAASyB,MAAM,EAAE;IAChE;EACF,CAAA;AAGF,SAAOC,YAAYlC,aAAamC,MAAM,MAAM,MAAA;AAC1C5B,WAAO6B,oBAAoB,YAAY/B,gBAAAA;AACvCuB,gBAAAA;EACF,CAAA;AACF;",
|
|
6
|
+
"names": ["Capabilities", "contributes", "createIntent", "LayoutAction", "scheduledEffect", "context", "dispatchPromise", "dispatch", "requestCapability", "Capabilities", "IntentDispatcher", "state", "DeckCapabilities", "MutableDeckState", "handleNavigation", "pathname", "window", "location", "activeDeck", "decks", "default", "defaultDeck", "_", "nextDeck", "nextSolo", "split", "createIntent", "LayoutAction", "SwitchWorkspace", "part", "subject", "deck", "solo", "SetLayoutMode", "options", "mode", "addEventListener", "unsubscribe", "scheduledEffect", "path", "history", "pushState", "search", "contributes", "Null", "removeEventListener"]
|
|
7
|
+
}
|
|
@@ -7,10 +7,16 @@ export declare namespace DeckCapabilities {
|
|
|
7
7
|
fullscreen: boolean;
|
|
8
8
|
initialized: boolean;
|
|
9
9
|
active: string[];
|
|
10
|
+
activeCompanions?: {
|
|
11
|
+
[x: string]: string;
|
|
12
|
+
} | undefined;
|
|
10
13
|
inactive: string[];
|
|
11
14
|
plankSizing: {
|
|
12
15
|
[x: string]: number;
|
|
13
16
|
};
|
|
17
|
+
companionFrameSizing: {
|
|
18
|
+
[x: string]: number;
|
|
19
|
+
};
|
|
14
20
|
};
|
|
15
21
|
sidebarState: "closed" | "collapsed" | "expanded";
|
|
16
22
|
complementarySidebarState: "closed" | "collapsed" | "expanded";
|
|
@@ -58,14 +64,20 @@ export declare namespace DeckCapabilities {
|
|
|
58
64
|
fullscreen: boolean;
|
|
59
65
|
initialized: boolean;
|
|
60
66
|
active: string[];
|
|
67
|
+
activeCompanions?: {
|
|
68
|
+
[x: string]: string;
|
|
69
|
+
} | undefined;
|
|
61
70
|
inactive: string[];
|
|
62
71
|
plankSizing: {
|
|
63
72
|
[x: string]: number;
|
|
64
73
|
};
|
|
74
|
+
companionFrameSizing: {
|
|
75
|
+
[x: string]: number;
|
|
76
|
+
};
|
|
65
77
|
};
|
|
66
78
|
};
|
|
67
79
|
previousMode: {
|
|
68
|
-
[x: string]: "
|
|
80
|
+
[x: string]: "solo" | "deck" | "fullscreen";
|
|
69
81
|
};
|
|
70
82
|
scrollIntoView?: string | undefined;
|
|
71
83
|
}>>;
|
|
@@ -75,10 +87,16 @@ export declare namespace DeckCapabilities {
|
|
|
75
87
|
fullscreen: boolean;
|
|
76
88
|
initialized: boolean;
|
|
77
89
|
active: string[];
|
|
90
|
+
activeCompanions?: {
|
|
91
|
+
[x: string]: string;
|
|
92
|
+
} | undefined;
|
|
78
93
|
inactive: string[];
|
|
79
94
|
plankSizing: {
|
|
80
95
|
[x: string]: number;
|
|
81
96
|
};
|
|
97
|
+
companionFrameSizing: {
|
|
98
|
+
[x: string]: number;
|
|
99
|
+
};
|
|
82
100
|
};
|
|
83
101
|
sidebarState: "closed" | "collapsed" | "expanded";
|
|
84
102
|
complementarySidebarState: "closed" | "collapsed" | "expanded";
|
|
@@ -126,14 +144,20 @@ export declare namespace DeckCapabilities {
|
|
|
126
144
|
fullscreen: boolean;
|
|
127
145
|
initialized: boolean;
|
|
128
146
|
active: string[];
|
|
147
|
+
activeCompanions?: {
|
|
148
|
+
[x: string]: string;
|
|
149
|
+
} | undefined;
|
|
129
150
|
inactive: string[];
|
|
130
151
|
plankSizing: {
|
|
131
152
|
[x: string]: number;
|
|
132
153
|
};
|
|
154
|
+
companionFrameSizing: {
|
|
155
|
+
[x: string]: number;
|
|
156
|
+
};
|
|
133
157
|
};
|
|
134
158
|
};
|
|
135
159
|
previousMode: {
|
|
136
|
-
[x: string]: "
|
|
160
|
+
[x: string]: "solo" | "deck" | "fullscreen";
|
|
137
161
|
};
|
|
138
162
|
scrollIntoView?: string | undefined;
|
|
139
163
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/capabilities.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAG/C,OAAO,EAAkB,KAAK,KAAK,EAAE,MAAM,UAAU,CAAC;AAEtD,yBAAiB,gBAAgB,CAAC;IACzB,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/capabilities.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAG/C,OAAO,EAAkB,KAAK,KAAK,EAAE,MAAM,UAAU,CAAC;AAEtD,yBAAiB,gBAAgB,CAAC;IACzB,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAA+E,CAAC;IAC/F,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAiE,CAAC;IACxF,MAAM,kBAAkB,mDAA2E,CAAC;CAC5G"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intent-resolver.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/intent-resolver.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,YAAY,EAKZ,KAAK,cAAc,EAGpB,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"intent-resolver.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/intent-resolver.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,YAAY,EAKZ,KAAK,cAAc,EAGpB,MAAM,qBAAqB,CAAC;kCAeJ,cAAc;AAAvC,wBA0WK"}
|
|
@@ -4,10 +4,16 @@ declare const _default: () => (import("@dxos/app-framework").Capability<import("
|
|
|
4
4
|
fullscreen: boolean;
|
|
5
5
|
initialized: boolean;
|
|
6
6
|
active: string[];
|
|
7
|
+
activeCompanions?: {
|
|
8
|
+
[x: string]: string;
|
|
9
|
+
} | undefined;
|
|
7
10
|
inactive: string[];
|
|
8
11
|
plankSizing: {
|
|
9
12
|
[x: string]: number;
|
|
10
13
|
};
|
|
14
|
+
companionFrameSizing: {
|
|
15
|
+
[x: string]: number;
|
|
16
|
+
};
|
|
11
17
|
};
|
|
12
18
|
sidebarState: "closed" | "collapsed" | "expanded";
|
|
13
19
|
complementarySidebarState: "closed" | "collapsed" | "expanded";
|
|
@@ -55,14 +61,20 @@ declare const _default: () => (import("@dxos/app-framework").Capability<import("
|
|
|
55
61
|
fullscreen: boolean;
|
|
56
62
|
initialized: boolean;
|
|
57
63
|
active: string[];
|
|
64
|
+
activeCompanions?: {
|
|
65
|
+
[x: string]: string;
|
|
66
|
+
} | undefined;
|
|
58
67
|
inactive: string[];
|
|
59
68
|
plankSizing: {
|
|
60
69
|
[x: string]: number;
|
|
61
70
|
};
|
|
71
|
+
companionFrameSizing: {
|
|
72
|
+
[x: string]: number;
|
|
73
|
+
};
|
|
62
74
|
};
|
|
63
75
|
};
|
|
64
76
|
previousMode: {
|
|
65
|
-
[x: string]: "
|
|
77
|
+
[x: string]: "solo" | "deck" | "fullscreen";
|
|
66
78
|
};
|
|
67
79
|
scrollIntoView?: string | undefined;
|
|
68
80
|
}>> | import("@dxos/app-framework").Capability<import("@dxos/live-object").ReactiveObject<Readonly<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/state.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/state.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BA,wBAqEE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/tools.ts"],"names":[],"mappings":"AAIA,OAAO,EAKL,KAAK,uBAAuB,EAC7B,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/tools.ts"],"names":[],"mappings":"AAIA,OAAO,EAKL,KAAK,uBAAuB,EAC7B,MAAM,qBAAqB,CAAC;AAS7B,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,QAAQ,CAAC,EAAE,uBAAuB,CAAC;QACnC,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,IAAI,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;KAC1B;CACF;;AAED,wBAkDK"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"url-handler.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/url-handler.ts"],"names":[],"mappings":"AAIA,OAAO,EAAyD,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"url-handler.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/url-handler.ts"],"names":[],"mappings":"AAIA,OAAO,EAAyD,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAC;kCAOlF,cAAc;AAA7C,wBA+CE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeckLayout.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/DeckLayout.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAoF,MAAM,OAAO,CAAC;AAmCzG,OAAO,EAAW,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAIvD,MAAM,MAAM,eAAe,GAAG;IAC5B,UAAU,EAAE,UAAU,CAAC;IACvB,SAAS,EAAE,OAAO,CAAC;IACnB,cAAc,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC,CAAC;AAKF,eAAO,MAAM,UAAU,8CAA+C,eAAe,
|
|
1
|
+
{"version":3,"file":"DeckLayout.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/DeckLayout.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAoF,MAAM,OAAO,CAAC;AAmCzG,OAAO,EAAW,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAIvD,MAAM,MAAM,eAAe,GAAG;IAC5B,UAAU,EAAE,UAAU,CAAC;IACvB,SAAS,EAAE,OAAO,CAAC;IACnB,cAAc,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC,CAAC;AAKF,eAAO,MAAM,UAAU,8CAA+C,eAAe,sBA6SpF,CAAC"}
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type Node } from '@dxos/plugin-graph';
|
|
3
3
|
import { type StackItemSigilAction } from '@dxos/react-ui-stack';
|
|
4
|
+
import { type ResolvedPart } from '../../types';
|
|
4
5
|
export type NodePlankHeadingProps = {
|
|
5
6
|
id: string;
|
|
6
|
-
part:
|
|
7
|
+
part: ResolvedPart;
|
|
7
8
|
node?: Node;
|
|
8
9
|
canIncrementStart?: boolean;
|
|
9
10
|
canIncrementEnd?: boolean;
|
|
10
11
|
popoverAnchorId?: string;
|
|
11
12
|
pending?: boolean;
|
|
12
13
|
actions?: StackItemSigilAction[];
|
|
14
|
+
companioned?: 'primary' | 'companion';
|
|
15
|
+
primaryId?: string;
|
|
16
|
+
surfaceVariant?: string;
|
|
13
17
|
};
|
|
14
|
-
export declare const NodePlankHeading: React.MemoExoticComponent<({ id, part, node, canIncrementStart, canIncrementEnd, popoverAnchorId, pending, actions, }: NodePlankHeadingProps) => React.JSX.Element>;
|
|
18
|
+
export declare const NodePlankHeading: React.MemoExoticComponent<({ id, part, node, canIncrementStart, canIncrementEnd, popoverAnchorId, pending, actions, companioned, primaryId, surfaceVariant, }: NodePlankHeadingProps) => React.JSX.Element>;
|
|
15
19
|
//# sourceMappingURL=NodePlankHeading.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NodePlankHeading.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/NodePlankHeading.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA0D,MAAM,OAAO,CAAC;AAG/E,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAE/C,OAAO,EAAa,KAAK,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"NodePlankHeading.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/NodePlankHeading.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA0D,MAAM,OAAO,CAAC;AAG/E,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAE/C,OAAO,EAAa,KAAK,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAK5E,OAAO,EAAc,KAAK,YAAY,EAAuB,MAAM,aAAa,CAAC;AAIjF,MAAM,MAAM,qBAAqB,GAAG;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,YAAY,CAAC;IACnB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,oBAAoB,EAAE,CAAC;IACjC,WAAW,CAAC,EAAE,SAAS,GAAG,WAAW,CAAC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,gBAAgB,iKAaxB,qBAAqB,uBA0HzB,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type
|
|
3
|
-
import { type LayoutMode } from '../../types';
|
|
2
|
+
import { type LayoutMode, type Part } from '../../types';
|
|
4
3
|
export type PlankProps = {
|
|
5
4
|
id?: string;
|
|
6
|
-
|
|
5
|
+
companionId?: string;
|
|
6
|
+
part: Part;
|
|
7
7
|
path?: string[];
|
|
8
8
|
order?: number;
|
|
9
9
|
active?: string[];
|
|
10
10
|
layoutMode: LayoutMode;
|
|
11
11
|
};
|
|
12
|
-
export declare const Plank:
|
|
12
|
+
export declare const Plank: (props: PlankProps) => React.JSX.Element;
|
|
13
13
|
//# sourceMappingURL=Plank.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Plank.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/Plank.tsx"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"Plank.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/Plank.tsx"],"names":[],"mappings":"AAIA,OAAO,KASN,MAAM,OAAO,CAAC;AAoBf,OAAO,EAAc,KAAK,UAAU,EAAE,KAAK,IAAI,EAA8C,MAAM,aAAa,CAAC;AAIjH,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,IAAI,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,UAAU,EAAE,UAAU,CAAC;CACxB,CAAC;AA0JF,eAAO,MAAM,KAAK,UAAW,UAAU,sBAmBtC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type ButtonGroupProps } from '@dxos/react-ui';
|
|
3
|
-
import {
|
|
3
|
+
import { DeckAction } from '../../types';
|
|
4
4
|
export type PlankControlHandler = (event: DeckAction.PartAdjustment) => void;
|
|
5
5
|
export type PlankCapabilities = {
|
|
6
6
|
incrementStart?: boolean;
|
|
@@ -15,5 +15,10 @@ export type PlankControlsProps = Omit<ButtonGroupProps, 'onClick'> & {
|
|
|
15
15
|
isSolo?: boolean;
|
|
16
16
|
pin?: 'start' | 'end' | 'both';
|
|
17
17
|
};
|
|
18
|
+
type PlankComplimentControlsProps = {
|
|
19
|
+
primary?: string;
|
|
20
|
+
};
|
|
21
|
+
export declare const PlankCompanionControls: React.ForwardRefExoticComponent<PlankComplimentControlsProps & React.RefAttributes<HTMLDivElement>>;
|
|
18
22
|
export declare const PlankControls: React.ForwardRefExoticComponent<Omit<PlankControlsProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
23
|
+
export {};
|
|
19
24
|
//# sourceMappingURL=PlankControls.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlankControls.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/PlankControls.tsx"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"PlankControls.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/PlankControls.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAkC,MAAM,OAAO,CAAC;AAIvD,OAAO,EAGL,KAAK,gBAAgB,EAKtB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,MAAM,MAAM,mBAAmB,GAAG,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,KAAK,IAAI,CAAC;AAE7E,MAAM,MAAM,iBAAiB,GAAG;IAC9B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,gBAAgB,EAAE,SAAS,CAAC,GAAG;IACnE,OAAO,CAAC,EAAE,mBAAmB,CAAC;IAC9B,OAAO,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC;IACtC,KAAK,CAAC,EAAE,OAAO,GAAG,cAAc,GAAG,YAAY,CAAC;IAChD,YAAY,EAAE,iBAAiB,CAAC;IAChC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,GAAG,CAAC,EAAE,OAAO,GAAG,KAAK,GAAG,MAAM,CAAC;CAChC,CAAC;AAoBF,KAAK,4BAA4B,GAAG;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,sBAAsB,qGAoBlC,CAAC;AAKF,eAAO,MAAM,aAAa,wGA6EzB,CAAC"}
|
package/dist/types/src/meta.d.ts
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
+
import { type PluginMeta } from '@dxos/app-framework';
|
|
1
2
|
export declare const DECK_PLUGIN: "dxos.org/plugin/deck";
|
|
2
|
-
export declare const meta:
|
|
3
|
-
id: "dxos.org/plugin/deck";
|
|
4
|
-
name: string;
|
|
5
|
-
icon: string;
|
|
6
|
-
};
|
|
3
|
+
export declare const meta: PluginMeta;
|
|
7
4
|
//# sourceMappingURL=meta.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEtD,eAAO,MAAM,WAAW,EAAG,sBAA+B,CAAC;AAE3D,eAAO,MAAM,IAAI,EAAE,UAIlB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,wBAuDE"}
|
|
@@ -6,6 +6,8 @@ export declare const NewPlankPositions: readonly ["start", "end"];
|
|
|
6
6
|
export type NewPlankPositioning = (typeof NewPlankPositions)[number];
|
|
7
7
|
export declare const OverscrollOptions: readonly ["none", "centering"];
|
|
8
8
|
export type Overscroll = (typeof OverscrollOptions)[number];
|
|
9
|
+
export type Part = 'solo' | 'deck' | 'complementary';
|
|
10
|
+
export type ResolvedPart = Part | 'solo-primary' | 'solo-companion';
|
|
9
11
|
export type Panel = {
|
|
10
12
|
id: string;
|
|
11
13
|
label: Label;
|
|
@@ -33,12 +35,26 @@ export type PlankSizing = S.Schema.Type<typeof PlankSizing>;
|
|
|
33
35
|
export declare const Deck: S.Struct<{
|
|
34
36
|
initialized: S.SchemaClass<boolean, boolean, never>;
|
|
35
37
|
active: S.mutable<S.Array$<typeof S.String>>;
|
|
38
|
+
activeCompanions: S.optional<S.mutable<S.Record$<typeof S.String, typeof S.String>>>;
|
|
36
39
|
inactive: S.mutable<S.Array$<typeof S.String>>;
|
|
37
40
|
solo: S.optional<typeof S.String>;
|
|
38
41
|
fullscreen: typeof S.Boolean;
|
|
39
42
|
plankSizing: S.mutable<S.Record$<typeof S.String, typeof S.Number>>;
|
|
43
|
+
companionFrameSizing: S.mutable<S.Record$<typeof S.String, typeof S.Number>>;
|
|
40
44
|
}>;
|
|
41
45
|
export type Deck = S.Schema.Type<typeof Deck>;
|
|
46
|
+
export declare const defaultDeck: {
|
|
47
|
+
initialized: false;
|
|
48
|
+
active: never[];
|
|
49
|
+
activeCompanions: {};
|
|
50
|
+
inactive: never[];
|
|
51
|
+
fullscreen: false;
|
|
52
|
+
solo: undefined;
|
|
53
|
+
plankSizing: {};
|
|
54
|
+
companionFrameSizing: {};
|
|
55
|
+
};
|
|
56
|
+
export declare const surfaceVariantSeparator = "--";
|
|
57
|
+
export declare const surfaceVariant: (id: string) => string;
|
|
42
58
|
export declare const DeckState: S.mutable<S.Struct<{
|
|
43
59
|
sidebarState: S.Literal<["closed", "collapsed", "expanded"]>;
|
|
44
60
|
complementarySidebarState: S.Literal<["closed", "collapsed", "expanded"]>;
|
|
@@ -59,28 +75,28 @@ export declare const DeckState: S.mutable<S.Struct<{
|
|
|
59
75
|
popoverAnchorId: S.optional<typeof S.String>;
|
|
60
76
|
toasts: S.mutable<S.Array$<S.Struct<{
|
|
61
77
|
id: S.SchemaClass<string, string, never>;
|
|
62
|
-
title: S.optional<S.Union<[typeof S.String, S.mutable<S.
|
|
78
|
+
title: S.optional<S.Union<[typeof S.String, S.mutable<S.Tuple2<typeof S.String, S.mutable<S.Struct<{
|
|
63
79
|
ns: typeof S.String;
|
|
64
80
|
count: S.optional<typeof S.Number>;
|
|
65
|
-
}
|
|
66
|
-
description: S.optional<S.Union<[typeof S.String, S.mutable<S.
|
|
81
|
+
}>>>>]>>;
|
|
82
|
+
description: S.optional<S.Union<[typeof S.String, S.mutable<S.Tuple2<typeof S.String, S.mutable<S.Struct<{
|
|
67
83
|
ns: typeof S.String;
|
|
68
84
|
count: S.optional<typeof S.Number>;
|
|
69
|
-
}
|
|
85
|
+
}>>>>]>>;
|
|
70
86
|
icon: S.optional<S.SchemaClass<string, string, never>>;
|
|
71
87
|
duration: S.optional<S.SchemaClass<number, number, never>>;
|
|
72
|
-
closeLabel: S.optional<S.Union<[typeof S.String, S.mutable<S.
|
|
88
|
+
closeLabel: S.optional<S.Union<[typeof S.String, S.mutable<S.Tuple2<typeof S.String, S.mutable<S.Struct<{
|
|
73
89
|
ns: typeof S.String;
|
|
74
90
|
count: S.optional<typeof S.Number>;
|
|
75
|
-
}
|
|
76
|
-
actionLabel: S.optional<S.Union<[typeof S.String, S.mutable<S.
|
|
91
|
+
}>>>>]>>;
|
|
92
|
+
actionLabel: S.optional<S.Union<[typeof S.String, S.mutable<S.Tuple2<typeof S.String, S.mutable<S.Struct<{
|
|
77
93
|
ns: typeof S.String;
|
|
78
94
|
count: S.optional<typeof S.Number>;
|
|
79
|
-
}
|
|
80
|
-
actionAlt: S.optional<S.Union<[typeof S.String, S.mutable<S.
|
|
95
|
+
}>>>>]>>;
|
|
96
|
+
actionAlt: S.optional<S.Union<[typeof S.String, S.mutable<S.Tuple2<typeof S.String, S.mutable<S.Struct<{
|
|
81
97
|
ns: typeof S.String;
|
|
82
98
|
count: S.optional<typeof S.Number>;
|
|
83
|
-
}
|
|
99
|
+
}>>>>]>>;
|
|
84
100
|
onAction: S.optional<S.SchemaClass<any, any, never>>;
|
|
85
101
|
}>>>;
|
|
86
102
|
currentUndoId: S.optional<typeof S.String>;
|
|
@@ -89,19 +105,23 @@ export declare const DeckState: S.mutable<S.Struct<{
|
|
|
89
105
|
decks: S.mutable<S.Record$<typeof S.String, S.mutable<S.Struct<{
|
|
90
106
|
initialized: S.SchemaClass<boolean, boolean, never>;
|
|
91
107
|
active: S.mutable<S.Array$<typeof S.String>>;
|
|
108
|
+
activeCompanions: S.optional<S.mutable<S.Record$<typeof S.String, typeof S.String>>>;
|
|
92
109
|
inactive: S.mutable<S.Array$<typeof S.String>>;
|
|
93
110
|
solo: S.optional<typeof S.String>;
|
|
94
111
|
fullscreen: typeof S.Boolean;
|
|
95
112
|
plankSizing: S.mutable<S.Record$<typeof S.String, typeof S.Number>>;
|
|
113
|
+
companionFrameSizing: S.mutable<S.Record$<typeof S.String, typeof S.Number>>;
|
|
96
114
|
}>>>>;
|
|
97
115
|
previousMode: S.mutable<S.Record$<typeof S.String, S.Union<[S.Literal<["deck"]>, S.Literal<["solo"]>, S.Literal<["fullscreen"]>]>>>;
|
|
98
116
|
deck: S.mutable<S.Struct<{
|
|
99
117
|
initialized: S.SchemaClass<boolean, boolean, never>;
|
|
100
118
|
active: S.mutable<S.Array$<typeof S.String>>;
|
|
119
|
+
activeCompanions: S.optional<S.mutable<S.Record$<typeof S.String, typeof S.String>>>;
|
|
101
120
|
inactive: S.mutable<S.Array$<typeof S.String>>;
|
|
102
121
|
solo: S.optional<typeof S.String>;
|
|
103
122
|
fullscreen: typeof S.Boolean;
|
|
104
123
|
plankSizing: S.mutable<S.Record$<typeof S.String, typeof S.Number>>;
|
|
124
|
+
companionFrameSizing: S.mutable<S.Record$<typeof S.String, typeof S.Number>>;
|
|
105
125
|
}>>;
|
|
106
126
|
/**
|
|
107
127
|
* The identifier of a component to scroll into view when it is mounted.
|
|
@@ -145,6 +165,17 @@ export declare namespace DeckAction {
|
|
|
145
165
|
}>;
|
|
146
166
|
export class UpdatePlankSize extends UpdatePlankSize_base {
|
|
147
167
|
}
|
|
168
|
+
const ChangeCompanion_base: S.TaggedClass<ChangeCompanion, `${string}/change-companion`, {
|
|
169
|
+
readonly _tag: S.tag<`${string}/change-companion`>;
|
|
170
|
+
} & {
|
|
171
|
+
input: S.Struct<{
|
|
172
|
+
primary: typeof S.String;
|
|
173
|
+
companion: S.Union<[typeof S.String, typeof S.Null]>;
|
|
174
|
+
}>;
|
|
175
|
+
output: typeof S.Void;
|
|
176
|
+
}>;
|
|
177
|
+
export class ChangeCompanion extends ChangeCompanion_base {
|
|
178
|
+
}
|
|
148
179
|
export {};
|
|
149
180
|
}
|
|
150
181
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,CAAC,EAAE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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-deck",
|
|
3
|
-
"version": "0.8.1-main.
|
|
3
|
+
"version": "0.8.1-main.81238a8",
|
|
4
4
|
"description": "DXOS Surface plugin for the main application layout.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -31,33 +31,33 @@
|
|
|
31
31
|
"src"
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@fluentui/react-tabster": "9.
|
|
34
|
+
"@fluentui/react-tabster": "^9.24.2",
|
|
35
35
|
"@preact/signals-core": "^1.6.0",
|
|
36
|
-
"effect": "3.
|
|
36
|
+
"effect": "3.13.3",
|
|
37
37
|
"immer": "^10.1.1",
|
|
38
|
-
"@dxos/
|
|
39
|
-
"@dxos/
|
|
40
|
-
"@dxos/debug": "0.8.1-main.
|
|
41
|
-
"@dxos/
|
|
42
|
-
"@dxos/
|
|
43
|
-
"@dxos/echo-signals": "0.8.1-main.
|
|
44
|
-
"@dxos/
|
|
45
|
-
"@dxos/
|
|
46
|
-
"@dxos/live-object": "0.8.1-main.
|
|
47
|
-
"@dxos/
|
|
48
|
-
"@dxos/
|
|
49
|
-
"@dxos/plugin-
|
|
50
|
-
"@dxos/plugin-graph": "0.8.1-main.
|
|
51
|
-
"@dxos/plugin-
|
|
52
|
-
"@dxos/plugin-
|
|
53
|
-
"@dxos/
|
|
54
|
-
"@dxos/
|
|
55
|
-
"@dxos/react-ui-
|
|
56
|
-
"@dxos/react-
|
|
57
|
-
"@dxos/react-ui-stack": "0.8.1-main.
|
|
58
|
-
"@dxos/react-ui-
|
|
59
|
-
"@dxos/
|
|
60
|
-
"@dxos/
|
|
38
|
+
"@dxos/artifact": "0.8.1-main.81238a8",
|
|
39
|
+
"@dxos/async": "0.8.1-main.81238a8",
|
|
40
|
+
"@dxos/debug": "0.8.1-main.81238a8",
|
|
41
|
+
"@dxos/app-framework": "0.8.1-main.81238a8",
|
|
42
|
+
"@dxos/echo-schema": "0.8.1-main.81238a8",
|
|
43
|
+
"@dxos/echo-signals": "0.8.1-main.81238a8",
|
|
44
|
+
"@dxos/keyboard": "0.8.1-main.81238a8",
|
|
45
|
+
"@dxos/invariant": "0.8.1-main.81238a8",
|
|
46
|
+
"@dxos/live-object": "0.8.1-main.81238a8",
|
|
47
|
+
"@dxos/local-storage": "0.8.1-main.81238a8",
|
|
48
|
+
"@dxos/log": "0.8.1-main.81238a8",
|
|
49
|
+
"@dxos/plugin-attention": "0.8.1-main.81238a8",
|
|
50
|
+
"@dxos/plugin-graph": "0.8.1-main.81238a8",
|
|
51
|
+
"@dxos/plugin-client": "0.8.1-main.81238a8",
|
|
52
|
+
"@dxos/plugin-theme": "0.8.1-main.81238a8",
|
|
53
|
+
"@dxos/react-ui-attention": "0.8.1-main.81238a8",
|
|
54
|
+
"@dxos/plugin-observability": "0.8.1-main.81238a8",
|
|
55
|
+
"@dxos/react-ui-form": "0.8.1-main.81238a8",
|
|
56
|
+
"@dxos/react-client": "0.8.1-main.81238a8",
|
|
57
|
+
"@dxos/react-ui-stack": "0.8.1-main.81238a8",
|
|
58
|
+
"@dxos/react-ui-tabs": "0.8.1-main.81238a8",
|
|
59
|
+
"@dxos/util": "0.8.1-main.81238a8",
|
|
60
|
+
"@dxos/react-ui-text-tooltip": "0.8.1-main.81238a8"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@phosphor-icons/react": "^2.1.5",
|
|
@@ -66,16 +66,16 @@
|
|
|
66
66
|
"react": "~18.2.0",
|
|
67
67
|
"react-dom": "~18.2.0",
|
|
68
68
|
"vite": "5.4.7",
|
|
69
|
-
"@dxos/react-ui": "0.8.1-main.
|
|
70
|
-
"@dxos/react-ui-theme": "0.8.1-main.
|
|
71
|
-
"@dxos/storybook-utils": "0.8.1-main.
|
|
69
|
+
"@dxos/react-ui": "0.8.1-main.81238a8",
|
|
70
|
+
"@dxos/react-ui-theme": "0.8.1-main.81238a8",
|
|
71
|
+
"@dxos/storybook-utils": "0.8.1-main.81238a8"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
|
74
74
|
"@phosphor-icons/react": "^2.0.5",
|
|
75
75
|
"react": "~18.2.0",
|
|
76
76
|
"react-dom": "~18.2.0",
|
|
77
|
-
"@dxos/react-ui": "0.8.1-main.
|
|
78
|
-
"@dxos/react-ui-theme": "0.8.1-main.
|
|
77
|
+
"@dxos/react-ui": "0.8.1-main.81238a8",
|
|
78
|
+
"@dxos/react-ui-theme": "0.8.1-main.81238a8"
|
|
79
79
|
},
|
|
80
80
|
"publishConfig": {
|
|
81
81
|
"access": "public"
|