@dxos/plugin-deck 0.6.12-main.89e9959 → 0.6.12-main.ac23639

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 (31) hide show
  1. package/dist/lib/browser/{chunk-YVHGFQQR.mjs → chunk-GVOGPULO.mjs} +1 -1
  2. package/dist/lib/browser/chunk-GVOGPULO.mjs.map +7 -0
  3. package/dist/lib/browser/index.mjs +124 -52
  4. package/dist/lib/browser/index.mjs.map +3 -3
  5. package/dist/lib/browser/meta.json +1 -1
  6. package/dist/lib/browser/meta.mjs +1 -1
  7. package/dist/types/src/components/DeckLayout/ComplementarySidebar.d.ts +1 -1
  8. package/dist/types/src/components/DeckLayout/ComplementarySidebar.d.ts.map +1 -1
  9. package/dist/types/src/components/DeckLayout/DeckLayout.d.ts +2 -2
  10. package/dist/types/src/components/DeckLayout/DeckLayout.d.ts.map +1 -1
  11. package/dist/types/src/components/DeckLayout/NodePlankHeading.d.ts +3 -1
  12. package/dist/types/src/components/DeckLayout/NodePlankHeading.d.ts.map +1 -1
  13. package/dist/types/src/components/DeckLayout/StatusBar.d.ts +3 -1
  14. package/dist/types/src/components/DeckLayout/StatusBar.d.ts.map +1 -1
  15. package/dist/types/src/components/LayoutSettings.d.ts.map +1 -1
  16. package/dist/types/src/meta.d.ts.map +1 -1
  17. package/dist/types/src/translations.d.ts +3 -1
  18. package/dist/types/src/translations.d.ts.map +1 -1
  19. package/dist/types/src/types.d.ts +1 -1
  20. package/dist/types/src/types.d.ts.map +1 -1
  21. package/package.json +26 -26
  22. package/src/DeckPlugin.tsx +3 -3
  23. package/src/components/DeckLayout/ComplementarySidebar.tsx +56 -6
  24. package/src/components/DeckLayout/DeckLayout.tsx +4 -11
  25. package/src/components/DeckLayout/NodePlankHeading.tsx +4 -2
  26. package/src/components/DeckLayout/StatusBar.tsx +10 -2
  27. package/src/components/LayoutSettings.tsx +5 -8
  28. package/src/meta.ts +3 -1
  29. package/src/translations.ts +3 -1
  30. package/src/types.ts +1 -1
  31. package/dist/lib/browser/chunk-YVHGFQQR.mjs.map +0 -7
@@ -9,4 +9,4 @@ export {
9
9
  DECK_PLUGIN,
10
10
  meta_default
11
11
  };
12
- //# sourceMappingURL=chunk-YVHGFQQR.mjs.map
12
+ //# sourceMappingURL=chunk-GVOGPULO.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/meta.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type PluginMeta } from '@dxos/app-framework';\n\nexport const DECK_PLUGIN = 'dxos.org/plugin/deck';\n\nexport default {\n id: DECK_PLUGIN,\n name: 'Deck',\n} satisfies PluginMeta;\n"],
5
+ "mappings": ";AAMO,IAAMA,cAAc;AAE3B,IAAA,eAAe;EACbC,IAAID;EACJE,MAAM;AACR;",
6
+ "names": ["DECK_PLUGIN", "id", "name"]
7
+ }
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  DECK_PLUGIN,
3
3
  meta_default
4
- } from "./chunk-YVHGFQQR.mjs";
4
+ } from "./chunk-GVOGPULO.mjs";
5
5
 
6
6
  // packages/plugins/plugin-deck/src/DeckPlugin.tsx
7
7
  import { batch, effect } from "@preact/signals-core";
8
8
  import { setAutoFreeze } from "immer";
9
9
  import React15 from "react";
