@dxos/plugin-deck 0.7.0 → 0.7.1-staging.7f6f91c

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.
@@ -150,7 +150,8 @@ var PlankControl = ({ icon, label, ...props }) => {
150
150
  }, /* @__PURE__ */ React2.createElement("span", {
151
151
  className: "sr-only"
152
152
  }, label), /* @__PURE__ */ React2.createElement(Icon, {
153
- icon
153
+ icon,
154
+ size: 4
154
155
  }))), /* @__PURE__ */ React2.createElement(Tooltip.Portal, null, /* @__PURE__ */ React2.createElement(Tooltip.Content, {
155
156
  side: "bottom",
156
157
  classNames: "z-[70]"
@@ -158,7 +159,7 @@ var PlankControl = ({ icon, label, ...props }) => {
158
159
  };
159
160
  var PlankControls = /* @__PURE__ */ forwardRef(({ onClick, variant = "default", capabilities: can, isSolo, pin, close = false, children, ...props }, forwardedRef) => {
160
161
  const { t } = useTranslation(DECK_PLUGIN);
161
- const buttonClassNames = variant === "hide-disabled" ? "disabled:hidden !p-1" : "!p-1";
162
+ const buttonClassNames = variant === "hide-disabled" ? "disabled:hidden !pli-2 !plb-3" : "!pli-2 !plb-3";
162
163
  return /* @__PURE__ */ React2.createElement(ButtonGroup, {
163
164
  ...props,
164
165
  ref: forwardedRef
@@ -172,10 +173,10 @@ var PlankControls = /* @__PURE__ */ forwardRef(({ onClick, variant = "default",
172
173
  onClick: () => onClick?.("pin-start"),
173
174
  icon: "ph--caret-line-left--regular"
174
175
  }), can.solo && /* @__PURE__ */ React2.createElement(PlankControl, {
175
- label: t("solo plank label"),
176
+ label: isSolo ? t("show deck plank label") : t("show solo plank label"),
176
177
  classNames: buttonClassNames,
177
178
  onClick: () => onClick?.("solo"),
178
- icon: isSolo ? "ph--arrows-in--regular" : "ph--arrows-out--regular"
179
+ icon: isSolo ? "ph--vibrate--regular" : "ph--arrows-out--regular"
179
180
  }), !isSolo && can.solo && /* @__PURE__ */ React2.createElement(React2.Fragment, null, /* @__PURE__ */ React2.createElement(PlankControl, {
180
181
  label: t("increment start label"),
181
182
  disabled: !can.incrementStart,
@@ -201,7 +202,7 @@ var PlankControls = /* @__PURE__ */ forwardRef(({ onClick, variant = "default",
201
202
  classNames: buttonClassNames,
202
203
  onClick: () => onClick?.("close"),
203
204
  "data-testid": "plankHeading.close",
204
- icon: close === "minify-start" ? "ph--caret-line-left--regular" : close === "minify-end" ? "ph--caret-line-right--regular" : "ph--minus--regular"
205
+ icon: close === "minify-start" ? "ph--caret-line-left--regular" : close === "minify-end" ? "ph--caret-line-right--regular" : "ph--x--regular"
205
206
  }), children);
206
207
  });
207
208
 
@@ -247,7 +248,7 @@ var NodePlankHeading = /* @__PURE__ */ memo(({ coordinate, node, canIncrementSta
247
248
  canIncrementEnd
248
249
  ]);
249
250
  return /* @__PURE__ */ React3.createElement(StackItem.Heading, {
250
- classNames: "pie-1"
251
+ classNames: "pie-1 border-be border-separator"
251
252
  }, /* @__PURE__ */ React3.createElement(ActionRoot, null, node ? /* @__PURE__ */ React3.createElement(StackItem.Sigil, {
252
253
  icon,
253
254
  related: layoutPart === "complementary",
@@ -345,8 +346,9 @@ var NodePlankHeading = /* @__PURE__ */ memo(({ coordinate, node, canIncrementSta
345
346
  onClick: () => layoutContext.complementarySidebarOpen = !layoutContext.complementarySidebarOpen,
346
347
  variant: "ghost",
347
348
  label: t("open complementary sidebar label"),
348
- classNames: "!p-1 -scale-x-100",
349
- icon: "ph--sidebar--regular",
349
+ classNames: "!pli-2 !plb-3 [&>svg]:-scale-x-100",
350
+ icon: "ph--sidebar-simple--regular",
351
+ size: 4,
350
352
  tooltipZIndex: "70"
351
353
  })));
352
354
  });
@@ -436,12 +438,12 @@ var ComplementarySidebar = ({ panels, current }) => {
436
438
  value: {
437
439
  size: "contain",
438
440
  orientation: "horizontal",
439
- separators: true,
441
+ separators: false,
440
442
  rail: true
441
443
  }
442
444
  }, /* @__PURE__ */ React6.createElement("div", {
443
445
  role: "none",
444
- className: mx2(railGridHorizontal, "grid-cols-1 bs-full divide-y divide-separator")
446
+ className: mx2(railGridHorizontal, "grid-cols-1 bs-full")
445
447
  }, /* @__PURE__ */ React6.createElement(NodePlankHeading, {
446
448
  coordinate,
447
449
  node,
@@ -609,7 +611,7 @@ var Plank = /* @__PURE__ */ memo2(({ entry, layoutParts, part, layoutMode, order
609
611
  popoverAnchorId
610
612
  ]);
611
613
  const placeholder = useMemo3(() => /* @__PURE__ */ React10.createElement(PlankLoading, null), []);
612
- const className = mx4("attention-surface relative", isSolo && mainIntrinsicSize, isSolo && railGridHorizontal2, isSolo && "grid absolute inset-0 divide-separator divide-y", last && "!border-li border-separator");
614
+ const className = mx4("attention-surface relative", isSolo && mainIntrinsicSize, isSolo && railGridHorizontal2, isSolo ? "grid absolute inset-0" : "!border-separator border-li");
613
615
  return /* @__PURE__ */ React10.createElement(Root, {
614
616
  ref: rootElement,
615
617
  "data-testid": "deck.plank",
@@ -886,6 +888,7 @@ var DeckLayout = ({ layoutParts, toasts, overscroll, showHints, panels, onDismis
886
888
  inert: ""
887
889
  }
888
890
  }, /* @__PURE__ */ React14.createElement(Stack, {
891
+ separators: false,
889
892
  orientation: "horizontal",
890
893
  size: "contain",
891
894
  classNames: [
@@ -917,7 +920,7 @@ var DeckLayout = ({ layoutParts, toasts, overscroll, showHints, panels, onDismis
917
920
  value: {
918
921
  size: "contain",
919
922
  orientation: "horizontal",
920
- separators: true,
923
+ separators: false,
921
924
  rail: true
922
925
  }
923
926
  }, /* @__PURE__ */ React14.createElement(Plank, {
@@ -959,7 +962,7 @@ var DeckLayout = ({ layoutParts, toasts, overscroll, showHints, panels, onDismis
959
962
  // packages/plugins/plugin-deck/src/components/LayoutSettings.tsx
960
963
  import React15 from "react";
961
964
  import { Input, Select, useTranslation as useTranslation6 } from "@dxos/react-ui";
962
- import { DeprecatedFormInput } from "@dxos/react-ui-data";
965
+ import { DeprecatedFormInput } from "@dxos/react-ui-form";
963
966
  var isSocket = !!globalThis.__args;
964
967
  var LayoutSettings = ({ settings }) => {
965
968
  const { t } = useTranslation6(DECK_PLUGIN);
@@ -1158,7 +1161,7 @@ var translations_default = [
1158
1161
  [DECK_PLUGIN]: {
1159
1162
  "main header label": "Main header",
1160
1163
  "open navigation sidebar label": "Open navigation sidebar",
1161
- "open complementary sidebar label": "Open complementary sidebar",
1164
+ "open complementary sidebar label": "Open sidebar",
1162
1165
  "plugin error message": "Content failed to render.",
1163
1166
  "content fallback message": "Unsupported",
1164
1167
  "content fallback description": "No plugin had a response for the address you navigated\xA0to. Double-check the URL, and ensure you\u2019ve enabled a plugin that supports the\xA0object.",
@@ -1186,7 +1189,8 @@ var translations_default = [
1186
1189
  "pin end label": "Pin to the right sidebar",
1187
1190
  "increment start label": "Move to the left",
1188
1191
  "increment end label": "Move to the right",
1189
- "solo plank label": "Toggle solo mode",
1192
+ "show deck plank label": "Show deck",
1193
+ "show solo plank label": "Maximize",
1190
1194
  "close label": "Close",
1191
1195
  "minify label": "Minify",
1192
1196
  "settings overscroll label": "Plank Overscrolling",
@@ -1391,6 +1395,7 @@ var DeckPlugin = ({ observability } = {}) => {
1391
1395
  const layoutFromUri = uriToSoloPart(pathname);
1392
1396
  if (!layoutFromUri) {
1393
1397
  handleSetLocation(startingLayout);
1398
+ layout.values.layoutMode = "deck";
1394
1399
  return;
1395
1400
  }
1396
1401
  handleSetLocation(mergeLayoutParts(layoutFromUri, startingLayout));
@@ -1515,7 +1520,7 @@ var DeckPlugin = ({ observability } = {}) => {
1515
1520
  } else {
1516
1521
  log.warn("Invalid layout mode", intent?.data?.layoutMode, {
1517
1522
  F: __dxlog_file,
1518
- L: 378,
1523
+ L: 379,
1519
1524
  S: void 0,
1520
1525
  C: (f, a) => f(...a)
1521
1526
  });