@dxos/plugin-deck 0.7.5-labs.8a82073 → 0.7.5-labs.c0e040f

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 (30) hide show
  1. package/dist/lib/browser/{chunk-QMS57ZG2.mjs → chunk-23KS5L3I.mjs} +8 -3
  2. package/dist/lib/browser/{chunk-QMS57ZG2.mjs.map → chunk-23KS5L3I.mjs.map} +2 -2
  3. package/dist/lib/browser/{chunk-SV4WMVWO.mjs → chunk-4URQJVGI.mjs} +6 -6
  4. package/dist/lib/browser/{chunk-M2L53AIH.mjs → chunk-PTLNGUND.mjs} +2 -2
  5. package/dist/lib/browser/{chunk-M2L53AIH.mjs.map → chunk-PTLNGUND.mjs.map} +2 -2
  6. package/dist/lib/browser/index.mjs +1 -1
  7. package/dist/lib/browser/{intent-resolver-CSXFDKTC.mjs → intent-resolver-WAYXVAFN.mjs} +10 -7
  8. package/dist/lib/browser/intent-resolver-WAYXVAFN.mjs.map +7 -0
  9. package/dist/lib/browser/meta.json +1 -1
  10. package/dist/lib/browser/{react-root-SRNBW2D6.mjs → react-root-YATKEIAZ.mjs} +4 -4
  11. package/dist/lib/browser/{react-surface-CSBYRVOM.mjs → react-surface-SS2BX6FS.mjs} +4 -4
  12. package/dist/lib/browser/{settings-WACNLCPB.mjs → settings-CRQTVMN3.mjs} +2 -2
  13. package/dist/lib/browser/{state-VPOYUKK6.mjs → state-YEQA3IIB.mjs} +2 -2
  14. package/dist/lib/browser/types.mjs +1 -1
  15. package/dist/types/src/capabilities/capabilities.d.ts +2 -2
  16. package/dist/types/src/capabilities/set-active.d.ts.map +1 -1
  17. package/dist/types/src/capabilities/state.d.ts +1 -1
  18. package/dist/types/src/components/DeckLayout/DeckLayout.d.ts.map +1 -1
  19. package/dist/types/src/types.d.ts +1 -1
  20. package/package.json +29 -30
  21. package/src/capabilities/intent-resolver.ts +5 -5
  22. package/src/capabilities/set-active.ts +4 -0
  23. package/src/components/DeckLayout/DeckLayout.tsx +13 -3
  24. package/src/types.ts +1 -1
  25. package/dist/lib/browser/intent-resolver-CSXFDKTC.mjs.map +0 -7
  26. /package/dist/lib/browser/{chunk-SV4WMVWO.mjs.map → chunk-4URQJVGI.mjs.map} +0 -0
  27. /package/dist/lib/browser/{react-root-SRNBW2D6.mjs.map → react-root-YATKEIAZ.mjs.map} +0 -0
  28. /package/dist/lib/browser/{react-surface-CSBYRVOM.mjs.map → react-surface-SS2BX6FS.mjs.map} +0 -0
  29. /package/dist/lib/browser/{settings-WACNLCPB.mjs.map → settings-CRQTVMN3.mjs.map} +0 -0
  30. /package/dist/lib/browser/{state-VPOYUKK6.mjs.map → state-YEQA3IIB.mjs.map} +0 -0
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  Banner,
3
3
  LayoutSettings
4
- } from "./chunk-QMS57ZG2.mjs";
5
- import "./chunk-SV4WMVWO.mjs";
4
+ } from "./chunk-23KS5L3I.mjs";
5
+ import "./chunk-4URQJVGI.mjs";
6
6
  import "./chunk-YQ2GWTDU.mjs";
7
- import "./chunk-M2L53AIH.mjs";
7
+ import "./chunk-PTLNGUND.mjs";
8
8
  import {
9
9
  DECK_PLUGIN
10
10
  } from "./chunk-N7TEPFVR.mjs";
@@ -35,4 +35,4 @@ var react_surface_default = () => contributes(Capabilities.ReactSurface, [
35
35
  export {
36
36
  react_surface_default as default
37
37
  };
38
- //# sourceMappingURL=react-surface-CSBYRVOM.mjs.map
38
+ //# sourceMappingURL=react-surface-SS2BX6FS.mjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DeckSettingsSchema
3
- } from "./chunk-M2L53AIH.mjs";
3
+ } from "./chunk-PTLNGUND.mjs";
4
4
  import {
5
5
  DECK_PLUGIN
6
6
  } from "./chunk-N7TEPFVR.mjs";
@@ -25,4 +25,4 @@ var settings_default = () => {
25
25
  export {
26
26
  settings_default as default
27
27
  };
28
- //# sourceMappingURL=settings-WACNLCPB.mjs.map
28
+ //# sourceMappingURL=settings-CRQTVMN3.mjs.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-YQ2GWTDU.mjs";
4
4
  import {
5
5
  getMode
6
- } from "./chunk-M2L53AIH.mjs";
6
+ } from "./chunk-PTLNGUND.mjs";
7
7
  import {
8
8
  DECK_PLUGIN
9
9
  } from "./chunk-N7TEPFVR.mjs";