10
- import { IntentAction, LayoutAction as LayoutAction3, NavigationAction as NavigationAction3, parseGraphPlugin, parseIntentPlugin, resolvePlugin, Toast as ToastSchema, SLUG_PATH_SEPARATOR as SLUG_PATH_SEPARATOR4, isLayoutParts, isLayoutAdjustment, isLayoutMode, openIds as openIds2 } from "@dxos/app-framework";
10
+ import { IntentAction, LayoutAction as LayoutAction3, NavigationAction as NavigationAction4, parseGraphPlugin, parseIntentPlugin, resolvePlugin, Toast as ToastSchema, SLUG_PATH_SEPARATOR as SLUG_PATH_SEPARATOR4, isLayoutParts, isLayoutAdjustment, isLayoutMode, openIds as openIds2 } from "@dxos/app-framework";
11
11
  import { create, getTypename, isReactiveObject } from "@dxos/echo-schema";
12
12
  import { LocalStorageStore } from "@dxos/local-storage";
13
13
  import { log } from "@dxos/log";
@@ -24,7 +24,7 @@ var SURFACE_PREFIX = "surface:";
24
24
 
25
25
  // packages/plugins/plugin-deck/src/components/DeckLayout/DeckLayout.tsx
26
26
  import { Sidebar as MenuIcon } from "@phosphor-icons/react";
27
- import React13, { useCallback as useCallback2, useEffect as useEffect5, useMemo as useMemo2, useRef as useRef2 } from "react";
27
+ import React13, { useCallback as useCallback2, useEffect as useEffect5, useMemo as useMemo3, useRef as useRef2 } from "react";
28
28
  import { Surface as Surface9, firstIdInPart, usePlugin } from "@dxos/app-framework";
29
29
  import { Button as Button3, Dialog, Main as Main3, Popover as Popover2, useOnTransition, useTranslation as useTranslation5 } from "@dxos/react-ui";
30
30
  import { useAttended as useAttended3 } from "@dxos/react-ui-attention";
@@ -115,8 +115,8 @@ var ActiveNode = ({ id }) => {
115
115
  };
116
116
 
117
117
  // packages/plugins/plugin-deck/src/components/DeckLayout/ComplementarySidebar.tsx
118
- import React5 from "react";
119
- import { SLUG_PATH_SEPARATOR as SLUG_PATH_SEPARATOR2, Surface as Surface3 } from "@dxos/app-framework";
118
+ import React5, { useMemo } from "react";
119
+ import { NavigationAction as NavigationAction2, SLUG_PATH_SEPARATOR as SLUG_PATH_SEPARATOR2, Surface as Surface3, useIntentDispatcher as useIntentDispatcher2 } from "@dxos/app-framework";
120
120
  import { useGraph as useGraph3 } from "@dxos/plugin-graph";
121
121
  import { Main } from "@dxos/react-ui";
122
122
  import { useAttended } from "@dxos/react-ui-attention";
@@ -130,7 +130,7 @@ import { useGraph as useGraph2 } from "@dxos/plugin-graph";
130
130
  import { Icon, Popover, toLocalizedString, useMediaQuery, useTranslation } from "@dxos/react-ui";
131
131
  import { PlankHeading } from "@dxos/react-ui-deck";
132
132
  import { TextTooltip } from "@dxos/react-ui-text-tooltip";
