@dxos/plugin-deck 0.7.4 → 0.7.5-labs.071a3e2

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.
Files changed (173) hide show
  1. package/dist/lib/browser/app-graph-builder-CI6ZFMNL.mjs +147 -0
  2. package/dist/lib/browser/app-graph-builder-CI6ZFMNL.mjs.map +7 -0
  3. package/dist/lib/browser/check-app-scheme-S3EYUPMF.mjs +33 -0
  4. package/dist/lib/browser/check-app-scheme-S3EYUPMF.mjs.map +7 -0
  5. package/dist/lib/browser/chunk-BTDY6SES.mjs +1119 -0
  6. package/dist/lib/browser/chunk-BTDY6SES.mjs.map +7 -0
  7. package/dist/lib/browser/chunk-FZOBKOA2.mjs +24 -0
  8. package/dist/lib/browser/chunk-FZOBKOA2.mjs.map +7 -0
  9. package/dist/lib/browser/chunk-M2L53AIH.mjs +126 -0
  10. package/dist/lib/browser/chunk-M2L53AIH.mjs.map +7 -0
  11. package/dist/lib/browser/{chunk-GVOGPULO.mjs → chunk-N7TEPFVR.mjs} +5 -4
  12. package/dist/lib/browser/chunk-N7TEPFVR.mjs.map +7 -0
  13. package/dist/lib/browser/chunk-YQ2GWTDU.mjs +17 -0
  14. package/dist/lib/browser/chunk-YQ2GWTDU.mjs.map +7 -0
  15. package/dist/lib/browser/index.mjs +100 -1807
  16. package/dist/lib/browser/index.mjs.map +4 -4
  17. package/dist/lib/browser/intent-resolver-CSXFDKTC.mjs +494 -0
  18. package/dist/lib/browser/intent-resolver-CSXFDKTC.mjs.map +7 -0
  19. package/dist/lib/browser/meta.json +1 -1
  20. package/dist/lib/browser/react-root-HIHLRMCW.mjs +46 -0
  21. package/dist/lib/browser/react-root-HIHLRMCW.mjs.map +7 -0
  22. package/dist/lib/browser/react-surface-4QVWKQYY.mjs +38 -0
  23. package/dist/lib/browser/react-surface-4QVWKQYY.mjs.map +7 -0
  24. package/dist/lib/browser/settings-WACNLCPB.mjs +28 -0
  25. package/dist/lib/browser/settings-WACNLCPB.mjs.map +7 -0
  26. package/dist/lib/browser/state-VPOYUKK6.mjs +117 -0
  27. package/dist/lib/browser/state-VPOYUKK6.mjs.map +7 -0
  28. package/dist/lib/browser/tools-5LDJNU56.mjs +51 -0
  29. package/dist/lib/browser/tools-5LDJNU56.mjs.map +7 -0
  30. package/dist/lib/browser/types.mjs +20 -3
  31. package/dist/lib/browser/url-handler-HLF42IHP.mjs +70 -0
  32. package/dist/lib/browser/url-handler-HLF42IHP.mjs.map +7 -0
  33. package/dist/types/src/DeckPlugin.d.ts +1 -14
  34. package/dist/types/src/DeckPlugin.d.ts.map +1 -1
  35. package/dist/types/src/capabilities/app-graph-builder.d.ts +181 -0
  36. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -0
  37. package/dist/types/src/capabilities/capabilities.d.ts +142 -0
  38. package/dist/types/src/capabilities/capabilities.d.ts.map +1 -0
  39. package/dist/types/src/capabilities/check-app-scheme.d.ts +4 -0
  40. package/dist/types/src/capabilities/check-app-scheme.d.ts.map +1 -0
  41. package/dist/types/src/capabilities/index.d.ts +190 -0
  42. package/dist/types/src/capabilities/index.d.ts.map +1 -0
  43. package/dist/types/src/capabilities/intent-resolver.d.ts +4 -0
  44. package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -0
  45. package/dist/types/src/capabilities/react-root.d.ts +7 -0
  46. package/dist/types/src/capabilities/react-root.d.ts.map +1 -0
  47. package/dist/types/src/capabilities/react-surface.d.ts +4 -0
  48. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
  49. package/dist/types/src/capabilities/set-active.d.ts +9 -0
  50. package/dist/types/src/capabilities/set-active.d.ts.map +1 -0
  51. package/dist/types/src/capabilities/settings.d.ts +4 -0
  52. package/dist/types/src/capabilities/settings.d.ts.map +1 -0
  53. package/dist/types/src/capabilities/state.d.ts +76 -0
  54. package/dist/types/src/capabilities/state.d.ts.map +1 -0
  55. package/dist/types/src/capabilities/tools.d.ts +10 -0
  56. package/dist/types/src/capabilities/tools.d.ts.map +1 -0
  57. package/dist/types/src/capabilities/url-handler.d.ts +4 -0
  58. package/dist/types/src/capabilities/url-handler.d.ts.map +1 -0
  59. package/dist/types/src/components/DeckLayout/ActiveNode.d.ts.map +1 -1
  60. package/dist/types/src/components/DeckLayout/Banner.d.ts +6 -0
  61. package/dist/types/src/components/DeckLayout/Banner.d.ts.map +1 -0
  62. package/dist/types/src/components/DeckLayout/ComplementarySidebar.d.ts.map +1 -1
  63. package/dist/types/src/components/DeckLayout/ContentEmpty.d.ts.map +1 -1
  64. package/dist/types/src/components/DeckLayout/DeckLayout.d.ts +1 -4
  65. package/dist/types/src/components/DeckLayout/DeckLayout.d.ts.map +1 -1
  66. package/dist/types/src/components/DeckLayout/Fullscreen.d.ts.map +1 -1
  67. package/dist/types/src/components/DeckLayout/NodePlankHeading.d.ts +3 -3
  68. package/dist/types/src/components/DeckLayout/NodePlankHeading.d.ts.map +1 -1
  69. package/dist/types/src/components/DeckLayout/Plank.d.ts +8 -6
  70. package/dist/types/src/components/DeckLayout/Plank.d.ts.map +1 -1
  71. package/dist/types/src/components/DeckLayout/PlankControls.d.ts +2 -2
  72. package/dist/types/src/components/DeckLayout/PlankControls.d.ts.map +1 -1
  73. package/dist/types/src/components/DeckLayout/PlankError.d.ts +4 -3
  74. package/dist/types/src/components/DeckLayout/PlankError.d.ts.map +1 -1
  75. package/dist/types/src/components/DeckLayout/Sidebar.d.ts +1 -5
  76. package/dist/types/src/components/DeckLayout/Sidebar.d.ts.map +1 -1
  77. package/dist/types/src/components/DeckLayout/SidebarButton.d.ts +8 -0
  78. package/dist/types/src/components/DeckLayout/SidebarButton.d.ts.map +1 -0
  79. package/dist/types/src/components/DeckLayout/StatusBar.d.ts.map +1 -1
  80. package/dist/types/src/components/DeckLayout/Toast.d.ts +2 -2
  81. package/dist/types/src/components/DeckLayout/Toast.d.ts.map +1 -1
  82. package/dist/types/src/components/DeckLayout/Topbar.d.ts +3 -0
  83. package/dist/types/src/components/DeckLayout/Topbar.d.ts.map +1 -0
  84. package/dist/types/src/components/fragments.d.ts +4 -0
  85. package/dist/types/src/components/fragments.d.ts.map +1 -0
  86. package/dist/types/src/components/index.d.ts +0 -2
  87. package/dist/types/src/components/index.d.ts.map +1 -1
  88. package/dist/types/src/events.d.ts +4 -0
  89. package/dist/types/src/events.d.ts.map +1 -0
  90. package/dist/types/src/hooks/useMainSize.d.ts +2 -2
  91. package/dist/types/src/index.d.ts +3 -2
  92. package/dist/types/src/index.d.ts.map +1 -1
  93. package/dist/types/src/layout.d.ts +5 -19
  94. package/dist/types/src/layout.d.ts.map +1 -1
  95. package/dist/types/src/meta.d.ts +4 -4
  96. package/dist/types/src/meta.d.ts.map +1 -1
  97. package/dist/types/src/translations.d.ts +7 -2
  98. package/dist/types/src/translations.d.ts.map +1 -1
  99. package/dist/types/src/types.d.ts +130 -17
  100. package/dist/types/src/types.d.ts.map +1 -1
  101. package/dist/types/src/util/index.d.ts +3 -2
  102. package/dist/types/src/util/index.d.ts.map +1 -1
  103. package/dist/types/src/util/layoutAppliesTopbar.d.ts +2 -0
  104. package/dist/types/src/util/layoutAppliesTopbar.d.ts.map +1 -0
  105. package/dist/types/src/util/useBreakpoints.d.ts +2 -0
  106. package/dist/types/src/util/useBreakpoints.d.ts.map +1 -0
  107. package/dist/types/src/util/useHoistStatusbar.d.ts +2 -0
  108. package/dist/types/src/util/useHoistStatusbar.d.ts.map +1 -0
  109. package/dist/types/tsconfig.tsbuildinfo +1 -0
  110. package/package.json +32 -36
  111. package/src/DeckPlugin.ts +83 -0
  112. package/src/capabilities/app-graph-builder.ts +109 -0
  113. package/src/capabilities/capabilities.ts +18 -0
  114. package/src/capabilities/check-app-scheme.ts +44 -0
  115. package/src/capabilities/index.ts +17 -0
  116. package/src/capabilities/intent-resolver.ts +350 -0
  117. package/src/capabilities/react-root.tsx +48 -0
  118. package/src/capabilities/react-surface.tsx +31 -0
  119. package/src/capabilities/set-active.ts +43 -0
  120. package/src/capabilities/settings.ts +21 -0
  121. package/src/capabilities/state.ts +102 -0
  122. package/src/capabilities/tools.ts +61 -0
  123. package/src/capabilities/url-handler.ts +63 -0
  124. package/src/components/DeckLayout/ActiveNode.tsx +3 -4
  125. package/src/components/DeckLayout/Banner.tsx +37 -0
  126. package/src/components/DeckLayout/ComplementarySidebar.tsx +130 -56
  127. package/src/components/DeckLayout/ContentEmpty.tsx +9 -4
  128. package/src/components/DeckLayout/DeckLayout.tsx +116 -83
  129. package/src/components/DeckLayout/Fullscreen.tsx +3 -4
  130. package/src/components/DeckLayout/NodePlankHeading.tsx +66 -93
  131. package/src/components/DeckLayout/Plank.tsx +36 -43
  132. package/src/components/DeckLayout/PlankControls.tsx +12 -13
  133. package/src/components/DeckLayout/PlankError.tsx +6 -5
  134. package/src/components/DeckLayout/Sidebar.tsx +19 -26
  135. package/src/components/DeckLayout/SidebarButton.tsx +68 -0
  136. package/src/components/DeckLayout/StatusBar.tsx +6 -12
  137. package/src/components/DeckLayout/Toast.tsx +21 -8
  138. package/src/components/DeckLayout/Topbar.tsx +11 -0
  139. package/src/components/LayoutSettings.tsx +8 -8
  140. package/src/components/fragments.ts +14 -0
  141. package/src/components/index.ts +0 -2
  142. package/src/events.ts +11 -0
  143. package/src/hooks/useMainSize.ts +3 -3
  144. package/src/index.ts +3 -4
  145. package/src/layout.ts +43 -212
  146. package/src/meta.ts +3 -2
  147. package/src/translations.ts +11 -6
  148. package/src/types.ts +110 -34
  149. package/src/util/index.ts +3 -2
  150. package/src/util/layoutAppliesTopbar.ts +7 -0
  151. package/src/util/useBreakpoints.ts +11 -0
  152. package/src/util/useHoistStatusbar.ts +24 -0
  153. package/dist/lib/browser/chunk-GVOGPULO.mjs.map +0 -7
  154. package/dist/lib/browser/chunk-NIRHDTX4.mjs +0 -17
  155. package/dist/lib/browser/chunk-NIRHDTX4.mjs.map +0 -7
  156. package/dist/lib/browser/meta.mjs +0 -9
  157. package/dist/lib/browser/meta.mjs.map +0 -7
  158. package/dist/types/src/components/DeckContext.d.ts +0 -8
  159. package/dist/types/src/components/DeckContext.d.ts.map +0 -1
  160. package/dist/types/src/components/LayoutContext.d.ts +0 -5
  161. package/dist/types/src/components/LayoutContext.d.ts.map +0 -1
  162. package/dist/types/src/layout.test.d.ts +0 -2
  163. package/dist/types/src/layout.test.d.ts.map +0 -1
  164. package/dist/types/src/util/check-app-scheme.d.ts +0 -2
  165. package/dist/types/src/util/check-app-scheme.d.ts.map +0 -1
  166. package/dist/types/src/util/layout-parts.d.ts +0 -7
  167. package/dist/types/src/util/layout-parts.d.ts.map +0 -1
  168. package/src/DeckPlugin.tsx +0 -657
  169. package/src/components/DeckContext.ts +0 -14
  170. package/src/components/LayoutContext.ts +0 -12
  171. package/src/layout.test.ts +0 -380
  172. package/src/util/check-app-scheme.ts +0 -21
  173. package/src/util/layout-parts.ts +0 -12