@@ -114,4 +114,4 @@ var state_default = () => {
114
114
  export {
115
115
  state_default as default
116
116
  };
117
- //# sourceMappingURL=state-VPOYUKK6.mjs.map
117
+ //# sourceMappingURL=state-YEQA3IIB.mjs.map
@@ -10,7 +10,7 @@ import {
10
10
  SLUG_PATH_SEPARATOR,
11
11
  getMode,
12
12
  isLayoutMode
13
- } from "./chunk-M2L53AIH.mjs";
13
+ } from "./chunk-PTLNGUND.mjs";
14
14
  import "./chunk-N7TEPFVR.mjs";
15
15
  export {
16
16
  DECK_ACTION,
@@ -17,7 +17,7 @@ export declare namespace DeckCapabilities {
17
17
  complementarySidebarPanel?: string | undefined;
18
18
  dialogOpen: boolean;
19
19
  dialogContent?: any;
20
- dialogBlockAlign?: "start" | "center" | undefined;
20
+ dialogBlockAlign?: "start" | "end" | "center" | undefined;
21
21
  dialogType?: "default" | "alert" | undefined;
22
22
  popoverOpen: boolean;
23
23
  popoverContent?: any;
@@ -83,7 +83,7 @@ export declare namespace DeckCapabilities {
83
83
  complementarySidebarPanel?: string | undefined;
84
84
  dialogOpen: boolean;
85
85
  dialogContent?: any;
86
- dialogBlockAlign?: "start" | "center" | undefined;
86
+ dialogBlockAlign?: "start" | "end" | "center" | undefined;
87
87
  dialogType?: "default" | "alert" | undefined;
88
88
  popoverOpen: boolean;
89
89
  popoverContent?: any;
@@ -1 +1 @@
1
- {"version":3,"file":"set-active.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/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,uBA0BrE,CAAC"}
1
+ {"version":3,"file":"set-active.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/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"}
@@ -14,7 +14,7 @@ declare const _default: () => (import("@dxos/app-framework").Capability<import("
14
14
  complementarySidebarPanel?: string | undefined;
15
15
  dialogOpen: boolean;
16
16
  dialogContent?: any;
17
- dialogBlockAlign?: "start" | "center" | undefined;
17
+ dialogBlockAlign?: "start" | "end" | "center" | undefined;
18
18
  dialogType?: "default" | "alert" | undefined;
19
19
  popoverOpen: boolean;
20
20
  popoverContent?: any;
@@ -1 +1 @@
1
- {"version":3,"file":"DeckLayout.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/DeckLayout.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA0E,MAAM,OAAO,CAAC;AAwB/F,OAAO,EAAwB,KAAK,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AAU9F,OAAO,EAAW,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAIvD,MAAM,MAAM,eAAe,GAAG;IAC5B,UAAU,EAAE,UAAU,CAAC;IACvB,SAAS,EAAE,OAAO,CAAC;IACnB,cAAc,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC,GAAG,IAAI,CAAC,yBAAyB,EAAE,QAAQ,CAAC,CAAC;AAK9C,eAAO,MAAM,UAAU,sDAAuD,eAAe,sBAsQ5F,CAAC"}
1
+ {"version":3,"file":"DeckLayout.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/DeckLayout.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA0E,MAAM,OAAO,CAAC;AAwB/F,OAAO,EAAwB,KAAK,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AAU9F,OAAO,EAAW,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAIvD,MAAM,MAAM,eAAe,GAAG;IAC5B,UAAU,EAAE,UAAU,CAAC;IACvB,SAAS,EAAE,OAAO,CAAC;IACnB,cAAc,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC,GAAG,IAAI,CAAC,yBAAyB,EAAE,QAAQ,CAAC,CAAC;AAK9C,eAAO,MAAM,UAAU,sDAAuD,eAAe,sBAgR5F,CAAC"}
@@ -40,7 +40,7 @@ export declare const DeckState: S.mutable<S.Struct<{
40
40
  * Data to be passed to the dialog Surface.
41
41
  */
42
42
  dialogContent: S.optional<typeof S.Any>;
43
- dialogBlockAlign: S.optional<S.Literal<["start", "center"]>>;
43
+ dialogBlockAlign: S.optional<S.Literal<["start", "center", "end"]>>;
44
44
  dialogType: S.optional<S.Literal<["default", "alert"]>>;
45
45
  popoverOpen: typeof S.Boolean;
46
46
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/plugin-deck",
3
- "version": "0.7.5-labs.8a82073",
3
+ "version": "0.7.5-labs.c0e040f",
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",
@@ -34,30 +34,29 @@
34
34
  "@preact/signals-core": "^1.6.0",
35
35
  "effect": "^3.12.3",
36
36
  "immer": "^10.1.1",
37
- "@dxos/app-framework": "0.7.5-labs.8a82073",
38
- "@dxos/artifact": "0.7.5-labs.8a82073",
39
- "@dxos/async": "0.7.5-labs.8a82073",
40
- "@dxos/debug": "0.7.5-labs.8a82073",
41
- "@dxos/echo-schema": "0.7.5-labs.8a82073",
42
- "@dxos/echo-signals": "0.7.5-labs.8a82073",
43
- "@dxos/live-object": "0.7.5-labs.8a82073",
44
- "@dxos/keyboard": "0.7.5-labs.8a82073",
45
- "@dxos/log": "0.7.5-labs.8a82073",
46
- "@dxos/local-storage": "0.7.5-labs.8a82073",
47
- "@dxos/invariant": "0.7.5-labs.8a82073",
48
- "@dxos/plugin-attention": "0.7.5-labs.8a82073",
49
- "@dxos/plugin-client": "0.7.5-labs.8a82073",
50
- "@dxos/plugin-graph": "0.7.5-labs.8a82073",
51
- "@dxos/plugin-observability": "0.7.5-labs.8a82073",
52
- "@dxos/plugin-theme": "0.7.5-labs.8a82073",
53
- "@dxos/react-client": "0.7.5-labs.8a82073",
54
- "@dxos/react-ui-attention": "0.7.5-labs.8a82073",
55
- "@dxos/react-ui-form": "0.7.5-labs.8a82073",
56
- "@dxos/react-ui-stack": "0.7.5-labs.8a82073",
57
- "@dxos/react-ui-mosaic": "0.7.5-labs.8a82073",
58
- "@dxos/react-ui-tabs": "0.7.5-labs.8a82073",
59
- "@dxos/react-ui-text-tooltip": "0.7.5-labs.8a82073",
60
- "@dxos/util": "0.7.5-labs.8a82073"
37
+ "@dxos/app-framework": "0.7.5-labs.c0e040f",
38
+ "@dxos/artifact": "0.7.5-labs.c0e040f",
39
+ "@dxos/async": "0.7.5-labs.c0e040f",
40
+ "@dxos/debug": "0.7.5-labs.c0e040f",
41
+ "@dxos/echo-schema": "0.7.5-labs.c0e040f",
42
+ "@dxos/keyboard": "0.7.5-labs.c0e040f",
43
+ "@dxos/invariant": "0.7.5-labs.c0e040f",
44
+ "@dxos/live-object": "0.7.5-labs.c0e040f",
45
+ "@dxos/echo-signals": "0.7.5-labs.c0e040f",
46
+ "@dxos/log": "0.7.5-labs.c0e040f",
47
+ "@dxos/plugin-client": "0.7.5-labs.c0e040f",
48
+ "@dxos/plugin-graph": "0.7.5-labs.c0e040f",
49
+ "@dxos/local-storage": "0.7.5-labs.c0e040f",
50
+ "@dxos/plugin-attention": "0.7.5-labs.c0e040f",
51
+ "@dxos/plugin-observability": "0.7.5-labs.c0e040f",
52
+ "@dxos/plugin-theme": "0.7.5-labs.c0e040f",
53
+ "@dxos/react-client": "0.7.5-labs.c0e040f",
54
+ "@dxos/react-ui-attention": "0.7.5-labs.c0e040f",
55
+ "@dxos/react-ui-form": "0.7.5-labs.c0e040f",
56
+ "@dxos/react-ui-stack": "0.7.5-labs.c0e040f",
57
+ "@dxos/react-ui-text-tooltip": "0.7.5-labs.c0e040f",
58
+ "@dxos/react-ui-tabs": "0.7.5-labs.c0e040f",
59
+ "@dxos/util": "0.7.5-labs.c0e040f"
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": "0.7.5-labs.8a82073",
70
- "@dxos/react-ui-theme": "0.7.5-labs.8a82073",
71
- "@dxos/storybook-utils": "0.7.5-labs.8a82073"
68
+ "@dxos/react-ui-theme": "0.7.5-labs.c0e040f",
69
+ "@dxos/react-ui": "0.7.5-labs.c0e040f",
70
+ "@dxos/storybook-utils": "0.7.5-labs.c0e040f"
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.7.5-labs.8a82073",
78
- "@dxos/react-ui-theme": "0.7.5-labs.8a82073"
76
+ "@dxos/react-ui-theme": "0.7.5-labs.c0e040f",
77
+ "@dxos/react-ui": "0.7.5-labs.c0e040f"
79
78
  },
80
79
  "publishConfig": {
81
80
  "access": "public"
@@ -20,7 +20,7 @@ import { isReactiveObject } from '@dxos/live-object';
20
20
  import { log } from '@dxos/log';
21
21
  import { AttentionCapabilities } from '@dxos/plugin-attention';
22
22
  import { ObservabilityAction } from '@dxos/plugin-observability/types';
23
- import { nonNullable } from '@dxos/util';
23
+ import { isNonNullable } from '@dxos/util';
24
24
 
25
25
  import { DeckCapabilities } from './capabilities';
26
26
  import { setActive } from './set-active';
@@ -149,16 +149,16 @@ export default (context: PluginsContext) =>
149
149
  const current = deck.solo ? [deck.solo] : deck.active;
150
150
  // When un-soloing, the solo entry is added to the deck.
151
151
  const next = (
152
- mode === 'solo' ? [subject ?? deck.solo ?? deck.active[0]] : [...deck.active, deck.solo]
153
- ).filter(nonNullable);
152
+ mode !== 'deck' ? [subject ?? deck.solo ?? deck.active[0]] : [...deck.active, deck.solo]
153
+ ).filter(isNonNullable);
154
154
 
155
155
  const removed = current.filter((id) => !next.includes(id));
156
156
  const closed = Array.from(new Set([...deck.inactive.filter((id) => !next.includes(id)), ...removed]));
157
157
  deck.inactive = closed;
158
158
 
159
- if (mode === 'solo' && next[0]) {
159
+ if (mode !== 'deck' && next[0]) {
160
160
  deck.solo = next[0];
161
- } else if (mode !== 'solo' && deck.solo) {
161
+ } else if (mode === 'deck' && deck.solo) {
162
162
  deck.solo = undefined;
163
163
  deck.initialized = true;
164
164
  }
@@ -28,6 +28,10 @@ export const setActive = ({ next, state, attention }: SetActiveOptions) => {
28
28
  state.deck.active = next;
29
29
  }
30
30
 
31
+ if (state.deck.fullscreen && !state.deck.solo) {
32
+ state.deck.fullscreen = false;
33
+ }
34
+
31
35
  if (attention) {
32
36
  const attended = attention.current;
33
37
  const [attendedId] = Array.from(attended);
@@ -290,10 +290,20 @@ export const DeckLayout = ({ overscroll, showHints, panels, onDismissToast }: De
290
290
  </Popover.Portal>
291
291
 
292
292
  {/* Global dialog. */}
293
- <Dialog.Root open={dialogOpen} onOpenChange={(nextOpen) => (context.dialogOpen = nextOpen)}>
294
- <Dialog.Overlay blockAlign={dialogBlockAlign}>
293
+ {/* TODO(thure): End block alignment affecting `modal` and whether the surface renders in an overlay is tailored
294
+ to the needs of the ambient chat dialog. As the feature matures, consider separating concerns. */}
295
+ <Dialog.Root
296
+ modal={dialogBlockAlign !== 'end'}
297
+ open={dialogOpen}
298
+ onOpenChange={(nextOpen) => (context.dialogOpen = nextOpen)}
299
+ >
300
+ {dialogBlockAlign === 'end' ? (
295
301
  <Surface role='dialog' data={dialogContent} limit={1} />
296
- </Dialog.Overlay>
302
+ ) : (
303
+ <Dialog.Overlay blockAlign={dialogBlockAlign}>
304
+ <Surface role='dialog' data={dialogContent} limit={1} />
305
+ </Dialog.Overlay>
306
+ )}
297
307
  </Dialog.Root>
298
308
 
299
309
  {/* Global toasts. */}
package/src/types.ts CHANGED
@@ -60,7 +60,7 @@ export const DeckState = S.mutable(
60
60
  * Data to be passed to the dialog Surface.
61
61
  */
62
62
  dialogContent: S.optional(S.Any),
63
- dialogBlockAlign: S.optional(S.Literal('start', 'center')),
63
+ dialogBlockAlign: S.optional(S.Literal('start', 'center', 'end')),
64
64
  dialogType: S.optional(S.Literal('default', 'alert')),
65
65
 
66
66
  popoverOpen: S.Boolean,
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/capabilities/intent-resolver.ts", "../../../src/capabilities/set-active.ts", "../../../src/layout.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { batch } from '@preact/signals-core';\nimport { pipe } from 'effect';\n\nimport {\n Capabilities,\n createResolver,\n contributes,\n IntentAction,\n LayoutAction,\n type PluginsContext,\n createIntent,\n chain,\n} from '@dxos/app-framework';\nimport { getTypename, S } from '@dxos/echo-schema';\nimport { isReactiveObject } from '@dxos/live-object';\nimport { log } from '@dxos/log';\nimport { AttentionCapabilities } from '@dxos/plugin-attention';\nimport { ObservabilityAction } from '@dxos/plugin-observability/types';\nimport { nonNullable } from '@dxos/util';\n\nimport { DeckCapabilities } from './capabilities';\nimport { setActive } from './set-active';\nimport { closeEntry, incrementPlank, openEntry } from '../layout';\nimport { DECK_PLUGIN } from '../meta';\nimport { DeckAction, type LayoutMode, type DeckSettingsProps, isLayoutMode, getMode } from '../types';\n\nexport default (context: PluginsContext) =>\n contributes(Capabilities.IntentResolver, [\n createResolver({\n intent: IntentAction.ShowUndo,\n resolve: (data) => {\n const layout = context.requestCapability(DeckCapabilities.MutableDeckState);\n const { undoPromise: undo } = context.requestCapability(Capabilities.IntentDispatcher);\n\n // TODO(wittjosiah): Support undoing further back than the last action.\n if (layout.currentUndoId) {\n layout.toasts = layout.toasts.filter((toast) => toast.id !== layout.currentUndoId);\n }\n layout.currentUndoId = `${IntentAction.ShowUndo._tag}-${Date.now()}`;\n layout.toasts = [\n ...layout.toasts,\n {\n id: layout.currentUndoId,\n title: data.message ?? ['undo available label', { ns: DECK_PLUGIN }],\n duration: 10_000,\n actionLabel: ['undo action label', { ns: DECK_PLUGIN }],\n actionAlt: ['undo action alt', { ns: DECK_PLUGIN }],\n closeLabel: ['undo close label', { ns: DECK_PLUGIN }],\n onAction: () => undo(),\n },\n ];\n },\n }),\n createResolver({\n intent: LayoutAction.UpdateLayout,\n // TODO(wittjosiah): This should be able to just be `S.is(LayoutAction.UpdateSidebar.fields.input)`\n // but the filter is not being applied correctly.\n filter: (data): data is S.Schema.Type<typeof LayoutAction.UpdateSidebar.fields.input> =>\n S.is(LayoutAction.UpdateSidebar.fields.input)(data),\n resolve: ({ options }) => {\n const layout = context.requestCapability(DeckCapabilities.MutableDeckState);\n const next = options?.state ?? layout.sidebarState;\n if (next !== layout.sidebarState) {\n layout.sidebarState = next;\n }\n },\n }),\n createResolver({\n intent: LayoutAction.UpdateLayout,\n // TODO(wittjosiah): This should be able to just be `S.is(LayoutAction.UpdateComplementary.fields.input)`\n // but the filter is not being applied correctly.\n filter: (data): data is S.Schema.Type<typeof LayoutAction.UpdateComplementary.fields.input> =>\n S.is(LayoutAction.UpdateComplementary.fields.input)(data),\n resolve: ({ subject, options }) => {\n const layout = context.requestCapability(DeckCapabilities.MutableDeckState);\n\n if (layout.complementarySidebarPanel !== subject) {\n layout.complementarySidebarPanel = subject;\n }\n\n const next = subject ? 'expanded' : options?.state ?? layout.complementarySidebarState;\n if (next !== layout.complementarySidebarState) {\n layout.complementarySidebarState = next;\n }\n },\n }),\n createResolver({\n intent: LayoutAction.UpdateLayout,\n // TODO(wittjosiah): This should be able to just be `S.is(LayoutAction.UpdateDialog.fields.input)`\n // but the filter is not being applied correctly.\n filter: (data): data is S.Schema.Type<typeof LayoutAction.UpdateDialog.fields.input> =>\n S.is(LayoutAction.UpdateDialog.fields.input)(data),\n resolve: ({ subject, options }) => {\n const layout = context.requestCapability(DeckCapabilities.MutableDeckState);\n layout.dialogOpen = options.state ?? Boolean(subject);\n layout.dialogContent = subject ? { component: subject, props: options.props } : null;\n layout.dialogBlockAlign = options.blockAlign ?? 'center';\n layout.dialogType = options.type ?? 'default';\n },\n }),\n createResolver({\n intent: LayoutAction.UpdateLayout,\n // TODO(wittjosiah): This should be able to just be `S.is(LayoutAction.UpdatePopover.fields.input)`\n // but the filter is not being applied correctly.\n filter: (data): data is S.Schema.Type<typeof LayoutAction.UpdatePopover.fields.input> =>\n S.is(LayoutAction.UpdatePopover.fields.input)(data),\n resolve: ({ subject, options }) => {\n const layout = context.requestCapability(DeckCapabilities.MutableDeckState);\n layout.popoverOpen = options.state ?? Boolean(subject);\n layout.popoverContent = subject ? { component: subject, props: options.props } : null;\n layout.popoverAnchorId = options.anchorId;\n },\n }),\n createResolver({\n intent: LayoutAction.UpdateLayout,\n // TODO(wittjosiah): This should be able to just be `S.is(LayoutAction.AddToast.fields.input)`\n // but the filter is not being applied correctly.\n filter: (data): data is S.Schema.Type<typeof LayoutAction.AddToast.fields.input> =>\n S.is(LayoutAction.AddToast.fields.input)(data),\n resolve: ({ subject }) => {\n const layout = context.requestCapability(DeckCapabilities.MutableDeckState);\n layout.toasts.push(subject);\n },\n }),\n createResolver({\n intent: LayoutAction.UpdateLayout,\n // TODO(wittjosiah): This should be able to just be `S.is(LayoutAction.SetLayoutMode.fields.input)`\n // but the filter is not being applied correctly.\n filter: (data): data is S.Schema.Type<typeof LayoutAction.SetLayoutMode.fields.input> => {\n if (!S.is(LayoutAction.SetLayoutMode.fields.input)(data)) {\n return false;\n }\n\n if ('mode' in data.options) {\n return isLayoutMode(data.options.mode);\n }\n\n return true;\n },\n resolve: ({ subject, options }) => {\n const state = context.requestCapability(DeckCapabilities.MutableDeckState);\n\n const setMode = (mode: LayoutMode) => {\n const deck = state.deck;\n const current = deck.solo ? [deck.solo] : deck.active;\n // When un-soloing, the solo entry is added to the deck.\n const next = (\n mode === 'solo' ? [subject ?? deck.solo ?? deck.active[0]] : [...deck.active, deck.solo]\n ).filter(nonNullable);\n\n const removed = current.filter((id) => !next.includes(id));\n const closed = Array.from(new Set([...deck.inactive.filter((id) => !next.includes(id)), ...removed]));\n deck.inactive = closed;\n\n if (mode === 'solo' && next[0]) {\n deck.solo = next[0];\n } else if (mode !== 'solo' && deck.solo) {\n deck.solo = undefined;\n deck.initialized = true;\n }\n\n if (mode === 'fullscreen' && !deck.fullscreen) {\n deck.fullscreen = true;\n } else if (mode !== 'fullscreen' && deck.fullscreen) {\n deck.fullscreen = false;\n }\n };\n\n return batch(() => {\n if ('mode' in options) {\n const current = getMode(state.deck);\n if (current !== options.mode) {\n state.previousMode[state.activeDeck] = current;\n }\n setMode(options.mode as LayoutMode);\n } else if ('revert' in options) {\n const last = state.previousMode[state.activeDeck];\n setMode(last ?? 'solo');\n } else {\n log.warn('Invalid layout mode', options);\n }\n });\n },\n }),\n createResolver({\n intent: LayoutAction.UpdateLayout,\n filter: (data): data is S.Schema.Type<typeof LayoutAction.SwitchWorkspace.fields.input> =>\n S.is(LayoutAction.SwitchWorkspace.fields.input)(data),\n resolve: ({ subject }) => {\n const state = context.requestCapability(DeckCapabilities.MutableDeckState);\n batch(() => {\n state.activeDeck = subject;\n if (!state.decks[subject]) {\n state.decks[subject] = { initialized: false, active: [], inactive: [], fullscreen: false, plankSizing: {} };\n }\n });\n\n const first = state.decks[state.activeDeck].active[0];\n if (first) {\n return {\n intents: [createIntent(LayoutAction.ScrollIntoView, { part: 'current', subject: first })],\n };\n }\n },\n }),\n createResolver({\n intent: LayoutAction.UpdateLayout,\n filter: (data): data is S.Schema.Type<typeof LayoutAction.Open.fields.input> =>\n S.is(LayoutAction.Open.fields.input)(data),\n resolve: ({ subject, options }) => {\n const { graph } = context.requestCapability(Capabilities.AppGraph);\n const state = context.requestCapability(DeckCapabilities.MutableDeckState);\n const attention = context.requestCapability(AttentionCapabilities.Attention);\n const settings = context\n .requestCapabilities(Capabilities.SettingsStore)[0]\n ?.getStore<DeckSettingsProps>(DECK_PLUGIN)?.value;\n\n const previouslyOpenIds = new Set<string>(state.deck.solo ? [state.deck.solo] : state.deck.active);\n batch(() => {\n const next = state.deck.solo\n ? (subject as string[])\n : subject.reduce(\n (acc, entryId) =>\n openEntry(acc, entryId, {\n key: options?.key,\n positioning: options?.positioning ?? settings?.newPlankPositioning,\n pivotId: options?.pivotId,\n }),\n state.deck.active,\n );\n\n return setActive({ next, state, attention });\n });\n\n const ids = state.deck.solo ? [state.deck.solo] : state.deck.active;\n const newlyOpen = ids.filter((i) => !previouslyOpenIds.has(i));\n\n return {\n intents: [\n ...(options?.scrollIntoView !== false\n ? [createIntent(LayoutAction.ScrollIntoView, { part: 'current', subject: newlyOpen[0] ?? subject[0] })]\n : []),\n createIntent(LayoutAction.Expose, { part: 'navigation', subject: newlyOpen[0] ?? subject[0] }),\n ...newlyOpen.map((id) => {\n const active = graph?.findNode(id)?.data;\n const typename = isReactiveObject(active) ? getTypename(active) : undefined;\n return createIntent(ObservabilityAction.SendEvent, {\n name: 'navigation.activate',\n properties: {\n id,\n typename,\n },\n });\n }),\n ],\n };\n },\n }),\n createResolver({\n intent: LayoutAction.UpdateLayout,\n filter: (data): data is S.Schema.Type<typeof LayoutAction.Close.fields.input> =>\n S.is(LayoutAction.Close.fields.input)(data),\n resolve: ({ subject }) => {\n const state = context.requestCapability(DeckCapabilities.MutableDeckState);\n const attention = context.requestCapability(AttentionCapabilities.Attention);\n const next = subject.reduce((acc, id) => closeEntry(acc, id), state.deck.active);\n const toAttend = setActive({ next, state, attention });\n return {\n intents: toAttend ? [createIntent(LayoutAction.ScrollIntoView, { part: 'current', subject: toAttend })] : [],\n };\n },\n }),\n createResolver({\n intent: LayoutAction.UpdateLayout,\n filter: (data): data is S.Schema.Type<typeof LayoutAction.Set.fields.input> =>\n S.is(LayoutAction.Set.fields.input)(data),\n resolve: ({ subject }) => {\n const state = context.requestCapability(DeckCapabilities.MutableDeckState);\n const attention = context.requestCapability(AttentionCapabilities.Attention);\n const toAttend = setActive({ next: subject as string[], state, attention });\n return {\n intents: toAttend ? [createIntent(LayoutAction.ScrollIntoView, { part: 'current', subject: toAttend })] : [],\n };\n },\n }),\n createResolver({\n intent: LayoutAction.UpdateLayout,\n filter: (data): data is S.Schema.Type<typeof LayoutAction.ScrollIntoView.fields.input> =>\n S.is(LayoutAction.ScrollIntoView.fields.input)(data),\n resolve: ({ subject }) => {\n const layout = context.requestCapability(DeckCapabilities.MutableDeckState);\n layout.scrollIntoView = subject;\n },\n }),\n createResolver({\n intent: DeckAction.UpdatePlankSize,\n resolve: (data) => {\n const state = context.requestCapability(DeckCapabilities.MutableDeckState);\n state.deck.plankSizing[data.id] = data.size;\n },\n }),\n createResolver({\n intent: DeckAction.Adjust,\n resolve: (adjustment) => {\n const state = context.requestCapability(DeckCapabilities.MutableDeckState);\n const attention = context.requestCapability(AttentionCapabilities.Attention);\n\n return batch(() => {\n if (adjustment.type === 'increment-end' || adjustment.type === 'increment-start') {\n setActive({\n next: incrementPlank(state.deck.active, adjustment),\n state,\n attention,\n });\n }\n\n if (adjustment.type === 'solo') {\n const entryId = adjustment.id;\n if (!state.deck.solo) {\n // Solo the entry.\n return {\n intents: [\n createIntent(LayoutAction.SetLayoutMode, {\n part: 'mode',\n subject: entryId,\n options: { mode: 'solo' },\n }),\n ],\n };\n } else {\n // Un-solo the current entry.\n return {\n intents: [\n // NOTE: The order of these is important.\n pipe(\n createIntent(LayoutAction.SetLayoutMode, { part: 'mode', options: { mode: 'deck' } }),\n chain(LayoutAction.Open, { part: 'main', subject: [entryId] }),\n ),\n ],\n };\n }\n }\n });\n },\n }),\n ]);\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { batch } from '@preact/signals-core';\n\nimport { type AttentionManager } from '@dxos/plugin-attention';\n\nimport { type DeckState } from '../types';\n\nexport type SetActiveOptions = {\n next: string[];\n state: DeckState;\n attention?: AttentionManager;\n};\n\nexport const setActive = ({ next, state, attention }: SetActiveOptions) => {\n return batch(() => {\n const active = state.deck.solo ? [state.deck.solo] : state.deck.active;\n const removed = active.filter((id) => !next.includes(id));\n const closed = Array.from(new Set([...state.deck.inactive.filter((id) => !next.includes(id)), ...removed]));\n\n state.deck.inactive = closed;\n\n if (state.deck.solo || !state.deck.initialized) {\n state.deck.solo = next[0];\n } else {\n state.deck.active = next;\n }\n\n if (attention) {\n const attended = attention.current;\n const [attendedId] = Array.from(attended);\n const isAttendedAvailable = !!attendedId && next.includes(attendedId);\n if (!isAttendedAvailable) {\n const attendedIndex = active.indexOf(attendedId);\n // If outside of bounds, focus on the first/last plank, otherwise focus on the new plank in the same position.\n const index = attendedIndex === -1 ? 0 : attendedIndex >= next.length ? next.length - 1 : attendedIndex;\n return next[index];\n }\n }\n });\n};\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport { produce } from 'immer';\n\nimport { type DeckAction, type NewPlankPositioning } from './types';\n\ntype OpenLayoutEntryOptions = { key?: string; positioning?: NewPlankPositioning; pivotId?: string };\n\nexport const openEntry = (deck: string[], entryId: string, options?: OpenLayoutEntryOptions): string[] => {\n return produce(deck, (draft) => {\n // Check that the entry is not already in the part\n if (draft.find((id) => id === entryId)) {\n return;\n }\n\n const key = options?.key;\n const plankPositioning = options?.positioning ?? 'start';\n const pivotId = options?.pivotId;\n\n if (key) {\n const index = draft.findIndex((id) => id.startsWith(key));\n if (index !== -1) {\n draft.splice(index, 1, entryId);\n return;\n }\n }\n\n if (pivotId) {\n const pivotIndex = draft.findIndex((id) => id === pivotId);\n if (pivotIndex !== -1) {\n if (plankPositioning === 'start') {\n draft.splice(pivotIndex, 0, entryId);\n } else {\n draft.splice(pivotIndex + 1, 0, entryId);\n }\n return;\n }\n }\n\n // If no pivot found or provided, fall back to original behavior\n if (plankPositioning === 'start') {\n draft.unshift(entryId);\n } else {\n draft.push(entryId);\n }\n });\n};\n\nexport const closeEntry = (deck: string[], entryId: string): string[] => {\n return produce(deck, (draft) => {\n const index = draft.findIndex((id) => id === entryId);\n if (index !== -1) {\n draft.splice(index, 1);\n }\n });\n};\n\nexport const incrementPlank = (deck: string[], adjustment: DeckAction.Adjustment): string[] => {\n return produce(deck, (draft) => {\n const index = draft.findIndex((id) => id === adjustment.id);\n if (\n index === -1 ||\n (adjustment.type === 'increment-start' && index === 0) ||\n (adjustment.type === 'increment-end' && index === draft.length - 1)\n ) {\n return;\n }\n\n if (adjustment.type === 'increment-start') {\n // Swap the current item with the previous item.\n [draft[index - 1], draft[index]] = [draft[index], draft[index - 1]];\n } else if (adjustment.type === 'increment-end') {\n // Swap the current item with the next item.\n [draft[index], draft[index + 1]] = [draft[index + 1], draft[index]];\n }\n });\n};\n"],
5
- "mappings": ";;;;;;;;;;;;;AAIA,SAASA,SAAAA,cAAa;AACtB,SAASC,YAAY;AAErB,SACEC,cACAC,gBACAC,aACAC,cACAC,cAEAC,cACAC,aACK;AACP,SAASC,aAAaC,SAAS;AAC/B,SAASC,wBAAwB;AACjC,SAASC,WAAW;AACpB,SAASC,6BAA6B;AACtC,SAASC,2BAA2B;AACpC,SAASC,mBAAmB;;;AClB5B,SAASC,aAAa;AAYf,IAAMC,YAAY,CAAC,EAAEC,MAAM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F,SAAS,mBAAmBqF,WAAWrF,SAAS,mBAAmB;AAChF8D,oBAAU;YACR9E,MAAMsG,eAAerG,MAAM2B,KAAKG,QAAQsE,UAAAA;YACxCpG;YACA4D;UACF,CAAA;QACF;AAEA,YAAIwC,WAAWrF,SAAS,QAAQ;AAC9B,gBAAMwD,UAAU6B,WAAW1H;AAC3B,cAAI,CAACsB,MAAM2B,KAAKE,MAAM;AAEpB,mBAAO;cACLwB,SAAS;gBACPC,aAAa/D,aAAagC,eAAe;kBACvCiC,MAAM;kBACNrD,SAASoE;kBACTzE,SAAS;oBAAE2B,MAAM;kBAAO;gBAC1B,CAAA;;YAEJ;UACF,OAAO;AAEL,mBAAO;cACL4B,SAAS;;gBAEPiD,KACEhD,aAAa/D,aAAagC,eAAe;kBAAEiC,MAAM;kBAAQ1D,SAAS;oBAAE2B,MAAM;kBAAO;gBAAE,CAAA,GACnF8E,MAAMhH,aAAakE,MAAM;kBAAED,MAAM;kBAAQrD,SAAS;oBAACoE;;gBAAS,CAAA,CAAA;;YAGlE;UACF;QACF;MACF,CAAA;IACF;EACF,CAAA;CACD;",
6
- "names": ["batch", "pipe", "Capabilities", "createResolver", "contributes", "IntentAction", "LayoutAction", "createIntent", "chain", "getTypename", "S", "isReactiveObject", "log", "AttentionCapabilities", "ObservabilityAction", "nonNullable", "batch", "setActive", "next", "state", "attention", "batch", "active", "deck", "solo", "removed", "filter", "id", "includes", "closed", "Array", "from", "Set", "inactive", "initialized", "attended", "current", "attendedId", "isAttendedAvailable", "attendedIndex", "indexOf", "index", "length", "produce", "openEntry", "deck", "entryId", "options", "produce", "draft", "find", "id", "key", "plankPositioning", "positioning", "pivotId", "index", "findIndex", "startsWith", "splice", "pivotIndex", "unshift", "push", "closeEntry", "incrementPlank", "adjustment", "type", "length", "context", "contributes", "Capabilities", "IntentResolver", "createResolver", "intent", "IntentAction", "ShowUndo", "resolve", "data", "layout", "requestCapability", "DeckCapabilities", "MutableDeckState", "undoPromise", "undo", "IntentDispatcher", "currentUndoId", "toasts", "filter", "toast", "id", "_tag", "Date", "now", "title", "message", "ns", "DECK_PLUGIN", "duration", "actionLabel", "actionAlt", "closeLabel", "onAction", "LayoutAction", "UpdateLayout", "S", "is", "UpdateSidebar", "fields", "input", "options", "next", "state", "sidebarState", "UpdateComplementary", "subject", "complementarySidebarPanel", "complementarySidebarState", "UpdateDialog", "dialogOpen", "Boolean", "dialogContent", "component", "props", "dialogBlockAlign", "blockAlign", "dialogType", "type", "UpdatePopover", "popoverOpen", "popoverContent", "popoverAnchorId", "anchorId", "AddToast", "push", "SetLayoutMode", "isLayoutMode", "mode", "setMode", "deck", "current", "solo", "active", "nonNullable", "removed", "includes", "closed", "Array", "from", "Set", "inactive", "undefined", "initialized", "fullscreen", "batch", "getMode", "previousMode", "activeDeck", "last", "log", "warn", "SwitchWorkspace", "decks", "plankSizing", "first", "intents", "createIntent", "ScrollIntoView", "part", "Open", "graph", "AppGraph", "attention", "AttentionCapabilities", "Attention", "settings", "requestCapabilities", "SettingsStore", "getStore", "value", "previouslyOpenIds", "reduce", "acc", "entryId", "openEntry", "key", "positioning", "newPlankPositioning", "pivotId", "setActive", "ids", "newlyOpen", "i", "has", "scrollIntoView", "Expose", "map", "findNode", "typename", "isReactiveObject", "getTypename", "ObservabilityAction", "SendEvent", "name", "properties", "Close", "closeEntry", "toAttend", "DeckAction", "UpdatePlankSize", "size", "Adjust", "adjustment", "incrementPlank", "pipe", "chain"]
7
- }