@dxos/plugin-deck 0.8.3 → 0.8.4-main.f9ba587

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 (84) hide show
  1. package/dist/lib/browser/{app-graph-builder-YCO7Y54J.mjs → app-graph-builder-JTFSDT2I.mjs} +4 -4
  2. package/dist/lib/browser/{check-app-scheme-7AXGR6UT.mjs → check-app-scheme-57U62A3A.mjs} +3 -3
  3. package/dist/lib/browser/{chunk-RAZK4XT5.mjs → chunk-7LJDT5OH.mjs} +19 -19
  4. package/dist/lib/browser/{chunk-TRFYUEBA.mjs → chunk-CNTGBCMK.mjs} +5 -5
  5. package/dist/lib/browser/{chunk-KLN73CM3.mjs → chunk-M57WD3V6.mjs} +3 -3
  6. package/dist/lib/browser/{chunk-RMCRP7HV.mjs → chunk-QBKDUEDV.mjs} +33 -33
  7. package/dist/lib/browser/{chunk-RMCRP7HV.mjs.map → chunk-QBKDUEDV.mjs.map} +1 -1
  8. package/dist/lib/browser/{chunk-FX44YX3G.mjs → chunk-QO3VIMKQ.mjs} +6 -6
  9. package/dist/lib/browser/{chunk-YN5OZEGS.mjs → chunk-XL7EWOGI.mjs} +3 -3
  10. package/dist/lib/browser/{chunk-NSATFAEE.mjs → chunk-Z5KITAZW.mjs} +2 -2
  11. package/dist/lib/browser/index.mjs +12 -12
  12. package/dist/lib/browser/index.mjs.map +3 -3
  13. package/dist/lib/browser/{intent-resolver-EGLWTKJG.mjs → intent-resolver-6YMAE4SF.mjs} +7 -7
  14. package/dist/lib/browser/meta.json +1 -1
  15. package/dist/lib/browser/{react-root-C4HIM5CI.mjs → react-root-UVN2LMU3.mjs} +9 -9
  16. package/dist/lib/browser/{react-surface-RV2AZ6WZ.mjs → react-surface-WOLHGHMN.mjs} +9 -9
  17. package/dist/lib/browser/{settings-7VUU3ZJ4.mjs → settings-L5CR5GTJ.mjs} +4 -4
  18. package/dist/lib/browser/state-ZTYWMORZ.mjs +10 -0
  19. package/dist/lib/browser/{tools-N57NQ2LH.mjs → tools-2YYFHQAS.mjs} +5 -5
  20. package/dist/lib/browser/types.mjs +2 -2
  21. package/dist/lib/browser/{url-handler-BUGI6XRE.mjs → url-handler-KZW7GBA2.mjs} +5 -5
  22. package/dist/lib/node-esm/app-graph-builder-YCSX45KJ.mjs +153 -0
  23. package/dist/lib/node-esm/app-graph-builder-YCSX45KJ.mjs.map +7 -0
  24. package/dist/lib/node-esm/check-app-scheme-3YZIA73T.mjs +33 -0
  25. package/dist/lib/node-esm/check-app-scheme-3YZIA73T.mjs.map +7 -0
  26. package/dist/lib/node-esm/chunk-ANLUUC3J.mjs +129 -0
  27. package/dist/lib/node-esm/chunk-ANLUUC3J.mjs.map +7 -0
  28. package/dist/lib/node-esm/chunk-F4YIQ5GG.mjs +128 -0
  29. package/dist/lib/node-esm/chunk-F4YIQ5GG.mjs.map +7 -0
  30. package/dist/lib/node-esm/chunk-HHG6H2BX.mjs +15 -0
  31. package/dist/lib/node-esm/chunk-HHG6H2BX.mjs.map +7 -0
  32. package/dist/lib/node-esm/chunk-KTPDAVNM.mjs +17 -0
  33. package/dist/lib/node-esm/chunk-KTPDAVNM.mjs.map +7 -0
  34. package/dist/lib/node-esm/chunk-NMSUKHE3.mjs +1495 -0
  35. package/dist/lib/node-esm/chunk-NMSUKHE3.mjs.map +7 -0
  36. package/dist/lib/node-esm/chunk-QFKYT4JK.mjs +163 -0
  37. package/dist/lib/node-esm/chunk-QFKYT4JK.mjs.map +7 -0
  38. package/dist/lib/node-esm/chunk-UJGQAMF7.mjs +147 -0
  39. package/dist/lib/node-esm/chunk-UJGQAMF7.mjs.map +7 -0
  40. package/dist/lib/node-esm/index.mjs +169 -0
  41. package/dist/lib/node-esm/index.mjs.map +7 -0
  42. package/dist/lib/node-esm/intent-resolver-URTWBGD7.mjs +522 -0
  43. package/dist/lib/node-esm/intent-resolver-URTWBGD7.mjs.map +7 -0
  44. package/dist/lib/node-esm/meta.json +1 -0
  45. package/dist/lib/node-esm/react-root-GFX4GOJT.mjs +44 -0
  46. package/dist/lib/node-esm/react-root-GFX4GOJT.mjs.map +7 -0
  47. package/dist/lib/node-esm/react-surface-F6L5PLWK.mjs +41 -0
  48. package/dist/lib/node-esm/react-surface-F6L5PLWK.mjs.map +7 -0
  49. package/dist/lib/node-esm/settings-WE3TBMOC.mjs +30 -0
  50. package/dist/lib/node-esm/settings-WE3TBMOC.mjs.map +7 -0
  51. package/dist/lib/node-esm/state-DUK6WFDX.mjs +11 -0
  52. package/dist/lib/node-esm/state-DUK6WFDX.mjs.map +7 -0
  53. package/dist/lib/node-esm/tools-HH6NN7HB.mjs +89 -0
  54. package/dist/lib/node-esm/tools-HH6NN7HB.mjs.map +7 -0
  55. package/dist/lib/node-esm/types.mjs +35 -0
  56. package/dist/lib/node-esm/types.mjs.map +7 -0
  57. package/dist/lib/node-esm/url-handler-774BWWKI.mjs +71 -0
  58. package/dist/lib/node-esm/url-handler-774BWWKI.mjs.map +7 -0
  59. package/dist/types/src/components/Plank/Plank.stories.d.ts +1 -1
  60. package/dist/types/src/components/Plank/Plank.stories.d.ts.map +1 -1
  61. package/dist/types/src/translations.d.ts +56 -56
  62. package/dist/types/src/translations.d.ts.map +1 -1
  63. package/dist/types/tsconfig.tsbuildinfo +1 -1
  64. package/package.json +34 -36
  65. package/src/DeckPlugin.ts +1 -1
  66. package/src/components/Plank/Plank.stories.tsx +3 -3
  67. package/src/components/Plank/PlankHeading.tsx +1 -1
  68. package/src/translations.ts +6 -4
  69. package/dist/lib/browser/state-VJ6E3ADY.mjs +0 -10
  70. /package/dist/lib/browser/{app-graph-builder-YCO7Y54J.mjs.map → app-graph-builder-JTFSDT2I.mjs.map} +0 -0
  71. /package/dist/lib/browser/{check-app-scheme-7AXGR6UT.mjs.map → check-app-scheme-57U62A3A.mjs.map} +0 -0
  72. /package/dist/lib/browser/{chunk-RAZK4XT5.mjs.map → chunk-7LJDT5OH.mjs.map} +0 -0
  73. /package/dist/lib/browser/{chunk-TRFYUEBA.mjs.map → chunk-CNTGBCMK.mjs.map} +0 -0
  74. /package/dist/lib/browser/{chunk-KLN73CM3.mjs.map → chunk-M57WD3V6.mjs.map} +0 -0
  75. /package/dist/lib/browser/{chunk-FX44YX3G.mjs.map → chunk-QO3VIMKQ.mjs.map} +0 -0
  76. /package/dist/lib/browser/{chunk-YN5OZEGS.mjs.map → chunk-XL7EWOGI.mjs.map} +0 -0
  77. /package/dist/lib/browser/{chunk-NSATFAEE.mjs.map → chunk-Z5KITAZW.mjs.map} +0 -0
  78. /package/dist/lib/browser/{intent-resolver-EGLWTKJG.mjs.map → intent-resolver-6YMAE4SF.mjs.map} +0 -0
  79. /package/dist/lib/browser/{react-root-C4HIM5CI.mjs.map → react-root-UVN2LMU3.mjs.map} +0 -0
  80. /package/dist/lib/browser/{react-surface-RV2AZ6WZ.mjs.map → react-surface-WOLHGHMN.mjs.map} +0 -0
  81. /package/dist/lib/browser/{settings-7VUU3ZJ4.mjs.map → settings-L5CR5GTJ.mjs.map} +0 -0
  82. /package/dist/lib/browser/{state-VJ6E3ADY.mjs.map → state-ZTYWMORZ.mjs.map} +0 -0
  83. /package/dist/lib/browser/{tools-N57NQ2LH.mjs.map → tools-2YYFHQAS.mjs.map} +0 -0
  84. /package/dist/lib/browser/{url-handler-BUGI6XRE.mjs.map → url-handler-KZW7GBA2.mjs.map} +0 -0
