@dxos/plugin-deck 0.8.1-staging.391c573 → 0.8.1-staging.9eaf14f

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 (176) hide show
  1. package/dist/lib/browser/{app-graph-builder-IYHAGFA3.mjs → app-graph-builder-VYZ4IWI3.mjs} +3 -3
  2. package/dist/lib/browser/{check-app-scheme-S3EYUPMF.mjs → check-app-scheme-SEYECDHI.mjs} +2 -2
  3. package/dist/lib/browser/{chunk-YCKJNTKG.mjs → chunk-6ZSOFCPP.mjs} +26 -6
  4. package/dist/lib/browser/chunk-6ZSOFCPP.mjs.map +7 -0
  5. package/dist/lib/browser/chunk-B4LOJUWW.mjs +24 -0
  6. package/dist/lib/browser/{chunk-Z23S33X6.mjs → chunk-FJBMNSUC.mjs} +638 -483
  7. package/dist/lib/browser/chunk-FJBMNSUC.mjs.map +7 -0
  8. package/dist/lib/browser/chunk-FLOVGNYB.mjs +81 -0
  9. package/dist/lib/browser/chunk-FLOVGNYB.mjs.map +7 -0
  10. package/dist/lib/browser/{chunk-N7TEPFVR.mjs → chunk-NSATFAEE.mjs} +3 -3
  11. package/dist/lib/browser/{chunk-N7TEPFVR.mjs.map → chunk-NSATFAEE.mjs.map} +2 -2
  12. package/dist/lib/browser/{chunk-FYKBOM3C.mjs → chunk-RJNCG4ND.mjs} +66 -40
  13. package/dist/lib/browser/chunk-RJNCG4ND.mjs.map +7 -0
  14. package/dist/lib/browser/{chunk-22AQ5IVX.mjs → chunk-XMCG42ID.mjs} +2 -3
  15. package/dist/lib/browser/chunk-XMCG42ID.mjs.map +7 -0
  16. package/dist/lib/browser/index.mjs +14 -9
  17. package/dist/lib/browser/index.mjs.map +3 -3
  18. package/dist/lib/browser/{intent-resolver-P5BVUQKU.mjs → intent-resolver-UDYKO2QW.mjs} +78 -88
  19. package/dist/lib/browser/intent-resolver-UDYKO2QW.mjs.map +7 -0
  20. package/dist/lib/browser/meta.json +1 -1
  21. package/dist/lib/browser/{react-root-EP4UF3KA.mjs → react-root-XLXN2VEW.mjs} +8 -10
  22. package/dist/lib/browser/react-root-XLXN2VEW.mjs.map +7 -0
  23. package/dist/lib/browser/{react-surface-5B3RLJCD.mjs → react-surface-WNGMZL7I.mjs} +11 -10
  24. package/dist/lib/browser/react-surface-WNGMZL7I.mjs.map +7 -0
  25. package/dist/lib/browser/{settings-X3P2HKQJ.mjs → settings-HMDGSBGO.mjs} +5 -4
  26. package/dist/lib/browser/settings-HMDGSBGO.mjs.map +7 -0
  27. package/dist/lib/browser/{state-2MOTLKVR.mjs → state-7TN26M42.mjs} +7 -11
  28. package/dist/lib/browser/state-7TN26M42.mjs.map +7 -0
  29. package/dist/lib/browser/tools-SC6QEN7R.mjs +78 -0
  30. package/dist/lib/browser/tools-SC6QEN7R.mjs.map +7 -0
  31. package/dist/lib/browser/types.mjs +12 -6
  32. package/dist/lib/browser/{url-handler-MVHTKUYA.mjs → url-handler-ODG4B6NX.mjs} +7 -9
  33. package/dist/lib/browser/url-handler-ODG4B6NX.mjs.map +7 -0
  34. package/dist/types/src/DeckPlugin.d.ts.map +1 -1
  35. package/dist/types/src/capabilities/capabilities.d.ts +36 -14
  36. package/dist/types/src/capabilities/capabilities.d.ts.map +1 -1
  37. package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -1
  38. package/dist/types/src/capabilities/react-root.d.ts.map +1 -1
  39. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  40. package/dist/types/src/capabilities/settings.d.ts.map +1 -1
  41. package/dist/types/src/capabilities/state.d.ts +18 -6
  42. package/dist/types/src/capabilities/state.d.ts.map +1 -1
  43. package/dist/types/src/capabilities/tools.d.ts +1 -0
  44. package/dist/types/src/capabilities/tools.d.ts.map +1 -1
  45. package/dist/types/src/capabilities/url-handler.d.ts.map +1 -1
  46. package/dist/types/src/components/DeckLayout/ActiveNode.d.ts.map +1 -1
  47. package/dist/types/src/components/DeckLayout/Banner.d.ts.map +1 -1
  48. package/dist/types/src/components/DeckLayout/DeckLayout.d.ts +1 -4
  49. package/dist/types/src/components/DeckLayout/DeckLayout.d.ts.map +1 -1
  50. package/dist/types/src/components/DeckLayout/Toast.d.ts.map +1 -1
  51. package/dist/types/src/components/DeckLayout/index.d.ts +1 -0
  52. package/dist/types/src/components/DeckLayout/index.d.ts.map +1 -1
  53. package/dist/types/src/components/DeckSettings/DeckSettings.d.ts +6 -0
  54. package/dist/types/src/components/DeckSettings/DeckSettings.d.ts.map +1 -0
  55. package/dist/types/src/components/DeckSettings/index.d.ts +2 -0
  56. package/dist/types/src/components/DeckSettings/index.d.ts.map +1 -0
  57. package/dist/types/src/components/Plank/Plank.d.ts +14 -0
  58. package/dist/types/src/components/Plank/Plank.d.ts.map +1 -0
  59. package/dist/types/src/components/Plank/Plank.stories.d.ts +8 -0
  60. package/dist/types/src/components/Plank/Plank.stories.d.ts.map +1 -0
  61. package/dist/types/src/components/{DeckLayout → Plank}/PlankControls.d.ts +8 -1
  62. package/dist/types/src/components/Plank/PlankControls.d.ts.map +1 -0
  63. package/dist/types/src/components/{DeckLayout → Plank}/PlankError.d.ts +2 -2
  64. package/dist/types/src/components/Plank/PlankError.d.ts.map +1 -0
  65. package/dist/types/src/components/Plank/PlankHeading.d.ts +20 -0
  66. package/dist/types/src/components/Plank/PlankHeading.d.ts.map +1 -0
  67. package/dist/types/src/components/Plank/PlankLoading.d.ts.map +1 -0
  68. package/dist/types/src/components/Plank/index.d.ts +6 -0
  69. package/dist/types/src/components/Plank/index.d.ts.map +1 -0
  70. package/dist/types/src/components/Sidebar/ComplementarySidebar.d.ts.map +1 -0
  71. package/dist/types/src/components/Sidebar/Sidebar.d.ts.map +1 -0
  72. package/dist/types/src/components/Sidebar/SidebarButton.d.ts.map +1 -0
  73. package/dist/types/src/components/Sidebar/index.d.ts +4 -0
  74. package/dist/types/src/components/Sidebar/index.d.ts.map +1 -0
  75. package/dist/types/src/components/index.d.ts +1 -1
  76. package/dist/types/src/components/index.d.ts.map +1 -1
  77. package/dist/types/src/events.d.ts +0 -1
  78. package/dist/types/src/events.d.ts.map +1 -1
  79. package/dist/types/src/hooks/index.d.ts +0 -1
  80. package/dist/types/src/hooks/index.d.ts.map +1 -1
  81. package/dist/types/src/index.d.ts +1 -0
  82. package/dist/types/src/index.d.ts.map +1 -1
  83. package/dist/types/src/layout.d.ts +7 -1
  84. package/dist/types/src/layout.d.ts.map +1 -1
  85. package/dist/types/src/meta.d.ts +2 -5
  86. package/dist/types/src/meta.d.ts.map +1 -1
  87. package/dist/types/src/translations.d.ts +4 -0
  88. package/dist/types/src/translations.d.ts.map +1 -1
  89. package/dist/types/src/types.d.ts +50 -48
  90. package/dist/types/src/types.d.ts.map +1 -1
  91. package/dist/types/src/util/index.d.ts +1 -0
  92. package/dist/types/src/util/index.d.ts.map +1 -1
  93. package/dist/types/src/util/set-active.d.ts +2 -2
  94. package/dist/types/src/util/set-active.d.ts.map +1 -1
  95. package/dist/types/src/util/useCompanions.d.ts +8 -0
  96. package/dist/types/src/util/useCompanions.d.ts.map +1 -0
  97. package/dist/types/src/util/useHoistStatusbar.d.ts.map +1 -1
  98. package/package.json +28 -29
  99. package/src/DeckPlugin.ts +0 -1
  100. package/src/capabilities/capabilities.ts +3 -4
  101. package/src/capabilities/intent-resolver.ts +63 -9
  102. package/src/capabilities/react-root.tsx +1 -9
  103. package/src/capabilities/react-surface.tsx +3 -4
  104. package/src/capabilities/settings.ts +7 -2
  105. package/src/capabilities/state.ts +4 -11
  106. package/src/capabilities/tools.ts +34 -22
  107. package/src/capabilities/url-handler.ts +2 -8
  108. package/src/components/DeckLayout/ActiveNode.tsx +2 -1
  109. package/src/components/DeckLayout/Banner.tsx +5 -3
  110. package/src/components/DeckLayout/ContentEmpty.tsx +1 -1
  111. package/src/components/DeckLayout/DeckLayout.tsx +58 -24
  112. package/src/components/DeckLayout/Fullscreen.tsx +1 -1
  113. package/src/components/DeckLayout/Toast.tsx +1 -1
  114. package/src/components/DeckLayout/index.ts +2 -0
  115. package/src/components/{LayoutSettings.tsx → DeckSettings/DeckSettings.tsx} +15 -10
  116. package/src/components/DeckSettings/index.ts +5 -0
  117. package/src/components/Plank/Plank.stories.tsx +43 -0
  118. package/src/components/Plank/Plank.tsx +230 -0
  119. package/src/components/{DeckLayout → Plank}/PlankControls.tsx +73 -27
  120. package/src/components/{DeckLayout → Plank}/PlankError.tsx +3 -3
  121. package/src/components/Plank/PlankHeading.tsx +207 -0
  122. package/src/components/Plank/index.ts +9 -0
  123. package/src/components/{DeckLayout → Sidebar}/ComplementarySidebar.tsx +65 -81
  124. package/src/components/Sidebar/index.ts +7 -0
  125. package/src/components/index.ts +1 -1
  126. package/src/events.ts +0 -1
  127. package/src/hooks/index.ts +0 -1
  128. package/src/index.ts +1 -0
  129. package/src/layout.ts +19 -2
  130. package/src/meta.ts +4 -4
  131. package/src/translations.ts +4 -0
  132. package/src/types.ts +81 -79
  133. package/src/util/index.ts +1 -0
  134. package/src/util/set-active.ts +2 -2
  135. package/src/util/useCompanions.ts +18 -0
  136. package/src/util/useHoistStatusbar.ts +2 -2
  137. package/dist/lib/browser/chunk-22AQ5IVX.mjs.map +0 -7
  138. package/dist/lib/browser/chunk-FYKBOM3C.mjs.map +0 -7
  139. package/dist/lib/browser/chunk-IZ5RPJ6T.mjs +0 -24
  140. package/dist/lib/browser/chunk-YCKJNTKG.mjs.map +0 -7
  141. package/dist/lib/browser/chunk-Z23S33X6.mjs.map +0 -7
  142. package/dist/lib/browser/intent-resolver-P5BVUQKU.mjs.map +0 -7
  143. package/dist/lib/browser/react-root-EP4UF3KA.mjs.map +0 -7
  144. package/dist/lib/browser/react-surface-5B3RLJCD.mjs.map +0 -7
  145. package/dist/lib/browser/settings-X3P2HKQJ.mjs.map +0 -7
  146. package/dist/lib/browser/state-2MOTLKVR.mjs.map +0 -7
  147. package/dist/lib/browser/tools-64LXGLYR.mjs +0 -59
  148. package/dist/lib/browser/tools-64LXGLYR.mjs.map +0 -7
  149. package/dist/lib/browser/url-handler-MVHTKUYA.mjs.map +0 -7
  150. package/dist/types/src/components/DeckLayout/ComplementarySidebar.d.ts.map +0 -1
  151. package/dist/types/src/components/DeckLayout/NodePlankHeading.d.ts +0 -15
  152. package/dist/types/src/components/DeckLayout/NodePlankHeading.d.ts.map +0 -1
  153. package/dist/types/src/components/DeckLayout/Plank.d.ts +0 -13
  154. package/dist/types/src/components/DeckLayout/Plank.d.ts.map +0 -1
  155. package/dist/types/src/components/DeckLayout/PlankControls.d.ts.map +0 -1
  156. package/dist/types/src/components/DeckLayout/PlankError.d.ts.map +0 -1
  157. package/dist/types/src/components/DeckLayout/PlankLoading.d.ts.map +0 -1
  158. package/dist/types/src/components/DeckLayout/Sidebar.d.ts.map +0 -1
  159. package/dist/types/src/components/DeckLayout/SidebarButton.d.ts.map +0 -1
  160. package/dist/types/src/components/LayoutSettings.d.ts +0 -6
  161. package/dist/types/src/components/LayoutSettings.d.ts.map +0 -1
  162. package/dist/types/src/hooks/useNode.d.ts +0 -11
  163. package/dist/types/src/hooks/useNode.d.ts.map +0 -1
  164. package/src/components/DeckLayout/NodePlankHeading.tsx +0 -148
  165. package/src/components/DeckLayout/Plank.tsx +0 -149
  166. package/src/hooks/useNode.ts +0 -46
  167. /package/dist/lib/browser/{app-graph-builder-IYHAGFA3.mjs.map → app-graph-builder-VYZ4IWI3.mjs.map} +0 -0
  168. /package/dist/lib/browser/{check-app-scheme-S3EYUPMF.mjs.map → check-app-scheme-SEYECDHI.mjs.map} +0 -0
  169. /package/dist/lib/browser/{chunk-IZ5RPJ6T.mjs.map → chunk-B4LOJUWW.mjs.map} +0 -0
  170. /package/dist/types/src/components/{DeckLayout → Plank}/PlankLoading.d.ts +0 -0
  171. /package/dist/types/src/components/{DeckLayout → Sidebar}/ComplementarySidebar.d.ts +0 -0
  172. /package/dist/types/src/components/{DeckLayout → Sidebar}/Sidebar.d.ts +0 -0
  173. /package/dist/types/src/components/{DeckLayout → Sidebar}/SidebarButton.d.ts +0 -0
  174. /package/src/components/{DeckLayout → Plank}/PlankLoading.tsx +0 -0
  175. /package/src/components/{DeckLayout → Sidebar}/Sidebar.tsx +0 -0
  176. /package/src/components/{DeckLayout → Sidebar}/SidebarButton.tsx +0 -0
