@dxos/plugin-deck 0.8.4-main.ae835ea → 0.8.4-main.bc674ce

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 (276) hide show
  1. package/dist/lib/browser/app-graph-builder-DTVCULQ4.mjs +120 -0
  2. package/dist/lib/browser/app-graph-builder-DTVCULQ4.mjs.map +7 -0
  3. package/dist/lib/browser/{check-app-scheme-HIEVFAAX.mjs → check-app-scheme-JSRXXIYF.mjs} +9 -9
  4. package/dist/lib/browser/check-app-scheme-JSRXXIYF.mjs.map +7 -0
  5. package/dist/lib/browser/{chunk-F3VCCHVL.mjs → chunk-ATFPDN6J.mjs} +149 -19
  6. package/dist/lib/browser/chunk-ATFPDN6J.mjs.map +7 -0
  7. package/dist/lib/browser/{chunk-CNTGBCMK.mjs → chunk-NHABISX2.mjs} +40 -33
  8. package/dist/lib/browser/chunk-NHABISX2.mjs.map +7 -0
  9. package/dist/lib/browser/chunk-S4A5UO4K.mjs +1448 -0
  10. package/dist/lib/browser/chunk-S4A5UO4K.mjs.map +7 -0
  11. package/dist/lib/browser/chunk-UNG4CLLP.mjs +161 -0
  12. package/dist/lib/browser/chunk-UNG4CLLP.mjs.map +7 -0
  13. package/dist/lib/browser/index.mjs +72 -66
  14. package/dist/lib/browser/index.mjs.map +4 -4
  15. package/dist/lib/browser/meta.json +1 -1
  16. package/dist/lib/browser/operation-resolver-CDYBLZJ4.mjs +595 -0
  17. package/dist/lib/browser/operation-resolver-CDYBLZJ4.mjs.map +7 -0
  18. package/dist/lib/browser/react-root-XDCMNENQ.mjs +47 -0
  19. package/dist/lib/browser/react-root-XDCMNENQ.mjs.map +7 -0
  20. package/dist/lib/browser/react-surface-HODERLOL.mjs +42 -0
  21. package/dist/lib/browser/react-surface-HODERLOL.mjs.map +7 -0
  22. package/dist/lib/browser/settings-OMHVGZ6V.mjs +37 -0
  23. package/dist/lib/browser/settings-OMHVGZ6V.mjs.map +7 -0
  24. package/dist/lib/browser/state-OC3BSB6E.mjs +103 -0
  25. package/dist/lib/browser/state-OC3BSB6E.mjs.map +7 -0
  26. package/dist/lib/browser/toolkit-R53LD3EA.mjs +53 -0
  27. package/dist/lib/browser/toolkit-R53LD3EA.mjs.map +7 -0
  28. package/dist/lib/browser/types/index.mjs +11 -4
  29. package/dist/lib/browser/url-handler-53TE6JZO.mjs +93 -0
  30. package/dist/lib/browser/url-handler-53TE6JZO.mjs.map +7 -0
  31. package/dist/lib/node-esm/app-graph-builder-473BNZDJ.mjs +121 -0
  32. package/dist/lib/node-esm/app-graph-builder-473BNZDJ.mjs.map +7 -0
  33. package/dist/lib/node-esm/check-app-scheme-IVYRHKRH.mjs +33 -0
  34. package/dist/lib/node-esm/check-app-scheme-IVYRHKRH.mjs.map +7 -0
  35. package/dist/lib/node-esm/chunk-ADPMWKLL.mjs +154 -0
  36. package/dist/lib/node-esm/chunk-ADPMWKLL.mjs.map +7 -0
  37. package/dist/lib/node-esm/chunk-D34L3ECT.mjs +1449 -0
  38. package/dist/lib/node-esm/chunk-D34L3ECT.mjs.map +7 -0
  39. package/dist/lib/node-esm/chunk-SKEVPQ7E.mjs +162 -0
  40. package/dist/lib/node-esm/chunk-SKEVPQ7E.mjs.map +7 -0
  41. package/dist/lib/node-esm/chunk-XAKTY3EB.mjs +294 -0
  42. package/dist/lib/node-esm/chunk-XAKTY3EB.mjs.map +7 -0
  43. package/dist/lib/node-esm/index.mjs +181 -0
  44. package/dist/lib/node-esm/index.mjs.map +7 -0
  45. package/dist/lib/node-esm/meta.json +1 -0
  46. package/dist/lib/node-esm/operation-resolver-WUOE33ID.mjs +596 -0
  47. package/dist/lib/node-esm/operation-resolver-WUOE33ID.mjs.map +7 -0
  48. package/dist/lib/node-esm/react-root-O6GZO62Z.mjs +48 -0
  49. package/dist/lib/node-esm/react-root-O6GZO62Z.mjs.map +7 -0
  50. package/dist/lib/node-esm/react-surface-IHDJDGC5.mjs +43 -0
  51. package/dist/lib/node-esm/react-surface-IHDJDGC5.mjs.map +7 -0
  52. package/dist/lib/node-esm/settings-2HB6FKIK.mjs +38 -0
  53. package/dist/lib/node-esm/settings-2HB6FKIK.mjs.map +7 -0
  54. package/dist/lib/node-esm/state-JRQ45ACJ.mjs +104 -0
  55. package/dist/lib/node-esm/state-JRQ45ACJ.mjs.map +7 -0
  56. package/dist/lib/node-esm/toolkit-JLPZNNKB.mjs +54 -0
  57. package/dist/lib/node-esm/toolkit-JLPZNNKB.mjs.map +7 -0
  58. package/dist/lib/node-esm/types/index.mjs +40 -0
  59. package/dist/lib/node-esm/url-handler-QGF2R24T.mjs +94 -0
  60. package/dist/lib/node-esm/url-handler-QGF2R24T.mjs.map +7 -0
  61. package/dist/types/src/DeckPlugin.d.ts +2 -1
  62. package/dist/types/src/DeckPlugin.d.ts.map +1 -1
  63. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts +6 -0
  64. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +1 -0
  65. package/dist/types/src/capabilities/app-graph-builder/index.d.ts +3 -0
  66. package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +1 -0
  67. package/dist/types/src/capabilities/check-app-scheme/check-app-scheme.d.ts +5 -0
  68. package/dist/types/src/capabilities/check-app-scheme/check-app-scheme.d.ts.map +1 -0
  69. package/dist/types/src/capabilities/check-app-scheme/index.d.ts +3 -0
  70. package/dist/types/src/capabilities/check-app-scheme/index.d.ts.map +1 -0
  71. package/dist/types/src/capabilities/index.d.ts +8 -13
  72. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  73. package/dist/types/src/capabilities/operation-resolver/index.d.ts +3 -0
  74. package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +1 -0
  75. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +5 -0
  76. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +1 -0
  77. package/dist/types/src/capabilities/react-root/index.d.ts +6 -0
  78. package/dist/types/src/capabilities/react-root/index.d.ts.map +1 -0
  79. package/dist/types/src/capabilities/react-root/react-root.d.ts +9 -0
  80. package/dist/types/src/capabilities/react-root/react-root.d.ts.map +1 -0
  81. package/dist/types/src/capabilities/react-surface/index.d.ts +3 -0
  82. package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -0
  83. package/dist/types/src/capabilities/react-surface/react-surface.d.ts +5 -0
  84. package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -0
  85. package/dist/types/src/capabilities/settings/index.d.ts +19 -0
  86. package/dist/types/src/capabilities/settings/index.d.ts.map +1 -0
  87. package/dist/types/src/capabilities/settings/settings.d.ts +21 -0
  88. package/dist/types/src/capabilities/settings/settings.d.ts.map +1 -0
  89. package/dist/types/src/capabilities/state/index.d.ts +172 -0
  90. package/dist/types/src/capabilities/state/index.d.ts.map +1 -0
  91. package/dist/types/src/capabilities/state/state.d.ts +175 -0
  92. package/dist/types/src/capabilities/state/state.d.ts.map +1 -0
  93. package/dist/types/src/capabilities/toolkit/index.d.ts +3 -0
  94. package/dist/types/src/capabilities/toolkit/index.d.ts.map +1 -0
  95. package/dist/types/src/capabilities/toolkit/toolkit.d.ts +26 -0
  96. package/dist/types/src/capabilities/toolkit/toolkit.d.ts.map +1 -0
  97. package/dist/types/src/capabilities/tools/index.d.ts +3 -0
  98. package/dist/types/src/capabilities/tools/index.d.ts.map +1 -0
  99. package/dist/types/src/capabilities/tools/tools.d.ts +12 -0
  100. package/dist/types/src/capabilities/tools/tools.d.ts.map +1 -0
  101. package/dist/types/src/capabilities/url-handler/index.d.ts +3 -0
  102. package/dist/types/src/capabilities/url-handler/index.d.ts.map +1 -0
  103. package/dist/types/src/capabilities/url-handler/url-handler.d.ts +5 -0
  104. package/dist/types/src/capabilities/url-handler/url-handler.d.ts.map +1 -0
  105. package/dist/types/src/components/DeckLayout/ContentEmpty.d.ts.map +1 -1
  106. package/dist/types/src/components/DeckLayout/DeckLayout.d.ts.map +1 -1
  107. package/dist/types/src/components/DeckLayout/DeckLayout.stories.d.ts +1 -1
  108. package/dist/types/src/components/DeckLayout/DeckLayout.stories.d.ts.map +1 -1
  109. package/dist/types/src/components/DeckLayout/DeckMain.d.ts.map +1 -1
  110. package/dist/types/src/components/DeckLayout/Dialog.d.ts.map +1 -1
  111. package/dist/types/src/components/DeckLayout/Popover.d.ts.map +1 -1
  112. package/dist/types/src/components/DeckLayout/Toast.d.ts +3 -3
  113. package/dist/types/src/components/DeckLayout/Toast.d.ts.map +1 -1
  114. package/dist/types/src/components/DeckSettings/DeckSettings.d.ts +4 -2
  115. package/dist/types/src/components/DeckSettings/DeckSettings.d.ts.map +1 -1
  116. package/dist/types/src/components/Plank/Plank.d.ts +3 -3
  117. package/dist/types/src/components/Plank/Plank.d.ts.map +1 -1
  118. package/dist/types/src/components/Plank/Plank.stories.d.ts +23 -5
  119. package/dist/types/src/components/Plank/Plank.stories.d.ts.map +1 -1
  120. package/dist/types/src/components/Plank/PlankControls.d.ts +1 -1
  121. package/dist/types/src/components/Plank/PlankControls.d.ts.map +1 -1
  122. package/dist/types/src/components/Plank/PlankError.d.ts +1 -1
  123. package/dist/types/src/components/Plank/PlankError.d.ts.map +1 -1
  124. package/dist/types/src/components/Plank/PlankHeading.d.ts +2 -2
  125. package/dist/types/src/components/Plank/PlankHeading.d.ts.map +1 -1
  126. package/dist/types/src/components/Sidebar/ComplementarySidebar.d.ts.map +1 -1
  127. package/dist/types/src/components/Sidebar/Sidebar.d.ts.map +1 -1
  128. package/dist/types/src/components/Sidebar/SidebarButton.d.ts.map +1 -1
  129. package/dist/types/src/hooks/index.d.ts +1 -0
  130. package/dist/types/src/hooks/index.d.ts.map +1 -1
  131. package/dist/types/src/hooks/useDeckCompanions.d.ts +3 -3
  132. package/dist/types/src/hooks/useDeckCompanions.d.ts.map +1 -1
  133. package/dist/types/src/hooks/useDeckState.d.ts +17 -0
  134. package/dist/types/src/hooks/useDeckState.d.ts.map +1 -0
  135. package/dist/types/src/hooks/useHoistStatusbar.d.ts +1 -1
  136. package/dist/types/src/hooks/useHoistStatusbar.d.ts.map +1 -1
  137. package/dist/types/src/hooks/useNodeActionExpander.d.ts +1 -1
  138. package/dist/types/src/hooks/useNodeActionExpander.d.ts.map +1 -1
  139. package/dist/types/src/index.d.ts +1 -2
  140. package/dist/types/src/index.d.ts.map +1 -1
  141. package/dist/types/src/meta.d.ts +2 -2
  142. package/dist/types/src/meta.d.ts.map +1 -1
  143. package/dist/types/src/translations.d.ts +1 -1
  144. package/dist/types/src/{capabilities → types}/capabilities.d.ts +96 -90
  145. package/dist/types/src/types/capabilities.d.ts.map +1 -0
  146. package/dist/types/src/types/events.d.ts +7 -0
  147. package/dist/types/src/types/events.d.ts.map +1 -0
  148. package/dist/types/src/types/index.d.ts +2 -0
  149. package/dist/types/src/types/index.d.ts.map +1 -1
  150. package/dist/types/src/types/schema.d.ts +86 -27
  151. package/dist/types/src/types/schema.d.ts.map +1 -1
  152. package/dist/types/src/util/set-active.d.ts +18 -3
  153. package/dist/types/src/util/set-active.d.ts.map +1 -1
  154. package/dist/types/tsconfig.tsbuildinfo +1 -1
  155. package/package.json +53 -47
  156. package/src/DeckPlugin.ts +27 -48
  157. package/src/capabilities/app-graph-builder/app-graph-builder.ts +118 -0
  158. package/src/capabilities/app-graph-builder/index.ts +7 -0
  159. package/src/capabilities/{check-app-scheme.ts → check-app-scheme/check-app-scheme.ts} +12 -11
  160. package/src/capabilities/check-app-scheme/index.ts +7 -0
  161. package/src/capabilities/index.ts +9 -14
  162. package/src/capabilities/operation-resolver/index.ts +10 -0
  163. package/src/capabilities/operation-resolver/operation-resolver.ts +555 -0
  164. package/src/capabilities/react-root/index.ts +7 -0
  165. package/src/capabilities/react-root/react-root.tsx +47 -0
  166. package/src/capabilities/react-surface/index.ts +7 -0
  167. package/src/capabilities/react-surface/react-surface.tsx +37 -0
  168. package/src/capabilities/settings/index.ts +7 -0
  169. package/src/capabilities/settings/settings.ts +38 -0
  170. package/src/capabilities/state/index.ts +7 -0
  171. package/src/capabilities/state/state.ts +104 -0
  172. package/src/capabilities/toolkit/index.ts +7 -0
  173. package/src/capabilities/toolkit/toolkit.ts +63 -0
  174. package/src/capabilities/tools/index.ts +7 -0
  175. package/src/capabilities/tools/tools.ts +92 -0
  176. package/src/capabilities/url-handler/index.ts +7 -0
  177. package/src/capabilities/url-handler/url-handler.ts +95 -0
  178. package/src/components/DeckLayout/ActiveNode.tsx +1 -1
  179. package/src/components/DeckLayout/Banner.tsx +3 -3
  180. package/src/components/DeckLayout/ContentEmpty.tsx +3 -4
  181. package/src/components/DeckLayout/DeckLayout.stories.tsx +18 -31
  182. package/src/components/DeckLayout/DeckLayout.tsx +13 -11
  183. package/src/components/DeckLayout/DeckMain.tsx +45 -44
  184. package/src/components/DeckLayout/Dialog.tsx +13 -10
  185. package/src/components/DeckLayout/Fallback.tsx +2 -2
  186. package/src/components/DeckLayout/Popover.tsx +44 -32
  187. package/src/components/DeckLayout/StatusBar.tsx +1 -1
  188. package/src/components/DeckLayout/Toast.tsx +5 -5
  189. package/src/components/DeckSettings/DeckSettings.tsx +18 -8
  190. package/src/components/Plank/Plank.stories.tsx +14 -6
  191. package/src/components/Plank/Plank.tsx +66 -49
  192. package/src/components/Plank/PlankControls.tsx +6 -6
  193. package/src/components/Plank/PlankError.tsx +2 -2
  194. package/src/components/Plank/PlankHeading.tsx +29 -35
  195. package/src/components/Sidebar/ComplementarySidebar.tsx +54 -27
  196. package/src/components/Sidebar/Sidebar.tsx +4 -4
  197. package/src/components/Sidebar/SidebarButton.tsx +35 -28
  198. package/src/components/fragments.ts +1 -1
  199. package/src/hooks/index.ts +1 -0
  200. package/src/hooks/useCompanions.ts +1 -1
  201. package/src/hooks/useDeckCompanions.ts +6 -4
  202. package/src/hooks/useDeckState.ts +82 -0
  203. package/src/hooks/useHoistStatusbar.ts +3 -5
  204. package/src/hooks/useNodeActionExpander.ts +4 -4
  205. package/src/index.ts +1 -2
  206. package/src/meta.ts +2 -2
  207. package/src/translations.ts +1 -1
  208. package/src/types/capabilities.ts +33 -0
  209. package/src/types/events.ts +20 -0
  210. package/src/types/index.ts +2 -0
  211. package/src/types/schema.ts +81 -11
  212. package/src/util/layoutAppliesTopbar.ts +1 -1
  213. package/src/util/set-active.ts +49 -29
  214. package/dist/lib/browser/app-graph-builder-PCMSER2O.mjs +0 -153
  215. package/dist/lib/browser/app-graph-builder-PCMSER2O.mjs.map +0 -7
  216. package/dist/lib/browser/check-app-scheme-HIEVFAAX.mjs.map +0 -7
  217. package/dist/lib/browser/chunk-27I7DJUG.mjs +0 -129
  218. package/dist/lib/browser/chunk-27I7DJUG.mjs.map +0 -7
  219. package/dist/lib/browser/chunk-5KMJPIQC.mjs +0 -16
  220. package/dist/lib/browser/chunk-5KMJPIQC.mjs.map +0 -7
  221. package/dist/lib/browser/chunk-CNTGBCMK.mjs.map +0 -7
  222. package/dist/lib/browser/chunk-F3VCCHVL.mjs.map +0 -7
  223. package/dist/lib/browser/chunk-MFFZK4LT.mjs +0 -127
  224. package/dist/lib/browser/chunk-MFFZK4LT.mjs.map +0 -7
  225. package/dist/lib/browser/chunk-SBJLGRJV.mjs +0 -1532
  226. package/dist/lib/browser/chunk-SBJLGRJV.mjs.map +0 -7
  227. package/dist/lib/browser/chunk-UXLU6CMW.mjs +0 -16
  228. package/dist/lib/browser/chunk-UXLU6CMW.mjs.map +0 -7
  229. package/dist/lib/browser/intent-resolver-Q3KETDSS.mjs +0 -524
  230. package/dist/lib/browser/intent-resolver-Q3KETDSS.mjs.map +0 -7
  231. package/dist/lib/browser/react-root-LU3662ME.mjs +0 -43
  232. package/dist/lib/browser/react-root-LU3662ME.mjs.map +0 -7
  233. package/dist/lib/browser/react-surface-TDBFPN5T.mjs +0 -40
  234. package/dist/lib/browser/react-surface-TDBFPN5T.mjs.map +0 -7
  235. package/dist/lib/browser/settings-SDPTOCCM.mjs +0 -30
  236. package/dist/lib/browser/settings-SDPTOCCM.mjs.map +0 -7
  237. package/dist/lib/browser/state-QTVNH7N6.mjs +0 -12
  238. package/dist/lib/browser/toolkit-TM2Y6YL2.mjs +0 -53
  239. package/dist/lib/browser/toolkit-TM2Y6YL2.mjs.map +0 -7
  240. package/dist/lib/browser/url-handler-QEYGYE2H.mjs +0 -70
  241. package/dist/lib/browser/url-handler-QEYGYE2H.mjs.map +0 -7
  242. package/dist/types/src/capabilities/app-graph-builder.d.ts +0 -4
  243. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +0 -1
  244. package/dist/types/src/capabilities/capabilities.d.ts.map +0 -1
  245. package/dist/types/src/capabilities/check-app-scheme.d.ts +0 -4
  246. package/dist/types/src/capabilities/check-app-scheme.d.ts.map +0 -1
  247. package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
  248. package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
  249. package/dist/types/src/capabilities/react-root.d.ts +0 -7
  250. package/dist/types/src/capabilities/react-root.d.ts.map +0 -1
  251. package/dist/types/src/capabilities/react-surface.d.ts +0 -4
  252. package/dist/types/src/capabilities/react-surface.d.ts.map +0 -1
  253. package/dist/types/src/capabilities/settings.d.ts +0 -4
  254. package/dist/types/src/capabilities/settings.d.ts.map +0 -1
  255. package/dist/types/src/capabilities/state.d.ts +0 -104
  256. package/dist/types/src/capabilities/state.d.ts.map +0 -1
  257. package/dist/types/src/capabilities/toolkit.d.ts +0 -23
  258. package/dist/types/src/capabilities/toolkit.d.ts.map +0 -1
  259. package/dist/types/src/capabilities/tools.d.ts +0 -11
  260. package/dist/types/src/capabilities/tools.d.ts.map +0 -1
  261. package/dist/types/src/capabilities/url-handler.d.ts +0 -4
  262. package/dist/types/src/capabilities/url-handler.d.ts.map +0 -1
  263. package/dist/types/src/events.d.ts +0 -4
  264. package/dist/types/src/events.d.ts.map +0 -1
  265. package/src/capabilities/app-graph-builder.ts +0 -143
  266. package/src/capabilities/capabilities.ts +0 -14
  267. package/src/capabilities/intent-resolver.ts +0 -472
  268. package/src/capabilities/react-root.tsx +0 -39
  269. package/src/capabilities/react-surface.tsx +0 -30
  270. package/src/capabilities/settings.ts +0 -27
  271. package/src/capabilities/state.ts +0 -108
  272. package/src/capabilities/toolkit.ts +0 -68
  273. package/src/capabilities/tools.ts +0 -84
  274. package/src/capabilities/url-handler.ts +0 -60
  275. package/src/events.ts +0 -11
  276. /package/dist/lib/{browser/state-QTVNH7N6.mjs.map → node-esm/types/index.mjs.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"ContentEmpty.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/ContentEmpty.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,eAAO,MAAM,YAAY,yBAexB,CAAC"}