133
- var NodePlankHeading = ({ node, id, layoutParts, layoutPart, popoverAnchorId, pending, flatDeck }) => {
133
+ var NodePlankHeading = ({ node, id, layoutParts, layoutPart, popoverAnchorId, pending, flatDeck, actions = [] }) => {
134
134
  const { t } = useTranslation(DECK_PLUGIN);
135
135
  const { graph } = useGraph2();
136
136
  const icon = node?.properties?.icon ?? "ph--placeholder--regular";
@@ -167,7 +167,10 @@ var NodePlankHeading = ({ node, id, layoutParts, layoutPart, popoverAnchorId, pe
167
167
  related: layoutPart === "complementary",
168
168
  attendableId,
169
169
  triggerLabel: t("actions menu label"),
170
- actions: graph.actions(node),
170
+ actions: [
171
+ actions,
172
+ graph.actions(node)
173
+ ].filter((a) => a.length > 0),
171
174
  onAction: (action) => typeof action.data === "function" && action.data?.({
172
175
  node: action,
173
176
  caller: DECK_PLUGIN
@@ -307,13 +310,78 @@ var LayoutContext = createContext(null);
307
310
  var useLayout = () => useContext(LayoutContext) ?? raise(new Error("Missing LayoutContext"));
308
311
 
309
312
  // packages/plugins/plugin-deck/src/components/DeckLayout/ComplementarySidebar.tsx
310
- var ComplementarySidebar = ({ context, layoutParts, flatDeck }) => {
313
+ var panels = [
314
+ "comments",
315
+ "settings"
316
+ ];
317
+ var getPanel = (part) => {
318
+ if (part && panels.findIndex((panel) => panel === part) !== -1) {
319
+ return part;
320
+ } else {
321
+ return "settings";
322
+ }
323
+ };
324
+ var ComplementarySidebar = ({ layoutParts, flatDeck }) => {
311
325
  const { popoverAnchorId } = useLayout();
312
326
  const attended = useAttended();
313
- const id = attended[0] ? `${attended[0]}${SLUG_PATH_SEPARATOR2}${context}` : void 0;
327
+ const part = getPanel(layoutParts.complementary?.[0].id);
328
+ const id = attended[0] ? `${attended[0]}${SLUG_PATH_SEPARATOR2}${part}` : void 0;
314
329
  const { graph } = useGraph3();
315
330
  const node = useNode(graph, id);
331
+ const dispatch = useIntentDispatcher2();
316
332
  useNodeActionExpander(node);
333
+ const actions = useMemo(() => [
334
+ {
335
+ id: "complementary-settings",
336
+ data: () => {
337
+ void dispatch({
338
+ action: NavigationAction2.OPEN,
339
+ data: {
340
+ activeParts: {
341
+ complementary: "settings"
342
+ }
343
+ }
344
+ });
345
+ },
346
+ properties: {
347
+ label: [
348
+ "settings label",
349
+ {
350
+ ns: DECK_PLUGIN
351
+ }
352
+ ],
353
+ icon: "ph--gear--regular",
354
+ menuItemType: "toggle",
355
+ isChecked: part === "settings"
356
+ }
357
+ },
358
+ {
359
+ id: "complementary-comments",
360
+ data: () => {
361
+ void dispatch({
362
+ action: NavigationAction2.OPEN,
363
+ data: {
364
+ activeParts: {
365
+ complementary: "comments"
366
+ }
367
+ }
368
+ });
369
+ },
370
+ properties: {
371
+ label: [
372
+ "comments label",
373
+ {
374
+ ns: DECK_PLUGIN
375
+ }
376
+ ],
377
+ icon: "ph--chat-text--regular",
378
+ menuItemType: "toggle",
379
+ isChecked: part === "comments"
380
+ }
381
+ }
382
+ ], [
383
+ part
384
+ ]);
317
385
  return /* @__PURE__ */ React5.createElement(Main.ComplementarySidebar, null, /* @__PURE__ */ React5.createElement("div", {
318
386
  role: "none",
319
387
  className: mx2(deckGrid, "grid-cols-1 bs-full")
@@ -323,12 +391,12 @@ var ComplementarySidebar = ({ context, layoutParts, flatDeck }) => {
323
391
  layoutParts,
324
392
  layoutPart: "complementary",
325
393
  popoverAnchorId,
326
- flatDeck
394
+ flatDeck,
395
+ actions
327
396
  }), node && /* @__PURE__ */ React5.createElement(Surface3, {
328
- role: "article",
397
+ role: `complementary--${part}`,
329
398
  data: {
330
399
  subject: node.properties.object,
331
- part: "complementary",
332
400
  popoverAnchorId
333
401
  },
334
402
  limit: 1,
@@ -395,7 +463,7 @@ var Fullscreen = ({ id }) => {
395
463
  // packages/plugins/plugin-deck/src/components/DeckLayout/Plank.tsx
396
464
  import { Plus } from "@phosphor-icons/react";
397
465
  import React9, { useCallback, useLayoutEffect, useRef } from "react";
398
- import { LayoutAction as LayoutAction2, NavigationAction as NavigationAction2, Surface as Surface6, useIntentDispatcher as useIntentDispatcher2 } from "@dxos/app-framework";
466
+ import { LayoutAction as LayoutAction2, NavigationAction as NavigationAction3, Surface as Surface6, useIntentDispatcher as useIntentDispatcher3 } from "@dxos/app-framework";
399
467
  import { debounce } from "@dxos/async";
400
468
  import { useGraph as useGraph5 } from "@dxos/plugin-graph";
401
469
  import { Button, Tooltip, useTranslation as useTranslation4 } from "@dxos/react-ui";
@@ -412,7 +480,7 @@ var useDeckContext = () => useContext2(DeckContext) ?? raise2(new Error("Missing
412
480
  // packages/plugins/plugin-deck/src/components/DeckLayout/Plank.tsx
413
481
  var Plank = ({ entry, layoutParts, part, flatDeck, searchEnabled, layoutMode }) => {
414
482
  const { t } = useTranslation4(DECK_PLUGIN);
415
- const dispatch = useIntentDispatcher2();
483
+ const dispatch = useIntentDispatcher3();
416
484
  const { popoverAnchorId, scrollIntoView } = useLayout();
417
485
  const { plankSizing } = useDeckContext();
418
486
  const { graph } = useGraph5();
@@ -523,7 +591,7 @@ var Plank = ({ entry, layoutParts, part, flatDeck, searchEnabled, layoutMode })
523
591
  component: "dxos.org/plugin/search/Dialog",
524
592
  dialogBlockAlign: "start",
525
593
  subject: {
526
- action: NavigationAction2.SET,
594
+ action: NavigationAction3.SET,
527
595
  position: "add-after",
528
596
  coordinate
529
597
  }
@@ -543,14 +611,14 @@ var Plank = ({ entry, layoutParts, part, flatDeck, searchEnabled, layoutMode })
543
611
  };
544
612
 
545
613
  // packages/plugins/plugin-deck/src/components/DeckLayout/Sidebar.tsx
546
- import React10, { useMemo } from "react";
614
+ import React10, { useMemo as useMemo2 } from "react";
547
615
  import { openIds, Surface as Surface7 } from "@dxos/app-framework";
548
616
  import { Main as Main2 } from "@dxos/react-ui";
549
617
  import { useAttended as useAttended2 } from "@dxos/react-ui-attention";
550
618
  var Sidebar = ({ layoutParts }) => {
551
619
  const { layoutMode, popoverAnchorId } = useLayout();
552
620
  const attended = useAttended2();
553
- const activeIds = useMemo(() => {
621
+ const activeIds = useMemo2(() => {
554
622
  if (layoutMode === "solo") {
555
623
  return new Set(layoutParts?.solo?.map((e) => e.id) ?? []);
556
624
  } else if (layoutMode === "deck") {
@@ -561,7 +629,7 @@ var Sidebar = ({ layoutParts }) => {
561
629
  layoutParts,
562
630
  layoutMode
563
631
  ]);
564
- const navigationData = useMemo(() => ({
632
+ const navigationData = useMemo2(() => ({
565
633
  popoverAnchorId,
566
634
  activeIds,
567
635
  attended
@@ -583,13 +651,18 @@ var Sidebar = ({ layoutParts }) => {
583
651
  import React11 from "react";
584
652
  import { Surface as Surface8 } from "@dxos/app-framework";
585
653
  import { mainPadding, mx as mx4 } from "@dxos/react-ui-theme";
586
- var StatusBar = () => {
654
+ var StatusBar = ({ showHints }) => {
587
655
  const sizeAttrs = useMainSize();
588
656
  return /* @__PURE__ */ React11.createElement("div", {
589
657
  role: "none",
590
658
  ...sizeAttrs,
591
- className: mx4("fixed block-end-0 inset-inline-0 z-[2]", mainPadding)
592
- }, /* @__PURE__ */ React11.createElement(Surface8, {
659
+ className: mx4("fixed flex justify-between block-end-0 inset-inline-0 items-center border-bs border-separator z-[2]", mainPadding)
660
+ }, /* @__PURE__ */ React11.createElement("div", {
661
+ role: "none"
662
+ }, showHints && /* @__PURE__ */ React11.createElement(Surface8, {
663
+ role: "hints",
664
+ limit: 1
665
+ })), /* @__PURE__ */ React11.createElement(Surface8, {
593
666
  role: "status-bar",
594
667
  limit: 1
595
668
  }));
@@ -668,14 +741,14 @@ var calculateOverscroll = (planks, plankSizing, sidebarOpen, complementarySideba
668
741
  };
669
742
 
670
743
  // packages/plugins/plugin-deck/src/components/DeckLayout/DeckLayout.tsx
671
- var DeckLayout = ({ layoutParts, toasts, flatDeck, overscroll, showHintsFooter, slots, onDismissToast }) => {
744
+ var DeckLayout = ({ layoutParts, toasts, flatDeck, overscroll, showHints, slots, onDismissToast }) => {
672
745
  const context = useLayout();
673
746
  const { layoutMode, sidebarOpen, complementarySidebarOpen, dialogOpen, dialogContent, dialogBlockAlign, popoverOpen, popoverContent, popoverAnchorId } = context;
674
747
  const { t } = useTranslation5(DECK_PLUGIN);
675
748
  const { plankSizing } = useDeckContext();
676
749
  const attended = useAttended3();
677
750
  const searchPlugin = usePlugin("dxos.org/plugin/search");
678
- const fullScreenSlug = useMemo2(() => firstIdInPart(layoutParts, "fullScreen"), [
751
+ const fullScreenSlug = useMemo3(() => firstIdInPart(layoutParts, "fullScreen"), [
679
752
  layoutParts
680
753
  ]);
681
754
  const scrollLeftRef = useRef2();
@@ -716,7 +789,7 @@ var DeckLayout = ({ layoutParts, toasts, flatDeck, overscroll, showHintsFooter,
716
789
  layoutMode,
717
790
  firstAttendedId
718
791
  ]);
719
- const parts = useMemo2(() => {
792
+ const parts = useMemo3(() => {
720
793
  const parts2 = [
721
794
  ...layoutParts.main ?? []
722
795
  ];
@@ -730,7 +803,7 @@ var DeckLayout = ({ layoutParts, toasts, flatDeck, overscroll, showHintsFooter,
730
803
  layoutParts.main,
731
804
  layoutParts.solo
732
805
  ]);
733
- const padding = useMemo2(() => {
806
+ const padding = useMemo3(() => {
734
807
  if (layoutMode === "deck" && overscroll === "centering") {
735
808
  return calculateOverscroll(layoutParts.main, plankSizing, sidebarOpen, complementarySidebarOpen);
736
809
  }
@@ -824,12 +897,9 @@ var DeckLayout = ({ layoutParts, toasts, flatDeck, overscroll, showHintsFooter,
824
897
  layoutMode,
825
898
  flatDeck,
826
899
  searchEnabled: !!searchPlugin
827
- }))))), /* @__PURE__ */ React13.createElement(StatusBar, null), showHintsFooter && /* @__PURE__ */ React13.createElement("div", {
828
- className: "fixed bottom-0 left-0 right-0 h-[32px] z-[1] flex justify-center"
829
- }, /* @__PURE__ */ React13.createElement(Surface9, {
830
- role: "hints",
831
- limit: 1
832
- })), /* @__PURE__ */ React13.createElement(Popover2.Portal, null, /* @__PURE__ */ React13.createElement(Popover2.Content, {
900
+ }))))), /* @__PURE__ */ React13.createElement(StatusBar, {
901
+ showHints
902
+ }), /* @__PURE__ */ React13.createElement(Popover2.Portal, null, /* @__PURE__ */ React13.createElement(Popover2.Content, {
833
903
  classNames: "z-[60]",
834
904
  onEscapeKeyDown: () => {
835
905
  context.popoverOpen = false;
@@ -898,25 +968,25 @@ var LayoutSettings = ({ settings }) => {
898
968
  key: option,
899
969
  value: option
900
970
  }, t(`settings overscroll ${option} label`)))))))), /* @__PURE__ */ React14.createElement(SettingsValue, {
901
- label: t("settings show footer label")
971
+ label: t("settings show hints label")
902
972
  }, /* @__PURE__ */ React14.createElement(Input.Switch, {
903
- checked: settings.showFooter,
904
- onCheckedChange: (checked) => settings.showFooter = !!checked
973
+ checked: settings.showHints,
974
+ onCheckedChange: (checked) => settings.showHints = checked
905
975
  })), !isSocket && /* @__PURE__ */ React14.createElement(SettingsValue, {
906
976
  label: t("settings native redirect label")
907
977
  }, /* @__PURE__ */ React14.createElement(Input.Switch, {
908
978
  checked: settings.enableNativeRedirect,
909
- onCheckedChange: (checked) => settings.enableNativeRedirect = !!checked
979
+ onCheckedChange: (checked) => settings.enableNativeRedirect = checked
910
980
  })), /* @__PURE__ */ React14.createElement(SettingsValue, {
911
981
  label: t("settings custom slots")
912
982
  }, /* @__PURE__ */ React14.createElement(Input.Switch, {
913
983
  checked: settings.customSlots,
914
- onCheckedChange: (checked) => settings.customSlots = !!checked
984
+ onCheckedChange: (checked) => settings.customSlots = checked
915
985
  })), /* @__PURE__ */ React14.createElement(SettingsValue, {
916
986
  label: t("settings flat deck")
917
987
  }, /* @__PURE__ */ React14.createElement(Input.Switch, {
918
988
  checked: settings.flatDeck,
919
- onCheckedChange: (checked) => settings.flatDeck = !!checked
989
+ onCheckedChange: (checked) => settings.flatDeck = checked
920
990
  })));
921
991
  };
922
992
 
@@ -1078,7 +1148,7 @@ var translations_default = [
1078
1148
  "content fallback message": "Unsupported",
1079
1149
  "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.",
1080
1150
  "toggle fullscreen label": "Toggle fullscreen",
1081
- "settings show footer label": "Show footer (experimental)",
1151
+ "settings show hints label": "Show hints",
1082
1152
  "settings native redirect label": "Enable native url redirect (experimental)",
1083
1153
  "settings custom slots": "Theme option (experimental)",
1084
1154
  "settings new plank position start label": "Start",
@@ -1102,7 +1172,9 @@ var translations_default = [
1102
1172
  "select overscroll placeholder": "Select plank overscrolling behavior",
1103
1173
  "settings overscroll centering label": "Centering",
1104
1174
  "settings overscroll none label": "None",
1105
- "settings flat deck": "Flatten deck appearance"
1175
+ "settings flat deck": "Flatten deck appearance",
1176
+ "comments label": "Show Comments",
1177
+ "settings label": "Show Settings"
1106
1178
  }
1107
1179
  }
1108
1180
  }
@@ -1132,7 +1204,7 @@ var DeckPlugin = ({ observability } = {}) => {
1132
1204
  let currentUndoId;
1133
1205
  let handleNavigation;
1134
1206
  const settings = new LocalStorageStore("dxos.org/settings/layout", {
1135
- showFooter: false,
1207
+ showHints: true,
1136
1208
  customSlots: false,
1137
1209
  flatDeck: false,
1138
1210
  enableNativeRedirect: false,
@@ -1271,8 +1343,8 @@ var DeckPlugin = ({ observability } = {}) => {
1271
1343
  deck.expunge();
1272
1344
  }));
1273
1345
  settings.prop({
1274
- key: "showFooter",
1275
- storageKey: "show-footer",
1346
+ key: "showHints",
1347
+ storageKey: "show-hints",
1276
1348
  type: LocalStorageStore.bool()
1277
1349
  }).prop({
1278
1350
  key: "customSlots",
@@ -1403,7 +1475,7 @@ var DeckPlugin = ({ observability } = {}) => {
1403
1475
  root: () => {
1404
1476
  return /* @__PURE__ */ React15.createElement(DeckLayout, {
1405
1477
  layoutParts: location.values.active,
1406
- showHintsFooter: settings.values.showFooter,
1478
+ showHints: settings.values.showHints,
1407
1479
  overscroll: settings.values.overscroll,
1408
1480
  flatDeck: settings.values.flatDeck,
1409
1481
  slots: settings.values.customSlots ? customSlots : void 0,
@@ -1501,7 +1573,7 @@ var DeckPlugin = ({ observability } = {}) => {
1501
1573
  data: true
1502
1574
  };
1503
1575
  }
1504
- case NavigationAction3.OPEN: {
1576
+ case NavigationAction4.OPEN: {
1505
1577
  const previouslyOpenIds = new Set(openIds2(location.values.active));
1506
1578
  const layoutMode = layout.values.layoutMode;
1507
1579
  batch(() => {
@@ -1558,7 +1630,7 @@ var DeckPlugin = ({ observability } = {}) => {
1558
1630
  ] : [],
1559
1631
  intent.data?.object ? [
1560
1632
  {
1561
- action: NavigationAction3.EXPOSE,
1633
+ action: NavigationAction4.EXPOSE,
1562
1634
  data: {
1563
1635
  id: fullyQualifiedId(intent.data.object)
1564
1636
  }
@@ -1581,7 +1653,7 @@ var DeckPlugin = ({ observability } = {}) => {
1581
1653
  ]
1582
1654
  };
1583
1655
  }
1584
- case NavigationAction3.ADD_TO_ACTIVE: {
1656
+ case NavigationAction4.ADD_TO_ACTIVE: {
1585
1657
  const data = intent.data;
1586
1658
  const layoutEntry = {
1587
1659
  id: data.id
@@ -1607,7 +1679,7 @@ var DeckPlugin = ({ observability } = {}) => {
1607
1679
  intents
1608
1680
  };
1609
1681
  }
1610
- case NavigationAction3.CLOSE: {
1682
+ case NavigationAction4.CLOSE: {
1611
1683
  return batch(() => {
1612
1684
  if (!intent.data) {
1613
1685
  return;
@@ -1639,7 +1711,7 @@ var DeckPlugin = ({ observability } = {}) => {
1639
1711
  });
1640
1712
  }
1641
1713
  // TODO(wittjosiah): Factor out.
1642
- case NavigationAction3.SET: {
1714
+ case NavigationAction4.SET: {
1643
1715
  return batch(() => {
1644
1716
  if (isLayoutParts(intent.data?.activeParts)) {
1645
1717
  handleSetLocation(intent.data.activeParts);
@@ -1649,7 +1721,7 @@ var DeckPlugin = ({ observability } = {}) => {
1649
1721
  };
1650
1722
  });
1651
1723
  }
1652
- case NavigationAction3.ADJUST: {
1724
+ case NavigationAction4.ADJUST: {
1653
1725
  return batch(() => {
1654
1726
  if (isLayoutAdjustment(intent.data)) {
1655
1727
  const adjustment = intent.data;
@@ -1673,7 +1745,7 @@ var DeckPlugin = ({ observability } = {}) => {
1673
1745
  }
1674
1746
  },
1675
1747
  {
1676
- action: NavigationAction3.OPEN,
1748
+ action: NavigationAction4.OPEN,
1677
1749
  data: {
1678
1750
  activeParts: {
1679
1751
  solo: [
@@ -1697,7 +1769,7 @@ var DeckPlugin = ({ observability } = {}) => {
1697
1769
  }
1698
1770
  },
1699
1771
  {
1700
- action: NavigationAction3.CLOSE,
1772
+ action: NavigationAction4.CLOSE,
1701
1773
  data: {
1702
1774
  activeParts: {
1703
1775
  solo: [
@@ -1707,7 +1779,7 @@ var DeckPlugin = ({ observability } = {}) => {
1707
1779
  }
1708
1780
  },
1709
1781
  {
1710
- action: NavigationAction3.OPEN,
1782
+ action: NavigationAction4.OPEN,
1711
1783
  data: {
1712
1784
  noToggle: true,
1713
1785
  activeParts: {