@@ -0,0 +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;AAM5E,OAAO,EAAoC,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AAIlF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,YAAY,CAAC;IACnB,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,0KAcpB,iBAAiB,uBA8JrB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlankLoading.d.ts","sourceRoot":"","sources":["../../../../../src/components/Plank/PlankLoading.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,eAAO,MAAM,YAAY,yBAExB,CAAC"}
@@ -0,0 +1,6 @@
1
+ export * from './Plank';
2
+ export * from './PlankControls';
3
+ export * from './PlankError';
4
+ export * from './PlankHeading';
5
+ export * from './PlankLoading';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Plank/index.ts"],"names":[],"mappings":"AAIA,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ComplementarySidebar.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sidebar/ComplementarySidebar.tsx"],"names":[],"mappings":"AAIA,OAAO,KAQN,MAAM,OAAO,CAAC;AA+Cf,MAAM,MAAM,yBAAyB,GAAG;IACtC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,oBAAoB,gBAAiB,yBAAyB,sBAsG1E,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Sidebar.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sidebar/Sidebar.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAWvC,eAAO,MAAM,OAAO,yBAuBnB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SidebarButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sidebar/SidebarButton.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAc,KAAK,eAAe,EAAE,KAAK,eAAe,EAAkB,MAAM,gBAAgB,CAAC;AAKxG,eAAO,MAAM,mBAAmB,6BAG7B,eAAe,CAAC,IAAI,CAAC,eAAe,EAAE,SAAS,CAAC,CAAC,sBAgBnD,CAAC;AAEF,eAAO,MAAM,kBAAkB,yBAc9B,CAAC;AAEF,eAAO,MAAM,gCAAgC,yBAA0B,eAAe,CAAC;IAAE,IAAI,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC,sBAkBzG,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from './ComplementarySidebar';
2
+ export * from './Sidebar';
3
+ export * from './SidebarButton';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sidebar/index.ts"],"names":[],"mappings":"AAIA,cAAc,wBAAwB,CAAC;AACvC,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC"}
@@ -1,3 +1,3 @@
1
1
  export * from './DeckLayout';
