@dxos/plugin-deck 0.7.5-labs.e27f9b9 → 0.7.5-main.2567c87

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 (209) hide show
  1. package/dist/lib/browser/{app-graph-builder-CI6ZFMNL.mjs → app-graph-builder-67VRUD5K.mjs} +31 -57
  2. package/dist/lib/browser/app-graph-builder-67VRUD5K.mjs.map +7 -0
  3. package/dist/lib/browser/{check-app-scheme-S3EYUPMF.mjs → check-app-scheme-GEX6W2R5.mjs} +3 -3
  4. package/dist/lib/browser/{check-app-scheme-S3EYUPMF.mjs.map → check-app-scheme-GEX6W2R5.mjs.map} +2 -2
  5. package/dist/lib/browser/chunk-2M4PXYNB.mjs +1052 -0
  6. package/dist/lib/browser/chunk-2M4PXYNB.mjs.map +7 -0
  7. package/dist/lib/browser/chunk-2PJNBVCY.mjs +39 -0
  8. package/dist/lib/browser/chunk-2PJNBVCY.mjs.map +7 -0
  9. package/dist/lib/browser/chunk-4C2AFTET.mjs +186 -0
  10. package/dist/lib/browser/chunk-4C2AFTET.mjs.map +7 -0
  11. package/dist/lib/browser/{chunk-YQ2GWTDU.mjs → chunk-5VFDMW5M.mjs} +2 -2
  12. package/dist/lib/browser/chunk-5VFDMW5M.mjs.map +7 -0
  13. package/dist/lib/browser/{chunk-N7TEPFVR.mjs → chunk-JQJ5UWVB.mjs} +2 -3
  14. package/dist/lib/browser/{chunk-N7TEPFVR.mjs.map → chunk-JQJ5UWVB.mjs.map} +3 -3
  15. package/dist/lib/browser/chunk-KY5WXIXY.mjs +44 -0
  16. package/dist/lib/browser/chunk-KY5WXIXY.mjs.map +7 -0
  17. package/dist/lib/browser/deck-PLCSKPGL.mjs +26 -0
  18. package/dist/lib/browser/deck-PLCSKPGL.mjs.map +7 -0
  19. package/dist/lib/browser/index.mjs +76 -36
  20. package/dist/lib/browser/index.mjs.map +4 -4
  21. package/dist/lib/browser/intent-resolver-FVOQSTBX.mjs +152 -0
  22. package/dist/lib/browser/intent-resolver-FVOQSTBX.mjs.map +7 -0
  23. package/dist/lib/browser/intent-resolver-K7GW4A2I.mjs +249 -0
  24. package/dist/lib/browser/intent-resolver-K7GW4A2I.mjs.map +7 -0
  25. package/dist/lib/browser/location-QHRBQBQN.mjs +35 -0
  26. package/dist/lib/browser/location-QHRBQBQN.mjs.map +7 -0
  27. package/dist/lib/browser/meta.json +1 -1
  28. package/dist/lib/browser/react-context-3BDW7W2N.mjs +32 -0
  29. package/dist/lib/browser/react-context-3BDW7W2N.mjs.map +7 -0
  30. package/dist/lib/browser/{react-root-HIHLRMCW.mjs → react-root-UL7ZDRVZ.mjs} +14 -10
  31. package/dist/lib/browser/react-root-UL7ZDRVZ.mjs.map +7 -0
  32. package/dist/lib/browser/react-surface-VPNOGGNN.mjs +28 -0
  33. package/dist/lib/browser/react-surface-VPNOGGNN.mjs.map +7 -0
  34. package/dist/lib/browser/{settings-WACNLCPB.mjs → settings-FNWW6WIJ.mjs} +7 -6
  35. package/dist/lib/browser/settings-FNWW6WIJ.mjs.map +7 -0
  36. package/dist/lib/browser/state-7I5BD7SE.mjs +34 -0
  37. package/dist/lib/browser/state-7I5BD7SE.mjs.map +7 -0
  38. package/dist/lib/browser/types.mjs +4 -16
  39. package/dist/lib/browser/url-handler-Z5B7LD3N.mjs +76 -0
  40. package/dist/lib/browser/url-handler-Z5B7LD3N.mjs.map +7 -0
  41. package/dist/types/src/DeckPlugin.d.ts.map +1 -1
  42. package/dist/types/src/capabilities/capabilities.d.ts +3 -132
  43. package/dist/types/src/capabilities/capabilities.d.ts.map +1 -1
  44. package/dist/types/src/capabilities/index.d.ts +3 -188
  45. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  46. package/dist/types/src/capabilities/{app-graph-builder.d.ts → layout/app-graph-builder.d.ts} +22 -22
  47. package/dist/types/src/capabilities/layout/app-graph-builder.d.ts.map +1 -0
  48. package/dist/types/src/capabilities/layout/deck.d.ts +4 -0
  49. package/dist/types/src/capabilities/layout/deck.d.ts.map +1 -0
  50. package/dist/types/src/capabilities/layout/index.d.ts +229 -0
  51. package/dist/types/src/capabilities/layout/index.d.ts.map +1 -0
  52. package/dist/types/src/capabilities/layout/intent-resolver.d.ts.map +1 -0
  53. package/dist/types/src/capabilities/layout/react-context.d.ts +8 -0
  54. package/dist/types/src/capabilities/layout/react-context.d.ts.map +1 -0
  55. package/dist/types/src/capabilities/layout/react-root.d.ts.map +1 -0
  56. package/dist/types/src/capabilities/layout/state.d.ts +42 -0
  57. package/dist/types/src/capabilities/layout/state.d.ts.map +1 -0
  58. package/dist/types/src/capabilities/navigation/check-app-scheme.d.ts.map +1 -0
  59. package/dist/types/src/capabilities/navigation/index.d.ts +5 -0
  60. package/dist/types/src/capabilities/navigation/index.d.ts.map +1 -0
  61. package/dist/types/src/capabilities/navigation/intent-resolver.d.ts +4 -0
  62. package/dist/types/src/capabilities/navigation/intent-resolver.d.ts.map +1 -0
  63. package/dist/types/src/capabilities/navigation/location.d.ts +4 -0
  64. package/dist/types/src/capabilities/navigation/location.d.ts.map +1 -0
  65. package/dist/types/src/capabilities/navigation/set-location.d.ts +10 -0
  66. package/dist/types/src/capabilities/navigation/set-location.d.ts.map +1 -0
  67. package/dist/types/src/capabilities/navigation/url-handler.d.ts.map +1 -0
  68. package/dist/types/src/capabilities/settings/index.d.ts +3 -0
  69. package/dist/types/src/capabilities/settings/index.d.ts.map +1 -0
  70. package/dist/types/src/capabilities/settings/react-surface.d.ts.map +1 -0
  71. package/dist/types/src/capabilities/settings/settings.d.ts.map +1 -0
  72. package/dist/types/src/components/DeckContext.d.ts +11 -0
  73. package/dist/types/src/components/DeckContext.d.ts.map +1 -0
  74. package/dist/types/src/components/DeckLayout/ActiveNode.d.ts.map +1 -1
  75. package/dist/types/src/components/DeckLayout/ComplementarySidebar.d.ts.map +1 -1
  76. package/dist/types/src/components/DeckLayout/ContentEmpty.d.ts.map +1 -1
  77. package/dist/types/src/components/DeckLayout/DeckLayout.d.ts +4 -1
  78. package/dist/types/src/components/DeckLayout/DeckLayout.d.ts.map +1 -1
  79. package/dist/types/src/components/DeckLayout/Fullscreen.d.ts.map +1 -1
  80. package/dist/types/src/components/DeckLayout/NodePlankHeading.d.ts +3 -3
  81. package/dist/types/src/components/DeckLayout/NodePlankHeading.d.ts.map +1 -1
  82. package/dist/types/src/components/DeckLayout/Plank.d.ts +6 -8
  83. package/dist/types/src/components/DeckLayout/Plank.d.ts.map +1 -1
  84. package/dist/types/src/components/DeckLayout/PlankControls.d.ts +2 -2
  85. package/dist/types/src/components/DeckLayout/PlankControls.d.ts.map +1 -1
  86. package/dist/types/src/components/DeckLayout/PlankError.d.ts +3 -4
  87. package/dist/types/src/components/DeckLayout/PlankError.d.ts.map +1 -1
  88. package/dist/types/src/components/DeckLayout/Sidebar.d.ts.map +1 -1
  89. package/dist/types/src/components/DeckLayout/SidebarButton.d.ts +3 -5
  90. package/dist/types/src/components/DeckLayout/SidebarButton.d.ts.map +1 -1
  91. package/dist/types/src/components/DeckLayout/StatusBar.d.ts.map +1 -1
  92. package/dist/types/src/components/DeckLayout/Toast.d.ts +2 -2
  93. package/dist/types/src/components/DeckLayout/Toast.d.ts.map +1 -1
  94. package/dist/types/src/components/LayoutContext.d.ts +5 -0
  95. package/dist/types/src/components/LayoutContext.d.ts.map +1 -0
  96. package/dist/types/src/components/fragments.d.ts +0 -2
  97. package/dist/types/src/components/fragments.d.ts.map +1 -1
  98. package/dist/types/src/components/index.d.ts +2 -0
  99. package/dist/types/src/components/index.d.ts.map +1 -1
  100. package/dist/types/src/hooks/useMainSize.d.ts +2 -2
  101. package/dist/types/src/layout.d.ts +19 -5
  102. package/dist/types/src/layout.d.ts.map +1 -1
  103. package/dist/types/src/layout.test.d.ts +2 -0
  104. package/dist/types/src/layout.test.d.ts.map +1 -0
  105. package/dist/types/src/meta.d.ts +0 -1
  106. package/dist/types/src/meta.d.ts.map +1 -1
  107. package/dist/types/src/translations.d.ts +3 -3
  108. package/dist/types/src/types.d.ts +2 -107
  109. package/dist/types/src/types.d.ts.map +1 -1
  110. package/dist/types/src/util/index.d.ts +1 -2
  111. package/dist/types/src/util/index.d.ts.map +1 -1
  112. package/dist/types/src/util/layout-parts.d.ts +7 -0
  113. package/dist/types/src/util/layout-parts.d.ts.map +1 -0
  114. package/dist/types/src/util/useHoistStatusbar.d.ts.map +1 -1
  115. package/package.json +31 -32
  116. package/src/DeckPlugin.ts +57 -17
  117. package/src/capabilities/capabilities.ts +3 -4
  118. package/src/capabilities/index.ts +3 -12
  119. package/src/capabilities/{app-graph-builder.ts → layout/app-graph-builder.ts} +28 -36
  120. package/src/capabilities/layout/deck.ts +25 -0
  121. package/src/capabilities/layout/index.ts +12 -0
  122. package/src/capabilities/layout/intent-resolver.ts +128 -0
  123. package/src/capabilities/layout/react-context.tsx +26 -0
  124. package/src/capabilities/{react-root.tsx → layout/react-root.tsx} +11 -7
  125. package/src/capabilities/layout/state.ts +32 -0
  126. package/src/capabilities/{check-app-scheme.ts → navigation/check-app-scheme.ts} +2 -2
  127. package/src/capabilities/navigation/index.ts +10 -0
  128. package/src/capabilities/navigation/intent-resolver.ts +216 -0
  129. package/src/capabilities/navigation/location.ts +28 -0
  130. package/src/capabilities/navigation/set-location.ts +38 -0
  131. package/src/capabilities/navigation/url-handler.ts +67 -0
  132. package/src/capabilities/settings/index.ts +8 -0
  133. package/src/capabilities/settings/react-surface.tsx +23 -0
  134. package/src/capabilities/{settings.ts → settings/settings.ts} +5 -4
  135. package/src/components/DeckContext.ts +19 -0
  136. package/src/components/DeckLayout/ActiveNode.tsx +3 -2
  137. package/src/components/DeckLayout/ComplementarySidebar.tsx +69 -120
  138. package/src/components/DeckLayout/ContentEmpty.tsx +10 -7
  139. package/src/components/DeckLayout/DeckLayout.tsx +61 -103
  140. package/src/components/DeckLayout/Fullscreen.tsx +3 -2
  141. package/src/components/DeckLayout/NodePlankHeading.tsx +65 -57
  142. package/src/components/DeckLayout/Plank.tsx +41 -32
  143. package/src/components/DeckLayout/PlankControls.tsx +10 -11
  144. package/src/components/DeckLayout/PlankError.tsx +5 -6
  145. package/src/components/DeckLayout/Sidebar.tsx +20 -17
  146. package/src/components/DeckLayout/SidebarButton.tsx +31 -25
  147. package/src/components/DeckLayout/StatusBar.tsx +11 -5
  148. package/src/components/DeckLayout/Toast.tsx +2 -2
  149. package/src/components/LayoutContext.ts +12 -0
  150. package/src/components/LayoutSettings.tsx +8 -8
  151. package/src/components/fragments.ts +0 -8
  152. package/src/components/index.ts +2 -0
  153. package/src/hooks/useMainSize.ts +3 -3
  154. package/src/layout.test.ts +380 -0
  155. package/src/layout.ts +212 -43
  156. package/src/meta.ts +0 -1
  157. package/src/translations.ts +8 -8
  158. package/src/types.ts +2 -88
  159. package/src/util/index.ts +1 -2
  160. package/src/util/layout-parts.ts +12 -0
  161. package/src/util/useHoistStatusbar.ts +8 -17
  162. package/dist/lib/browser/app-graph-builder-CI6ZFMNL.mjs.map +0 -7
  163. package/dist/lib/browser/chunk-BTDY6SES.mjs +0 -1119
  164. package/dist/lib/browser/chunk-BTDY6SES.mjs.map +0 -7
  165. package/dist/lib/browser/chunk-FZOBKOA2.mjs +0 -24
  166. package/dist/lib/browser/chunk-FZOBKOA2.mjs.map +0 -7
  167. package/dist/lib/browser/chunk-M2L53AIH.mjs +0 -126
  168. package/dist/lib/browser/chunk-M2L53AIH.mjs.map +0 -7
  169. package/dist/lib/browser/chunk-YQ2GWTDU.mjs.map +0 -7
  170. package/dist/lib/browser/intent-resolver-CSXFDKTC.mjs +0 -494
  171. package/dist/lib/browser/intent-resolver-CSXFDKTC.mjs.map +0 -7
  172. package/dist/lib/browser/react-root-HIHLRMCW.mjs.map +0 -7
  173. package/dist/lib/browser/react-surface-4QVWKQYY.mjs +0 -38
  174. package/dist/lib/browser/react-surface-4QVWKQYY.mjs.map +0 -7
  175. package/dist/lib/browser/settings-WACNLCPB.mjs.map +0 -7
  176. package/dist/lib/browser/state-VPOYUKK6.mjs +0 -117
  177. package/dist/lib/browser/state-VPOYUKK6.mjs.map +0 -7
  178. package/dist/lib/browser/tools-5LDJNU56.mjs +0 -51
  179. package/dist/lib/browser/tools-5LDJNU56.mjs.map +0 -7
  180. package/dist/lib/browser/url-handler-HLF42IHP.mjs +0 -70
  181. package/dist/lib/browser/url-handler-HLF42IHP.mjs.map +0 -7
  182. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +0 -1
  183. package/dist/types/src/capabilities/check-app-scheme.d.ts.map +0 -1
  184. package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
  185. package/dist/types/src/capabilities/react-root.d.ts.map +0 -1
  186. package/dist/types/src/capabilities/react-surface.d.ts.map +0 -1
  187. package/dist/types/src/capabilities/set-active.d.ts +0 -9
  188. package/dist/types/src/capabilities/set-active.d.ts.map +0 -1
  189. package/dist/types/src/capabilities/settings.d.ts.map +0 -1
  190. package/dist/types/src/capabilities/state.d.ts +0 -76
  191. package/dist/types/src/capabilities/state.d.ts.map +0 -1
  192. package/dist/types/src/capabilities/tools.d.ts +0 -10
  193. package/dist/types/src/capabilities/tools.d.ts.map +0 -1
  194. package/dist/types/src/capabilities/url-handler.d.ts.map +0 -1
  195. package/dist/types/src/util/layoutAppliesTopbar.d.ts +0 -2
  196. package/dist/types/src/util/layoutAppliesTopbar.d.ts.map +0 -1
  197. package/src/capabilities/intent-resolver.ts +0 -350
  198. package/src/capabilities/react-surface.tsx +0 -31
  199. package/src/capabilities/set-active.ts +0 -43
  200. package/src/capabilities/state.ts +0 -102
  201. package/src/capabilities/tools.ts +0 -61
  202. package/src/capabilities/url-handler.ts +0 -63
  203. package/src/util/layoutAppliesTopbar.ts +0 -7
  204. /package/dist/types/src/capabilities/{intent-resolver.d.ts → layout/intent-resolver.d.ts} +0 -0
  205. /package/dist/types/src/capabilities/{react-root.d.ts → layout/react-root.d.ts} +0 -0
  206. /package/dist/types/src/capabilities/{check-app-scheme.d.ts → navigation/check-app-scheme.d.ts} +0 -0
  207. /package/dist/types/src/capabilities/{url-handler.d.ts → navigation/url-handler.d.ts} +0 -0
  208. /package/dist/types/src/capabilities/{react-surface.d.ts → settings/react-surface.d.ts} +0 -0
  209. /package/dist/types/src/capabilities/{settings.d.ts → settings/settings.d.ts} +0 -0
