@dxos/plugin-deck 0.8.0 → 0.8.1-main.013e445
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-FT33W5CI.mjs → chunk-7X43JKZG.mjs} +34 -4
- package/dist/lib/browser/chunk-7X43JKZG.mjs.map +7 -0
- package/dist/lib/browser/{chunk-OEDK54N2.mjs → chunk-7YPIAXSW.mjs} +179 -72
- package/dist/lib/browser/chunk-7YPIAXSW.mjs.map +7 -0
- package/dist/lib/browser/{chunk-KANJBSIX.mjs → chunk-RZLH5F56.mjs} +5 -5
- package/dist/lib/browser/{chunk-KANJBSIX.mjs.map → chunk-RZLH5F56.mjs.map} +3 -3
- package/dist/lib/browser/{chunk-22AQ5IVX.mjs → chunk-WCNPMAR4.mjs} +2 -2
- package/dist/lib/browser/index.mjs +8 -7
- package/dist/lib/browser/index.mjs.map +2 -2
- package/dist/lib/browser/{intent-resolver-ZD67BRUI.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-2T6BCRK4.mjs → react-root-PPKFVPO7.mjs} +7 -7
- package/dist/lib/browser/{react-surface-GFMOJSIA.mjs → react-surface-7JBPPUHM.mjs} +7 -7
- package/dist/lib/browser/{settings-H35U6NHE.mjs → settings-DYS3FFMN.mjs} +4 -4
- package/dist/lib/browser/{settings-H35U6NHE.mjs.map → settings-DYS3FFMN.mjs.map} +3 -3
- package/dist/lib/browser/{state-U4SHOPJW.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/app-graph-builder.d.ts.map +1 -1
- 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/index.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/ActiveNode.d.ts +2 -1
- package/dist/types/src/components/DeckLayout/ActiveNode.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/Banner.d.ts +2 -1
- package/dist/types/src/components/DeckLayout/Banner.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/ComplementarySidebar.d.ts +2 -1
- package/dist/types/src/components/DeckLayout/ComplementarySidebar.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/ContentEmpty.d.ts +2 -1
- package/dist/types/src/components/DeckLayout/ContentEmpty.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/DeckLayout.d.ts +2 -1
- package/dist/types/src/components/DeckLayout/DeckLayout.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/Fallback.d.ts +2 -1
- package/dist/types/src/components/DeckLayout/Fallback.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/Fullscreen.d.ts +2 -1
- package/dist/types/src/components/DeckLayout/Fullscreen.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/components/DeckLayout/PlankError.d.ts +3 -2
- package/dist/types/src/components/DeckLayout/PlankError.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/PlankLoading.d.ts +2 -1
- package/dist/types/src/components/DeckLayout/PlankLoading.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/Sidebar.d.ts +2 -1
- package/dist/types/src/components/DeckLayout/Sidebar.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/SidebarButton.d.ts +4 -3
- package/dist/types/src/components/DeckLayout/SidebarButton.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/StatusBar.d.ts +2 -1
- package/dist/types/src/components/DeckLayout/StatusBar.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/Toast.d.ts +2 -1
- package/dist/types/src/components/DeckLayout/Toast.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/Topbar.d.ts +2 -1
- package/dist/types/src/components/DeckLayout/Topbar.d.ts.map +1 -1
- package/dist/types/src/components/LayoutSettings.d.ts +2 -1
- package/dist/types/src/components/LayoutSettings.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 +2 -1
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types.d.ts +42 -11
- 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/settings.ts +1 -1
- 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 +36 -11
- 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/components/LayoutSettings.tsx +3 -3
- package/src/meta.ts +2 -2
- package/src/translations.ts +4 -3
- package/src/types.ts +30 -1
- package/src/util/useHoistStatusbar.ts +4 -4
- package/dist/lib/browser/chunk-FT33W5CI.mjs.map +0 -7
- package/dist/lib/browser/chunk-J65MNI4S.mjs +0 -24
- package/dist/lib/browser/chunk-OEDK54N2.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-ZD67BRUI.mjs.map +0 -7
- package/dist/lib/browser/state-U4SHOPJW.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-J65MNI4S.mjs.map → chunk-7A5DLPQ3.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-22AQ5IVX.mjs.map → chunk-WCNPMAR4.mjs.map} +0 -0
- /package/dist/lib/browser/{react-root-2T6BCRK4.mjs.map → react-root-PPKFVPO7.mjs.map} +0 -0
- /package/dist/lib/browser/{react-surface-GFMOJSIA.mjs.map → react-surface-7JBPPUHM.mjs.map} +0 -0
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeckCapabilities
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WCNPMAR4.mjs";
|
|
4
4
|
import {
|
|
5
|
+
defaultDeck,
|
|
5
6
|
getMode
|
|
6
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-7X43JKZG.mjs";
|
|
7
8
|
import {
|
|
8
9
|
DECK_PLUGIN
|
|
9
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-2WTHB3TG.mjs";
|
|
10
11
|
|
|
11
12
|
// packages/plugins/plugin-deck/src/capabilities/state.ts
|
|
12
13
|
import { Capabilities, contributes } from "@dxos/app-framework";
|
|
@@ -45,19 +46,14 @@ var state_default = () => {
|
|
|
45
46
|
previousDeck: "default",
|
|
46
47
|
decks: {
|
|
47
48
|
default: {
|
|
48
|
-
|
|
49
|
-
active: [],
|
|
50
|
-
inactive: [],
|
|
51
|
-
fullscreen: false,
|
|
52
|
-
solo: void 0,
|
|
53
|
-
plankSizing: {}
|
|
49
|
+
...defaultDeck
|
|
54
50
|
}
|
|
55
51
|
},
|
|
56
52
|
get deck() {
|
|
57
53
|
const deck = this.decks[this.activeDeck];
|
|
58
54
|
invariant(deck, `Deck not found: ${this.activeDeck}`, {
|
|
59
55
|
F: __dxlog_file,
|
|
60
|
-
L:
|
|
56
|
+
L: 55,
|
|
61
57
|
S: this,
|
|
62
58
|
A: [
|
|
63
59
|
"deck",
|
|
@@ -126,4 +122,4 @@ var state_default = () => {
|
|
|
126
122
|
export {
|
|
127
123
|
state_default as default
|
|
128
124
|
};
|
|
129
|
-
//# sourceMappingURL=state-
|
|
125
|
+
//# sourceMappingURL=state-DRRCGMU2.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/state.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capabilities, contributes } from '@dxos/app-framework';\nimport { invariant } from '@dxos/invariant';\nimport { create } from '@dxos/live-object';\nimport { LocalStorageStore } from '@dxos/local-storage';\nimport { type SidebarState } from '@dxos/react-ui';\n\nimport { DeckCapabilities } from './capabilities';\nimport { DECK_PLUGIN } from '../meta';\nimport { getMode, type Deck, type DeckState, defaultDeck } from '../types';\n\nconst boolean = /true|false/;\n\n// TODO(thure, 18 Feb 2025): Remove after the next release.\n\nconst migrateSidebarStateDefaults = {\n [`${DECK_PLUGIN}/complementary-sidebar-state`]: 'expanded',\n [`${DECK_PLUGIN}/sidebar-state`]: 'collapsed',\n};\n\nconst migrateSidebarState = () => {\n Object.entries(migrateSidebarStateDefaults).forEach(([key, defaultValue]) => {\n if (boolean.test(localStorage.getItem(key) ?? 'never')) {\n localStorage.setItem(key, defaultValue);\n }\n });\n};\n\nexport default () => {\n migrateSidebarState();\n\n const state = new LocalStorageStore<DeckState>(DECK_PLUGIN, {\n sidebarState: 'expanded',\n complementarySidebarState: 'collapsed',\n complementarySidebarPanel: undefined,\n dialogContent: null,\n dialogOpen: false,\n dialogBlockAlign: undefined,\n dialogType: undefined,\n popoverContent: null,\n popoverAnchorId: undefined,\n popoverOpen: false,\n toasts: [],\n currentUndoId: undefined,\n activeDeck: 'default',\n previousDeck: 'default',\n decks: {\n default: { ...defaultDeck },\n },\n get deck() {\n const deck = this.decks[this.activeDeck];\n invariant(deck, `Deck not found: ${this.activeDeck}`);\n return deck;\n },\n previousMode: {},\n scrollIntoView: undefined,\n });\n\n state\n .prop({ key: 'sidebarState', type: LocalStorageStore.enum<SidebarState>() })\n .prop({ key: 'complementarySidebarState', type: LocalStorageStore.enum<SidebarState>() })\n .prop({ key: 'complementarySidebarPanel', type: LocalStorageStore.string({ allowUndefined: true }) })\n .prop({ key: 'decks', type: LocalStorageStore.json<Record<string, Deck>>() })\n .prop({ key: 'activeDeck', type: LocalStorageStore.string() })\n .prop({ key: 'previousDeck', type: LocalStorageStore.string() });\n\n const layout = create<Capabilities.Layout>({\n get mode() {\n return getMode(state.values.deck);\n },\n get dialogOpen() {\n return state.values.dialogOpen;\n },\n get sidebarOpen() {\n return state.values.sidebarState === 'expanded';\n },\n get complementarySidebarOpen() {\n return state.values.complementarySidebarState === 'expanded';\n },\n get workspace() {\n return state.values.activeDeck;\n },\n get active() {\n return state.values.deck.solo ? [state.values.deck.solo] : state.values.deck.active;\n },\n get inactive() {\n return state.values.deck.inactive;\n },\n get scrollIntoView() {\n return state.values.scrollIntoView;\n },\n });\n\n return [\n contributes(DeckCapabilities.DeckState, state.values, () => state.close()),\n contributes(Capabilities.Layout, layout),\n ];\n};\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;AAIA,SAASA,cAAcC,mBAAmB;AAC1C,SAASC,iBAAiB;AAC1B,SAASC,cAAc;AACvB,SAASC,yBAAyB;;AAOlC,IAAMC,UAAU;AAIhB,IAAMC,8BAA8B;EAClC,CAAC,GAAGC,WAAAA,8BAAyC,GAAG;EAChD,CAAC,GAAGA,WAAAA,gBAA2B,GAAG;AACpC;AAEA,IAAMC,sBAAsB,MAAA;AAC1BC,SAAOC,QAAQJ,2BAAAA,EAA6BK,QAAQ,CAAC,CAACC,KAAKC,YAAAA,MAAa;AACtE,QAAIR,QAAQS,KAAKC,aAAaC,QAAQJ,GAAAA,KAAQ,OAAA,GAAU;AACtDG,mBAAaE,QAAQL,KAAKC,YAAAA;IAC5B;EACF,CAAA;AACF;AAEA,IAAA,gBAAe,MAAA;AACbL,sBAAAA;AAEA,QAAMU,QAAQ,IAAIC,kBAA6BZ,aAAa;IAC1Da,cAAc;IACdC,2BAA2B;IAC3BC,2BAA2BC;IAC3BC,eAAe;IACfC,YAAY;IACZC,kBAAkBH;IAClBI,YAAYJ;IACZK,gBAAgB;IAChBC,iBAAiBN;IACjBO,aAAa;IACbC,QAAQ,CAAA;IACRC,eAAeT;IACfU,YAAY;IACZC,cAAc;IACdC,OAAO;MACLC,SAAS;QAAE,GAAGC;MAAY;IAC5B;IACA,IAAIC,OAAO;AACT,YAAMA,OAAO,KAAKH,MAAM,KAAKF,UAAU;AACvCM,gBAAUD,MAAM,mBAAmB,KAAKL,UAAU,IAAE;;;;;;;;;AACpD,aAAOK;IACT;IACAE,cAAc,CAAC;IACfC,gBAAgBlB;EAClB,CAAA;AAEAL,QACGwB,KAAK;IAAE9B,KAAK;IAAgB+B,MAAMxB,kBAAkByB,KAAI;EAAiB,CAAA,EACzEF,KAAK;IAAE9B,KAAK;IAA6B+B,MAAMxB,kBAAkByB,KAAI;EAAiB,CAAA,EACtFF,KAAK;IAAE9B,KAAK;IAA6B+B,MAAMxB,kBAAkB0B,OAAO;MAAEC,gBAAgB;IAAK,CAAA;EAAG,CAAA,EAClGJ,KAAK;IAAE9B,KAAK;IAAS+B,MAAMxB,kBAAkB4B,KAAI;EAAyB,CAAA,EAC1EL,KAAK;IAAE9B,KAAK;IAAc+B,MAAMxB,kBAAkB0B,OAAM;EAAG,CAAA,EAC3DH,KAAK;IAAE9B,KAAK;IAAgB+B,MAAMxB,kBAAkB0B,OAAM;EAAG,CAAA;AAEhE,QAAMG,SAASC,OAA4B;IACzC,IAAIC,OAAO;AACT,aAAOC,QAAQjC,MAAMkC,OAAOd,IAAI;IAClC;IACA,IAAIb,aAAa;AACf,aAAOP,MAAMkC,OAAO3B;IACtB;IACA,IAAI4B,cAAc;AAChB,aAAOnC,MAAMkC,OAAOhC,iBAAiB;IACvC;IACA,IAAIkC,2BAA2B;AAC7B,aAAOpC,MAAMkC,OAAO/B,8BAA8B;IACpD;IACA,IAAIkC,YAAY;AACd,aAAOrC,MAAMkC,OAAOnB;IACtB;IACA,IAAIuB,SAAS;AACX,aAAOtC,MAAMkC,OAAOd,KAAKmB,OAAO;QAACvC,MAAMkC,OAAOd,KAAKmB;UAAQvC,MAAMkC,OAAOd,KAAKkB;IAC/E;IACA,IAAIE,WAAW;AACb,aAAOxC,MAAMkC,OAAOd,KAAKoB;IAC3B;IACA,IAAIjB,iBAAiB;AACnB,aAAOvB,MAAMkC,OAAOX;IACtB;EACF,CAAA;AAEA,SAAO;IACLkB,YAAYC,iBAAiBC,WAAW3C,MAAMkC,QAAQ,MAAMlC,MAAM4C,MAAK,CAAA;IACvEH,YAAYI,aAAaC,QAAQhB,MAAAA;;AAErC;",
|
|
6
|
+
"names": ["Capabilities", "contributes", "invariant", "create", "LocalStorageStore", "boolean", "migrateSidebarStateDefaults", "DECK_PLUGIN", "migrateSidebarState", "Object", "entries", "forEach", "key", "defaultValue", "test", "localStorage", "getItem", "setItem", "state", "LocalStorageStore", "sidebarState", "complementarySidebarState", "complementarySidebarPanel", "undefined", "dialogContent", "dialogOpen", "dialogBlockAlign", "dialogType", "popoverContent", "popoverAnchorId", "popoverOpen", "toasts", "currentUndoId", "activeDeck", "previousDeck", "decks", "default", "defaultDeck", "deck", "invariant", "previousMode", "scrollIntoView", "prop", "type", "enum", "string", "allowUndefined", "json", "layout", "create", "mode", "getMode", "values", "sidebarOpen", "complementarySidebarOpen", "workspace", "active", "solo", "inactive", "contributes", "DeckCapabilities", "DeckState", "close", "Capabilities", "Layout"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DeckAction
|
|
3
|
+
} from "./chunk-7X43JKZG.mjs";
|
|
4
|
+
import {
|
|
5
|
+
meta
|
|
6
|
+
} from "./chunk-2WTHB3TG.mjs";
|
|
7
|
+
|
|
8
|
+
// packages/plugins/plugin-deck/src/capabilities/tools.ts
|
|
9
|
+
import { contributes, createIntent, Capabilities, LayoutAction } from "@dxos/app-framework";
|
|
10
|
+
import { defineTool, ToolResult } from "@dxos/artifact";
|
|
11
|
+
import { S } from "@dxos/echo-schema";
|
|
12
|
+
import { invariant } from "@dxos/invariant";
|
|
13
|
+
var __dxlog_file = "/home/runner/work/dxos/dxos/packages/plugins/plugin-deck/src/capabilities/tools.ts";
|
|
14
|
+
var tools_default = () => contributes(Capabilities.Tools, [
|
|
15
|
+
defineTool(meta.id, {
|
|
16
|
+
name: "show",
|
|
17
|
+
description: `
|
|
18
|
+
Show an item as a companion to an existing plank. This will make the item appear alongside the primary content.
|
|
19
|
+
When supplying IDs, they must be fully qualified like space:object.
|
|
20
|
+
`,
|
|
21
|
+
caption: "Showing item...",
|
|
22
|
+
// TODO(wittjosiah): Refactor Layout/Navigation/Deck actions so that they can be used directly.
|
|
23
|
+
schema: S.Struct({
|
|
24
|
+
id: S.String.annotations({
|
|
25
|
+
description: "The ID of the item to show."
|
|
26
|
+
})
|
|
27
|
+
}),
|
|
28
|
+
execute: async ({ id }, { extensions }) => {
|
|
29
|
+
invariant(extensions?.pivotId, "No pivot ID", {
|
|
30
|
+
F: __dxlog_file,
|
|
31
|
+
L: 44,
|
|
32
|
+
S: void 0,
|
|
33
|
+
A: [
|
|
34
|
+
"extensions?.pivotId",
|
|
35
|
+
"'No pivot ID'"
|
|
36
|
+
]
|
|
37
|
+
});
|
|
38
|
+
invariant(extensions?.dispatch, "No intent dispatcher", {
|
|
39
|
+
F: __dxlog_file,
|
|
40
|
+
L: 45,
|
|
41
|
+
S: void 0,
|
|
42
|
+
A: [
|
|
43
|
+
"extensions?.dispatch",
|
|
44
|
+
"'No intent dispatcher'"
|
|
45
|
+
]
|
|
46
|
+
});
|
|
47
|
+
if (extensions.part === "deck") {
|
|
48
|
+
const { data, error } = await extensions.dispatch(createIntent(DeckAction.ChangeCompanion, {
|
|
49
|
+
primary: extensions.pivotId,
|
|
50
|
+
companion: id
|
|
51
|
+
}));
|
|
52
|
+
if (error) {
|
|
53
|
+
return ToolResult.Error(error.message);
|
|
54
|
+
}
|
|
55
|
+
return ToolResult.Success(data);
|
|
56
|
+
} else {
|
|
57
|
+
const { data, error } = await extensions.dispatch(createIntent(LayoutAction.Open, {
|
|
58
|
+
subject: [
|
|
59
|
+
id
|
|
60
|
+
],
|
|
61
|
+
part: "main",
|
|
62
|
+
options: {
|
|
63
|
+
pivotId: extensions.pivotId,
|
|
64
|
+
positioning: "end"
|
|
65
|
+
}
|
|
66
|
+
}));
|
|
67
|
+
if (error) {
|
|
68
|
+
return ToolResult.Error(error.message);
|
|
69
|
+
}
|
|
70
|
+
return ToolResult.Success(data);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
})
|
|
74
|
+
]);
|
|
75
|
+
export {
|
|
76
|
+
tools_default as default
|
|
77
|
+
};
|
|
78
|
+
//# sourceMappingURL=tools-NDEUSO4R.mjs.map
|
|
@@ -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
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-graph-builder.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/app-graph-builder.ts"],"names":[],"mappings":"AAIA,OAAO,EAAyD,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAEjH,OAAO,EAAmB,KAAK,IAAI,EAAW,MAAM,oBAAoB,CAAC;kCAKhD,cAAc;;
|
|
1
|
+
{"version":3,"file":"app-graph-builder.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/app-graph-builder.ts"],"names":[],"mappings":"AAIA,OAAO,EAAyD,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAEjH,OAAO,EAAmB,KAAK,IAAI,EAAW,MAAM,oBAAoB,CAAC;kCAKhD,cAAc;;qBAyEI,YAAY;sBACvB,iBAC1B;uBAGwB,iBAChB;sBACJ,iBAAa;;2BACoC,iBAAiB;;;qBAI9D,YAAM;sBAAsC,iBAAiB;uBAC7D,iBAAK;sBAED,iBAAgB;;2BAGtB,iBACT;;;qBAEqB,YACpB;sBAGa,iBAAiB;uBAAgD,iBAAiB;sBAIhF,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAwF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAwF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAwF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAwF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAwF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAwF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAwF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAwF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAwF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;AAtGz6N,wBAqGI"}
|
|
@@ -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":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,eAAe;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,eAAe;;qBAW6rF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAwF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAwF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAwF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAwF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAwF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAwF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAwF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAwF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAwF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAwF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;qFAXx7U,CAAC;AACzE,eAAO,MAAM,cAAc,8LAA2C,CAAC;AACvE,eAAO,MAAM,oBAAoB,mPAA0C,CAAC;AAC5E,eAAO,MAAM,SAAS;;;qDAAqC,CAAC;AAC5D,eAAO,MAAM,YAAY,gMAAwC,CAAC;AAClE,eAAO,MAAM,YAAY,4LAAmC,CAAC;AAC7D,eAAO,MAAM,SAAS,gJAAgC,CAAC;AACvD,eAAO,MAAM,KAAK,wKAAgC,CAAC;AACnD,eAAO,MAAM,UAAU,8LAAsC,CAAC;AAE9D,cAAc,gBAAgB,CAAC"}
|
|
@@ -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":"ActiveNode.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/ActiveNode.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ActiveNode.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/ActiveNode.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,eAAO,MAAM,UAAU,yBAatB,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { type ThemedClassName } from '@dxos/react-ui';
|
|
2
3
|
export declare const Banner: ({ variant, classNames }: ThemedClassName<{
|
|
3
4
|
variant?: "topbar" | "sidebar";
|
|
4
|
-
}>) =>
|
|
5
|
+
}>) => React.JSX.Element;
|
|
5
6
|
//# sourceMappingURL=Banner.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Banner.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/Banner.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Banner.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/Banner.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAKtD,eAAO,MAAM,MAAM,4BAA6B,eAAe,CAAC;IAAE,OAAO,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;CAAE,CAAC,sBAwBlG,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
export type ComplementarySidebarProps = {
|
|
2
3
|
current?: string;
|
|
3
4
|
};
|
|
4
|
-
export declare const ComplementarySidebar: ({ current }: ComplementarySidebarProps) =>
|
|
5
|
+
export declare const ComplementarySidebar: ({ current }: ComplementarySidebarProps) => React.JSX.Element;
|
|
5
6
|
//# sourceMappingURL=ComplementarySidebar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComplementarySidebar.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/ComplementarySidebar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ComplementarySidebar.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/ComplementarySidebar.tsx"],"names":[],"mappings":"AAIA,OAAO,KAQN,MAAM,OAAO,CAAC;AAgCf,MAAM,MAAM,yBAAyB,GAAG;IACtC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAIF,eAAO,MAAM,oBAAoB,gBAAiB,yBAAyB,sBA0H1E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentEmpty.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/ContentEmpty.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ContentEmpty.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/ContentEmpty.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,eAAO,MAAM,YAAY,yBAaxB,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { type Overscroll } from '../../types';
|
|
2
3
|
export type DeckLayoutProps = {
|
|
3
4
|
overscroll: Overscroll;
|
|
4
5
|
showHints: boolean;
|
|
5
6
|
onDismissToast: (id: string) => void;
|
|
6
7
|
};
|
|
7
|
-
export declare const DeckLayout: ({ overscroll, showHints, onDismissToast }: DeckLayoutProps) =>
|
|
8
|
+
export declare const DeckLayout: ({ overscroll, showHints, onDismissToast }: DeckLayoutProps) => React.JSX.Element;
|
|
8
9
|
//# sourceMappingURL=DeckLayout.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeckLayout.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/DeckLayout.tsx"],"names":[],"mappings":"
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Fallback.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/Fallback.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Fallback.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/Fallback.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,eAAO,MAAM,QAAQ,yBAgBpB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Fullscreen.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/Fullscreen.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Fullscreen.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/Fullscreen.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,eAAO,MAAM,UAAU,WAAY;IAAE,EAAE,CAAC,EAAE,MAAM,CAAA;CAAE,sBAiBjD,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) =>
|
|
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"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { type Node } from '@dxos/plugin-graph';
|
|
2
3
|
import { type NodePlankHeadingProps } from './NodePlankHeading';
|
|
3
4
|
export declare const PlankContentError: ({ error }: {
|
|
4
5
|
error?: Error;
|
|
5
|
-
}) =>
|
|
6
|
+
}) => React.JSX.Element;
|
|
6
7
|
export declare const PlankError: ({ id, part, node, error, }: {
|
|
7
8
|
id: string;
|
|
8
9
|
part: NodePlankHeadingProps["part"];
|
|
9
10
|
node?: Node;
|
|
10
11
|
error?: Error;
|
|
11
|
-
}) =>
|
|
12
|
+
}) => React.JSX.Element;
|
|
12
13
|
//# sourceMappingURL=PlankError.d.ts.map
|