@@ -0,0 +1,51 @@
1
+ // packages/plugins/plugin-deck/src/capabilities/tools.ts
2
+ import { contributes, createIntent, Capabilities, LayoutAction } from "@dxos/app-framework";
3
+ import { defineTool, ToolResult } from "@dxos/artifact";
4
+ import { S } from "@dxos/echo-schema";
5
+ import { invariant } from "@dxos/invariant";
6
+ var __dxlog_file = "/home/runner/work/dxos/dxos/packages/plugins/plugin-deck/src/capabilities/tools.ts";
7
+ var tools_default = () => contributes(Capabilities.Tools, [
8
+ defineTool({
9
+ name: "show",
10
+ // TODO(ZaymonFC): We should update the prompt to teach the LLM the difference between object ids and fully qualified ids.
11
+ description: "Show an item in the app. Use this tool to open an artifact. When supplying IDs to show, they must be fully qualified like space:object.",
12
+ // TODO(wittjosiah): Refactor Layout/Navigation/Deck actions so that they can be used directly.
13
+ schema: S.Struct({
14
+ id: S.String.annotations({
15
+ description: "The ID of the item to show."
16
+ }),
17
+ pivotId: S.optional(S.String.annotations({
18
+ description: "The ID of the chat. If provided, the item will be added after the pivot item."
19
+ }))
20
+ }),
21
+ execute: async ({ id }, { extensions }) => {
22
+ invariant(extensions?.dispatch, "No intent dispatcher", {
23
+ F: __dxlog_file,
24
+ L: 43,
25
+ S: void 0,
26
+ A: [
27
+ "extensions?.dispatch",
28
+ "'No intent dispatcher'"
29
+ ]
30
+ });
31
+ const { data, error } = await extensions.dispatch(createIntent(LayoutAction.Open, {
32
+ subject: [
33
+ id
34
+ ],
35
+ part: "main",
36
+ options: {
37
+ pivotId: extensions.pivotId,
38
+ positioning: "end"
39
+ }
40
+ }));
41
+ if (error) {
42
+ return ToolResult.Error(error.message);
43
+ }
44
+ return ToolResult.Success(data);
45
+ }
46
+ })
47
+ ]);
48
+ export {
49
+ tools_default as default
50
+ };
51
+ //# sourceMappingURL=tools-5LDJNU56.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\n// TODO(burdon): Factor out.\ndeclare global {\n interface ToolContextExtensions {\n dispatch?: PromiseIntentDispatcher;\n pivotId?: string;\n }\n}\n\nexport default () =>\n contributes(Capabilities.Tools, [\n defineTool({\n name: 'show',\n // TODO(ZaymonFC): We should update the prompt to teach the LLM the difference between object ids and fully qualified ids.\n description:\n 'Show an item in the app. Use this tool to open an artifact. When supplying IDs to show, they must be fully qualified like space:object.',\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 pivotId: S.optional(\n S.String.annotations({\n description: 'The ID of the chat. If provided, the item will be added after the pivot item.',\n }),\n ),\n }),\n execute: async ({ id }, { extensions }) => {\n invariant(extensions?.dispatch, 'No intent dispatcher');\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"],
5
+ "mappings": ";AAIA,SACEA,aACAC,cACAC,cACAC,oBAEK;AACP,SAASC,YAAYC,kBAAkB;AACvC,SAASC,SAAS;AAClB,SAASC,iBAAiB;;AAU1B,IAAA,gBAAe,MACbP,YAAYE,aAAaM,OAAO;EAC9BJ,WAAW;IACTK,MAAM;;IAENC,aACE;;IAEFC,QAAQL,EAAEM,OAAO;MACfC,IAAIP,EAAEQ,OAAOC,YAAY;QACvBL,aAAa;MACf,CAAA;MACAM,SAASV,EAAEW,SACTX,EAAEQ,OAAOC,YAAY;QACnBL,aAAa;MACf,CAAA,CAAA;IAEJ,CAAA;IACAQ,SAAS,OAAO,EAAEL,GAAE,GAAI,EAAEM,WAAU,MAAE;AACpCZ,gBAAUY,YAAYC,UAAU,wBAAA;;;;;;;;;AAChC,YAAM,EAAEC,MAAMC,MAAK,IAAK,MAAMH,WAAWC,SACvCnB,aAAaE,aAAaoB,MAAM;QAC9BC,SAAS;UAACX;;QACVY,MAAM;QACNC,SAAS;UACPV,SAASG,WAAWH;UACpBW,aAAa;QACf;MACF,CAAA,CAAA;AAEF,UAAIL,OAAO;AACT,eAAOjB,WAAWuB,MAAMN,MAAMO,OAAO;MACvC;AAEA,aAAOxB,WAAWyB,QAAQT,IAAAA;IAC5B;EACF,CAAA;CACD;",
6
+ "names": ["contributes", "createIntent", "Capabilities", "LayoutAction", "defineTool", "ToolResult", "S", "invariant", "Tools", "name", "description", "schema", "Struct", "id", "String", "annotations", "pivotId", "optional", "execute", "extensions", "dispatch", "data", "error", "Open", "subject", "part", "options", "positioning", "Error", "message", "Success"]
7
+ }
@@ -1,11 +1,28 @@
1
1
  import {
2
+ DECK_ACTION,
3
+ Deck,
4
+ DeckAction,
5
+ DeckSettingsSchema,
6
+ DeckState,
2
7
  NewPlankPositions,
3
8
  OverscrollOptions,
4
- parsePanelPlugin
5
- } from "./chunk-NIRHDTX4.mjs";
9
+ PlankSizing,
10
+ SLUG_PATH_SEPARATOR,
11
+ getMode,
12
+ isLayoutMode
13
+ } from "./chunk-M2L53AIH.mjs";
14
+ import "./chunk-N7TEPFVR.mjs";
6
15
  export {
16
+ DECK_ACTION,
17
+ Deck,
18
+ DeckAction,
19
+ DeckSettingsSchema,
20
+ DeckState,
7
21
  NewPlankPositions,
8
22
  OverscrollOptions,
9
- parsePanelPlugin
23
+ PlankSizing,
24
+ SLUG_PATH_SEPARATOR,
25
+ getMode,
26
+ isLayoutMode
10
27
  };
