@dxos/plugin-deck 0.8.4-main.72ec0f3 → 0.8.4-main.7ace549

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.
@@ -102,8 +102,8 @@ var CheckAppScheme = lazy(() => import("./check-app-scheme-HIEVFAAX.mjs"));
102
102
  var DeckSettings = lazy(() => import("./settings-SDPTOCCM.mjs"));
103
103
  var DeckState = lazy(() => import("./state-7IFAGZQO.mjs"));
104
104
  var LayoutIntentResolver = lazy(() => import("./intent-resolver-UA4YQGAC.mjs"));
105
- var ReactRoot = lazy(() => import("./react-root-76RSDA6R.mjs"));
106
- var ReactSurface = lazy(() => import("./react-surface-2CSKDN7K.mjs"));
105
+ var ReactRoot = lazy(() => import("./react-root-JAMHKYWN.mjs"));
106
+ var ReactSurface = lazy(() => import("./react-surface-6LW337ZT.mjs"));
107
107
  var Toolkit = lazy(() => import("./toolkit-L5CFXJCF.mjs"));
108
108
  var UrlHandler = lazy(() => import("./url-handler-QEYGYE2H.mjs"));
109
109
 
@@ -125,4 +125,4 @@ export {
125
125
  Toolkit,
126
126
  UrlHandler
127
127
  };
128
- //# sourceMappingURL=chunk-OLDBLCAX.mjs.map
128
+ //# sourceMappingURL=chunk-QKCGZ45E.mjs.map
@@ -6,7 +6,7 @@ import {
6
6
  useHoistStatusbar,
7
7
  useMainSize,
8
8
  useNodeActionExpander
9
- } from "./chunk-OLDBLCAX.mjs";
9
+ } from "./chunk-QKCGZ45E.mjs";
10
10
  import {
11
11
  calculateOverscroll,
12
12
  layoutAppliesTopbar,
@@ -670,11 +670,11 @@ var ToggleComplementarySidebarButton = ({ inR0, classNames, current }) => {
670
670
  const companions = useDeckCompanions();
671
671
  const handleClick = useCallback4(async () => {
672
672
  layoutContext.complementarySidebarState = layoutContext.complementarySidebarState === "expanded" ? "collapsed" : "expanded";
673
- const firstCompanion = companions[0];
674
- if (layoutContext.complementarySidebarState === "expanded" && !current && firstCompanion) {
673
+ const subject = layoutContext.complementarySidebarPanel ?? (companions[0] && getCompanionId(companions[0].id));
674
+ if (layoutContext.complementarySidebarState === "expanded" && !current && subject) {
675
675
  await dispatch(createIntent4(LayoutAction3.UpdateComplementary, {
676
676
  part: "complementary",
677
- subject: getCompanionId(firstCompanion.id)
677
+ subject
678
678
  }));
679
679
  }
680
680
  }, [
@@ -1550,4 +1550,4 @@ export {
1550
1550
  DeckLayout,
1551
1551
  DeckSettings
1552
1552
  };
1553
- //# sourceMappingURL=chunk-SDIYDK47.mjs.map
1553
+ //# sourceMappingURL=chunk-VUJ6UNIJ.mjs.map