1
+ {"version":3,"file":"ContentEmpty.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/ContentEmpty.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,eAAO,MAAM,YAAY,yBAexB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"DeckLayout.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/DeckLayout.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AAErD,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,YAAY,EAAE,gBAAgB,CAAC,CAAC;AAEnE,eAAO,MAAM,UAAU,GAAI,oBAAoB,eAAe,sBAa7D,CAAC"}
1
+ {"version":3,"file":"DeckLayout.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/DeckLayout.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AAErD,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,YAAY,EAAE,gBAAgB,CAAC,CAAC;AAEnE,eAAO,MAAM,UAAU,GAAI,oBAAoB,eAAe,sBAe7D,CAAC"}
@@ -33,7 +33,7 @@ declare const meta: {
33
33
  readonly 'undo action label': "Undo";
34
34
  readonly 'undo action alt': "Undo previous action";
35
35
  readonly 'undo close label': "Dismiss";
36
- readonly 'error fallback message': "Unable to open this item";
36
+ readonly 'error fallback message': "Unable to open this object";
37
37
  readonly 'plank heading fallback label': "Untitled";
38
38
  readonly 'actions menu label': "Options";
39
39
  readonly 'settings deck label': "Disable deck";
@@ -1 +1 @@
1
- {"version":3,"file":"DeckLayout.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/DeckLayout.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAc1B,QAAA,MAAM,IAAI;;;;;;;;;yBAZyB,CAAQ,IAAI,CAAC,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgDhB,CAAC;AAEpC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC"}
1
+ {"version":3,"file":"DeckLayout.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/DeckLayout.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAyB1B,QAAA,MAAM,IAAI;;;;;;;;;yBAvB0B,CAAO,IAAI,CAAC,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqChB,CAAC;AAEpC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"DeckMain.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/DeckMain.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA0E,MAAM,OAAO,CAAC;AA4B/F,eAAO,MAAM,QAAQ,yBAkPpB,CAAC"}
1
+ {"version":3,"file":"DeckMain.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/DeckMain.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA0E,MAAM,OAAO,CAAC;AAoB/F,eAAO,MAAM,QAAQ,yBA4PpB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/Dialog.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,eAAO,MAAM,MAAM,yBAuBlB,CAAC"}
1
+ {"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/Dialog.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAQ3C,eAAO,MAAM,MAAM,yBA0BlB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/Popover.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAqD,MAAM,OAAO,CAAC;AAOzG,MAAM,MAAM,oBAAoB,GAAG,iBAAiB,CAAC,EAAE,CAAC,CAAC;AAUzD,eAAO,MAAM,WAAW,GAAI,cAAc,oBAAoB,sBA+B7D,CAAC;AAEF,eAAO,MAAM,cAAc,yBAgD1B,CAAC"}
1
+ {"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/Popover.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAA4C,MAAM,OAAO,CAAC;AAShG,MAAM,MAAM,oBAAoB,GAAG,iBAAiB,CAAC,EAAE,CAAC,CAAC;AAUzD,eAAO,MAAM,WAAW,GAAI,cAAc,oBAAoB,sBA+B7D,CAAC;AAEF,eAAO,MAAM,cAAc,yBA0D1B,CAAC"}
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
- import { type LayoutAction } from '@dxos/app-framework';
2
+ import { type Common } from '@dxos/app-framework';
3
3
  import { type ToastRootProps } from '@dxos/react-ui';
4
- export declare const Toast: ({ id, title, description, icon, duration, actionLabel, actionAlt, closeLabel, onAction, onOpenChange, }: LayoutAction.Toast & Pick<ToastRootProps, "onOpenChange">) => React.JSX.Element;
4
+ export declare const Toast: ({ id, title, description, icon, duration, actionLabel, actionAlt, closeLabel, onAction, onOpenChange, }: Common.LayoutOperation.Toast & Pick<ToastRootProps, "onOpenChange">) => React.JSX.Element;
5
5
  export type ToasterProps = {
6
- toasts?: LayoutAction.Toast[];
6
+ toasts?: Common.LayoutOperation.Toast[];
7
7
  onDismissToast?: (id: string) => void;
8
8
  };
9
9
  export declare const Toaster: ({ toasts, onDismissToast }: ToasterProps) => React.JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/Toast.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAIL,KAAK,cAAc,EAGpB,MAAM,gBAAgB,CAAC;AAKxB,eAAO,MAAM,KAAK,GAAI,yGAWnB,YAAY,CAAC,KAAK,GAAG,IAAI,CAAC,cAAc,EAAE,cAAc,CAAC,sBA8B3D,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,MAAM,CAAC,EAAE,YAAY,CAAC,KAAK,EAAE,CAAC;IAC9B,cAAc,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACvC,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,4BAA4B,YAAY,sBAkB/D,CAAC"}
1
+ {"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/Toast.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAIL,KAAK,cAAc,EAGpB,MAAM,gBAAgB,CAAC;AAKxB,eAAO,MAAM,KAAK,GAAI,yGAWnB,MAAM,CAAC,eAAe,CAAC,KAAK,GAAG,IAAI,CAAC,cAAc,EAAE,cAAc,CAAC,sBA8BrE,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC,eAAe,CAAC,KAAK,EAAE,CAAC;IACxC,cAAc,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACvC,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,4BAA4B,YAAY,sBAkB/D,CAAC"}
@@ -1,6 +1,8 @@
1
1
  import React from 'react';
2
2
  import { type DeckSettingsProps } from '../../types';
3
- export declare const DeckSettings: ({ settings }: {
3
+ export type DeckSettingsComponentProps = {
4
4
  settings: DeckSettingsProps;
5
- }) => React.JSX.Element;
5
+ onSettingsChange: (fn: (current: DeckSettingsProps) => DeckSettingsProps) => void;
6
+ };
7
+ export declare const DeckSettings: ({ settings, onSettingsChange }: DeckSettingsComponentProps) => React.JSX.Element;
6
8
  //# sourceMappingURL=DeckSettings.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DeckSettings.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckSettings/DeckSettings.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EACL,KAAK,iBAAiB,EAKvB,MAAM,aAAa,CAAC;AAIrB,eAAO,MAAM,YAAY,GAAI,cAAc;IAAE,QAAQ,EAAE,iBAAiB,CAAA;CAAE,sBAkFzE,CAAC"}
1
+ {"version":3,"file":"DeckSettings.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckSettings/DeckSettings.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EACL,KAAK,iBAAiB,EAKvB,MAAM,aAAa,CAAC;AAIrB,MAAM,MAAM,0BAA0B,GAAG;IACvC,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,gBAAgB,EAAE,CAAC,EAAE,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,iBAAiB,KAAK,IAAI,CAAC;CACnF,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,gCAAgC,0BAA0B,sBAuFtF,CAAC"}
@@ -18,9 +18,9 @@ type PlankComponentProps = {
18
18
  order?: number;
19
19
  active?: string[];
20
20
  companioned?: 'primary' | 'companion';
21
- node?: Node;
22
- primary?: Node;
23
- companions?: Node[];
21
+ node?: Node.Node;
22
+ primary?: Node.Node;
23
+ companions?: Node.Node[];
24
24
  settings?: DeckSettingsProps;
25
25
  };
26
26
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"Plank.d.ts","sourceRoot":"","sources":["../../../../../src/components/Plank/Plank.tsx"],"names":[],"mappings":"AAIA,OAAO,KAQN,MAAM,OAAO,CAAC;AAWf,OAAO,EAAE,KAAK,IAAI,EAAW,MAAM,oBAAoB,CAAC;AAQxD,OAAO,EAAc,KAAK,iBAAiB,EAAE,KAAK,UAAU,EAAE,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AAQrG,MAAM,MAAM,UAAU,GAAG,IAAI,CAAC,mBAAmB,EAAE,YAAY,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,UAAU,CAAC,GAAG;IACrH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAgBF;;;GAGG;AACH,eAAO,MAAM,KAAK,4DAAqD,UAAU,uBAkC/E,CAAC;AA+BH,KAAK,mBAAmB,GAAG;IACzB,UAAU,EAAE,UAAU,CAAC;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,YAAY,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAElB,WAAW,CAAC,EAAE,SAAS,GAAG,WAAW,CAAC;IACtC,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,OAAO,CAAC,EAAE,IAAI,CAAC;IACf,UAAU,CAAC,EAAE,IAAI,EAAE,CAAC;IACpB,QAAQ,CAAC,EAAE,iBAAiB,CAAC;CAC9B,CAAC"}
1
+ {"version":3,"file":"Plank.d.ts","sourceRoot":"","sources":["../../../../../src/components/Plank/Plank.tsx"],"names":[],"mappings":"AAKA,OAAO,KAQN,MAAM,OAAO,CAAC;AAKf,OAAO,EAAE,KAAK,IAAI,EAAW,MAAM,oBAAoB,CAAC;AAOxD,OAAO,EAAiB,KAAK,iBAAiB,EAAE,KAAK,UAAU,EAAE,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AAYxG,MAAM,MAAM,UAAU,GAAG,IAAI,CAAC,mBAAmB,EAAE,YAAY,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,UAAU,CAAC,GAAG;IACrH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAgBF;;;GAGG;AACH,eAAO,MAAM,KAAK,4DAAqD,UAAU,uBAkC/E,CAAC;AAqCH,KAAK,mBAAmB,GAAG;IACzB,UAAU,EAAE,UAAU,CAAC;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,YAAY,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,WAAW,CAAC,EAAE,SAAS,GAAG,WAAW,CAAC;IACtC,IAAI,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC;IACjB,OAAO,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC;IACpB,UAAU,CAAC,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC;IACzB,QAAQ,CAAC,EAAE,iBAAiB,CAAC;CAC9B,CAAC"}
@@ -11,11 +11,29 @@ declare const meta: {
11
11
  order?: number;
12
12
  active?: string[];
13
13
  companioned?: "primary" | "companion";
14
- node?: import("@dxos/app-graph").Node;
15
- primary?: import("@dxos/app-graph").Node;
16
- companions?: import("@dxos/app-graph").Node[];
14
+ node?: Readonly<{
15
+ id: string;
16
+ type: string;
17
+ cacheable?: string[];
18
+ properties: Readonly<Record<string, any>>;
19
+ data: any;
20
+ }>;
21
+ primary?: Readonly<{
22
+ id: string;
23
+ type: string;
24
+ cacheable?: string[];
25
+ properties: Readonly<Record<string, any>>;
26
+ data: any;
27
+ }>;
28
+ companions?: Readonly<{
29
+ id: string;
30
+ type: string;
31
+ cacheable?: string[];
32
+ properties: Readonly<Record<string, any>>;
33
+ data: any;
34
+ }>[];
17
35
  settings?: import("../../types").DeckSettingsProps;
18
- }, "active" | "part" | "order" | "path" | "layoutMode" | "settings"> & {
36
+ }, "active" | "order" | "path" | "part" | "layoutMode" | "settings"> & {
19
37
  id?: string;
20
38
  companionId?: string;
21
39
  }) => React.JSX.Element;
@@ -48,7 +66,7 @@ declare const meta: {
48
66
  readonly 'undo action label': "Undo";
49
67
  readonly 'undo action alt': "Undo previous action";
50
68
  readonly 'undo close label': "Dismiss";
51
- readonly 'error fallback message': "Unable to open this item";
69
+ readonly 'error fallback message': "Unable to open this object";
52
70
  readonly 'plank heading fallback label': "Untitled";
53
71
  readonly 'actions menu label': "Options";
54
72
  readonly 'settings deck label': "Disable deck";
@@ -1 +1 @@
1
- {"version":3,"file":"Plank.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Plank/Plank.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAc1B,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;yBAZyB,CAAQ,IAAI,CAAC,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCrB,CAAC;AAE/B,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAGnC,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC"}
1
+ {"version":3,"file":"Plank.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Plank/Plank.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAuB1B,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBArB0B,CAAO,IAAI,CAAC,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyCrB,CAAC;AAE/B,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAGnC,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { type ButtonGroupProps } from '@dxos/react-ui';
3
- import { DeckAction, type LayoutMode } from '../../types';
3
+ import { type DeckAction, type LayoutMode } from '../../types';
4
4
  export type PlankControlHandler = (event: DeckAction.PartAdjustment) => void;
5
5
  export type PlankCapabilities = {
6
6
  incrementStart?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"PlankControls.d.ts","sourceRoot":"","sources":["../../../../../src/components/Plank/PlankControls.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAkC,MAAM,OAAO,CAAC;AAIvD,OAAO,EAAe,KAAK,gBAAgB,EAAgD,MAAM,gBAAgB,CAAC;AAGlH,OAAO,EAAE,UAAU,EAAE,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAE1D,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;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,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,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,GAAG,CAAC,EAAE,OAAO,GAAG,KAAK,GAAG,MAAM,CAAC;CAChC,CAAC;AAQF,KAAK,4BAA4B,GAAG;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,sBAAsB,qGAoBlC,CAAC;AAKF,eAAO,MAAM,aAAa,wGAyGzB,CAAC"}
1
+ {"version":3,"file":"PlankControls.d.ts","sourceRoot":"","sources":["../../../../../src/components/Plank/PlankControls.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAkC,MAAM,OAAO,CAAC;AAIvD,OAAO,EAAe,KAAK,gBAAgB,EAAgD,MAAM,gBAAgB,CAAC;AAGlH,OAAO,EAAE,KAAK,UAAU,EAAiB,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9E,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;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,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,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,GAAG,CAAC,EAAE,OAAO,GAAG,KAAK,GAAG,MAAM,CAAC;CAChC,CAAC;AAQF,KAAK,4BAA4B,GAAG;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,sBAAsB,qGAoBlC,CAAC;AAKF,eAAO,MAAM,aAAa,wGAyGzB,CAAC"}
@@ -7,7 +7,7 @@ export declare const PlankContentError: ({ error }: {
7
7
  export declare const PlankError: ({ id, part, node, error, }: {
8
8
  id: string;
9
9
  part: PlankHeadingProps["part"];
10
- node?: Node;
10
+ node?: Node.Node;
11
11
  error?: Error;
12
12
  }) => React.JSX.Element;
13
13
  //# sourceMappingURL=PlankError.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PlankError.d.ts","sourceRoot":"","sources":["../../../../../src/components/Plank/PlankError.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAM/C,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAGtE,eAAO,MAAM,iBAAiB,GAAI,WAAW;IAAE,KAAK,CAAC,EAAE,KAAK,CAAA;CAAE,sBAU7D,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,4BAKxB;IACD,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAChC,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,sBAWA,CAAC"}
1
+ {"version":3,"file":"PlankError.d.ts","sourceRoot":"","sources":["../../../../../src/components/Plank/PlankError.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAM/C,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAGtE,eAAO,MAAM,iBAAiB,GAAI,WAAW;IAAE,KAAK,CAAC,EAAE,KAAK,CAAA;CAAE,sBAU7D,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,4BAKxB;IACD,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAChC,IAAI,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC;IACjB,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,sBAWA,CAAC"}
@@ -6,7 +6,7 @@ export type PlankHeadingProps = {
6
6
  id: string;
7
7
  part: ResolvedPart;
8
8
  layoutMode?: LayoutMode;
9
- node?: Node;
9
+ node?: Node.Node;
10
10
  deckEnabled?: boolean;
11
11
  canIncrementStart?: boolean;
12
12
  canIncrementEnd?: boolean;
@@ -14,7 +14,7 @@ export type PlankHeadingProps = {
14
14
  primaryId?: string;
15
15
  pending?: boolean;
16
16
  companioned?: 'primary' | 'companion';
17
- companions?: Node[];
17
+ companions?: Node.Node[];
18
18
  actions?: StackItemSigilAction[];
19
19
  };
20
20
  export declare const PlankHeading: React.MemoExoticComponent<({ id, part, node, deckEnabled, canIncrementStart, canIncrementEnd, popoverAnchorId, primaryId, pending, companioned, companions, layoutMode, actions, }: PlankHeadingProps) => React.JSX.Element>;
@@ -1 +1 @@
1
- {"version":3,"file":"PlankHeading.d.ts","sourceRoot":"","sources":["../../../../../src/components/Plank/PlankHeading.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA2E,MAAM,OAAO,CAAC;AAGhG,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAE/C,OAAO,EAAa,KAAK,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAO5E,OAAO,EAAc,KAAK,UAAU,EAAwB,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AAOnG,MAAM,MAAM,iBAAiB,GAAG;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,YAAY,CAAC;IACnB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,SAAS,GAAG,WAAW,CAAC;IACtC,UAAU,CAAC,EAAE,IAAI,EAAE,CAAC;IACpB,OAAO,CAAC,EAAE,oBAAoB,EAAE,CAAC;CAClC,CAAC;AAEF,eAAO,MAAM,YAAY,sLAepB,iBAAiB,uBAmLrB,CAAC"}
1
+ {"version":3,"file":"PlankHeading.d.ts","sourceRoot":"","sources":["../../../../../src/components/Plank/PlankHeading.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA2E,MAAM,OAAO,CAAC;AAIhG,OAAO,EAAS,KAAK,IAAI,EAAmB,MAAM,oBAAoB,CAAC;AAEvE,OAAO,EAAa,KAAK,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAO5E,OAAO,EAAiB,KAAK,UAAU,EAAwB,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AAOtG,MAAM,MAAM,iBAAiB,GAAG;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,YAAY,CAAC;IACnB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,IAAI,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC;IACjB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,SAAS,GAAG,WAAW,CAAC;IACtC,UAAU,CAAC,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC;IACzB,OAAO,CAAC,EAAE,oBAAoB,EAAE,CAAC;CAClC,CAAC;AAEF,eAAO,MAAM,YAAY,sLAepB,iBAAiB,uBA4KrB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ComplementarySidebar.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sidebar/ComplementarySidebar.tsx"],"names":[],"mappings":"AAIA,OAAO,KAQN,MAAM,OAAO,CAAC;AAiBf,MAAM,MAAM,yBAAyB,GAAG;IACtC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,aAAa,yBAAyB,sBAgH1E,CAAC"}
1
+ {"version":3,"file":"ComplementarySidebar.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sidebar/ComplementarySidebar.tsx"],"names":[],"mappings":"AAIA,OAAO,KAQN,MAAM,OAAO,CAAC;AAyBf,MAAM,MAAM,yBAAyB,GAAG;IACtC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,aAAa,yBAAyB,sBAwH1E,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Sidebar.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sidebar/Sidebar.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAavC,eAAO,MAAM,OAAO,yBAwBnB,CAAC"}
1
+ {"version":3,"file":"Sidebar.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sidebar/Sidebar.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAYvC,eAAO,MAAM,OAAO,yBAyBnB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"SidebarButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sidebar/SidebarButton.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAG3C,OAAO,EAAc,KAAK,eAAe,EAAE,KAAK,eAAe,EAAkB,MAAM,gBAAgB,CAAC;AAMxG,eAAO,MAAM,mBAAmB,GAAI,0BAGjC,eAAe,CAAC,IAAI,CAAC,eAAe,EAAE,SAAS,CAAC,CAAC,sBAgBnD,CAAC;AAEF,eAAO,MAAM,kBAAkB,yBAc9B,CAAC;AAEF,eAAO,MAAM,gCAAgC,GAAI,gCAI9C,eAAe,CAAC;IAAE,IAAI,CAAC,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,sBAgCvD,CAAC"}
1
+ {"version":3,"file":"SidebarButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sidebar/SidebarButton.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAI3C,OAAO,EAAc,KAAK,eAAe,EAAE,KAAK,eAAe,EAAkB,MAAM,gBAAgB,CAAC;AAKxG,eAAO,MAAM,mBAAmB,GAAI,0BAGjC,eAAe,CAAC,IAAI,CAAC,eAAe,EAAE,SAAS,CAAC,CAAC,sBAsBnD,CAAC;AAEF,eAAO,MAAM,kBAAkB,yBAmB9B,CAAC;AAEF,eAAO,MAAM,gCAAgC,GAAI,gCAI9C,eAAe,CAAC;IAAE,IAAI,CAAC,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,sBA4BvD,CAAC"}
@@ -1,6 +1,7 @@
1
1
  export * from './useBreakpoints';
2
2
  export * from './useCompanions';
3
3
  export * from './useDeckCompanions';
4
+ export * from './useDeckState';
4
5
  export * from './useHoistStatusbar';
5
6
  export * from './useMainSize';
6
7
  export * from './useNodeActionExpander';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/index.ts"],"names":[],"mappings":"AAIA,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/index.ts"],"names":[],"mappings":"AAIA,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC"}
@@ -1,8 +1,8 @@
1
- import { type Label } from '@dxos/app-framework';
2
- import { type Node } from '@dxos/plugin-graph';
1
+ import { type Node as NodeType } from '@dxos/plugin-graph';
2
+ import { type Label } from '@dxos/ui-types';
3
3
  import { type Position } from '@dxos/util';
4
4
  export declare const getCompanionId: (id: string) => string;
5
- export type DeckCompanion = Node<any, {
5
+ export type DeckCompanion = NodeType.Node<any, {
6
6
  label: Label;
7
7
  icon: string;
8
8
  /** If true, the panel will not be wrapped in a scroll area. */
@@ -1 +1 @@
1
- {"version":3,"file":"useDeckCompanions.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useDeckCompanions.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,KAAK,EAAe,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAE,KAAK,IAAI,EAA2B,MAAM,oBAAoB,CAAC;AACxE,OAAO,EAAE,KAAK,QAAQ,EAAc,MAAM,YAAY,CAAC;AAIvD,eAAO,MAAM,cAAc,GAAI,IAAI,MAAM,WAGxC,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,IAAI,CAC9B,GAAG,EACH;IACE,KAAK,EAAE,KAAK,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IAEb,+DAA+D;IAC/D,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB,CACF,CAAC;AAEF,eAAO,MAAM,iBAAiB,QAAO,aAAa,EAKjD,CAAC"}
1
+ {"version":3,"file":"useDeckCompanions.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useDeckCompanions.ts"],"names":[],"mappings":"AAKA,OAAO,EAAQ,KAAK,IAAI,IAAI,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEjE,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,KAAK,QAAQ,EAAc,MAAM,YAAY,CAAC;AAIvD,eAAO,MAAM,cAAc,GAAI,IAAI,MAAM,WAGxC,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,QAAQ,CAAC,IAAI,CACvC,GAAG,EACH;IACE,KAAK,EAAE,KAAK,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IAEb,+DAA+D;IAC/D,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB,CACF,CAAC;AAEF,eAAO,MAAM,iBAAiB,QAAO,aAAa,EAKjD,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { type DeckEphemeralStateProps, type DeckPluginState, type DeckState, type DeckStateProps } from '../types';
2
+ export type DeckStateHook = {
3
+ /** Combined state value (reactive). Includes both persisted and ephemeral state. */
4
+ state: DeckPluginState;
5
+ /** The active deck, computed from decks[activeDeck]. */
6
+ deck: DeckState;
7
+ /** Update persisted state. */
8
+ updateState: (fn: (current: DeckStateProps) => DeckStateProps) => void;
9
+ /** Update ephemeral state. */
10
+ updateEphemeral: (fn: (current: DeckEphemeralStateProps) => DeckEphemeralStateProps) => void;
11
+ };
12
+ /**
13
+ * Hook to access the deck plugin state reactively.
14
+ * Returns the combined state, the active deck, and update functions for each atom.
15
+ */
16
+ export declare const useDeckState: () => DeckStateHook;
17
+ //# sourceMappingURL=useDeckState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDeckState.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useDeckState.ts"],"names":[],"mappings":"AAWA,OAAO,EAEL,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,cAAc,EACpB,MAAM,UAAU,CAAC;AAElB,MAAM,MAAM,aAAa,GAAG;IAC1B,oFAAoF;IACpF,KAAK,EAAE,eAAe,CAAC;IACvB,wDAAwD;IACxD,IAAI,EAAE,SAAS,CAAC;IAChB,8BAA8B;IAC9B,WAAW,EAAE,CAAC,EAAE,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,cAAc,KAAK,IAAI,CAAC;IACvE,8BAA8B;IAC9B,eAAe,EAAE,CAAC,EAAE,EAAE,CAAC,OAAO,EAAE,uBAAuB,KAAK,uBAAuB,KAAK,IAAI,CAAC;CAC9F,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,QAAO,aA+C/B,CAAC"}
@@ -1,3 +1,3 @@
1
- import type { LayoutMode } from '../types';
1
+ import { type LayoutMode } from '../types';
2
2
  export declare const useHoistStatusbar: (breakpoint: string, layoutMode?: LayoutMode) => boolean;
3
3
  //# sourceMappingURL=useHoistStatusbar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useHoistStatusbar.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useHoistStatusbar.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAqB,UAAU,EAAE,MAAM,UAAU,CAAC;AAE9D,eAAO,MAAM,iBAAiB,GAAI,YAAY,MAAM,EAAE,aAAa,UAAU,KAAG,OAa/E,CAAC"}
1
+ {"version":3,"file":"useHoistStatusbar.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useHoistStatusbar.ts"],"names":[],"mappings":"AASA,OAAO,EAAoB,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAE7D,eAAO,MAAM,iBAAiB,GAAI,YAAY,MAAM,EAAE,aAAa,UAAU,KAAG,OAY/E,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import { type Node } from '@dxos/plugin-graph';
2
- export declare const useNodeActionExpander: (node?: Node) => void;
2
+ export declare const useNodeActionExpander: (node?: Node.Node) => void;
3
3
  //# sourceMappingURL=useNodeActionExpander.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useNodeActionExpander.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useNodeActionExpander.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,IAAI,EAAY,MAAM,oBAAoB,CAAC;AAEzD,eAAO,MAAM,qBAAqB,GAAI,OAAO,IAAI,SAUhD,CAAC"}
1
+ {"version":3,"file":"useNodeActionExpander.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useNodeActionExpander.ts"],"names":[],"mappings":"AAMA,OAAO,EAAS,KAAK,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAEtD,eAAO,MAAM,qBAAqB,GAAI,OAAO,IAAI,CAAC,IAAI,SAUrD,CAAC"}
@@ -1,5 +1,4 @@
1
- export { DeckCapabilities } from './capabilities';
2
- export { DeckEvents } from './events';
1
+ export { DeckCapabilities, DeckEvents } from './types';
3
2
  export * from './DeckPlugin';
4
3
  export * from './meta';
5
4
  export { useCompanions } from './hooks';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACvD,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC"}
@@ -1,3 +1,3 @@
1
- import { type PluginMeta } from '@dxos/app-framework';
2
- export declare const meta: PluginMeta;
1
+ import { type Plugin } from '@dxos/app-framework';
2
+ export declare const meta: Plugin.Meta;
3
3
  //# sourceMappingURL=meta.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAGtD,eAAO,MAAM,IAAI,EAAE,UAQlB,CAAC"}
1
+ {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAGlD,eAAO,MAAM,IAAI,EAAE,MAAM,CAAC,IAQzB,CAAC"}
@@ -25,7 +25,7 @@ export declare const translations: [{
25
25
  readonly 'undo action label': "Undo";
26
26
  readonly 'undo action alt': "Undo previous action";
27
27
  readonly 'undo close label': "Dismiss";
28
- readonly 'error fallback message': "Unable to open this item";
28
+ readonly 'error fallback message': "Unable to open this object";
29
29
  readonly 'plank heading fallback label': "Untitled";
30
30
  readonly 'actions menu label': "Options";
31
31
  readonly 'settings deck label': "Disable deck";
@@ -1,25 +1,83 @@
1
- import { type DeepReadonly } from '@dxos/util';
1
+ import { type Atom } from '@effect-atom/atom-react';
2
+ import * as Effect from 'effect/Effect';
3
+ import { Capability } from '@dxos/app-framework';
4
+ import { type DeckState } from '../types';
2
5
  export declare namespace DeckCapabilities {
3
- const DeckState: import("@dxos/app-framework").InterfaceDef<DeepReadonly<{
4
- deck: {
5
- solo?: string | undefined;
6
- initialized: boolean;
7
- active: string[];
8
- activeCompanions?: {
9
- [x: string]: string;
10
- } | undefined;
11
- inactive: string[];
12
- fullscreen: boolean;
13
- plankSizing: {
14
- [x: string]: number;
15
- };
16
- companionFrameSizing: {
17
- [x: string]: number;
6
+ const Settings: Capability.InterfaceDef<Atom.Writable<{
7
+ showHints?: boolean | undefined;
8
+ enableDeck?: boolean | undefined;
9
+ enableStatusbar?: boolean | undefined;
10
+ enableNativeRedirect?: boolean | undefined;
11
+ newPlankPositioning?: "start" | "end" | undefined;
12
+ overscroll?: "none" | "centering" | undefined;
13
+ encapsulatedPlanks?: boolean | undefined;
14
+ }, {
15
+ showHints?: boolean | undefined;
16
+ enableDeck?: boolean | undefined;
17
+ enableStatusbar?: boolean | undefined;
18
+ enableNativeRedirect?: boolean | undefined;
19
+ newPlankPositioning?: "start" | "end" | undefined;
20
+ overscroll?: "none" | "centering" | undefined;
21
+ encapsulatedPlanks?: boolean | undefined;
22
+ }>>;
23
+ /** Persisted state (stored in KVS/localStorage). */
24
+ const State: Capability.InterfaceDef<Atom.Writable<{
25
+ sidebarState: "closed" | "collapsed" | "expanded";
26
+ complementarySidebarState: "closed" | "collapsed" | "expanded";
27
+ complementarySidebarPanel?: string | undefined;
28
+ activeDeck: string;
29
+ previousDeck: string;
30
+ decks: {
31
+ [x: string]: {
32
+ initialized: boolean;
33
+ active: string[];
34
+ activeCompanions?: {
35
+ [x: string]: string;
36
+ } | undefined;
37
+ inactive: string[];
38
+ solo?: string | undefined;
39
+ fullscreen: boolean;
40
+ plankSizing: {
41
+ [x: string]: number;
42
+ };
43
+ companionFrameSizing: {
44
+ [x: string]: number;
45
+ };
18
46
  };
19
47
  };
48
+ previousMode: {
49
+ [x: string]: "solo" | "deck" | "solo--fullscreen";
50
+ };
51
+ }, {
20
52
  sidebarState: "closed" | "collapsed" | "expanded";
21
53
  complementarySidebarState: "closed" | "collapsed" | "expanded";
22
54
  complementarySidebarPanel?: string | undefined;
55
+ activeDeck: string;
56
+ previousDeck: string;
57
+ decks: {
58
+ [x: string]: {
59
+ initialized: boolean;
60
+ active: string[];
61
+ activeCompanions?: {
62
+ [x: string]: string;
63
+ } | undefined;
64
+ inactive: string[];
65
+ solo?: string | undefined;
66
+ fullscreen: boolean;
67
+ plankSizing: {
68
+ [x: string]: number;
69
+ };
70
+ companionFrameSizing: {
71
+ [x: string]: number;
72
+ };
73
+ };
74
+ };
75
+ previousMode: {
76
+ [x: string]: "solo" | "deck" | "solo--fullscreen";
77
+ };
78
+ }>>;
79
+ /** Transient/ephemeral state (not persisted). */
80
+ const EphemeralState: Capability.InterfaceDef<Atom.Writable<{
23
81
  dialogOpen: boolean;
24
82
  dialogType?: "default" | "alert" | undefined;
25
83
  dialogBlockAlign?: "start" | "end" | "center" | undefined;
@@ -32,15 +90,21 @@ export declare namespace DeckCapabilities {
32
90
  popoverSide?: "top" | "right" | "bottom" | "left" | undefined;
33
91
  popoverAnchor?: any;
34
92
  popoverAnchorId?: string | undefined;
93
+ popoverKind?: "base" | "card" | undefined;
94
+ popoverTitle?: string | [string, {
95
+ ns: string;
96
+ count?: number | undefined;
97
+ defaultValue?: string | undefined;
98
+ }] | undefined;
35
99
  popoverContent?: any;
36
100
  toasts: {
37
- readonly id: string;
38
- readonly title?: string | [string, {
101
+ readonly description?: string | [string, {
39
102
  ns: string;
40
103
  count?: number | undefined;
41
104
  defaultValue?: string | undefined;
42
105
  }] | undefined;
43
- readonly description?: string | [string, {
106
+ readonly id: string;
107
+ readonly title?: string | [string, {
44
108
  ns: string;
45
109
  count?: number | undefined;
46
110
  defaultValue?: string | undefined;
@@ -65,51 +129,8 @@ export declare namespace DeckCapabilities {
65
129
  readonly onAction?: any;
66
130
  }[];
67
131
  currentUndoId?: string | undefined;
68
- activeDeck: string;
69
- previousDeck: string;
70
- decks: {
71
- [x: string]: {
72
- solo?: string | undefined;
73
- initialized: boolean;
74
- active: string[];
75
- activeCompanions?: {
76
- [x: string]: string;
77
- } | undefined;
78
- inactive: string[];
79
- fullscreen: boolean;
80
- plankSizing: {
81
- [x: string]: number;
82
- };
83
- companionFrameSizing: {
84
- [x: string]: number;
85
- };
86
- };
87
- };
88
- previousMode: {
89
- [x: string]: "solo" | "deck" | "solo--fullscreen";
90
- };
91
132
  scrollIntoView?: string | undefined;
92
- }>>;
93
- const MutableDeckState: import("@dxos/app-framework").InterfaceDef<{
94
- deck: {
95
- solo?: string | undefined;
96
- initialized: boolean;
97
- active: string[];
98
- activeCompanions?: {
99
- [x: string]: string;
100
- } | undefined;
101
- inactive: string[];
102
- fullscreen: boolean;
103
- plankSizing: {
104
- [x: string]: number;
105
- };
106
- companionFrameSizing: {
107
- [x: string]: number;
108
- };
109
- };
110
- sidebarState: "closed" | "collapsed" | "expanded";
111
- complementarySidebarState: "closed" | "collapsed" | "expanded";
112
- complementarySidebarPanel?: string | undefined;
133
+ }, {
113
134
  dialogOpen: boolean;
114
135
  dialogType?: "default" | "alert" | undefined;
115
136
  dialogBlockAlign?: "start" | "end" | "center" | undefined;
@@ -122,15 +143,21 @@ export declare namespace DeckCapabilities {
122
143
  popoverSide?: "top" | "right" | "bottom" | "left" | undefined;
123
144
  popoverAnchor?: any;
124
145
  popoverAnchorId?: string | undefined;
146
+ popoverKind?: "base" | "card" | undefined;
147
+ popoverTitle?: string | [string, {
148
+ ns: string;
149
+ count?: number | undefined;
150
+ defaultValue?: string | undefined;
151
+ }] | undefined;
125
152
  popoverContent?: any;
126
153
  toasts: {
127
- readonly id: string;
128
- readonly title?: string | [string, {
154
+ readonly description?: string | [string, {
129
155
  ns: string;
130
156
  count?: number | undefined;
131
157
  defaultValue?: string | undefined;
132
158
  }] | undefined;
133
- readonly description?: string | [string, {
159
+ readonly id: string;
160
+ readonly title?: string | [string, {
134
161
  ns: string;
135
162
  count?: number | undefined;
136
163
  defaultValue?: string | undefined;
@@ -155,30 +182,9 @@ export declare namespace DeckCapabilities {
155
182
  readonly onAction?: any;
156
183
  }[];
157
184
  currentUndoId?: string | undefined;
158
- activeDeck: string;
159
- previousDeck: string;
160
- decks: {
161
- [x: string]: {
162
- solo?: string | undefined;
163
- initialized: boolean;
164
- active: string[];
165
- activeCompanions?: {
166
- [x: string]: string;
167
- } | undefined;
168
- inactive: string[];
169
- fullscreen: boolean;
170
- plankSizing: {
171
- [x: string]: number;
172
- };
173
- companionFrameSizing: {
174
- [x: string]: number;
175
- };
176
- };
177
- };
178
- previousMode: {
179
- [x: string]: "solo" | "deck" | "solo--fullscreen";
180
- };
181
185
  scrollIntoView?: string | undefined;
182
- }>;
186
+ }>>;
187
+ /** Get the current active deck from state. */
188
+ const getDeck: () => Effect.Effect<DeckState, Error, Capability.Service>;
183
189
  }
184
190
  //# sourceMappingURL=capabilities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../../../../src/types/capabilities.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAU,MAAM,qBAAqB,CAAC;AAIzD,OAAO,EAAwD,KAAK,SAAS,EAAuB,MAAM,UAAU,CAAC;AAErH,yBAAiB,gBAAgB,CAAC;IACzB,MAAM,QAAQ;;;;;;;;;;;;;;;;OAAsF,CAAC;IAE5G,oDAAoD;IAC7C,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAgF,CAAC;IAEnG,iDAAiD;IAC1C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAE1B,CAAC;IAEF,8CAA8C;IACvC,MAAM,OAAO,QAAO,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE,KAAK,EAAE,UAAU,CAAC,OAAO,CAMzE,CAAC;CACN"}
@@ -0,0 +1,7 @@
1
+ import { type ActivationEvent } from '@dxos/app-framework';
2
+ export declare namespace DeckEvents {
3
+ const StateReady: ActivationEvent.ActivationEvent;
4
+ /** Fired when DeckSettings capability is ready. */
5
+ const SettingsReady: ActivationEvent.ActivationEvent;
6
+ }
7
+ //# sourceMappingURL=events.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../src/types/events.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,eAAe,EAAU,MAAM,qBAAqB,CAAC;AAMnE,yBAAiB,UAAU,CAAC;IACnB,MAAM,UAAU,EAAE,eAAe,CAAC,eAExC,CAAC;IAEF,mDAAmD;IAC5C,MAAM,aAAa,EAAE,eAAe,CAAC,eAE3C,CAAC;CACH"}
@@ -1,2 +1,4 @@
1
+ export * from './capabilities';
2
+ export * from './events';
1
3
  export * from './schema';
2
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/index.ts"],"names":[],"mappings":"AAIA,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/index.ts"],"names":[],"mappings":"AAIA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC"}