2
- export * from './LayoutSettings';
2
+ export * from './DeckSettings';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC"}
@@ -1,5 +1,4 @@
1
1
  export declare namespace DeckEvents {
2
- const SetupComplementaryPanels: import("@dxos/app-framework").ActivationEvent;
3
2
  const StateReady: import("@dxos/app-framework").ActivationEvent;
4
3
  }
5
4
  //# sourceMappingURL=events.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/events.ts"],"names":[],"mappings":"AAQA,yBAAiB,UAAU,CAAC;IACnB,MAAM,wBAAwB,+CAAuE,CAAC;IACtG,MAAM,UAAU,+CAAwD,CAAC;CACjF"}
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/events.ts"],"names":[],"mappings":"AAQA,yBAAiB,UAAU,CAAC;IACnB,MAAM,UAAU,+CAAwD,CAAC;CACjF"}
@@ -1,4 +1,3 @@
1
- export * from './useNode';
2
1
  export * from './useNodeActionExpander';
3
2
  export * from './useMainSize';
4
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/index.ts"],"names":[],"mappings":"AAIA,cAAc,WAAW,CAAC;AAC1B,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/index.ts"],"names":[],"mappings":"AAIA,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC"}
@@ -2,4 +2,5 @@ export { DeckCapabilities } from './capabilities';
2
2
  export { DeckEvents } from './events';