@@ -1,117 +0,0 @@
1
- import {
2
- DeckCapabilities
3
- } from "./chunk-YQ2GWTDU.mjs";
4
- import {
5
- getMode
6
- } from "./chunk-M2L53AIH.mjs";
7
- import {
8
- DECK_PLUGIN
9
- } from "./chunk-N7TEPFVR.mjs";
10
-
11
- // packages/plugins/plugin-deck/src/capabilities/state.ts
12
- import { Capabilities, contributes } from "@dxos/app-framework";
13
- import { invariant } from "@dxos/invariant";
14
- import { create } from "@dxos/live-object";
15
- import { LocalStorageStore } from "@dxos/local-storage";
16
- var __dxlog_file = "/home/runner/work/dxos/dxos/packages/plugins/plugin-deck/src/capabilities/state.ts";
17
- var boolean = /true|false/;
18
- var migrateSidebarStateDefaults = {
19
- [`${DECK_PLUGIN}/complementary-sidebar-state`]: "expanded",
20
- [`${DECK_PLUGIN}/sidebar-state`]: "collapsed"
21
- };
22
- var migrateSidebarState = () => {
23
- Object.entries(migrateSidebarStateDefaults).forEach(([key, defaultValue]) => {
24
- if (boolean.test(localStorage.getItem(key) ?? "never")) {
25
- localStorage.setItem(key, defaultValue);
26
- }
27
- });
28
- };
29
- var state_default = () => {
30
- migrateSidebarState();
31
- const state = new LocalStorageStore(DECK_PLUGIN, {
32
- sidebarState: "expanded",
33
- complementarySidebarState: "collapsed",
34
- complementarySidebarPanel: void 0,
35
- dialogContent: null,
36
- dialogOpen: false,
37
- dialogBlockAlign: void 0,
38
- dialogType: void 0,
39
- popoverContent: null,
40
- popoverAnchorId: void 0,
41
- popoverOpen: false,
42
- toasts: [],
43
- currentUndoId: void 0,
44
- activeDeck: "default",
45
- decks: {
46
- default: {
47
- initialized: false,
48
- active: [],
49
- inactive: [],
50
- fullscreen: false,
51
- solo: void 0,
52
- plankSizing: {}
53
- }
54
- },
55
- get deck() {
56
- const deck = this.decks[this.activeDeck];
57
- invariant(deck, `Deck not found: ${this.activeDeck}`, {
58
- F: __dxlog_file,
59
- L: 61,
60
- S: this,
61
- A: [
62
- "deck",
63
- "`Deck not found: ${this.activeDeck}`"
64
- ]
65
- });
66
- return deck;
67
- },
68
- previousMode: {},
69
- scrollIntoView: void 0
70
- });
71
- state.prop({
72
- key: "sidebarState",
73
- type: LocalStorageStore.enum()
74
- }).prop({
75
- key: "complementarySidebarState",
76
- type: LocalStorageStore.enum()
77
- }).prop({
78
- key: "decks",
79
- type: LocalStorageStore.json()
80
- }).prop({
81
- key: "activeDeck",
82
- type: LocalStorageStore.string()
83
- });
84
- const layout = create({
85
- get mode() {
86
- return getMode(state.values.deck);
87
- },
88
- get dialogOpen() {
89
- return state.values.dialogOpen;
90
- },
91
- get sidebarOpen() {
92
- return state.values.sidebarState === "expanded";
93
- },
94
- get complementarySidebarOpen() {
95
- return state.values.complementarySidebarState === "expanded";
96
- },
97
- get active() {
98
- return state.values.deck.solo ? [
99
- state.values.deck.solo
100
- ] : state.values.deck.active;
101
- },
102
- get inactive() {
103
- return state.values.deck.inactive;
104
- },
105
- get scrollIntoView() {
106
- return state.values.scrollIntoView;
107
- }
108
- });
109
- return [
110
- contributes(DeckCapabilities.DeckState, state.values, () => state.close()),
111
- contributes(Capabilities.Layout, layout)
112
- ];
113
- };
114
- export {
115
- state_default as default
116
- };
117
- //# sourceMappingURL=state-VPOYUKK6.mjs.map
@@ -1,7 +0,0 @@
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 } 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 decks: {\n default: {\n initialized: false,\n active: [],\n inactive: [],\n fullscreen: false,\n solo: undefined,\n plankSizing: {},\n },\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: 'decks', type: LocalStorageStore.json<Record<string, Deck>>() })\n .prop({ key: 'activeDeck', 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 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,OAAO;MACLC,SAAS;QACPC,aAAa;QACbC,QAAQ,CAAA;QACRC,UAAU,CAAA;QACVC,YAAY;QACZC,MAAMjB;QACNkB,aAAa,CAAC;MAChB;IACF;IACA,IAAIC,OAAO;AACT,YAAMA,OAAO,KAAKR,MAAM,KAAKD,UAAU;AACvCU,gBAAUD,MAAM,mBAAmB,KAAKT,UAAU,IAAE;;;;;;;;;AACpD,aAAOS;IACT;IACAE,cAAc,CAAC;IACfC,gBAAgBtB;EAClB,CAAA;AAEAL,QACG4B,KAAK;IAAElC,KAAK;IAAgBmC,MAAM5B,kBAAkB6B,KAAI;EAAiB,CAAA,EACzEF,KAAK;IAAElC,KAAK;IAA6BmC,MAAM5B,kBAAkB6B,KAAI;EAAiB,CAAA,EACtFF,KAAK;IAAElC,KAAK;IAASmC,MAAM5B,kBAAkB8B,KAAI;EAAyB,CAAA,EAC1EH,KAAK;IAAElC,KAAK;IAAcmC,MAAM5B,kBAAkB+B,OAAM;EAAG,CAAA;AAE9D,QAAMC,SAASC,OAA4B;IACzC,IAAIC,OAAO;AACT,aAAOC,QAAQpC,MAAMqC,OAAOb,IAAI;IAClC;IACA,IAAIjB,aAAa;AACf,aAAOP,MAAMqC,OAAO9B;IACtB;IACA,IAAI+B,cAAc;AAChB,aAAOtC,MAAMqC,OAAOnC,iBAAiB;IACvC;IACA,IAAIqC,2BAA2B;AAC7B,aAAOvC,MAAMqC,OAAOlC,8BAA8B;IACpD;IACA,IAAIgB,SAAS;AACX,aAAOnB,MAAMqC,OAAOb,KAAKF,OAAO;QAACtB,MAAMqC,OAAOb,KAAKF;UAAQtB,MAAMqC,OAAOb,KAAKL;IAC/E;IACA,IAAIC,WAAW;AACb,aAAOpB,MAAMqC,OAAOb,KAAKJ;IAC3B;IACA,IAAIO,iBAAiB;AACnB,aAAO3B,MAAMqC,OAAOV;IACtB;EACF,CAAA;AAEA,SAAO;IACLa,YAAYC,iBAAiBC,WAAW1C,MAAMqC,QAAQ,MAAMrC,MAAM2C,MAAK,CAAA;IACvEH,YAAYI,aAAaC,QAAQZ,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", "decks", "default", "initialized", "active", "inactive", "fullscreen", "solo", "plankSizing", "deck", "invariant", "previousMode", "scrollIntoView", "prop", "type", "enum", "json", "string", "layout", "create", "mode", "getMode", "values", "sidebarOpen", "complementarySidebarOpen", "contributes", "DeckCapabilities", "DeckState", "close", "Capabilities", "Layout"]
7
- }
@@ -1,51 +0,0 @@
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
@@ -1,7 +0,0 @@
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,70 +0,0 @@
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
@@ -1,7 +0,0 @@
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 +0,0 @@
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"}
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
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;kCAcJ,cAAc;AAAvC,wBA+TK"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"react-root.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-root.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAsB,MAAM,OAAO,CAAC;;;;;AAS3C,wBAkCK"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-surface.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAA8B,MAAM,qBAAqB,CAAC;;AAQ/E,wBAgBK"}
@@ -1,9 +0,0 @@
1
- import { type AttentionManager } from '@dxos/plugin-attention';
2
- import { type DeckState } from '../types';
3
- export type SetActiveOptions = {
4
- next: string[];
5
- state: DeckState;
6
- attention?: AttentionManager;
7
- };
8
- export declare const setActive: ({ next, state, attention }: SetActiveOptions) => string | undefined;
9
- //# sourceMappingURL=set-active.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"set-active.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/set-active.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE/D,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,UAAU,CAAC;AAE1C,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,KAAK,EAAE,SAAS,CAAC;IACjB,SAAS,CAAC,EAAE,gBAAgB,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,SAAS,+BAAgC,gBAAgB,uBA0BrE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/settings.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAe,MAAM,qBAAqB,CAAC;;AAMhE,wBAUE"}
@@ -1,76 +0,0 @@
1
- declare const _default: () => (import("@dxos/app-framework").Capability<import("packages/common/util/dist/types/src").DeepReadonly<{
2
- deck: {
3
- solo?: string | undefined;
4
- fullscreen: boolean;
5
- initialized: boolean;
6
- active: string[];
7
- inactive: string[];
8
- plankSizing: {
9
- [x: string]: number;
10
- };
11
- };
12
- sidebarState: "closed" | "collapsed" | "expanded";
13
- complementarySidebarState: "closed" | "collapsed" | "expanded";
14
- complementarySidebarPanel?: string | undefined;
15
- dialogOpen: boolean;
16
- dialogContent?: any;
17
- dialogBlockAlign?: "start" | "center" | undefined;
18
- dialogType?: "default" | "alert" | undefined;
19
- popoverOpen: boolean;
20
- popoverContent?: any;
21
- popoverAnchorId?: string | undefined;
22
- toasts: {
23
- readonly description?: string | [string, {
24
- ns: string;
25
- count?: number | undefined;
26
- }] | undefined;
27
- readonly id: string;
28
- readonly title?: string | [string, {
29
- ns: string;
30
- count?: number | undefined;
31
- }] | undefined;
32
- readonly icon?: string | undefined;
33
- readonly duration?: number | undefined;
34
- readonly closeLabel?: string | [string, {
35
- ns: string;
36
- count?: number | undefined;
37
- }] | undefined;
38
- readonly actionLabel?: string | [string, {
39
- ns: string;
40
- count?: number | undefined;
41
- }] | undefined;
42
- readonly actionAlt?: string | [string, {
43
- ns: string;
44
- count?: number | undefined;
45
- }] | undefined;
46
- readonly onAction?: any;
47
- }[];
48
- currentUndoId?: string | undefined;
49
- activeDeck: string;
50
- decks: {
51
- [x: string]: {
52
- solo?: string | undefined;
53
- fullscreen: boolean;
54
- initialized: boolean;
55
- active: string[];
56
- inactive: string[];
57
- plankSizing: {
58
- [x: string]: number;
59
- };
60
- };
61
- };
62
- previousMode: {
63
- [x: string]: "deck" | "solo" | "fullscreen";
64
- };
65
- scrollIntoView?: string | undefined;
66
- }>> | import("@dxos/app-framework").Capability<import("@dxos/live-object").ReactiveObject<Readonly<{
67
- mode: string;
68
- dialogOpen: boolean;
69
- sidebarOpen: boolean;
70
- complementarySidebarOpen: boolean;
71
- active: string[];
72
- inactive: string[];
73
- scrollIntoView: string | undefined;
74
- }>>>)[];
75
- export default _default;
76
- //# sourceMappingURL=state.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/state.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BA,wBAsEE"}
@@ -1,10 +0,0 @@
1
- import { type PromiseIntentDispatcher } from '@dxos/app-framework';
2
- declare global {
3
- interface ToolContextExtensions {
4
- dispatch?: PromiseIntentDispatcher;
5
- pivotId?: string;
6
- }
7
- }
8
- declare const _default: () => import("@dxos/app-framework").Capability<import("@dxos/artifact").Tool[]>;
9
- export default _default;
10
- //# sourceMappingURL=tools.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/tools.ts"],"names":[],"mappings":"AAIA,OAAO,EAKL,KAAK,uBAAuB,EAC7B,MAAM,qBAAqB,CAAC;AAM7B,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,QAAQ,CAAC,EAAE,uBAAuB,CAAC;QACnC,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB;CACF;;AAED,wBAqCK"}
@@ -1 +0,0 @@
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;kCAMlF,cAAc;AAA7C,wBAoDE"}
@@ -1,2 +0,0 @@
1
- export declare const layoutAppliesTopbar: (breakpoint: string) => boolean;
2
- //# sourceMappingURL=layoutAppliesTopbar.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"layoutAppliesTopbar.d.ts","sourceRoot":"","sources":["../../../../src/util/layoutAppliesTopbar.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,mBAAmB,eAAgB,MAAM,YAErD,CAAC"}