@@ -0,0 +1,522 @@
1
+ import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
+ import {
3
+ closeEntry,
4
+ createEntryId,
5
+ incrementPlank,
6
+ openEntry,
7
+ setActive
8
+ } from "./chunk-UJGQAMF7.mjs";
9
+ import {
10
+ DeckCapabilities
11
+ } from "./chunk-KTPDAVNM.mjs";
12
+ import {
13
+ DeckAction,
14
+ PLANK_COMPANION_TYPE,
15
+ defaultDeck,
16
+ getMode,
17
+ isLayoutMode
18
+ } from "./chunk-QFKYT4JK.mjs";
19
+ import {
20
+ DECK_PLUGIN
21
+ } from "./chunk-HHG6H2BX.mjs";
22
+
23
+ // src/capabilities/intent-resolver.ts
24
+ import { batch } from "@preact/signals-core";
25
+ import { Schema, Effect, pipe, Option } from "effect";
26
+ import { Capabilities, createResolver, contributes, IntentAction, LayoutAction, createIntent, chain } from "@dxos/app-framework";
27
+ import { Obj } from "@dxos/echo";
28
+ import { invariant } from "@dxos/invariant";
29
+ import { isLiveObject } from "@dxos/live-object";
30
+ import { log } from "@dxos/log";
31
+ import { AttentionCapabilities } from "@dxos/plugin-attention";
32
+ import { isActionLike } from "@dxos/plugin-graph";
33
+ import { ObservabilityAction } from "@dxos/plugin-observability/types";
34
+ import { byPosition, isNonNullable } from "@dxos/util";
35
+ var __dxlog_file = "/__w/dxos/dxos/packages/plugins/plugin-deck/src/capabilities/intent-resolver.ts";
36
+ var intent_resolver_default = (context) => contributes(Capabilities.IntentResolver, [
37
+ createResolver({
38
+ intent: IntentAction.ShowUndo,
39
+ resolve: (data) => {
40
+ const layout = context.getCapability(DeckCapabilities.MutableDeckState);
41
+ const { undoPromise: undo } = context.getCapability(Capabilities.IntentDispatcher);
42
+ if (layout.currentUndoId) {
43
+ layout.toasts = layout.toasts.filter((toast) => toast.id !== layout.currentUndoId);
44
+ }
45
+ layout.currentUndoId = `${IntentAction.ShowUndo._tag}-${Date.now()}`;
46
+ layout.toasts = [
47
+ ...layout.toasts,
48
+ {
49
+ id: layout.currentUndoId,
50
+ title: data.message ?? [
51
+ "undo available label",
52
+ {
53
+ ns: DECK_PLUGIN
54
+ }
55
+ ],
56
+ duration: 1e4,
57
+ actionLabel: [
58
+ "undo action label",
59
+ {
60
+ ns: DECK_PLUGIN
61
+ }
62
+ ],
63
+ actionAlt: [
64
+ "undo action alt",
65
+ {
66
+ ns: DECK_PLUGIN
67
+ }
68
+ ],
69
+ closeLabel: [
70
+ "undo close label",
71
+ {
72
+ ns: DECK_PLUGIN
73
+ }
74
+ ],
75
+ onAction: () => undo()
76
+ }
77
+ ];
78
+ }
79
+ }),
80
+ createResolver({
81
+ intent: LayoutAction.UpdateLayout,
82
+ // TODO(wittjosiah): This should be able to just be `Schema.is(LayoutAction.UpdateSidebar.fields.input)`
83
+ // but the filter is not being applied correctly.
84
+ filter: (data) => Schema.is(LayoutAction.UpdateSidebar.fields.input)(data),
85
+ resolve: ({ options }) => {
86
+ const layout = context.getCapability(DeckCapabilities.MutableDeckState);
87
+ const next = options?.state ?? layout.sidebarState;
88
+ if (next !== layout.sidebarState) {
89
+ layout.sidebarState = next;
90
+ }
91
+ }
92
+ }),
93
+ createResolver({
94
+ intent: LayoutAction.UpdateLayout,
95
+ // TODO(wittjosiah): This should be able to just be `Schema.is(LayoutAction.UpdateComplementary.fields.input)`
96
+ // but the filter is not being applied correctly.
97
+ filter: (data) => Schema.is(LayoutAction.UpdateComplementary.fields.input)(data),
98
+ resolve: ({ subject, options }) => {
99
+ const layout = context.getCapability(DeckCapabilities.MutableDeckState);
100
+ if (layout.complementarySidebarPanel !== subject) {
101
+ layout.complementarySidebarPanel = subject;
102
+ }
103
+ const next = subject ? "expanded" : options?.state ?? layout.complementarySidebarState;
104
+ if (next !== layout.complementarySidebarState) {
105
+ layout.complementarySidebarState = next;
106
+ }
107
+ }
108
+ }),
109
+ createResolver({
110
+ intent: LayoutAction.UpdateLayout,
111
+ // TODO(wittjosiah): This should be able to just be `Schema.is(LayoutAction.UpdateDialog.fields.input)`
112
+ // but the filter is not being applied correctly.
113
+ filter: (data) => Schema.is(LayoutAction.UpdateDialog.fields.input)(data),
114
+ resolve: ({ subject, options }) => {
115
+ const layout = context.getCapability(DeckCapabilities.MutableDeckState);
116
+ layout.dialogOpen = options.state ?? Boolean(subject);
117
+ layout.dialogType = options.type ?? "default";
118
+ layout.dialogBlockAlign = options.blockAlign ?? "center";
119
+ layout.dialogOverlayClasses = options.overlayClasses;
120
+ layout.dialogOverlayStyle = options.overlayStyle;
121
+ layout.dialogContent = subject ? {
122
+ component: subject,
123
+ props: options.props
124
+ } : null;
125
+ }
126
+ }),
127
+ createResolver({
128
+ intent: LayoutAction.UpdateLayout,
129
+ // TODO(wittjosiah): This should be able to just be `Schema.is(LayoutAction.UpdatePopover.fields.input)`
130
+ // but the filter is not being applied correctly.
131
+ filter: (data) => Schema.is(LayoutAction.UpdatePopover.fields.input)(data),
132
+ resolve: ({ subject, options }) => {
133
+ const layout = context.getCapability(DeckCapabilities.MutableDeckState);
134
+ layout.popoverOpen = options.state ?? Boolean(subject);
135
+ layout.popoverContent = typeof subject === "string" ? {
136
+ component: subject,
137
+ props: options.props
138
+ } : subject ? {
139
+ subject
140
+ } : null;
141
+ layout.popoverSide = options.side;
142
+ if (options.variant === "virtual") {
143
+ layout.popoverAnchor = options.anchor;
144
+ } else {
145
+ layout.popoverAnchorId = options.anchorId;
146
+ }
147
+ }
148
+ }),
149
+ createResolver({
150
+ intent: LayoutAction.UpdateLayout,
151
+ // TODO(wittjosiah): This should be able to just be `Schema.is(LayoutAction.AddToast.fields.input)`
152
+ // but the filter is not being applied correctly.
153
+ filter: (data) => Schema.is(LayoutAction.AddToast.fields.input)(data),
154
+ resolve: ({ subject }) => {
155
+ const layout = context.getCapability(DeckCapabilities.MutableDeckState);
156
+ layout.toasts.push(subject);
157
+ }
158
+ }),
159
+ createResolver({
160
+ intent: LayoutAction.UpdateLayout,
161
+ // TODO(wittjosiah): This should be able to just be `Schema.is(LayoutAction.SetLayoutMode.fields.input)`
162
+ // but the filter is not being applied correctly.
163
+ filter: (data) => {
164
+ if (!Schema.is(LayoutAction.SetLayoutMode.fields.input)(data)) {
165
+ return false;
166
+ }
167
+ if ("mode" in data.options) {
168
+ return isLayoutMode(data.options.mode);
169
+ }
170
+ return true;
171
+ },
172
+ resolve: ({ subject, options }) => {
173
+ const state = context.getCapability(DeckCapabilities.MutableDeckState);
174
+ const setMode = (mode) => {
175
+ const deck = state.deck;
176
+ const current = deck.solo ? [
177
+ deck.solo
178
+ ] : deck.active;
179
+ const next = (mode !== "deck" ? [
180
+ subject ?? deck.solo ?? deck.active[0]
181
+ ] : [
182
+ ...deck.active,
183
+ deck.solo
184
+ ]).filter(isNonNullable);
185
+ const removed = current.filter((id) => !next.includes(id));
186
+ const closed = Array.from(/* @__PURE__ */ new Set([
187
+ ...deck.inactive.filter((id) => !next.includes(id)),
188
+ ...removed
189
+ ]));
190
+ deck.inactive = closed;
191
+ if (mode !== "deck" && next[0]) {
192
+ deck.solo = next[0];
193
+ } else if (mode === "deck" && deck.solo) {
194
+ deck.solo = void 0;
195
+ deck.initialized = true;
196
+ }
197
+ if (mode === "solo--fullscreen") {
198
+ deck.fullscreen = !deck.fullscreen;
199
+ }
200
+ };
201
+ return batch(() => {
202
+ if ("mode" in options) {
203
+ const current = getMode(state.deck);
204
+ if (current !== options.mode) {
205
+ state.previousMode[state.activeDeck] = current;
206
+ }
207
+ setMode(options.mode);
208
+ } else if ("revert" in options) {
209
+ const last = state.previousMode[state.activeDeck];
210
+ setMode(last ?? "solo");
211
+ } else {
212
+ log.warn("Invalid layout mode", options, {
213
+ F: __dxlog_file,
214
+ L: 200,
215
+ S: void 0,
216
+ C: (f, a) => f(...a)
217
+ });
218
+ }
219
+ });
220
+ }
221
+ }),
222
+ createResolver({
223
+ intent: LayoutAction.UpdateLayout,
224
+ filter: (data) => Schema.is(LayoutAction.SwitchWorkspace.fields.input)(data),
225
+ resolve: ({ subject }) => {
226
+ const { graph } = context.getCapability(Capabilities.AppGraph);
227
+ const state = context.getCapability(DeckCapabilities.MutableDeckState);
228
+ batch(() => {
229
+ if (!state.activeDeck.startsWith("!")) {
230
+ state.previousDeck = state.activeDeck;
231
+ }
232
+ state.activeDeck = subject;
233
+ if (!state.decks[subject]) {
234
+ state.decks[subject] = {
235
+ ...defaultDeck
236
+ };
237
+ }
238
+ });
239
+ const first = state.deck.solo ? state.deck.solo : state.deck.active[0];
240
+ if (first) {
241
+ return {
242
+ intents: [
243
+ createIntent(LayoutAction.ScrollIntoView, {
244
+ part: "current",
245
+ subject: first
246
+ })
247
+ ]
248
+ };
249
+ } else {
250
+ const [item] = graph.getConnections(subject).filter((node) => !isActionLike(node) && !node.properties.disposition);
251
+ if (item) {
252
+ return {
253
+ intents: [
254
+ createIntent(LayoutAction.Open, {
255
+ part: "main",
256
+ subject: [
257
+ item.id
258
+ ]
259
+ })
260
+ ]
261
+ };
262
+ }
263
+ }
264
+ }
265
+ }),
266
+ createResolver({
267
+ intent: LayoutAction.UpdateLayout,
268
+ filter: (data) => Schema.is(LayoutAction.RevertWorkspace.fields.input)(data),
269
+ resolve: () => {
270
+ const state = context.getCapability(DeckCapabilities.MutableDeckState);
271
+ return {
272
+ intents: [
273
+ createIntent(LayoutAction.SwitchWorkspace, {
274
+ part: "workspace",
275
+ subject: state.previousDeck
276
+ })
277
+ ]
278
+ };
279
+ }
280
+ }),
281
+ createResolver({
282
+ intent: LayoutAction.UpdateLayout,
283
+ filter: (data) => Schema.is(LayoutAction.Open.fields.input)(data),
284
+ resolve: ({ subject, options }) => Effect.gen(function* () {
285
+ const { graph } = context.getCapability(Capabilities.AppGraph);
286
+ const state = context.getCapability(DeckCapabilities.MutableDeckState);
287
+ const attention = context.getCapability(AttentionCapabilities.Attention);
288
+ const settings = context.getCapabilities(Capabilities.SettingsStore)[0]?.getStore(DECK_PLUGIN)?.value;
289
+ if (options?.workspace && state.activeDeck !== options?.workspace) {
290
+ const { dispatch } = context.getCapability(Capabilities.IntentDispatcher);
291
+ yield* dispatch(createIntent(LayoutAction.SwitchWorkspace, {
292
+ part: "workspace",
293
+ subject: options.workspace
294
+ }));
295
+ }
296
+ const previouslyOpenIds = new Set(state.deck.solo ? [
297
+ state.deck.solo
298
+ ] : state.deck.active);
299
+ batch(() => {
300
+ const next = state.deck.solo ? subject.map((id) => createEntryId(id, options?.variant)) : subject.reduce((acc, entryId) => openEntry(acc, entryId, {
301
+ key: options?.key,
302
+ positioning: options?.positioning ?? settings?.newPlankPositioning,
303
+ pivotId: options?.pivotId,
304
+ variant: options?.variant
305
+ }), state.deck.active);
306
+ return setActive({
307
+ next,
308
+ state,
309
+ attention
310
+ });
311
+ });
312
+ const ids = state.deck.solo ? [
313
+ state.deck.solo
314
+ ] : state.deck.active;
315
+ const newlyOpen = ids.filter((i) => !previouslyOpenIds.has(i));
316
+ return {
317
+ intents: [
318
+ ...options?.scrollIntoView !== false ? [
319
+ createIntent(LayoutAction.ScrollIntoView, {
320
+ part: "current",
321
+ subject: newlyOpen[0] ?? subject[0]
322
+ })
323
+ ] : [],
324
+ createIntent(LayoutAction.Expose, {
325
+ part: "navigation",
326
+ subject: newlyOpen[0] ?? subject[0]
327
+ }),
328
+ ...newlyOpen.map((subjectId) => {
329
+ const typename = Option.match(graph.getNode(subjectId), {
330
+ onNone: () => void 0,
331
+ onSome: (node) => {
332
+ const active = node.data;
333
+ return isLiveObject(active) ? Obj.getTypename(active) : void 0;
334
+ }
335
+ });
336
+ return createIntent(ObservabilityAction.SendEvent, {
337
+ name: "navigation.activate",
338
+ properties: {
339
+ subjectId,
340
+ typename
341
+ }
342
+ });
343
+ })
344
+ ]
345
+ };
346
+ })
347
+ }),
348
+ createResolver({
349
+ intent: LayoutAction.UpdateLayout,
350
+ filter: (data) => Schema.is(LayoutAction.Close.fields.input)(data),
351
+ resolve: ({ subject }) => {
352
+ const state = context.getCapability(DeckCapabilities.MutableDeckState);
353
+ const attention = context.getCapability(AttentionCapabilities.Attention);
354
+ const active = state.deck.solo ? [
355
+ state.deck.solo
356
+ ] : state.deck.active;
357
+ const next = subject.reduce((acc, id) => closeEntry(acc, id), active);
358
+ const toAttend = setActive({
359
+ next,
360
+ state,
361
+ attention
362
+ });
363
+ const clearCompanionIntents = subject.filter((id) => state.deck.activeCompanions && id in state.deck.activeCompanions).map((primary) => createIntent(DeckAction.ChangeCompanion, {
364
+ primary,
365
+ companion: null
366
+ }));
367
+ return {
368
+ intents: [
369
+ ...clearCompanionIntents,
370
+ ...toAttend ? [
371
+ createIntent(LayoutAction.ScrollIntoView, {
372
+ part: "current",
373
+ subject: toAttend
374
+ })
375
+ ] : []
376
+ ]
377
+ };
378
+ }
379
+ }),
380
+ createResolver({
381
+ intent: LayoutAction.UpdateLayout,
382
+ filter: (data) => Schema.is(LayoutAction.Set.fields.input)(data),
383
+ resolve: ({ subject }) => {
384
+ const state = context.getCapability(DeckCapabilities.MutableDeckState);
385
+ const attention = context.getCapability(AttentionCapabilities.Attention);
386
+ const toAttend = setActive({
387
+ next: subject,
388
+ state,
389
+ attention
390
+ });
391
+ return {
392
+ intents: toAttend ? [
393
+ createIntent(LayoutAction.ScrollIntoView, {
394
+ part: "current",
395
+ subject: toAttend
396
+ })
397
+ ] : []
398
+ };
399
+ }
400
+ }),
401
+ createResolver({
402
+ intent: LayoutAction.UpdateLayout,
403
+ filter: (data) => Schema.is(LayoutAction.ScrollIntoView.fields.input)(data),
404
+ resolve: ({ subject }) => {
405
+ const layout = context.getCapability(DeckCapabilities.MutableDeckState);
406
+ layout.scrollIntoView = subject;
407
+ }
408
+ }),
409
+ createResolver({
410
+ intent: DeckAction.UpdatePlankSize,
411
+ resolve: (data) => {
412
+ const state = context.getCapability(DeckCapabilities.MutableDeckState);
413
+ state.deck.plankSizing[data.id] = data.size;
414
+ }
415
+ }),
416
+ createResolver({
417
+ intent: DeckAction.ChangeCompanion,
418
+ resolve: (data) => {
419
+ const state = context.getCapability(DeckCapabilities.MutableDeckState);
420
+ if (data.companion === null) {
421
+ const { [data.primary]: _, ...nextActiveCompanions } = state.deck.activeCompanions ?? {};
422
+ state.deck.activeCompanions = nextActiveCompanions;
423
+ } else {
424
+ invariant(data.companion !== data.primary, void 0, {
425
+ F: __dxlog_file,
426
+ L: 380,
427
+ S: void 0,
428
+ A: [
429
+ "data.companion !== data.primary",
430
+ ""
431
+ ]
432
+ });
433
+ state.deck.activeCompanions = {
434
+ ...state.deck.activeCompanions,
435
+ [data.primary]: data.companion
436
+ };
437
+ }
438
+ }
439
+ }),
440
+ createResolver({
441
+ intent: DeckAction.Adjust,
442
+ resolve: (adjustment) => {
443
+ const state = context.getCapability(DeckCapabilities.MutableDeckState);
444
+ const attention = context.getCapability(AttentionCapabilities.Attention);
445
+ const { graph } = context.getCapability(Capabilities.AppGraph);
446
+ return batch(() => {
447
+ if (adjustment.type === "increment-end" || adjustment.type === "increment-start") {
448
+ setActive({
449
+ next: incrementPlank(state.deck.active, adjustment),
450
+ state,
451
+ attention
452
+ });
453
+ }
454
+ if (adjustment.type === "companion") {
455
+ return pipe(graph.getNode(adjustment.id), Option.map((node) => graph.getConnections(node.id).filter((n) => n.type === PLANK_COMPANION_TYPE).toSorted((a, b) => byPosition(a.properties, b.properties))), Option.flatMap((companions) => companions.length > 0 ? Option.some(companions[0]) : Option.none()), Option.match({
456
+ onNone: () => ({}),
457
+ onSome: (companion) => ({
458
+ intents: [
459
+ // TODO(wittjosiah): This should remember the previously selected companion.
460
+ createIntent(DeckAction.ChangeCompanion, {
461
+ primary: adjustment.id,
462
+ companion: companion.id
463
+ })
464
+ ]
465
+ })
466
+ }));
467
+ }
468
+ if (adjustment.type.startsWith("solo")) {
469
+ const entryId = adjustment.id;
470
+ if (!state.deck.solo) {
471
+ return {
472
+ intents: [
473
+ createIntent(LayoutAction.SetLayoutMode, {
474
+ part: "mode",
475
+ subject: entryId,
476
+ options: {
477
+ mode: adjustment.type
478
+ }
479
+ })
480
+ ]
481
+ };
482
+ } else {
483
+ if (adjustment.type === "solo--fullscreen") {
484
+ return {
485
+ intents: [
486
+ createIntent(LayoutAction.SetLayoutMode, {
487
+ part: "mode",
488
+ subject: entryId,
489
+ options: {
490
+ mode: "solo--fullscreen"
491
+ }
492
+ })
493
+ ]
494
+ };
495
+ } else if (adjustment.type === "solo") {
496
+ return {
497
+ intents: [
498
+ // NOTE: The order of these is important.
499
+ pipe(createIntent(LayoutAction.SetLayoutMode, {
500
+ part: "mode",
501
+ options: {
502
+ mode: "deck"
503
+ }
504
+ }), chain(LayoutAction.Open, {
505
+ part: "main",
506
+ subject: [
507
+ entryId
508
+ ]
509
+ }))
510
+ ]
511
+ };
512
+ }
513
+ }
514
+ }
515
+ });
516
+ }
517
+ })
518
+ ]);
519
+ export {
520
+ intent_resolver_default as default
521
+ };
522
+ //# sourceMappingURL=intent-resolver-URTWBGD7.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/capabilities/intent-resolver.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { batch } from '@preact/signals-core';\nimport { Schema, Effect, pipe, Option } from 'effect';\n\nimport {\n Capabilities,\n createResolver,\n contributes,\n IntentAction,\n LayoutAction,\n type PluginContext,\n createIntent,\n chain,\n} from '@dxos/app-framework';\nimport { Obj } from '@dxos/echo';\nimport { invariant } from '@dxos/invariant';\nimport { isLiveObject } from '@dxos/live-object';\nimport { log } from '@dxos/log';\nimport { AttentionCapabilities } from '@dxos/plugin-attention';\nimport { isActionLike } from '@dxos/plugin-graph';\nimport { ObservabilityAction } from '@dxos/plugin-observability/types';\nimport { byPosition, isNonNullable } from '@dxos/util';\n\nimport { DeckCapabilities } from './capabilities';\nimport { closeEntry, createEntryId, incrementPlank, openEntry } from '../layout';\nimport { DECK_PLUGIN } from '../meta';\nimport {\n DeckAction,\n type LayoutMode,\n type DeckSettingsProps,\n isLayoutMode,\n getMode,\n defaultDeck,\n PLANK_COMPANION_TYPE,\n} from '../types';\nimport { setActive } from '../util';\n\nexport default (context: PluginContext) =>\n contributes(Capabilities.IntentResolver, [\n createResolver({\n intent: IntentAction.ShowUndo,\n resolve: (data) => {\n const layout = context.getCapability(DeckCapabilities.MutableDeckState);\n const { undoPromise: undo } = context.getCapability(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 `Schema.is(LayoutAction.UpdateSidebar.fields.input)`\n // but the filter is not being applied correctly.\n filter: (data): data is Schema.Schema.Type<typeof LayoutAction.UpdateSidebar.fields.input> =>\n Schema.is(LayoutAction.UpdateSidebar.fields.input)(data),\n resolve: ({ options }) => {\n const layout = context.getCapability(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 `Schema.is(LayoutAction.UpdateComplementary.fields.input)`\n // but the filter is not being applied correctly.\n filter: (data): data is Schema.Schema.Type<typeof LayoutAction.UpdateComplementary.fields.input> =>\n Schema.is(LayoutAction.UpdateComplementary.fields.input)(data),\n resolve: ({ subject, options }) => {\n const layout = context.getCapability(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 `Schema.is(LayoutAction.UpdateDialog.fields.input)`\n // but the filter is not being applied correctly.\n filter: (data): data is Schema.Schema.Type<typeof LayoutAction.UpdateDialog.fields.input> =>\n Schema.is(LayoutAction.UpdateDialog.fields.input)(data),\n resolve: ({ subject, options }) => {\n const layout = context.getCapability(DeckCapabilities.MutableDeckState);\n layout.dialogOpen = options.state ?? Boolean(subject);\n layout.dialogType = options.type ?? 'default';\n layout.dialogBlockAlign = options.blockAlign ?? 'center';\n layout.dialogOverlayClasses = options.overlayClasses;\n layout.dialogOverlayStyle = options.overlayStyle;\n layout.dialogContent = subject ? { component: subject, props: options.props } : null;\n },\n }),\n createResolver({\n intent: LayoutAction.UpdateLayout,\n // TODO(wittjosiah): This should be able to just be `Schema.is(LayoutAction.UpdatePopover.fields.input)`\n // but the filter is not being applied correctly.\n filter: (data): data is Schema.Schema.Type<typeof LayoutAction.UpdatePopover.fields.input> =>\n Schema.is(LayoutAction.UpdatePopover.fields.input)(data),\n resolve: ({ subject, options }) => {\n const layout = context.getCapability(DeckCapabilities.MutableDeckState);\n layout.popoverOpen = options.state ?? Boolean(subject);\n layout.popoverContent =\n typeof subject === 'string' ? { component: subject, props: options.props } : subject ? { subject } : null;\n layout.popoverSide = options.side;\n if (options.variant === 'virtual') {\n layout.popoverAnchor = options.anchor;\n } else {\n layout.popoverAnchorId = options.anchorId;\n }\n },\n }),\n createResolver({\n intent: LayoutAction.UpdateLayout,\n // TODO(wittjosiah): This should be able to just be `Schema.is(LayoutAction.AddToast.fields.input)`\n // but the filter is not being applied correctly.\n filter: (data): data is Schema.Schema.Type<typeof LayoutAction.AddToast.fields.input> =>\n Schema.is(LayoutAction.AddToast.fields.input)(data),\n resolve: ({ subject }) => {\n const layout = context.getCapability(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 `Schema.is(LayoutAction.SetLayoutMode.fields.input)`\n // but the filter is not being applied correctly.\n filter: (data): data is Schema.Schema.Type<typeof LayoutAction.SetLayoutMode.fields.input> => {\n if (!Schema.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.getCapability(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 !== 'deck' ? [subject ?? deck.solo ?? deck.active[0]] : [...deck.active, deck.solo]\n ).filter(isNonNullable);\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 !== 'deck' && next[0]) {\n deck.solo = next[0];\n } else if (mode === 'deck' && deck.solo) {\n deck.solo = undefined;\n deck.initialized = true;\n }\n\n if (mode === 'solo--fullscreen') {\n deck.fullscreen = !deck.fullscreen;\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 Schema.Schema.Type<typeof LayoutAction.SwitchWorkspace.fields.input> =>\n Schema.is(LayoutAction.SwitchWorkspace.fields.input)(data),\n resolve: ({ subject }) => {\n const { graph } = context.getCapability(Capabilities.AppGraph);\n const state = context.getCapability(DeckCapabilities.MutableDeckState);\n batch(() => {\n // TODO(wittjosiah): This is a hack to prevent the previous deck from being set for pinned items.\n // Ideally this should be worked into the data model in a generic way.\n if (!state.activeDeck.startsWith('!')) {\n state.previousDeck = state.activeDeck;\n }\n state.activeDeck = subject;\n if (!state.decks[subject]) {\n state.decks[subject] = { ...defaultDeck };\n }\n });\n\n const first = state.deck.solo ? state.deck.solo : state.deck.active[0];\n if (first) {\n return {\n intents: [createIntent(LayoutAction.ScrollIntoView, { part: 'current', subject: first })],\n };\n } else {\n const [item] = graph\n .getConnections(subject)\n .filter((node) => !isActionLike(node) && !node.properties.disposition);\n if (item) {\n return {\n intents: [createIntent(LayoutAction.Open, { part: 'main', subject: [item.id] })],\n };\n }\n }\n },\n }),\n createResolver({\n intent: LayoutAction.UpdateLayout,\n filter: (data): data is Schema.Schema.Type<typeof LayoutAction.RevertWorkspace.fields.input> =>\n Schema.is(LayoutAction.RevertWorkspace.fields.input)(data),\n resolve: () => {\n const state = context.getCapability(DeckCapabilities.MutableDeckState);\n return {\n intents: [createIntent(LayoutAction.SwitchWorkspace, { part: 'workspace', subject: state.previousDeck })],\n };\n },\n }),\n createResolver({\n intent: LayoutAction.UpdateLayout,\n filter: (data): data is Schema.Schema.Type<typeof LayoutAction.Open.fields.input> =>\n Schema.is(LayoutAction.Open.fields.input)(data),\n resolve: ({ subject, options }) =>\n Effect.gen(function* () {\n const { graph } = context.getCapability(Capabilities.AppGraph);\n const state = context.getCapability(DeckCapabilities.MutableDeckState);\n const attention = context.getCapability(AttentionCapabilities.Attention);\n const settings = context\n .getCapabilities(Capabilities.SettingsStore)[0]\n ?.getStore<DeckSettingsProps>(DECK_PLUGIN)?.value;\n\n if (options?.workspace && state.activeDeck !== options?.workspace) {\n const { dispatch } = context.getCapability(Capabilities.IntentDispatcher);\n yield* dispatch(\n createIntent(LayoutAction.SwitchWorkspace, { part: 'workspace', subject: options.workspace }),\n );\n }\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[]).map((id) => createEntryId(id, options?.variant))\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 variant: options?.variant,\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((subjectId) => {\n const typename = Option.match(graph.getNode(subjectId), {\n onNone: () => undefined,\n onSome: (node) => {\n const active = node.data;\n return isLiveObject(active) ? Obj.getTypename(active) : undefined;\n },\n });\n return createIntent(ObservabilityAction.SendEvent, {\n name: 'navigation.activate',\n properties: {\n subjectId,\n typename,\n },\n });\n }),\n ],\n };\n }),\n }),\n createResolver({\n intent: LayoutAction.UpdateLayout,\n filter: (data): data is Schema.Schema.Type<typeof LayoutAction.Close.fields.input> =>\n Schema.is(LayoutAction.Close.fields.input)(data),\n resolve: ({ subject }) => {\n const state = context.getCapability(DeckCapabilities.MutableDeckState);\n const attention = context.getCapability(AttentionCapabilities.Attention);\n const active = state.deck.solo ? [state.deck.solo] : state.deck.active;\n const next = subject.reduce((acc, id) => closeEntry(acc, id), active);\n const toAttend = setActive({ next, state, attention });\n\n const clearCompanionIntents = subject\n .filter((id) => state.deck.activeCompanions && id in state.deck.activeCompanions)\n .map((primary) => createIntent(DeckAction.ChangeCompanion, { primary, companion: null }));\n\n return {\n intents: [\n ...clearCompanionIntents,\n ...(toAttend ? [createIntent(LayoutAction.ScrollIntoView, { part: 'current', subject: toAttend })] : []),\n ],\n };\n },\n }),\n createResolver({\n intent: LayoutAction.UpdateLayout,\n filter: (data): data is Schema.Schema.Type<typeof LayoutAction.Set.fields.input> =>\n Schema.is(LayoutAction.Set.fields.input)(data),\n resolve: ({ subject }) => {\n const state = context.getCapability(DeckCapabilities.MutableDeckState);\n const attention = context.getCapability(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 Schema.Schema.Type<typeof LayoutAction.ScrollIntoView.fields.input> =>\n Schema.is(LayoutAction.ScrollIntoView.fields.input)(data),\n resolve: ({ subject }) => {\n const layout = context.getCapability(DeckCapabilities.MutableDeckState);\n layout.scrollIntoView = subject;\n },\n }),\n createResolver({\n intent: DeckAction.UpdatePlankSize,\n resolve: (data) => {\n const state = context.getCapability(DeckCapabilities.MutableDeckState);\n state.deck.plankSizing[data.id] = data.size;\n },\n }),\n createResolver({\n intent: DeckAction.ChangeCompanion,\n resolve: (data) => {\n const state = context.getCapability(DeckCapabilities.MutableDeckState);\n // TODO(thure): Reactivity only works when creating a lexically new `activeCompanions`… Are these not proxy objects?\n if (data.companion === null) {\n const { [data.primary]: _, ...nextActiveCompanions } = state.deck.activeCompanions ?? {};\n state.deck.activeCompanions = nextActiveCompanions;\n } else {\n invariant(data.companion !== data.primary);\n state.deck.activeCompanions = {\n ...state.deck.activeCompanions,\n [data.primary]: data.companion,\n };\n }\n },\n }),\n createResolver({\n intent: DeckAction.Adjust,\n resolve: (adjustment) => {\n const state = context.getCapability(DeckCapabilities.MutableDeckState);\n const attention = context.getCapability(AttentionCapabilities.Attention);\n const { graph } = context.getCapability(Capabilities.AppGraph);\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 === 'companion') {\n return pipe(\n graph.getNode(adjustment.id),\n Option.map((node) =>\n graph\n .getConnections(node.id)\n .filter((n) => n.type === PLANK_COMPANION_TYPE)\n .toSorted((a, b) => byPosition(a.properties, b.properties)),\n ),\n Option.flatMap((companions) => (companions.length > 0 ? Option.some(companions[0]) : Option.none())),\n Option.match({\n onNone: () => ({}),\n onSome: (companion) => ({\n intents: [\n // TODO(wittjosiah): This should remember the previously selected companion.\n createIntent(DeckAction.ChangeCompanion, { primary: adjustment.id, companion: companion.id }),\n ],\n }),\n }),\n );\n }\n\n if (adjustment.type.startsWith('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: adjustment.type },\n }),\n ],\n };\n } else {\n if (adjustment.type === 'solo--fullscreen') {\n // Toggle fullscreen on the current entry.\n return {\n intents: [\n createIntent(LayoutAction.SetLayoutMode, {\n part: 'mode',\n subject: entryId,\n options: { mode: 'solo--fullscreen' },\n }),\n ],\n };\n } else if (adjustment.type === 'solo') {\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"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAIA,SAASA,aAAa;AACtB,SAASC,QAAQC,QAAQC,MAAMC,cAAc;AAE7C,SACEC,cACAC,gBACAC,aACAC,cACAC,cAEAC,cACAC,aACK;AACP,SAASC,WAAW;AACpB,SAASC,iBAAiB;AAC1B,SAASC,oBAAoB;AAC7B,SAASC,WAAW;AACpB,SAASC,6BAA6B;AACtC,SAASC,oBAAoB;AAC7B,SAASC,2BAA2B;AACpC,SAASC,YAAYC,qBAAqB;;AAgB1C,IAAA,0BAAe,CAACC,YACdC,YAAYC,aAAaC,gBAAgB;EACvCC,eAAe;IACbC,QAAQC,aAAaC;IACrBC,SAAS,CAACC,SAAAA;AACR,YAAMC,SAASV,QAAQW,cAAcC,iBAAiBC,gBAAgB;AACtE,YAAM,EAAEC,aAAaC,KAAI,IAAKf,QAAQW,cAAcT,aAAac,gBAAgB;AAGjF,UAAIN,OAAOO,eAAe;AACxBP,eAAOQ,SAASR,OAAOQ,OAAOC,OAAO,CAACC,UAAUA,MAAMC,OAAOX,OAAOO,aAAa;MACnF;AACAP,aAAOO,gBAAgB,GAAGX,aAAaC,SAASe,IAAI,IAAIC,KAAKC,IAAG,CAAA;AAChEd,aAAOQ,SAAS;WACXR,OAAOQ;QACV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AO;cACL4B,SAAS;gBACPC,aAAa5E,aAAayC,eAAe;kBACvCqC,MAAM;kBACNlE,SAAS4F;kBACTjG,SAAS;oBAAEoC,MAAMuG,WAAW/H;kBAAK;gBACnC,CAAA;;YAEJ;UACF,OAAO;AACL,gBAAI+H,WAAW/H,SAAS,oBAAoB;AAE1C,qBAAO;gBACLwD,SAAS;kBACPC,aAAa5E,aAAayC,eAAe;oBACvCqC,MAAM;oBACNlE,SAAS4F;oBACTjG,SAAS;sBAAEoC,MAAM;oBAAmB;kBACtC,CAAA;;cAEJ;YACF,WAAWuG,WAAW/H,SAAS,QAAQ;AAErC,qBAAO;gBACLwD,SAAS;;kBAEPyE,KACExE,aAAa5E,aAAayC,eAAe;oBAAEqC,MAAM;oBAAQvE,SAAS;sBAAEoC,MAAM;oBAAO;kBAAE,CAAA,GACnFqH,MAAMhK,aAAaqF,MAAM;oBAAEP,MAAM;oBAAQlE,SAAS;sBAAC4F;;kBAAS,CAAA,CAAA;;cAGlE;YACF;UACF;QACF;MACF,CAAA;IACF;EACF,CAAA;CACD;",
6
+ "names": ["batch", "Schema", "Effect", "pipe", "Option", "Capabilities", "createResolver", "contributes", "IntentAction", "LayoutAction", "createIntent", "chain", "Obj", "invariant", "isLiveObject", "log", "AttentionCapabilities", "isActionLike", "ObservabilityAction", "byPosition", "isNonNullable", "context", "contributes", "Capabilities", "IntentResolver", "createResolver", "intent", "IntentAction", "ShowUndo", "resolve", "data", "layout", "getCapability", "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", "Schema", "is", "UpdateSidebar", "fields", "input", "options", "next", "state", "sidebarState", "UpdateComplementary", "subject", "complementarySidebarPanel", "complementarySidebarState", "UpdateDialog", "dialogOpen", "Boolean", "dialogType", "type", "dialogBlockAlign", "blockAlign", "dialogOverlayClasses", "overlayClasses", "dialogOverlayStyle", "overlayStyle", "dialogContent", "component", "props", "UpdatePopover", "popoverOpen", "popoverContent", "popoverSide", "side", "variant", "popoverAnchor", "anchor", "popoverAnchorId", "anchorId", "AddToast", "push", "SetLayoutMode", "isLayoutMode", "mode", "setMode", "deck", "current", "solo", "active", "isNonNullable", "removed", "includes", "closed", "Array", "from", "Set", "inactive", "undefined", "initialized", "fullscreen", "batch", "getMode", "previousMode", "activeDeck", "last", "log", "warn", "SwitchWorkspace", "graph", "AppGraph", "startsWith", "previousDeck", "decks", "defaultDeck", "first", "intents", "createIntent", "ScrollIntoView", "part", "item", "getConnections", "node", "isActionLike", "properties", "disposition", "Open", "RevertWorkspace", "Effect", "gen", "attention", "AttentionCapabilities", "Attention", "settings", "getCapabilities", "SettingsStore", "getStore", "value", "workspace", "dispatch", "previouslyOpenIds", "map", "createEntryId", "reduce", "acc", "entryId", "openEntry", "key", "positioning", "newPlankPositioning", "pivotId", "setActive", "ids", "newlyOpen", "i", "has", "scrollIntoView", "Expose", "subjectId", "typename", "Option", "match", "getNode", "onNone", "onSome", "isLiveObject", "Obj", "getTypename", "ObservabilityAction", "SendEvent", "name", "Close", "closeEntry", "toAttend", "clearCompanionIntents", "activeCompanions", "primary", "DeckAction", "ChangeCompanion", "companion", "UpdatePlankSize", "plankSizing", "size", "_", "nextActiveCompanions", "invariant", "Adjust", "adjustment", "incrementPlank", "pipe", "n", "PLANK_COMPANION_TYPE", "toSorted", "a", "b", "byPosition", "flatMap", "companions", "length", "some", "none", "chain"]
7
+ }