3
3
  export * from './DeckPlugin';
4
4
  export * from './meta';
5
+ export { useCompanions } from './util';
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -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"}
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,QAAQ,CAAC"}
@@ -1,10 +1,16 @@
1
1
  import { type DeckAction, type NewPlankPositioning } from './types';
2
+ export declare const createEntryId: (entryId: string, variant?: string) => string;
3
+ export declare const parseEntryId: (entryId: string) => {
4
+ id: string;
5
+ variant: string;
6
+ };
2
7
  type OpenLayoutEntryOptions = {
3
8
  key?: string;
4
9
  positioning?: NewPlankPositioning;
5
10
  pivotId?: string;
11
+ variant?: string;
6
12
  };
7
- export declare const openEntry: (deck: string[], entryId: string, options?: OpenLayoutEntryOptions) => string[];
13
+ export declare const openEntry: (deck: string[], _entryId: string, options?: OpenLayoutEntryOptions) => string[];
8
14
  export declare const closeEntry: (deck: string[], entryId: string) => string[];
9
15
  export declare const incrementPlank: (deck: string[], adjustment: DeckAction.Adjustment) => string[];
10
16
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../src/layout.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEpE,KAAK,sBAAsB,GAAG;IAAE,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,mBAAmB,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEpG,eAAO,MAAM,SAAS,SAAU,MAAM,EAAE,WAAW,MAAM,YAAY,sBAAsB,KAAG,MAAM,EAsCnG,CAAC;AAEF,eAAO,MAAM,UAAU,SAAU,MAAM,EAAE,WAAW,MAAM,KAAG,MAAM,EAOlE,CAAC;AAEF,eAAO,MAAM,cAAc,SAAU,MAAM,EAAE,cAAc,UAAU,CAAC,UAAU,KAAG,MAAM,EAmBxF,CAAC"}
1
+ {"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../src/layout.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEpE,eAAO,MAAM,aAAa,YAAa,MAAM,YAAY,MAAM,WACS,CAAC;AAEzE,eAAO,MAAM,YAAY,YAAa,MAAM;;;CAG3C,CAAC;AAEF,KAAK,sBAAsB,GAAG;IAC5B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,mBAAmB,CAAC;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,SAAS,SAAU,MAAM,EAAE,YAAY,MAAM,YAAY,sBAAsB,KAAG,MAAM,EAwCpG,CAAC;AAEF,eAAO,MAAM,UAAU,SAAU,MAAM,EAAE,WAAW,MAAM,KAAG,MAAM,EAOlE,CAAC;AAEF,eAAO,MAAM,cAAc,SAAU,MAAM,EAAE,cAAc,UAAU,CAAC,UAAU,KAAG,MAAM,EAmBxF,CAAC"}
@@ -1,7 +1,4 @@
1
+ import { type PluginMeta } from '@dxos/app-framework';
1
2
  export declare const DECK_PLUGIN: "dxos.org/plugin/deck";
2
- export declare const meta: {
3
- id: "dxos.org/plugin/deck";
4
- name: string;
5
- icon: string;
6
- };
3
+ export declare const meta: PluginMeta;
7
4
  //# sourceMappingURL=meta.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,WAAW,EAAG,sBAA+B,CAAC;AAE3D,eAAO,MAAM,IAAI;;;;CAIK,CAAC"}