11
28
  //# sourceMappingURL=types.mjs.map
@@ -0,0 +1,70 @@
1
+ import {
2
+ DeckCapabilities
3
+ } from "./chunk-YQ2GWTDU.mjs";
4
+ import "./chunk-N7TEPFVR.mjs";
5
+
6
+ // packages/plugins/plugin-deck/src/capabilities/url-handler.ts
7
+ import { Capabilities, contributes, createIntent, LayoutAction } from "@dxos/app-framework";
8
+ import { scheduledEffect } from "@dxos/echo-signals/core";
9
+ var url_handler_default = async (context) => {
10
+ const { dispatchPromise: dispatch } = context.requestCapability(Capabilities.IntentDispatcher) ?? {};
11
+ const state = context.requestCapability(DeckCapabilities.MutableDeckState);
12
+ const handleNavigation = async () => {
13
+ const pathname = window.location.pathname;
14
+ if (pathname === "/reset") {
15
+ state.activeDeck = "default";
16
+ state.decks = {
17
+ default: {
18
+ initialized: false,
19
+ active: [],
20
+ inactive: [],
21
+ fullscreen: false,
22
+ solo: void 0,
23
+ plankSizing: {}
24
+ }
25
+ };
26
+ window.location.pathname = "/";
27
+ return;
28
+ }
29
+ const [_, nextDeck, nextSolo] = pathname.split("/");
30
+ if (nextDeck) {
31
+ await dispatch(createIntent(LayoutAction.SwitchWorkspace, {
32
+ part: "workspace",
33
+ subject: nextDeck
34
+ }));
35
+ }
36
+ if (nextSolo) {
37
+ await dispatch(createIntent(LayoutAction.SetLayoutMode, {
38
+ part: "mode",
39
+ subject: nextSolo,
40
+ options: {
41
+ mode: "solo"
42
+ }
43
+ }));
44
+ } else {
45
+ await dispatch(createIntent(LayoutAction.SetLayoutMode, {
46
+ part: "mode",
47
+ options: {
48
+ mode: "deck"
49
+ }
50
+ }));
51
+ }
52
+ };
53
+ await handleNavigation();
54
+ window.addEventListener("popstate", handleNavigation);
55
+ const unsubscribe = scheduledEffect(() => ({
56
+ solo: state.deck.solo,
57
+ activeDeck: state.activeDeck
58
+ }), ({ solo, activeDeck }) => {
59
+ const path = solo ? `/${activeDeck}/${solo}` : `/${activeDeck}`;
60
+ history.pushState(null, "", `${path}${window.location.search}`);
61
+ });
62
+ return contributes(Capabilities.Null, null, () => {
63
+ window.removeEventListener("popstate", handleNavigation);
64
+ unsubscribe();
65
+ });
66
+ };
67
+ export {
68
+ url_handler_default as default
69
+ };
70
+ //# sourceMappingURL=url-handler-HLF42IHP.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';\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: {\n initialized: false,\n active: [],\n inactive: [],\n fullscreen: false,\n solo: undefined,\n plankSizing: {},\n },\n };\n window.location.pathname = '/';\n return;\n }\n\n const [_, nextDeck, nextSolo] = pathname.split('/');\n if (nextDeck) {\n await dispatch(createIntent(LayoutAction.SwitchWorkspace, { part: 'workspace', subject: nextDeck }));\n }\n\n if (nextSolo) {\n await dispatch(\n createIntent(LayoutAction.SetLayoutMode, { part: 'mode', subject: nextSolo, options: { mode: 'solo' } }),\n );\n } else {\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 // 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 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;AAKhC,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;UACPC,aAAa;UACbC,QAAQ,CAAA;UACRC,UAAU,CAAA;UACVC,YAAY;UACZC,MAAMC;UACNC,aAAa,CAAC;QAChB;MACF;AACAX,aAAOC,SAASF,WAAW;AAC3B;IACF;AAEA,UAAM,CAACa,GAAGC,UAAUC,QAAAA,IAAYf,SAASgB,MAAM,GAAA;AAC/C,QAAIF,UAAU;AACZ,YAAMtB,SAASyB,aAAaC,aAAaC,iBAAiB;QAAEC,MAAM;QAAaC,SAASP;MAAS,CAAA,CAAA;IACnG;AAEA,QAAIC,UAAU;AACZ,YAAMvB,SACJyB,aAAaC,aAAaI,eAAe;QAAEF,MAAM;QAAQC,SAASN;QAAUQ,SAAS;UAAEC,MAAM;QAAO;MAAE,CAAA,CAAA;IAE1G,OAAO;AACL,YAAMhC,SAASyB,aAAaC,aAAaI,eAAe;QAAEF,MAAM;QAAQG,SAAS;UAAEC,MAAM;QAAO;MAAE,CAAA,CAAA;IACpG;EACF;AAEA,QAAMzB,iBAAAA;AACNE,SAAOwB,iBAAiB,YAAY1B,gBAAAA;AAEpC,QAAM2B,cAAcC,gBAClB,OAAO;IAAEjB,MAAMd,MAAMgC,KAAKlB;IAAMP,YAAYP,MAAMO;EAAW,IAC7D,CAAC,EAAEO,MAAMP,WAAU,MAAE;AACnB,UAAM0B,OAAOnB,OAAO,IAAIP,UAAAA,IAAcO,IAAAA,KAAS,IAAIP,UAAAA;AAEnD2B,YAAQC,UAAU,MAAM,IAAI,GAAGF,IAAAA,GAAO5B,OAAOC,SAAS8B,MAAM,EAAE;EAChE,CAAA;AAGF,SAAOC,YAAYvC,aAAawC,MAAM,MAAM,MAAA;AAC1CjC,WAAOkC,oBAAoB,YAAYpC,gBAAAA;AACvC2B,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", "initialized", "active", "inactive", "fullscreen", "solo", "undefined", "plankSizing", "_", "nextDeck", "nextSolo", "split", "createIntent", "LayoutAction", "SwitchWorkspace", "part", "subject", "SetLayoutMode", "options", "mode", "addEventListener", "unsubscribe", "scheduledEffect", "deck", "path", "history", "pushState", "search", "contributes", "Null", "removeEventListener"]
7
+ }
@@ -1,15 +1,2 @@
1
- import { type IntentData, type PluginDefinition } from '@dxos/app-framework';
2
- import { type DeckPluginProvides } from './types';
3
- export declare enum DeckAction {
4
- UPDATE_PLANK_SIZE = "dxos.org/plugin/deck/update-plank-size"
5
- }
6
- export declare namespace DeckAction {
7
- type UpdatePlankSize = IntentData<{
8
- id: string;
9
- size: number;
10
- }>;
11
- }
12
- export declare const DeckPlugin: ({ observability, }?: {
13
- observability?: boolean;
14
- }) => PluginDefinition<DeckPluginProvides>;
1
+ export declare const DeckPlugin: () => import("@dxos/app-framework").Plugin;
15
2
  //# sourceMappingURL=DeckPlugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DeckPlugin.d.ts","sourceRoot":"","sources":["../../../src/DeckPlugin.tsx"],"names":[],"mappings":"AAQA,OAAO,EAIL,KAAK,UAAU,EAgBf,KAAK,gBAAgB,EAItB,MAAM,qBAAqB,CAAC;AAyB7B,OAAO,EACL,KAAK,kBAAkB,EAMxB,MAAM,SAAS,CAAC;AAkBjB,oBAAY,UAAU;IACpB,iBAAiB,2CAAqC;CACvD;AAED,yBAAiB,UAAU,CAAC;IAC1B,KAAY,eAAe,GAAG,UAAU,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACxE;AAED,eAAO,MAAM,UAAU,wBAEpB;IACD,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,KAAQ,gBAAgB,CAAC,kBAAkB,CAkjB3C,CAAC"}
