@dxos/plugin-deck 0.6.13-main.548ca8d → 0.6.13-main.ed424a1

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.
@@ -30,7 +30,7 @@ import { Surface as Surface9, firstIdInPart, usePlugin } from "@dxos/app-framewo
30
30
  import { Button as Button3, Dialog, Main as Main3, Popover as Popover2, useOnTransition, useTranslation as useTranslation5 } from "@dxos/react-ui";
31
31
  import { useAttended as useAttended3 } from "@dxos/react-ui-attention";
32
32
  import { Deck } from "@dxos/react-ui-deck";
33
- import { getSize } from "@dxos/react-ui-theme";
33
+ import { getSize, mainPaddingTransitions as mainPaddingTransitions2 } from "@dxos/react-ui-theme";
34
34
 
35
35
  // packages/plugins/plugin-deck/src/components/DeckLayout/ActiveNode.tsx
36
36
  import React from "react";
@@ -383,16 +383,17 @@ var ComplementarySidebar = ({ layoutParts, flatDeck }) => {
383
383
  popoverAnchorId,
384
384
  flatDeck,
385
385
  actions
386
- }), node && /* @__PURE__ */ React5.createElement(Surface3, {
386
+ }), /* @__PURE__ */ React5.createElement("div", {
387
+ className: "row-span-2"
388
+ }, node && /* @__PURE__ */ React5.createElement(Surface3, {
387
389
  role: `complementary--${part}`,
388
390
  data: {
389
391
  subject: node.properties.object,
390
392
  popoverAnchorId
391
393
  },
392
- limit: 1,
393
394
  fallback: PlankContentError,
394
395
  placeholder: /* @__PURE__ */ React5.createElement(PlankLoading, null)
395
- })));
396
+ }))));
396
397
  };
397
398
 
398
399
  // packages/plugins/plugin-deck/src/components/DeckLayout/ContentEmpty.tsx
@@ -640,13 +641,13 @@ var Sidebar = ({ layoutParts }) => {
640
641
  // packages/plugins/plugin-deck/src/components/DeckLayout/StatusBar.tsx
641
642
  import React11 from "react";
642
643
  import { Surface as Surface8 } from "@dxos/app-framework";
643
- import { mainPadding, mx as mx4 } from "@dxos/react-ui-theme";
644
+ import { mainPadding, mainPaddingTransitions, mx as mx4 } from "@dxos/react-ui-theme";
644
645
  var StatusBar = ({ showHints }) => {
645
646
  const sizeAttrs = useMainSize();
646
647
  return /* @__PURE__ */ React11.createElement("div", {
647
648
  role: "none",
648
649
  ...sizeAttrs,
649
- className: mx4("fixed flex justify-between block-end-0 inset-inline-0 items-center border-bs border-separator z-[2]", mainPadding)
650
+ className: mx4("fixed flex justify-between block-end-0 inset-inline-0 items-center border-bs border-separator z-[2]", mainPadding, mainPaddingTransitions)
650
651
  }, /* @__PURE__ */ React11.createElement("div", {
651
652
  role: "none"
652
653
  }, showHints && /* @__PURE__ */ React11.createElement(Surface8, {
@@ -705,7 +706,10 @@ var getEffectivePart = (partName, layoutMode) => layoutMode === "solo" && partNa
705
706
  import { PLANK_DEFAULTS } from "@dxos/react-ui-deck";
706
707
  var calculateOverscroll = (planks, plankSizing, sidebarOpen, complementarySidebarOpen) => {
707
708
  if (!planks?.length) {
708
- return;
709
+ return {
710
+ paddingInlineStart: 0,
711
+ paddingInlineEnd: 0
712
+ };
709
713
  }
710
714
  const sidebarWidth = sidebarOpen ? "270px" : "0px";
711
715
  const complementarySidebarWidth = complementarySidebarOpen ? "360px" : "0px";
@@ -715,8 +719,8 @@ var calculateOverscroll = (planks, plankSizing, sidebarOpen, complementarySideba
715
719
  const plankSize = getPlankSize(plank.id);
716
720
  const overscrollPadding = `max(0px, calc(((100dvw - ${sidebarWidth} - ${complementarySidebarWidth} - (${plankSize} + 20px)) / 2)))`;
717
721
  return {
718
- paddingLeft: overscrollPadding,
719
- paddingRight: overscrollPadding
722
+ paddingInlineStart: overscrollPadding,
723
+ paddingInlineEnd: overscrollPadding
720
724
  };
721
725
  } else {
722
726
  const first = planks[0];
@@ -724,8 +728,8 @@ var calculateOverscroll = (planks, plankSizing, sidebarOpen, complementarySideba
724
728
  const last = planks[planks.length - 1];
725
729
  const lastSize = getPlankSize(last.id);
726
730
  return {
727
- paddingLeft: `max(0px, calc(((100dvw - (${firstSize} + 20px)) / 2) - ${sidebarWidth}))`,
728
- paddingRight: `max(0px, calc(((100dvw - (${lastSize} + 20px)) / 2) - ${complementarySidebarWidth}))`
731
+ paddingInlineStart: `max(0px, calc(((100dvw - (${firstSize} + 20px)) / 2) - ${sidebarWidth}))`,
732
+ paddingInlineEnd: `max(0px, calc(((100dvw - (${lastSize} + 20px)) / 2) - ${complementarySidebarWidth}))`
729
733
  };
730
734
  }
731
735
  };
@@ -860,6 +864,7 @@ var DeckLayout = ({ layoutParts, toasts, flatDeck, overscroll, showHints, slots,
860
864
  style: padding,
861
865
  classNames: [
862
866
  !flatDeck && "bg-deck",
867
+ mainPaddingTransitions2,
863
868
  "absolute inset-0",
864
869
  slots?.wallpaper?.classNames
865
870
  ],