1
+ {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEtD,eAAO,MAAM,WAAW,EAAG,sBAA+B,CAAC;AAE3D,eAAO,MAAM,IAAI,EAAE,UAIlB,CAAC"}
@@ -39,14 +39,18 @@ declare const _default: {
39
39
  'show solo plank label': string;
40
40
  'close label': string;
41
41
  'minify label': string;
42
+ 'open companion label': string;
43
+ 'close companion label': string;
42
44
  'settings overscroll label': string;
43
45
  'select overscroll placeholder': string;
44
46
  'settings overscroll centering label': string;
45
47
  'settings overscroll none label': string;
46
48
  'settings enable statusbar label': string;
49
+ 'settings enable deck label': string;
47
50
  'close current label': string;
48
51
  'close others label': string;
49
52
  'close all label': string;
53
+ 'companion plank heading fallback label': string;
50
54
  };
51
55
  };
52
56
  }[];
@@ -1 +1 @@
1
- {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,wBAsDE"}
1
+ {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,wBA0DE"}
@@ -1,60 +1,53 @@
1
1
  import { S } from '@dxos/echo-schema';
2
- import { type Node } from '@dxos/plugin-graph';
3
- import { type Label } from '@dxos/react-ui';
4
- import { type Position } from '@dxos/util';
2
+ export { ATTENDABLE_PATH_SEPARATOR } from '@dxos/react-ui-attention';
3
+ export declare const PLANK_COMPANION_TYPE = "dxos.org/plugin/deck/plank-companion";
4
+ export declare const DECK_COMPANION_TYPE = "dxos.org/plugin/deck/deck-companion";
5
5
  export declare const NewPlankPositions: readonly ["start", "end"];
6
6
  export type NewPlankPositioning = (typeof NewPlankPositions)[number];
7
7
  export declare const OverscrollOptions: readonly ["none", "centering"];
8
8
  export type Overscroll = (typeof OverscrollOptions)[number];
9
- export type Panel = {
10
- id: string;
11
- label: Label;
12
- icon: string;
13
- position?: Position;
14
- /**
15
- * If true, the panel will now be wrapped in a scroll area.
16
- */
17
- fixed?: boolean;
18
- filter?: (node: Node) => boolean;
19
- };
9
+ export type Part = 'solo' | 'deck' | 'complementary';
10
+ export type ResolvedPart = Part | 'solo-primary' | 'solo-companion';
20
11
  export declare const DeckSettingsSchema: S.mutable<S.Struct<{
21
- showHints: typeof S.Boolean;
22
- enableNativeRedirect: typeof S.Boolean;
23
- enableStatusbar: typeof S.Boolean;
24
- newPlankPositioning: S.Literal<["start", "end"]>;
25
- overscroll: S.Literal<["none", "centering"]>;
12
+ showHints: S.optional<typeof S.Boolean>;
13
+ enableDeck: S.optional<typeof S.Boolean>;
14
+ enableNativeRedirect: S.optional<typeof S.Boolean>;
15
+ enableStatusbar: S.optional<typeof S.Boolean>;
16
+ newPlankPositioning: S.optional<S.Literal<["start", "end"]>>;
17
+ overscroll: S.optional<S.Literal<["none", "centering"]>>;
26
18
  }>>;
27
19
  export type DeckSettingsProps = S.Schema.Type<typeof DeckSettingsSchema>;
28
- declare const LayoutMode: S.Union<[S.Literal<["deck"]>, S.Literal<["solo"]>, S.Literal<["fullscreen"]>]>;
29
- export declare const isLayoutMode: (value: any) => value is LayoutMode;
30
- export type LayoutMode = S.Schema.Type<typeof LayoutMode>;
31
20
  export declare const PlankSizing: S.Record$<typeof S.String, typeof S.Number>;
32
21
  export type PlankSizing = S.Schema.Type<typeof PlankSizing>;
33
- export declare const Deck: S.Struct<{
34
- initialized: S.SchemaClass<boolean, boolean, never>;
22
+ export declare const DeckState: S.Struct<{
23
+ /** If false, the deck has not yet left solo mode and new planks should be soloed. */
24
+ initialized: typeof S.Boolean;
35
25
  active: S.mutable<S.Array$<typeof S.String>>;
26
+ activeCompanions: S.optional<S.mutable<S.Record$<typeof S.String, typeof S.String>>>;
36
27
  inactive: S.mutable<S.Array$<typeof S.String>>;
37
28
  solo: S.optional<typeof S.String>;
38
29
  fullscreen: typeof S.Boolean;
39
30
  plankSizing: S.mutable<S.Record$<typeof S.String, typeof S.Number>>;
31
+ companionFrameSizing: S.mutable<S.Record$<typeof S.String, typeof S.Number>>;
40
32
  }>;
41
- export type Deck = S.Schema.Type<typeof Deck>;
42
- export declare const DeckState: S.mutable<S.Struct<{
33
+ export type DeckState = S.Schema.Type<typeof DeckState>;
34
+ export declare const defaultDeck: DeckState;
35
+ declare const LayoutMode: S.Literal<["deck", "solo", "fullscreen"]>;
36
+ export type LayoutMode = S.Schema.Type<typeof LayoutMode>;
37
+ export declare const isLayoutMode: (value: any) => value is LayoutMode;
38
+ export declare const getMode: (deck: DeckState) => LayoutMode;
39
+ export declare const DeckPluginState: S.mutable<S.Struct<{
43
40
  sidebarState: S.Literal<["closed", "collapsed", "expanded"]>;
44
41
  complementarySidebarState: S.Literal<["closed", "collapsed", "expanded"]>;
45
42
  complementarySidebarPanel: S.optional<typeof S.String>;
46
43
  dialogOpen: typeof S.Boolean;
47
- /**
48
- * Data to be passed to the dialog Surface.
49
- */
44
+ /** Data to be passed to the dialog Surface. */
50
45
  dialogContent: S.optional<typeof S.Any>;
51
46
  dialogBlockAlign: S.optional<S.Literal<["start", "center", "end"]>>;
52
47
  dialogType: S.optional<S.Literal<["default", "alert"]>>;
53
48
  popoverOpen: typeof S.Boolean;
54
49
  popoverSide: S.optional<S.Literal<["top", "right", "bottom", "left"]>>;
55
- /**
56
- * Data to be passed to the popover Surface.
57
- */
50
+ /** Data to be passed to the popover Surface. */
58
51
  popoverContent: S.optional<typeof S.Any>;
59
52
  popoverAnchorId: S.optional<typeof S.String>;
60
53
  toasts: S.mutable<S.Array$<S.Struct<{
@@ -87,37 +80,39 @@ export declare const DeckState: S.mutable<S.Struct<{
87
80
  activeDeck: typeof S.String;
88
81
  previousDeck: typeof S.String;
89
82
  decks: S.mutable<S.Record$<typeof S.String, S.mutable<S.Struct<{
90
- initialized: S.SchemaClass<boolean, boolean, never>;
83
+ /** If false, the deck has not yet left solo mode and new planks should be soloed. */
84
+ initialized: typeof S.Boolean;
91
85
  active: S.mutable<S.Array$<typeof S.String>>;
86
+ activeCompanions: S.optional<S.mutable<S.Record$<typeof S.String, typeof S.String>>>;
92
87
  inactive: S.mutable<S.Array$<typeof S.String>>;
93
88
  solo: S.optional<typeof S.String>;
94
89
  fullscreen: typeof S.Boolean;
95
90
  plankSizing: S.mutable<S.Record$<typeof S.String, typeof S.Number>>;
91
+ companionFrameSizing: S.mutable<S.Record$<typeof S.String, typeof S.Number>>;
96
92
  }>>>>;
97
- previousMode: S.mutable<S.Record$<typeof S.String, S.Union<[S.Literal<["deck"]>, S.Literal<["solo"]>, S.Literal<["fullscreen"]>]>>>;
93
+ previousMode: S.mutable<S.Record$<typeof S.String, S.Literal<["deck", "solo", "fullscreen"]>>>;
98
94
  deck: S.mutable<S.Struct<{
99
- initialized: S.SchemaClass<boolean, boolean, never>;
95
+ /** If false, the deck has not yet left solo mode and new planks should be soloed. */
96
+ initialized: typeof S.Boolean;
100
97
  active: S.mutable<S.Array$<typeof S.String>>;
98
+ activeCompanions: S.optional<S.mutable<S.Record$<typeof S.String, typeof S.String>>>;
101
99
  inactive: S.mutable<S.Array$<typeof S.String>>;
102
100
  solo: S.optional<typeof S.String>;
103
101
  fullscreen: typeof S.Boolean;
104
102
  plankSizing: S.mutable<S.Record$<typeof S.String, typeof S.Number>>;
103
+ companionFrameSizing: S.mutable<S.Record$<typeof S.String, typeof S.Number>>;
105
104
  }>>;
106
- /**
107
- * The identifier of a component to scroll into view when it is mounted.
108
- */
105
+ /** The identifier of a component to scroll into view when it is mounted. */
109
106
  scrollIntoView: S.optional<typeof S.String>;
110
107
  }>>;
111
- export type DeckState = S.Schema.Type<typeof DeckState>;
112
- export declare const getMode: (deck: Deck) => LayoutMode;
113
- export declare const SLUG_PATH_SEPARATOR = "~";
108
+ export type DeckPluginState = S.Schema.Type<typeof DeckPluginState>;
114
109
  export declare const DECK_ACTION: string;
115
110
  export declare namespace DeckAction {
116
- const PartAdjustmentSchema: S.Union<[S.Literal<["close"]>, S.Literal<["solo"]>, S.Literal<["increment-start"]>, S.Literal<["increment-end"]>]>;
111
+ const PartAdjustmentSchema: S.Union<[S.Literal<["close"]>, S.Literal<["companion"]>, S.Literal<["solo"]>, S.Literal<["increment-start"]>, S.Literal<["increment-end"]>]>;
117
112
  export type PartAdjustment = S.Schema.Type<typeof PartAdjustmentSchema>;
118
113
  export const Adjustment: S.mutable<S.Struct<{
119
114
  id: typeof S.String;
120
- type: S.Union<[S.Literal<["close"]>, S.Literal<["solo"]>, S.Literal<["increment-start"]>, S.Literal<["increment-end"]>]>;
115
+ type: S.Union<[S.Literal<["close"]>, S.Literal<["companion"]>, S.Literal<["solo"]>, S.Literal<["increment-start"]>, S.Literal<["increment-end"]>]>;
121
116
  }>>;
122
117
  export type Adjustment = S.Schema.Type<typeof Adjustment>;
123
118
  const Adjust_base: S.TaggedClass<Adjust, `${string}/adjust`, {
@@ -125,13 +120,10 @@ export declare namespace DeckAction {
125
120
  } & {
126
121
  input: S.mutable<S.Struct<{
127
122
  id: typeof S.String;
128
- type: S.Union<[S.Literal<["close"]>, S.Literal<["solo"]>, S.Literal<["increment-start"]>, S.Literal<["increment-end"]>]>;
123
+ type: S.Union<[S.Literal<["close"]>, S.Literal<["companion"]>, S.Literal<["solo"]>, S.Literal<["increment-start"]>, S.Literal<["increment-end"]>]>;
129
124
  }>>;
130
125
  output: typeof S.Void;
131
126
  }>;
132
- /**
133
- * An atomic transaction to apply to the deck, describing which element to move to which location.
134
- */
135
127
  export class Adjust extends Adjust_base {
136
128
  }
137
129
  const UpdatePlankSize_base: S.TaggedClass<UpdatePlankSize, `${string}/update-plank-size`, {
@@ -145,7 +137,17 @@ export declare namespace DeckAction {
145
137
  }>;
146
138
  export class UpdatePlankSize extends UpdatePlankSize_base {
147
139
  }
140
+ const ChangeCompanion_base: S.TaggedClass<ChangeCompanion, `${string}/change-companion`, {
141
+ readonly _tag: S.tag<`${string}/change-companion`>;
142
+ } & {
143
+ input: S.Struct<{
144
+ primary: typeof S.String;
145
+ companion: S.Union<[typeof S.String, typeof S.Null]>;
146
+ }>;
147
+ output: typeof S.Void;
148
+ }>;
149
+ export class ChangeCompanion extends ChangeCompanion_base {
150
+ }
148
151
  export {};
149
152
  }
150
- export {};
151
153
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AACtC,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,gBAAg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AU;;;OAAoE,CAAC;IAC5F,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,UAAU,CAAC,CAAC;;;;;;;;;;IAG1D,MAAM,OAAO,MAAO,SAAQ,WAG1B;KAAG;;;;;;;;;;IAEL,MAAM,OAAO,eAAgB,SAAQ,oBAMnC;KAAG;;;;;;;;;;IAEL,MAAM,OAAO,eAAgB,SAAQ,oBAMnC;KAAG;;CACN"}
@@ -3,4 +3,5 @@ export * from './set-active';
3
3
  export * from './useBreakpoints';
4
4
  export * from './layoutAppliesTopbar';
5
5
  export * from './useHoistStatusbar';
6
+ export * from './useCompanions';
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/util/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/util/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import { type AttentionManager } from '@dxos/plugin-attention';
2
- import { type DeckState } from '../types';
2
+ import { type DeckPluginState } from '../types';
3
3
  export type SetActiveOptions = {
4
4
  next: string[];
5
- state: DeckState;
5
+ state: DeckPluginState;
6
6
  attention?: AttentionManager;
7
7
  };
8
8
  export declare const setActive: ({ next, state, attention }: SetActiveOptions) => string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"set-active.d.ts","sourceRoot":"","sources":["../../../../src/util/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,uBA8BrE,CAAC"}
1
+ {"version":3,"file":"set-active.d.ts","sourceRoot":"","sources":["../../../../src/util/set-active.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE/D,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,UAAU,CAAC;AAEhD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,KAAK,EAAE,eAAe,CAAC;IACvB,SAAS,CAAC,EAAE,gBAAgB,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,SAAS,+BAAgC,gBAAgB,uBA8BrE,CAAC"}
@@ -0,0 +1,8 @@
1
+ export declare const useCompanions: (id?: string) => Readonly<{
2
+ id: string;
3
+ type: string;
4
+ cacheable?: string[];
5
+ properties: Readonly<Record<string, any>>;
6
+ data: any;
7
+ }>[];
8
+ //# sourceMappingURL=useCompanions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCompanions.d.ts","sourceRoot":"","sources":["../../../../src/util/useCompanions.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,aAAa,QAAS,MAAM;;;;;;IAKxC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useHoistStatusbar.d.ts","sourceRoot":"","sources":["../../../../src/util/useHoistStatusbar.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,iBAAiB,eAAgB,MAAM,YAOnD,CAAC"}
1
+ {"version":3,"file":"useHoistStatusbar.d.ts","sourceRoot":"","sources":["../../../../src/util/useHoistStatusbar.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,iBAAiB,eAAgB,MAAM,KAAG,OAOtD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/plugin-deck",
3
- "version": "0.8.1-staging.391c573",
3
+ "version": "0.8.1-staging.9eaf14f",
4
4
  "description": "DXOS Surface plugin for the main application layout.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -35,29 +35,28 @@
35
35
  "@preact/signals-core": "^1.6.0",
36
36
  "effect": "3.13.3",
37
37
  "immer": "^10.1.1",
38
- "@dxos/app-framework": "0.8.1-staging.391c573",
39
- "@dxos/async": "0.8.1-staging.391c573",
40
- "@dxos/artifact": "0.8.1-staging.391c573",
41
- "@dxos/debug": "0.8.1-staging.391c573",
42
- "@dxos/echo-schema": "0.8.1-staging.391c573",
43
- "@dxos/echo-signals": "0.8.1-staging.391c573",
44
- "@dxos/keyboard": "0.8.1-staging.391c573",
45
- "@dxos/live-object": "0.8.1-staging.391c573",
46
- "@dxos/invariant": "0.8.1-staging.391c573",
47
- "@dxos/log": "0.8.1-staging.391c573",
48
- "@dxos/local-storage": "0.8.1-staging.391c573",
49
- "@dxos/plugin-attention": "0.8.1-staging.391c573",
50
- "@dxos/plugin-client": "0.8.1-staging.391c573",
51
- "@dxos/plugin-graph": "0.8.1-staging.391c573",
52
- "@dxos/plugin-observability": "0.8.1-staging.391c573",
53
- "@dxos/plugin-theme": "0.8.1-staging.391c573",
54
- "@dxos/react-client": "0.8.1-staging.391c573",
55
- "@dxos/react-ui-attention": "0.8.1-staging.391c573",
56
- "@dxos/react-ui-stack": "0.8.1-staging.391c573",
57
- "@dxos/react-ui-tabs": "0.8.1-staging.391c573",
58
- "@dxos/react-ui-text-tooltip": "0.8.1-staging.391c573",
59
- "@dxos/react-ui-form": "0.8.1-staging.391c573",
60
- "@dxos/util": "0.8.1-staging.391c573"
38
+ "@dxos/app-framework": "0.8.1-staging.9eaf14f",
39
+ "@dxos/artifact": "0.8.1-staging.9eaf14f",
40
+ "@dxos/async": "0.8.1-staging.9eaf14f",
41
+ "@dxos/echo-schema": "0.8.1-staging.9eaf14f",
42
+ "@dxos/debug": "0.8.1-staging.9eaf14f",
43
+ "@dxos/echo-signals": "0.8.1-staging.9eaf14f",
44
+ "@dxos/invariant": "0.8.1-staging.9eaf14f",
45
+ "@dxos/keyboard": "0.8.1-staging.9eaf14f",
46
+ "@dxos/live-object": "0.8.1-staging.9eaf14f",
47
+ "@dxos/log": "0.8.1-staging.9eaf14f",
48
+ "@dxos/plugin-attention": "0.8.1-staging.9eaf14f",
49
+ "@dxos/plugin-graph": "0.8.1-staging.9eaf14f",
50
+ "@dxos/local-storage": "0.8.1-staging.9eaf14f",
51
+ "@dxos/plugin-observability": "0.8.1-staging.9eaf14f",
52
+ "@dxos/plugin-theme": "0.8.1-staging.9eaf14f",
53
+ "@dxos/react-ui-attention": "0.8.1-staging.9eaf14f",
54
+ "@dxos/react-client": "0.8.1-staging.9eaf14f",
55
+ "@dxos/react-ui-form": "0.8.1-staging.9eaf14f",
56
+ "@dxos/react-ui-tabs": "0.8.1-staging.9eaf14f",
57
+ "@dxos/react-ui-stack": "0.8.1-staging.9eaf14f",
58
+ "@dxos/react-ui-text-tooltip": "0.8.1-staging.9eaf14f",
59
+ "@dxos/util": "0.8.1-staging.9eaf14f"
61
60
  },
62
61
  "devDependencies": {
63
62
  "@phosphor-icons/react": "^2.1.5",
@@ -66,16 +65,16 @@
66
65
  "react": "~18.2.0",
67
66
  "react-dom": "~18.2.0",
68
67
  "vite": "5.4.7",
69
- "@dxos/react-ui-theme": "0.8.1-staging.391c573",
70
- "@dxos/react-ui": "0.8.1-staging.391c573",
71
- "@dxos/storybook-utils": "0.8.1-staging.391c573"
68
+ "@dxos/react-ui-theme": "0.8.1-staging.9eaf14f",
69
+ "@dxos/react-ui": "0.8.1-staging.9eaf14f",
70
+ "@dxos/storybook-utils": "0.8.1-staging.9eaf14f"
72
71
  },
73
72
  "peerDependencies": {
74
73
  "@phosphor-icons/react": "^2.0.5",
75
74
  "react": "~18.2.0",
76
75
  "react-dom": "~18.2.0",
77
- "@dxos/react-ui": "0.8.1-staging.391c573",
78
- "@dxos/react-ui-theme": "0.8.1-staging.391c573"
76
+ "@dxos/react-ui": "0.8.1-staging.9eaf14f",
77
+ "@dxos/react-ui-theme": "0.8.1-staging.9eaf14f"
79
78
  },
80
79
  "publishConfig": {
81
80
  "access": "public"
package/src/DeckPlugin.ts CHANGED
@@ -56,7 +56,6 @@ export const DeckPlugin = () =>
56
56
  defineModule({
57
57
  id: `${meta.id}/module/react-root`,
58
58
  activatesOn: Events.Startup,
59
- activatesBefore: [DeckEvents.SetupComplementaryPanels],
60
59
  activate: ReactRoot,
61
60
  }),
62
61
  defineModule({
@@ -6,10 +6,9 @@ import { defineCapability } from '@dxos/app-framework';
6
6
  import { type DeepReadonly } from '@dxos/util';
7
7
 
8
8
  import { DECK_PLUGIN } from '../meta';
9
- import { type DeckState, type Panel } from '../types';
9
+ import { type DeckPluginState } from '../types';
10
10
 
11
11
  export namespace DeckCapabilities {
12
- export const DeckState = defineCapability<DeepReadonly<DeckState>>(`${DECK_PLUGIN}/capability/state`);
13
- export const MutableDeckState = defineCapability<DeckState>(`${DECK_PLUGIN}/capability/state`);
14
- export const ComplementaryPanel = defineCapability<Panel>(`${DECK_PLUGIN}/capability/complementary-panel`);
12
+ export const DeckState = defineCapability<DeepReadonly<DeckPluginState>>(`${DECK_PLUGIN}/capability/state`);
13
+ export const MutableDeckState = defineCapability<DeckPluginState>(`${DECK_PLUGIN}/capability/state`);
15
14
  }