1
+ {"version":3,"file":"DeckPlugin.d.ts","sourceRoot":"","sources":["../../../src/DeckPlugin.ts"],"names":[],"mappings":"AA6BA,eAAO,MAAM,UAAU,4CAqDnB,CAAC"}
@@ -0,0 +1,181 @@
1
+ import { type PluginsContext } from '@dxos/app-framework';
2
+ import { type Node } from '@dxos/plugin-graph';
3
+ declare const _default: (context: PluginsContext) => import("@dxos/app-framework").Capability<Readonly<{
4
+ id: string;
5
+ position: import("packages/common/util/dist/types/src").Position;
6
+ resolver?: import("@dxos/plugin-graph").ResolverExtension;
7
+ connector?: import("@dxos/plugin-graph").ConnectorExtension;
8
+ relation?: import("@dxos/plugin-graph").Relation;
9
+ type?: string;
10
+ filter?: (node: import("packages/sdk/app-graph/dist/types/src").Node) => boolean;
11
+ }> | Readonly<{
12
+ id: string;
13
+ position: import("packages/common/util/dist/types/src").Position;
14
+ resolver?: import("@dxos/plugin-graph").ResolverExtension;
15
+ connector?: import("@dxos/plugin-graph").ConnectorExtension;
16
+ relation?: import("@dxos/plugin-graph").Relation;
17
+ type?: string;
18
+ filter?: (node: import("packages/sdk/app-graph/dist/types/src").Node) => boolean;
19
+ }>[] | (Readonly<{
20
+ id: string;
21
+ position: import("packages/common/util/dist/types/src").Position;
22
+ resolver?: import("@dxos/plugin-graph").ResolverExtension;
23
+ connector?: import("@dxos/plugin-graph").ConnectorExtension;
24
+ relation?: import("@dxos/plugin-graph").Relation;
25
+ type?: string;
26
+ filter?: (node: import("packages/sdk/app-graph/dist/types/src").Node) => boolean;
27
+ }> | Readonly<{
28
+ id: string;
29
+ position: import("packages/common/util/dist/types/src").Position;
30
+ resolver?: import("@dxos/plugin-graph").ResolverExtension;
31
+ connector?: import("@dxos/plugin-graph").ConnectorExtension;
32
+ relation?: import("@dxos/plugin-graph").Relation;
33
+ type?: string;
34
+ filter?: (node: import("packages/sdk/app-graph/dist/types/src").Node) => boolean;
35
+ }>[] | (Readonly<{
36
+ id: string;
37
+ position: import("packages/common/util/dist/types/src").Position;
38
+ resolver?: import("@dxos/plugin-graph").ResolverExtension;
39
+ connector?: import("@dxos/plugin-graph").ConnectorExtension;
40
+ relation?: import("@dxos/plugin-graph").Relation;
41
+ type?: string;
42
+ filter?: (node: import("packages/sdk/app-graph/dist/types/src").Node) => boolean;
43
+ }> | Readonly<{
44
+ id: string;
45
+ position: import("packages/common/util/dist/types/src").Position;
46
+ resolver?: import("@dxos/plugin-graph").ResolverExtension;
47
+ connector?: import("@dxos/plugin-graph").ConnectorExtension;
48
+ relation?: import("@dxos/plugin-graph").Relation;
49
+ type?: string;
50
+ filter?: (node: import("packages/sdk/app-graph/dist/types/src").Node) => boolean;
51
+ }>[] | (Readonly<{
52
+ id: string;
53
+ position: import("packages/common/util/dist/types/src").Position;
54
+ resolver?: import("@dxos/plugin-graph").ResolverExtension;
55
+ connector?: import("@dxos/plugin-graph").ConnectorExtension;
56
+ relation?: import("@dxos/plugin-graph").Relation;
57
+ type?: string;
58
+ filter?: (node: import("packages/sdk/app-graph/dist/types/src").Node) => boolean;
59
+ }> | Readonly<{
60
+ id: string;
61
+ position: import("packages/common/util/dist/types/src").Position;
62
+ resolver?: import("@dxos/plugin-graph").ResolverExtension;
63
+ connector?: import("@dxos/plugin-graph").ConnectorExtension;
64
+ relation?: import("@dxos/plugin-graph").Relation;
65
+ type?: string;
66
+ filter?: (node: import("packages/sdk/app-graph/dist/types/src").Node) => boolean;
67
+ }>[] | (Readonly<{
68
+ id: string;
69
+ position: import("packages/common/util/dist/types/src").Position;
70
+ resolver?: import("@dxos/plugin-graph").ResolverExtension;
71
+ connector?: import("@dxos/plugin-graph").ConnectorExtension;
72
+ relation?: import("@dxos/plugin-graph").Relation;
73
+ type?: string;
74
+ filter?: (node: import("packages/sdk/app-graph/dist/types/src").Node) => boolean;
75
+ }> | Readonly<{
76
+ id: string;
77
+ position: import("packages/common/util/dist/types/src").Position;
78
+ resolver?: import("@dxos/plugin-graph").ResolverExtension;
79
+ connector?: import("@dxos/plugin-graph").ConnectorExtension;
80
+ relation?: import("@dxos/plugin-graph").Relation;
81
+ type?: string;
82
+ filter?: (node: import("packages/sdk/app-graph/dist/types/src").Node) => boolean;
83
+ }>[] | (Readonly<{
84
+ id: string;
85
+ position: import("packages/common/util/dist/types/src").Position;
86
+ resolver?: import("@dxos/plugin-graph").ResolverExtension;
87
+ connector?: import("@dxos/plugin-graph").ConnectorExtension;
88
+ relation?: import("@dxos/plugin-graph").Relation;
89
+ type?: string;
90
+ filter?: (node: import("packages/sdk/app-graph/dist/types/src").Node) => boolean;
91
+ }> | Readonly<{
92
+ id: string;
93
+ position: import("packages/common/util/dist/types/src").Position;
94
+ resolver?: import("@dxos/plugin-graph").ResolverExtension;
95
+ connector?: import("@dxos/plugin-graph").ConnectorExtension;
96
+ relation?: import("@dxos/plugin-graph").Relation;
97
+ type?: string;
98
+ filter?: (node: import("packages/sdk/app-graph/dist/types/src").Node) => boolean;
99
+ }>[] | (Readonly<{
100
+ id: string;
101
+ position: import("packages/common/util/dist/types/src").Position;
102
+ resolver?: import("@dxos/plugin-graph").ResolverExtension;
103
+ connector?: import("@dxos/plugin-graph").ConnectorExtension;
104
+ relation?: import("@dxos/plugin-graph").Relation;
105
+ type?: string;
106
+ filter?: (node: import("packages/sdk/app-graph/dist/types/src").Node) => boolean;
107
+ }> | Readonly<{
108
+ id: string;
109
+ position: import("packages/common/util/dist/types/src").Position;
110
+ resolver?: import("@dxos/plugin-graph").ResolverExtension;
111
+ connector?: import("@dxos/plugin-graph").ConnectorExtension;
112
+ relation?: import("@dxos/plugin-graph").Relation;
113
+ type?: string;
114
+ filter?: (node: import("packages/sdk/app-graph/dist/types/src").Node) => boolean;
115
+ }>[] | (Readonly<{
116
+ id: string;
117
+ position: import("packages/common/util/dist/types/src").Position;
118
+ resolver?: import("@dxos/plugin-graph").ResolverExtension;
119
+ connector?: import("@dxos/plugin-graph").ConnectorExtension;
120
+ relation?: import("@dxos/plugin-graph").Relation;
121
+ type?: string;
122
+ filter?: (node: import("packages/sdk/app-graph/dist/types/src").Node) => boolean;
123
+ }> | Readonly<{
124
+ id: string;
125
+ position: import("packages/common/util/dist/types/src").Position;
126
+ resolver?: import("@dxos/plugin-graph").ResolverExtension;
127
+ connector?: import("@dxos/plugin-graph").ConnectorExtension;
128
+ relation?: import("@dxos/plugin-graph").Relation;
129
+ type?: string;
130
+ filter?: (node: import("packages/sdk/app-graph/dist/types/src").Node) => boolean;
131
+ }>[] | (Readonly<{
132
+ id: string;
133
+ position: import("packages/common/util/dist/types/src").Position;
134
+ resolver?: import("@dxos/plugin-graph").ResolverExtension;
135
+ connector?: import("@dxos/plugin-graph").ConnectorExtension;
136
+ relation?: import("@dxos/plugin-graph").Relation;
137
+ type?: string;
138
+ filter?: (node: import("packages/sdk/app-graph/dist/types/src").Node) => boolean;
139
+ }> | Readonly<{
140
+ id: string;
141
+ position: import("packages/common/util/dist/types/src").Position;
142
+ resolver?: import("@dxos/plugin-graph").ResolverExtension;
143
+ connector?: import("@dxos/plugin-graph").ConnectorExtension;
144
+ relation?: import("@dxos/plugin-graph").Relation;
145
+ type?: string;
146
+ filter?: (node: import("packages/sdk/app-graph/dist/types/src").Node) => boolean;
147
+ }>[] | (Readonly<{
148
+ id: string;
149
+ position: import("packages/common/util/dist/types/src").Position;
150
+ resolver?: import("@dxos/plugin-graph").ResolverExtension;
151
+ connector?: import("@dxos/plugin-graph").ConnectorExtension;
152
+ relation?: import("@dxos/plugin-graph").Relation;
153
+ type?: string;
154
+ filter?: (node: import("packages/sdk/app-graph/dist/types/src").Node) => boolean;
155
+ }> | Readonly<{
156
+ id: string;
157
+ position: import("packages/common/util/dist/types/src").Position;
158
+ resolver?: import("@dxos/plugin-graph").ResolverExtension;
159
+ connector?: import("@dxos/plugin-graph").ConnectorExtension;
160
+ relation?: import("@dxos/plugin-graph").Relation;
161
+ type?: string;
162
+ filter?: (node: import("packages/sdk/app-graph/dist/types/src").Node) => boolean;
163
+ }>[] | (any[] | Readonly<{
164
+ id: string;
165
+ position: import("packages/common/util/dist/types/src").Position;
166
+ resolver?: import("@dxos/plugin-graph").ResolverExtension;
167
+ connector?: import("@dxos/plugin-graph").ConnectorExtension;
168
+ relation?: import("@dxos/plugin-graph").Relation;
169
+ type?: string;
170
+ filter?: (node: import("packages/sdk/app-graph/dist/types/src").Node) => boolean;
171
+ }> | Readonly<{
172
+ id: string;
173
+ position: import("packages/common/util/dist/types/src").Position;
174
+ resolver?: import("@dxos/plugin-graph").ResolverExtension;
175
+ connector?: import("@dxos/plugin-graph").ConnectorExtension;
176
+ relation?: import("@dxos/plugin-graph").Relation;
177
+ type?: string;
178
+ filter?: (node: import("packages/sdk/app-graph/dist/types/src").Node) => boolean;
179
+ }>[])[])[])[])[])[])[])[])[])[])[]>;
180
+ export default _default;
181
+ //# sourceMappingURL=app-graph-builder.d.ts.map
@@ -0,0 +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;;qBAkEtB,qCACO;sBACN,oBAAiB;uBAGzB,oBACC;sBACwB,oBAAiB;;2BAG5C,uCAEF;;;qBAEI,qCACA;sBAAsC,oBAAiB;uBAEvD,oBAAY;sBAEG,oBAAiB;;2BAAkE,uCACxG;;;qBAGQ,qCACX;sBACS,oBAEV;uBAC+C,oBAAiB;sBAC1D,oBAGL;;2BAAkE,uCAAiB;;;qBAAqF,qCAAqC;sBAAsC,oBAAiB;uBAAgD,oBAAiB;sBAAgD,oBAAiB;;2BAAkE,uCAAiB;;;qBAAwF,qCAAqC;sBAAsC,oBAAiB;uBAAgD,oBAAiB;sBAAgD,oBAAiB;;2BAAkE,uCAAiB;;;qBAAqF,qCAAqC;sBAAsC,oBAAiB;uBAAgD,oBAAiB;sBAAgD,oBAAiB;;2BAAkE,uCAAiB;;;qBAAwF,qCAAqC;sBAAsC,oBAAiB;uBAAgD,oBAAiB;sBAAgD,oBAAiB;;2BAAkE,uCAAiB;;;qBAAqF,qCAAqC;sBAAsC,oBAAiB;uBAAgD,oBAAiB;sBAAgD,oBAAiB;;2BAAkE,uCAAiB;;;qBAAwF,qCAAqC;sBAAsC,oBAAiB;uBAAgD,oBAAiB;sBAAgD,oBAAiB;;2BAAkE,uCAAiB;;;qBAAqF,qCAAqC;sBAAsC,oBAAiB;uBAAgD,oBAAiB;sBAAgD,oBAAiB;;2BAAkE,uCAAiB;;;qBAAwF,qCAAqC;sBAAsC,oBAAiB;uBAAgD,oBAAiB;sBAAgD,oBAAiB;;2BAAkE,uCAAiB;;;qBAAqF,qCAAqC;sBAAsC,oBAAiB;uBAAgD,oBAAiB;sBAAgD,oBAAiB;;2BAAkE,uCAAiB;;;qBAAwF,qCAAqC;sBAAsC,oBAAiB;uBAAgD,oBAAiB;sBAAgD,oBAAiB;;2BAAkE,uCAAiB;;;qBAAqF,qCAAqC;sBAAsC,oBAAiB;uBAAgD,oBAAiB;sBAAgD,oBAAiB;;2BAAkE,uCAAiB;;;qBAAwF,qCAAqC;sBAAsC,oBAAiB;uBAAgD,oBAAiB;sBAAgD,oBAAiB;;2BAAkE,uCAAiB;;;qBAAqF,qCAAqC;sBAAsC,oBAAiB;uBAAgD,oBAAiB;sBAAgD,oBAAiB;;2BAAkE,uCAAiB;;;qBAAwF,qCAAqC;sBAAsC,oBAAiB;uBAAgD,oBAAiB;sBAAgD,oBAAiB;;2BAAkE,uCAAiB;;;qBAAqF,qCAAqC;sBAAsC,oBAAiB;uBAAgD,oBAAiB;sBAAgD,oBAAiB;;2BAAkE,uCAAiB;;;qBAAwF,qCAAqC;sBAAsC,oBAAiB;uBAAgD,oBAAiB;sBAAgD,oBAAiB;;2BAAkE,uCAAiB;;;qBAAqF,qCAAqC;sBAAsC,oBAAiB;uBAAgD,oBAAiB;sBAAgD,oBAAiB;;2BAAkE,uCAAiB;;;qBAAwF,qCAAqC;sBAAsC,oBAAiB;uBAAgD,oBAAiB;sBAAgD,oBAAiB;;2BAAkE,uCAAiB;;;qBAAqF,qCAAqC;sBAAsC,oBAAiB;uBAAgD,oBAAiB;sBAAgD,oBAAiB;;2BAAkE,uCAAiB;;AAlGj2O,wBAiGI"}
@@ -0,0 +1,142 @@
1
+ import { type Label } from '@dxos/app-framework';
2
+ import { type DeepReadonly } from '@dxos/util';
3
+ export declare namespace DeckCapabilities {
4
+ const DeckState: import("@dxos/app-framework").InterfaceDef<DeepReadonly<{
5
+ deck: {
6
+ solo?: string | undefined;
7
+ fullscreen: boolean;
8
+ initialized: boolean;
9
+ active: string[];
10
+ inactive: string[];
11
+ plankSizing: {
12
+ [x: string]: number;
13
+ };
14
+ };
15
+ sidebarState: "closed" | "collapsed" | "expanded";
16
+ complementarySidebarState: "closed" | "collapsed" | "expanded";
17
+ complementarySidebarPanel?: string | undefined;
18
+ dialogOpen: boolean;
19
+ dialogContent?: any;
20
+ dialogBlockAlign?: "start" | "center" | undefined;
21
+ dialogType?: "default" | "alert" | undefined;
22
+ popoverOpen: boolean;
23
+ popoverContent?: any;
24
+ popoverAnchorId?: string | undefined;
25
+ toasts: {
26
+ readonly description?: string | [string, {
27
+ ns: string;
28
+ count?: number | undefined;
29
+ }] | undefined;
30
+ readonly id: string;
31
+ readonly title?: string | [string, {
32
+ ns: string;
33
+ count?: number | undefined;
34
+ }] | undefined;
35
+ readonly icon?: string | undefined;
36
+ readonly duration?: number | undefined;
37
+ readonly closeLabel?: string | [string, {
38
+ ns: string;
39
+ count?: number | undefined;
40
+ }] | undefined;
41
+ readonly actionLabel?: string | [string, {
42
+ ns: string;
43
+ count?: number | undefined;
44
+ }] | undefined;
45
+ readonly actionAlt?: string | [string, {
46
+ ns: string;
47
+ count?: number | undefined;
48
+ }] | undefined;
49
+ readonly onAction?: any;
50
+ }[];
51
+ currentUndoId?: string | undefined;
52
+ activeDeck: string;
53
+ decks: {
54
+ [x: string]: {
55
+ solo?: string | undefined;
56
+ fullscreen: boolean;
57
+ initialized: boolean;
58
+ active: string[];
59
+ inactive: string[];
60
+ plankSizing: {
61
+ [x: string]: number;
62
+ };
63
+ };
64
+ };
65
+ previousMode: {
66
+ [x: string]: "deck" | "solo" | "fullscreen";
67
+ };
68
+ scrollIntoView?: string | undefined;
69
+ }>>;
70
+ const MutableDeckState: import("@dxos/app-framework").InterfaceDef<{
71
+ deck: {
72
+ solo?: string | undefined;
73
+ fullscreen: boolean;
74
+ initialized: boolean;
75
+ active: string[];
76
+ inactive: string[];
77
+ plankSizing: {
78
+ [x: string]: number;
79
+ };
80
+ };
81
+ sidebarState: "closed" | "collapsed" | "expanded";
82
+ complementarySidebarState: "closed" | "collapsed" | "expanded";
83
+ complementarySidebarPanel?: string | undefined;
84
+ dialogOpen: boolean;
85
+ dialogContent?: any;
86
+ dialogBlockAlign?: "start" | "center" | undefined;
87
+ dialogType?: "default" | "alert" | undefined;
88
+ popoverOpen: boolean;
89
+ popoverContent?: any;
90
+ popoverAnchorId?: string | undefined;
91
+ toasts: {
92
+ readonly description?: string | [string, {
93
+ ns: string;
94
+ count?: number | undefined;
95
+ }] | undefined;
96
+ readonly id: string;
97
+ readonly title?: string | [string, {
98
+ ns: string;
99
+ count?: number | undefined;
100
+ }] | undefined;
101
+ readonly icon?: string | undefined;
102
+ readonly duration?: number | undefined;
103
+ readonly closeLabel?: string | [string, {
104
+ ns: string;
105
+ count?: number | undefined;
106
+ }] | undefined;
107
+ readonly actionLabel?: string | [string, {
108
+ ns: string;
109
+ count?: number | undefined;
110
+ }] | undefined;
111
+ readonly actionAlt?: string | [string, {
112
+ ns: string;
113
+ count?: number | undefined;
114
+ }] | undefined;
115
+ readonly onAction?: any;
116
+ }[];
117
+ currentUndoId?: string | undefined;
118
+ activeDeck: string;
119
+ decks: {
120
+ [x: string]: {
121
+ solo?: string | undefined;
122
+ fullscreen: boolean;
123
+ initialized: boolean;
124
+ active: string[];
125
+ inactive: string[];
126
+ plankSizing: {
127
+ [x: string]: number;
128
+ };
129
+ };
130
+ };
131
+ previousMode: {
132
+ [x: string]: "deck" | "solo" | "fullscreen";
133
+ };
134
+ scrollIntoView?: string | undefined;
135
+ }>;
136
+ const ComplementaryPanel: import("@dxos/app-framework").InterfaceDef<{
137
+ id: string;
138
+ label: Label;
139
+ icon: string;
140
+ }>;
141
+ }
142
+ //# sourceMappingURL=capabilities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/capabilities.ts"],"names":[],"mappings":"AAIA,OAAO,EAAoB,KAAK,KAAK,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAK/C,yBAAiB,gBAAgB,CAAC;IACzB,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAA+E,CAAC;IAC/F,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAiE,CAAC;IAExF,MAAM,kBAAkB;YAA0B,MAAM;eAAS,KAAK;cAAQ,MAAM;MAE1F,CAAC;CACH"}
@@ -0,0 +1,4 @@
1
+ import { type PluginsContext } from '@dxos/app-framework';
2
+ declare const _default: (context: PluginsContext) => Promise<import("@dxos/app-framework").Capability<null>>;
3
+ export default _default;
4
+ //# sourceMappingURL=check-app-scheme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"check-app-scheme.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/check-app-scheme.ts"],"names":[],"mappings":"AAOA,OAAO,EAA6B,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAC;kCA4BtD,cAAc;AAA7C,wBAQE"}