@dxos/plugin-attention 0.9.0 → 0.9.1-staging.ee54ba693a

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 (58) hide show
  1. package/dist/lib/neutral/AttentionPlugin.mjs +1 -1
  2. package/dist/lib/neutral/capabilities/index.mjs +2 -2
  3. package/dist/lib/neutral/{chunk-DPUSNLAH.mjs → chunk-BJDXKPRR.mjs} +7 -4
  4. package/dist/lib/neutral/chunk-BJDXKPRR.mjs.map +7 -0
  5. package/dist/lib/neutral/{chunk-DTGSOFCE.mjs → chunk-KYZ6BP6Z.mjs} +5 -5
  6. package/dist/lib/neutral/chunk-KYZ6BP6Z.mjs.map +7 -0
  7. package/dist/lib/neutral/chunk-QWYNIPK3.mjs +28 -0
  8. package/dist/lib/neutral/chunk-QWYNIPK3.mjs.map +7 -0
  9. package/dist/lib/neutral/{chunk-QSTYRKHK.mjs → chunk-VO5BJP5D.mjs} +2 -2
  10. package/dist/lib/neutral/index.mjs +2 -2
  11. package/dist/lib/neutral/{keyboard-6CPNUR24.mjs → keyboard-LFMKJ3H7.mjs} +3 -5
  12. package/dist/lib/neutral/keyboard-LFMKJ3H7.mjs.map +7 -0
  13. package/dist/lib/neutral/meta.json +1 -1
  14. package/dist/lib/neutral/meta.mjs +1 -1
  15. package/dist/lib/neutral/operations/index.mjs +1 -1
  16. package/dist/lib/neutral/plugin.mjs +2 -2
  17. package/dist/lib/neutral/{react-context-W7BGQDHK.mjs → react-context-G6G3ZRFI.mjs} +6 -6
  18. package/dist/lib/neutral/react-context-G6G3ZRFI.mjs.map +7 -0
  19. package/dist/lib/neutral/{select-CI2OLVWT.mjs → select-AR23P2VZ.mjs} +31 -9
  20. package/dist/lib/neutral/select-AR23P2VZ.mjs.map +7 -0
  21. package/dist/lib/neutral/testing.mjs +1 -1
  22. package/dist/lib/neutral/types/index.mjs +1 -1
  23. package/dist/types/dx.config.d.ts +28 -0
  24. package/dist/types/dx.config.d.ts.map +1 -0
  25. package/dist/types/src/capabilities/index.d.ts +2 -6
  26. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  27. package/dist/types/src/capabilities/keyboard.d.ts +1 -1
  28. package/dist/types/src/capabilities/react-context.d.ts +1 -6
  29. package/dist/types/src/capabilities/react-context.d.ts.map +1 -1
  30. package/dist/types/src/meta.d.ts +32 -2
  31. package/dist/types/src/meta.d.ts.map +1 -1
  32. package/dist/types/src/operations/select.d.ts.map +1 -1
  33. package/dist/types/src/stories/SelectionState.stories.d.ts +8 -0
  34. package/dist/types/src/stories/SelectionState.stories.d.ts.map +1 -0
  35. package/dist/types/src/types/capabilities.d.ts +2 -2
  36. package/dist/types/src/types/capabilities.d.ts.map +1 -1
  37. package/dist/types/src/types/events.d.ts.map +1 -1
  38. package/dist/types/tsconfig.tsbuildinfo +1 -1
  39. package/dx.config.ts +19 -0
  40. package/package.json +25 -16
  41. package/src/AttentionPlugin.test.ts +1 -1
  42. package/src/AttentionPlugin.ts +3 -3
  43. package/src/capabilities/keyboard.ts +3 -4
  44. package/src/capabilities/react-context.tsx +4 -4
  45. package/src/meta.ts +3 -12
  46. package/src/operations/select.ts +8 -7
  47. package/src/stories/SelectionState.stories.tsx +188 -0
  48. package/src/types/capabilities.ts +3 -3
  49. package/src/types/events.ts +1 -1
  50. package/src/types/types.ts +1 -1
  51. package/dist/lib/neutral/chunk-DPUSNLAH.mjs.map +0 -7
  52. package/dist/lib/neutral/chunk-DTGSOFCE.mjs.map +0 -7
  53. package/dist/lib/neutral/chunk-GMJVXKMY.mjs +0 -21
  54. package/dist/lib/neutral/chunk-GMJVXKMY.mjs.map +0 -7
  55. package/dist/lib/neutral/keyboard-6CPNUR24.mjs.map +0 -7
  56. package/dist/lib/neutral/react-context-W7BGQDHK.mjs.map +0 -7
  57. package/dist/lib/neutral/select-CI2OLVWT.mjs.map +0 -7
  58. /package/dist/lib/neutral/{chunk-QSTYRKHK.mjs.map → chunk-VO5BJP5D.mjs.map} +0 -0
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  AttentionPlugin,
3
3
  AttentionPlugin_default
4
- } from "./chunk-DPUSNLAH.mjs";
4
+ } from "./chunk-BJDXKPRR.mjs";
5
5
  export {
6
6
  AttentionPlugin,
7
7
  AttentionPlugin_default as default
@@ -1,8 +1,8 @@
1
1
  // src/capabilities/index.ts
2
2
  import { Capability } from "@dxos/app-framework";
3
- var Keyboard = Capability.lazy("Keyboard", () => import("../keyboard-6CPNUR24.mjs"));
3
+ var Keyboard = Capability.lazy("Keyboard", () => import("../keyboard-LFMKJ3H7.mjs"));
4
4
  var OperationHandler = Capability.lazy("OperationHandler", () => import("../operation-handler-O5PDEBTC.mjs"));
5
- var ReactContext = Capability.lazy("ReactContext", () => import("../react-context-W7BGQDHK.mjs"));
5
+ var ReactContext = Capability.lazy("ReactContext", () => import("../react-context-G6G3ZRFI.mjs"));
6
6
  export {
7
7
  Keyboard,
8
8
  OperationHandler,
@@ -2,7 +2,7 @@
2
2
  import * as Effect from "effect/Effect";
3
3
  import { ActivationEvent, ActivationEvents, Capabilities, Capability, Plugin } from "@dxos/app-framework";
4
4
  import { AppActivationEvents, AppPlugin } from "@dxos/app-toolkit";
5
- import { AttentionManager, SelectionManager } from "@dxos/react-ui-attention";
5
+ import { AttentionManager, ViewStateManager, createDefaultBackends } from "@dxos/react-ui-attention";
6
6
  import { Keyboard, OperationHandler, ReactContext } from "#capabilities";
7
7
  import { meta } from "#meta";
8
8
  import { AttentionEvents } from "#types";
@@ -18,11 +18,14 @@ var AttentionPlugin = Plugin.define(meta).pipe(AppPlugin.addOperationHandlerModu
18
18
  activate: () => Effect.gen(function* () {
19
19
  const registry = yield* Capability.get(Capabilities.AtomRegistry);
20
20
  const attention = new AttentionManager(registry);
21
- const selection = new SelectionManager(registry);
21
+ const viewState = new ViewStateManager({
22
+ registry,
23
+ backends: createDefaultBackends(registry)
24
+ });
22
25
  setupDevtools(attention);
23
26
  return [
24
27
  Capability.contributes(AttentionCapabilities.Attention, attention),
25
- Capability.contributes(AttentionCapabilities.Selection, selection)
28
+ Capability.contributes(AttentionCapabilities.ViewState, viewState)
26
29
  ];
27
30
  })
28
31
  }), Plugin.addModule({
@@ -57,4 +60,4 @@ export {
57
60
  AttentionPlugin,
58
61
  AttentionPlugin_default
59
62
  };
60
- //# sourceMappingURL=chunk-DPUSNLAH.mjs.map
63
+ //# sourceMappingURL=chunk-BJDXKPRR.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/AttentionPlugin.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { ActivationEvent, ActivationEvents, Capabilities, Capability, Plugin } from '@dxos/app-framework';\nimport { AppActivationEvents, AppPlugin } from '@dxos/app-toolkit';\nimport { AttentionManager, ViewStateManager, createDefaultBackends } from '@dxos/react-ui-attention';\n\nimport { Keyboard, OperationHandler, ReactContext } from '#capabilities';\nimport { meta } from '#meta';\nimport { AttentionEvents } from '#types';\nimport { AttentionCapabilities } from '#types';\n\nexport const AttentionPlugin = Plugin.define(meta).pipe(\n AppPlugin.addOperationHandlerModule({ activate: OperationHandler }),\n Plugin.addModule({\n id: 'attention',\n activatesOn: ActivationEvents.Startup,\n firesAfterActivation: [AttentionEvents.AttentionReady],\n activate: () =>\n Effect.gen(function* () {\n const registry = yield* Capability.get(Capabilities.AtomRegistry);\n const attention = new AttentionManager(registry);\n const viewState = new ViewStateManager({ registry, backends: createDefaultBackends(registry) });\n setupDevtools(attention);\n return [\n Capability.contributes(AttentionCapabilities.Attention, attention),\n Capability.contributes(AttentionCapabilities.ViewState, viewState),\n ];\n }),\n }),\n Plugin.addModule({\n activatesOn: ActivationEvents.Startup,\n activate: ReactContext,\n }),\n Plugin.addModule({\n activatesOn: ActivationEvent.allOf(AppActivationEvents.AppGraphReady, AttentionEvents.AttentionReady),\n activate: Keyboard,\n }),\n Plugin.make,\n);\n\nconst setupDevtools = (attention: AttentionManager) => {\n (globalThis as any).composer ??= {};\n\n (globalThis as any).composer.attention = {\n get manager() {\n return attention;\n },\n get attended() {\n return attention.getCurrent();\n },\n get currentSpace() {\n for (const id of attention.getCurrent()) {\n const segments = id.split('/');\n if (segments.length > 1 && segments[1].length === 33) {\n return segments[1];\n }\n }\n },\n };\n};\n\nexport default AttentionPlugin;\n"],
5
+ "mappings": ";AAIA,YAAYA,YAAY;AAExB,SAASC,iBAAiBC,kBAAkBC,cAAcC,YAAYC,cAAc;AACpF,SAASC,qBAAqBC,iBAAiB;AAC/C,SAASC,kBAAkBC,kBAAkBC,6BAA6B;AAE1E,SAASC,UAAUC,kBAAkBC,oBAAoB;AACzD,SAASC,YAAY;AACrB,SAASC,uBAAuB;AAChC,SAASC,6BAA6B;AAE/B,IAAMC,kBAAkBZ,OAAOa,OAAOJ,IAAAA,EAAMK,KACjDZ,UAAUa,0BAA0B;EAAEC,UAAUT;AAAiB,CAAA,GACjEP,OAAOiB,UAAU;EACfC,IAAI;EACJC,aAAatB,iBAAiBuB;EAC9BC,sBAAsB;IAACX,gBAAgBY;;EACvCN,UAAU,MACDO,WAAI,aAAA;AACT,UAAMC,WAAW,OAAOzB,WAAW0B,IAAI3B,aAAa4B,YAAY;AAChE,UAAMC,YAAY,IAAIxB,iBAAiBqB,QAAAA;AACvC,UAAMI,YAAY,IAAIxB,iBAAiB;MAAEoB;MAAUK,UAAUxB,sBAAsBmB,QAAAA;IAAU,CAAA;AAC7FM,kBAAcH,SAAAA;AACd,WAAO;MACL5B,WAAWgC,YAAYpB,sBAAsBqB,WAAWL,SAAAA;MACxD5B,WAAWgC,YAAYpB,sBAAsBsB,WAAWL,SAAAA;;EAE5D,CAAA;AACJ,CAAA,GACA5B,OAAOiB,UAAU;EACfE,aAAatB,iBAAiBuB;EAC9BJ,UAAUR;AACZ,CAAA,GACAR,OAAOiB,UAAU;EACfE,aAAavB,gBAAgBsC,MAAMjC,oBAAoBkC,eAAezB,gBAAgBY,cAAc;EACpGN,UAAUV;AACZ,CAAA,GACAN,OAAOoC,IAAI;AAGb,IAAMN,gBAAgB,CAACH,cAAAA;AACpBU,aAAmBC,aAAa,CAAC;AAEjCD,aAAmBC,SAASX,YAAY;IACvC,IAAIY,UAAU;AACZ,aAAOZ;IACT;IACA,IAAIa,WAAW;AACb,aAAOb,UAAUc,WAAU;IAC7B;IACA,IAAIC,eAAe;AACjB,iBAAWxB,MAAMS,UAAUc,WAAU,GAAI;AACvC,cAAME,WAAWzB,GAAG0B,MAAM,GAAA;AAC1B,YAAID,SAASE,SAAS,KAAKF,SAAS,CAAA,EAAGE,WAAW,IAAI;AACpD,iBAAOF,SAAS,CAAA;QAClB;MACF;IACF;EACF;AACF;AAEA,IAAA,0BAAe/B;",
6
+ "names": ["Effect", "ActivationEvent", "ActivationEvents", "Capabilities", "Capability", "Plugin", "AppActivationEvents", "AppPlugin", "AttentionManager", "ViewStateManager", "createDefaultBackends", "Keyboard", "OperationHandler", "ReactContext", "meta", "AttentionEvents", "AttentionCapabilities", "AttentionPlugin", "define", "pipe", "addOperationHandlerModule", "activate", "addModule", "id", "activatesOn", "Startup", "firesAfterActivation", "AttentionReady", "gen", "registry", "get", "AtomRegistry", "attention", "viewState", "backends", "setupDevtools", "contributes", "Attention", "ViewState", "allOf", "AppGraphReady", "make", "globalThis", "composer", "manager", "attended", "getCurrent", "currentSpace", "segments", "split", "length"]
7
+ }
@@ -2,8 +2,8 @@
2
2
  import { Capability } from "@dxos/app-framework";
3
3
  import { meta } from "#meta";
4
4
  (function(AttentionCapabilities2) {
5
- AttentionCapabilities2.Attention = Capability.make(`${meta.id}.capability.attention`);
6
- AttentionCapabilities2.Selection = Capability.make(`${meta.id}.capability.selection`);
5
+ AttentionCapabilities2.Attention = Capability.make(`${meta.profile.key}.capability.attention`);
6
+ AttentionCapabilities2.ViewState = Capability.make(`${meta.profile.key}.capability.view-state`);
7
7
  })(AttentionCapabilities || (AttentionCapabilities = {}));
8
8
  var AttentionCapabilities;
9
9
 
@@ -11,7 +11,7 @@ var AttentionCapabilities;
11
11
  import { ActivationEvent } from "@dxos/app-framework";
12
12
  import { meta as meta2 } from "#meta";
13
13
  (function(AttentionEvents2) {
14
- AttentionEvents2.AttentionReady = ActivationEvent.make(`${meta2.id}.event.attention-ready`);
14
+ AttentionEvents2.AttentionReady = ActivationEvent.make(`${meta2.profile.key}.event.attentionReady`);
15
15
  })(AttentionEvents || (AttentionEvents = {}));
16
16
  var AttentionEvents;
17
17
 
@@ -20,7 +20,7 @@ import * as Schema from "effect/Schema";
20
20
  import { SelectionSchema } from "@dxos/react-ui-attention";
21
21
  import { meta as meta3 } from "#meta";
22
22
  (function(AttentionAction2) {
23
- const ATTENTION_ACTION = `${meta3.id}.action`;
23
+ const ATTENTION_ACTION = `${meta3.profile.key}.action`;
24
24
  class Select extends Schema.TaggedClass()(`${ATTENTION_ACTION}.select`, {
25
25
  input: Schema.Struct({
26
26
  contextId: Schema.String,
@@ -38,4 +38,4 @@ export {
38
38
  AttentionEvents,
39
39
  AttentionAction
40
40
  };
41
- //# sourceMappingURL=chunk-DTGSOFCE.mjs.map
41
+ //# sourceMappingURL=chunk-KYZ6BP6Z.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/types/capabilities.ts", "../../../src/types/events.ts", "../../../src/types/types.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capability } from '@dxos/app-framework';\nimport { type AttentionManager, type ViewStateManager } from '@dxos/react-ui-attention';\n\nimport { meta } from '#meta';\n\nexport namespace AttentionCapabilities {\n export const Attention = Capability.make<AttentionManager>(`${meta.profile.key}.capability.attention`);\n export const ViewState = Capability.make<ViewStateManager>(`${meta.profile.key}.capability.view-state`);\n}\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { ActivationEvent } from '@dxos/app-framework';\n\nimport { meta } from '#meta';\n\nexport namespace AttentionEvents {\n export const AttentionReady = ActivationEvent.make(`${meta.profile.key}.event.attentionReady`);\n}\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport { SelectionSchema } from '@dxos/react-ui-attention';\n\nimport { meta } from '#meta';\n\nexport namespace AttentionAction {\n const ATTENTION_ACTION = `${meta.profile.key}.action`;\n\n export class Select extends Schema.TaggedClass<Select>()(`${ATTENTION_ACTION}.select`, {\n input: Schema.Struct({\n contextId: Schema.String,\n selection: SelectionSchema,\n }),\n output: Schema.Void,\n }) {}\n}\n"],
5
+ "mappings": ";AAIA,SAASA,kBAAkB;AAG3B,SAASC,YAAY;UAEJC,wBAAAA;yBACFC,YAAYH,WAAWI,KAAuB,GAAGH,KAAKI,QAAQC,GAAG,uBAAuB;yBACxFC,YAAYP,WAAWI,KAAuB,GAAGH,KAAKI,QAAQC,GAAG,wBAAwB;AACxG,GAHiBJ,0BAAAA,wBAAAA,CAAAA,EAAAA;;;;ACLjB,SAASM,uBAAuB;AAEhC,SAASC,QAAAA,aAAY;UAEJC,kBAAAA;mBACFC,iBAAiBH,gBAAgBI,KAAK,GAAGH,MAAKI,QAAQC,GAAG,uBAAuB;AAC/F,GAFiBJ,oBAAAA,kBAAAA,CAAAA,EAAAA;;;;ACJjB,YAAYK,YAAY;AAExB,SAASC,uBAAuB;AAEhC,SAASC,QAAAA,aAAY;UAEJC,kBAAAA;AACf,QAAMC,mBAAmB,GAAGF,MAAKG,QAAQC,GAAG;EAErC,MAAMC,eAAsBC,mBAAW,EAAW,GAAGJ,gBAAAA,WAA2B;IACrFK,OAAcC,cAAO;MACnBC,WAAkBC;MAClBC,WAAWZ;IACb,CAAA;IACAa,QAAeC;EACjB,CAAA,EAAA;EAAI;mBANSR,SAAAA;AAOf,GAViBJ,oBAAAA,kBAAAA,CAAAA,EAAAA;;",
6
+ "names": ["Capability", "meta", "AttentionCapabilities", "Attention", "make", "profile", "key", "ViewState", "ActivationEvent", "meta", "AttentionEvents", "AttentionReady", "make", "profile", "key", "Schema", "SelectionSchema", "meta", "AttentionAction", "ATTENTION_ACTION", "profile", "key", "Select", "TaggedClass", "input", "Struct", "contextId", "String", "selection", "output", "Void"]
7
+ }
@@ -0,0 +1,28 @@
1
+ // src/meta.ts
2
+ import { Plugin } from "@dxos/app-framework";
3
+
4
+ // dx.config.ts
5
+ import { Config2 } from "@dxos/app-framework/config";
6
+ import { trim } from "@dxos/util";
7
+ var dx_config_default = Config2.make({
8
+ plugin: {
9
+ key: "org.dxos.plugin.attention",
10
+ name: "Attention",
11
+ author: "DXOS",
12
+ description: trim`
13
+ Track and manage focused attention on objects across your workspace.
14
+ Highlight items requiring action and coordinate team focus on priority work.
15
+ `,
16
+ tags: [
17
+ "system"
18
+ ]
19
+ }
20
+ });
21
+
22
+ // src/meta.ts
23
+ var meta = Plugin.getMetaFromConfig(dx_config_default);
24
+
25
+ export {
26
+ meta
27
+ };
28
+ //# sourceMappingURL=chunk-QWYNIPK3.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/meta.ts", "../../../dx.config.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport { Plugin } from '@dxos/app-framework';\n\nimport config from '../dx.config';\n\nexport const meta = Plugin.getMetaFromConfig(config);\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { Config2 } from '@dxos/app-framework/config';\nimport { trim } from '@dxos/util';\n\nexport default Config2.make({\n plugin: {\n key: 'org.dxos.plugin.attention',\n name: 'Attention',\n author: 'DXOS',\n description: trim`\n Track and manage focused attention on objects across your workspace.\n Highlight items requiring action and coordinate team focus on priority work.\n `,\n tags: ['system'],\n },\n});\n"],
5
+ "mappings": ";AAIA,SAASA,cAAc;;;ACAvB,SAASC,eAAe;AACxB,SAASC,YAAY;AAErB,IAAA,oBAAeD,QAAQE,KAAK;EAC1BC,QAAQ;IACNC,KAAK;IACLC,MAAM;IACNC,QAAQ;IACRC,aAAaN;;;;IAIbO,MAAM;MAAC;;EACT;AACF,CAAA;;;ADVO,IAAMC,OAAOC,OAAOC,kBAAkBC,iBAAAA;",
6
+ "names": ["Plugin", "Config2", "trim", "make", "plugin", "key", "name", "author", "description", "tags", "meta", "Plugin", "getMetaFromConfig", "config"]
7
+ }
@@ -1,8 +1,8 @@
1
1
  // src/operations/index.ts
2
2
  import { OperationHandlerSet } from "@dxos/compute";
3
- var AttentionOperationHandlerSet = OperationHandlerSet.lazy(() => import("./select-CI2OLVWT.mjs"));
3
+ var AttentionOperationHandlerSet = OperationHandlerSet.lazy(() => import("./select-AR23P2VZ.mjs"));
4
4
 
5
5
  export {
6
6
  AttentionOperationHandlerSet
7
7
  };
8
- //# sourceMappingURL=chunk-QSTYRKHK.mjs.map
8
+ //# sourceMappingURL=chunk-VO5BJP5D.mjs.map
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  meta
3
- } from "./chunk-GMJVXKMY.mjs";
3
+ } from "./chunk-QWYNIPK3.mjs";
4
4
  import {
5
5
  AttentionAction,
6
6
  AttentionCapabilities,
7
7
  AttentionEvents
8
- } from "./chunk-DTGSOFCE.mjs";
8
+ } from "./chunk-KYZ6BP6Z.mjs";
9
9
  export {
10
10
  AttentionAction,
11
11
  AttentionCapabilities,
@@ -1,19 +1,17 @@
1
1
  // src/capabilities/keyboard.ts
2
2
  import * as Effect from "effect/Effect";
3
3
  import { Capabilities, Capability } from "@dxos/app-framework";
4
- import { Keyboard } from "@dxos/keyboard";
4
+ import { Keyboard, nestKeyboardContext } from "@dxos/keyboard";
5
5
  import { AttentionCapabilities } from "#types";
6
6
  var keyboard_default = Capability.makeModule(Effect.fnUntraced(function* () {
7
7
  const attention = yield* Capability.get(AttentionCapabilities.Attention);
8
8
  const unsubscribe = attention.subscribeCurrent((current) => {
9
9
  const id = current[0];
10
- if (id) {
11
- Keyboard.singleton.setCurrentContext(id);
12
- }
10
+ Keyboard.singleton.setCurrentContext(nestKeyboardContext(id));
13
11
  });
14
12
  return Capability.contributes(Capabilities.Null, null, () => Effect.sync(() => unsubscribe()));
15
13
  }));
16
14
  export {
17
15
  keyboard_default as default
18
16
  };
19
- //# sourceMappingURL=keyboard-6CPNUR24.mjs.map
17
+ //# sourceMappingURL=keyboard-LFMKJ3H7.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/capabilities/keyboard.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { Keyboard, nestKeyboardContext } from '@dxos/keyboard';\n\nimport { AttentionCapabilities } from '#types';\n\nexport default Capability.makeModule(\n Effect.fnUntraced(function* () {\n const attention = yield* Capability.get(AttentionCapabilities.Attention);\n\n const unsubscribe = attention.subscribeCurrent((current) => {\n const id = current[0];\n // Nested under graph root so plank context inherits root-level bindings (e.g. global search).\n Keyboard.singleton.setCurrentContext(nestKeyboardContext(id));\n });\n\n return Capability.contributes(Capabilities.Null, null, () => Effect.sync(() => unsubscribe()));\n }),\n);\n"],
5
+ "mappings": ";AAIA,YAAYA,YAAY;AAExB,SAASC,cAAcC,kBAAkB;AACzC,SAASC,UAAUC,2BAA2B;AAE9C,SAASC,6BAA6B;AAEtC,IAAA,mBAAeH,WAAWI,WACjBC,kBAAW,aAAA;AAChB,QAAMC,YAAY,OAAON,WAAWO,IAAIJ,sBAAsBK,SAAS;AAEvE,QAAMC,cAAcH,UAAUI,iBAAiB,CAACC,YAAAA;AAC9C,UAAMC,KAAKD,QAAQ,CAAA;AAEnBV,aAASY,UAAUC,kBAAkBZ,oBAAoBU,EAAAA,CAAAA;EAC3D,CAAA;AAEA,SAAOZ,WAAWe,YAAYhB,aAAaiB,MAAM,MAAM,MAAaC,YAAK,MAAMR,YAAAA,CAAAA,CAAAA;AACjF,CAAA,CAAA;",
6
+ "names": ["Effect", "Capabilities", "Capability", "Keyboard", "nestKeyboardContext", "AttentionCapabilities", "makeModule", "fnUntraced", "attention", "get", "Attention", "unsubscribe", "subscribeCurrent", "current", "id", "singleton", "setCurrentContext", "contributes", "Null", "sync"]
7
+ }
@@ -1 +1 @@
1
- {"inputs":{"src/meta.ts":{"bytes":1801,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/types/capabilities.ts":{"bytes":1628,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/types/events.ts":{"bytes":1160,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/types/types.ts":{"bytes":2131,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/types/index.ts":{"bytes":551,"imports":[{"path":"src/types/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/types/events.ts","kind":"import-statement","original":"./events"},{"path":"src/types/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/index.ts":{"bytes":449,"imports":[{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/AttentionPlugin.ts":{"bytes":7982,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"format":"esm"},"src/capabilities/keyboard.ts":{"bytes":2713,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/keyboard","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"format":"esm"},"src/capabilities/operation-handler.ts":{"bytes":1679,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#operations","kind":"import-statement","external":true}],"format":"esm"},"src/capabilities/react-context.tsx":{"bytes":4534,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"format":"esm"},"src/capabilities/index.ts":{"bytes":1593,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/keyboard.ts","kind":"dynamic-import","original":"./keyboard"},{"path":"src/capabilities/operation-handler.ts","kind":"dynamic-import","original":"./operation-handler"},{"path":"src/capabilities/react-context.tsx","kind":"dynamic-import","original":"./react-context"}],"format":"esm"},"src/operations/select.ts":{"bytes":5402,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Match","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/operations/index.ts":{"bytes":843,"imports":[{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"src/operations/select.ts","kind":"dynamic-import","original":"./select"}],"format":"esm"},"src/plugin.ts":{"bytes":1095,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/operations/index.ts","kind":"import-statement","original":"./operations"},{"path":"#plugin","kind":"dynamic-import","external":true}],"format":"esm"},"src/testing.ts":{"bytes":673,"imports":[{"path":"src/AttentionPlugin.ts","kind":"import-statement","original":"./AttentionPlugin"}],"format":"esm"}},"outputs":{"dist/lib/neutral/keyboard-6CPNUR24.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1481},"dist/lib/neutral/keyboard-6CPNUR24.mjs":{"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/keyboard","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/keyboard.ts","inputs":{"src/capabilities/keyboard.ts":{"bytesInOutput":618}},"bytes":739},"dist/lib/neutral/operation-handler-O5PDEBTC.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":935},"dist/lib/neutral/operation-handler-O5PDEBTC.mjs":{"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#operations","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/operation-handler.ts","inputs":{"src/capabilities/operation-handler.ts":{"bytesInOutput":351}},"bytes":499},"dist/lib/neutral/react-context-W7BGQDHK.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2297},"dist/lib/neutral/react-context-W7BGQDHK.mjs":{"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/react-context.tsx","inputs":{"src/capabilities/react-context.tsx":{"bytesInOutput":901}},"bytes":1038},"dist/lib/neutral/select-CI2OLVWT.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2952},"dist/lib/neutral/select-CI2OLVWT.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-DTGSOFCE.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Match","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/select.ts","inputs":{"src/operations/select.ts":{"bytesInOutput":1168}},"bytes":1346},"dist/lib/neutral/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/neutral/index.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-GMJVXKMY.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-DTGSOFCE.mjs","kind":"import-statement"}],"exports":["AttentionAction","AttentionCapabilities","AttentionEvents","meta"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":0}},"bytes":266},"dist/lib/neutral/AttentionPlugin.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/neutral/AttentionPlugin.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-DPUSNLAH.mjs","kind":"import-statement"}],"exports":["AttentionPlugin","default"],"entryPoint":"src/AttentionPlugin.ts","inputs":{},"bytes":198},"dist/lib/neutral/capabilities/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":871},"dist/lib/neutral/capabilities/index.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/neutral/keyboard-6CPNUR24.mjs","kind":"dynamic-import"},{"path":"dist/lib/neutral/operation-handler-O5PDEBTC.mjs","kind":"dynamic-import"},{"path":"dist/lib/neutral/react-context-W7BGQDHK.mjs","kind":"dynamic-import"}],"exports":["Keyboard","OperationHandler","ReactContext"],"entryPoint":"src/capabilities/index.ts","inputs":{"src/capabilities/index.ts":{"bytesInOutput":346}},"bytes":469},"dist/lib/neutral/meta.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/neutral/meta.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-GMJVXKMY.mjs","kind":"import-statement"}],"exports":["meta"],"entryPoint":"src/meta.ts","inputs":{},"bytes":100},"dist/lib/neutral/operations/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/neutral/operations/index.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-QSTYRKHK.mjs","kind":"import-statement"}],"exports":["AttentionOperationHandlerSet"],"entryPoint":"src/operations/index.ts","inputs":{},"bytes":150},"dist/lib/neutral/plugin.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":514},"dist/lib/neutral/plugin.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-GMJVXKMY.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-QSTYRKHK.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#plugin","kind":"dynamic-import","external":true}],"exports":["AttentionOperationHandlerSet","AttentionPlugin"],"entryPoint":"src/plugin.ts","inputs":{"src/plugin.ts":{"bytesInOutput":112}},"bytes":346},"dist/lib/neutral/chunk-GMJVXKMY.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":884},"dist/lib/neutral/chunk-GMJVXKMY.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["meta"],"inputs":{"src/meta.ts":{"bytesInOutput":440}},"bytes":519},"dist/lib/neutral/chunk-QSTYRKHK.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":454},"dist/lib/neutral/chunk-QSTYRKHK.mjs":{"imports":[{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"dist/lib/neutral/select-CI2OLVWT.mjs","kind":"dynamic-import"}],"exports":["AttentionOperationHandlerSet"],"inputs":{"src/operations/index.ts":{"bytesInOutput":153}},"bytes":268},"dist/lib/neutral/testing.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/neutral/testing.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-DPUSNLAH.mjs","kind":"import-statement"}],"exports":["AttentionPlugin"],"entryPoint":"src/testing.ts","inputs":{"src/testing.ts":{"bytesInOutput":0}},"bytes":125},"dist/lib/neutral/chunk-DPUSNLAH.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4186},"dist/lib/neutral/chunk-DPUSNLAH.mjs":{"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"exports":["AttentionPlugin","AttentionPlugin_default"],"inputs":{"src/AttentionPlugin.ts":{"bytesInOutput":1939}},"bytes":2067},"dist/lib/neutral/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/neutral/types/index.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-DTGSOFCE.mjs","kind":"import-statement"}],"exports":["AttentionAction","AttentionCapabilities","AttentionEvents"],"entryPoint":"src/types/index.ts","inputs":{},"bytes":212},"dist/lib/neutral/chunk-DTGSOFCE.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2394},"dist/lib/neutral/chunk-DTGSOFCE.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"exports":["AttentionAction","AttentionCapabilities","AttentionEvents"],"inputs":{"src/types/capabilities.ts":{"bytesInOutput":380},"src/types/index.ts":{"bytesInOutput":0},"src/types/events.ts":{"bytesInOutput":287},"src/types/types.ts":{"bytesInOutput":534}},"bytes":1396}}}
1
+ {"inputs":{"dx.config.ts":{"bytes":1731,"imports":[{"path":"@dxos/app-framework/config","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/meta.ts":{"bytes":799,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dx.config.ts","kind":"import-statement","original":"../dx.config"}],"format":"esm"},"src/types/capabilities.ts":{"bytes":1715,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/types/events.ts":{"bytes":1208,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/types/types.ts":{"bytes":2184,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/types/index.ts":{"bytes":551,"imports":[{"path":"src/types/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/types/events.ts","kind":"import-statement","original":"./events"},{"path":"src/types/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/index.ts":{"bytes":449,"imports":[{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/AttentionPlugin.ts":{"bytes":8300,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"format":"esm"},"src/capabilities/keyboard.ts":{"bytes":3030,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/keyboard","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"format":"esm"},"src/capabilities/operation-handler.ts":{"bytes":1679,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#operations","kind":"import-statement","external":true}],"format":"esm"},"src/capabilities/react-context.tsx":{"bytes":4605,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"format":"esm"},"src/capabilities/index.ts":{"bytes":1593,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/keyboard.ts","kind":"dynamic-import","original":"./keyboard"},{"path":"src/capabilities/operation-handler.ts","kind":"dynamic-import","original":"./operation-handler"},{"path":"src/capabilities/react-context.tsx","kind":"dynamic-import","original":"./react-context"}],"format":"esm"},"src/operations/select.ts":{"bytes":6515,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Match","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/operations/index.ts":{"bytes":843,"imports":[{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"src/operations/select.ts","kind":"dynamic-import","original":"./select"}],"format":"esm"},"src/plugin.ts":{"bytes":1095,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/operations/index.ts","kind":"import-statement","original":"./operations"},{"path":"#plugin","kind":"dynamic-import","external":true}],"format":"esm"},"src/testing.ts":{"bytes":673,"imports":[{"path":"src/AttentionPlugin.ts","kind":"import-statement","original":"./AttentionPlugin"}],"format":"esm"}},"outputs":{"dist/lib/neutral/keyboard-LFMKJ3H7.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1620},"dist/lib/neutral/keyboard-LFMKJ3H7.mjs":{"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/keyboard","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/keyboard.ts","inputs":{"src/capabilities/keyboard.ts":{"bytesInOutput":638}},"bytes":759},"dist/lib/neutral/operation-handler-O5PDEBTC.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":935},"dist/lib/neutral/operation-handler-O5PDEBTC.mjs":{"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#operations","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/operation-handler.ts","inputs":{"src/capabilities/operation-handler.ts":{"bytesInOutput":351}},"bytes":499},"dist/lib/neutral/react-context-G6G3ZRFI.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2349},"dist/lib/neutral/react-context-G6G3ZRFI.mjs":{"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/react-context.tsx","inputs":{"src/capabilities/react-context.tsx":{"bytesInOutput":919}},"bytes":1056},"dist/lib/neutral/select-AR23P2VZ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3398},"dist/lib/neutral/select-AR23P2VZ.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-KYZ6BP6Z.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Match","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/select.ts","inputs":{"src/operations/select.ts":{"bytesInOutput":1551}},"bytes":1729},"dist/lib/neutral/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/neutral/index.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-QWYNIPK3.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-KYZ6BP6Z.mjs","kind":"import-statement"}],"exports":["AttentionAction","AttentionCapabilities","AttentionEvents","meta"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":0}},"bytes":266},"dist/lib/neutral/AttentionPlugin.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/neutral/AttentionPlugin.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-BJDXKPRR.mjs","kind":"import-statement"}],"exports":["AttentionPlugin","default"],"entryPoint":"src/AttentionPlugin.ts","inputs":{},"bytes":198},"dist/lib/neutral/capabilities/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":871},"dist/lib/neutral/capabilities/index.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/neutral/keyboard-LFMKJ3H7.mjs","kind":"dynamic-import"},{"path":"dist/lib/neutral/operation-handler-O5PDEBTC.mjs","kind":"dynamic-import"},{"path":"dist/lib/neutral/react-context-G6G3ZRFI.mjs","kind":"dynamic-import"}],"exports":["Keyboard","OperationHandler","ReactContext"],"entryPoint":"src/capabilities/index.ts","inputs":{"src/capabilities/index.ts":{"bytesInOutput":346}},"bytes":469},"dist/lib/neutral/meta.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/neutral/meta.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-QWYNIPK3.mjs","kind":"import-statement"}],"exports":["meta"],"entryPoint":"src/meta.ts","inputs":{},"bytes":100},"dist/lib/neutral/operations/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/neutral/operations/index.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-VO5BJP5D.mjs","kind":"import-statement"}],"exports":["AttentionOperationHandlerSet"],"entryPoint":"src/operations/index.ts","inputs":{},"bytes":150},"dist/lib/neutral/plugin.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":514},"dist/lib/neutral/plugin.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-QWYNIPK3.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-VO5BJP5D.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#plugin","kind":"dynamic-import","external":true}],"exports":["AttentionOperationHandlerSet","AttentionPlugin"],"entryPoint":"src/plugin.ts","inputs":{"src/plugin.ts":{"bytesInOutput":112}},"bytes":346},"dist/lib/neutral/chunk-QWYNIPK3.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1167},"dist/lib/neutral/chunk-QWYNIPK3.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/config","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["meta"],"inputs":{"src/meta.ts":{"bytesInOutput":102},"dx.config.ts":{"bytesInOutput":450}},"bytes":664},"dist/lib/neutral/chunk-VO5BJP5D.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":454},"dist/lib/neutral/chunk-VO5BJP5D.mjs":{"imports":[{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"dist/lib/neutral/select-AR23P2VZ.mjs","kind":"dynamic-import"}],"exports":["AttentionOperationHandlerSet"],"inputs":{"src/operations/index.ts":{"bytesInOutput":153}},"bytes":268},"dist/lib/neutral/testing.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/neutral/testing.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-BJDXKPRR.mjs","kind":"import-statement"}],"exports":["AttentionPlugin"],"entryPoint":"src/testing.ts","inputs":{"src/testing.ts":{"bytesInOutput":0}},"bytes":125},"dist/lib/neutral/chunk-BJDXKPRR.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4338},"dist/lib/neutral/chunk-BJDXKPRR.mjs":{"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"exports":["AttentionPlugin","AttentionPlugin_default"],"inputs":{"src/AttentionPlugin.ts":{"bytesInOutput":2025}},"bytes":2153},"dist/lib/neutral/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/neutral/types/index.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-KYZ6BP6Z.mjs","kind":"import-statement"}],"exports":["AttentionAction","AttentionCapabilities","AttentionEvents"],"entryPoint":"src/types/index.ts","inputs":{},"bytes":212},"dist/lib/neutral/chunk-KYZ6BP6Z.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2490},"dist/lib/neutral/chunk-KYZ6BP6Z.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"exports":["AttentionAction","AttentionCapabilities","AttentionEvents"],"inputs":{"src/types/capabilities.ts":{"bytesInOutput":399},"src/types/index.ts":{"bytesInOutput":0},"src/types/events.ts":{"bytesInOutput":295},"src/types/types.ts":{"bytesInOutput":543}},"bytes":1432}}}
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  meta
3
- } from "./chunk-GMJVXKMY.mjs";
3
+ } from "./chunk-QWYNIPK3.mjs";
4
4
  export {
5
5
  meta
6
6
  };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  AttentionOperationHandlerSet
3
- } from "../chunk-QSTYRKHK.mjs";
3
+ } from "../chunk-VO5BJP5D.mjs";
4
4
  export {
5
5
  AttentionOperationHandlerSet
6
6
  };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  meta
3
- } from "./chunk-GMJVXKMY.mjs";
3
+ } from "./chunk-QWYNIPK3.mjs";
4
4
  import {
5
5
  AttentionOperationHandlerSet
6
- } from "./chunk-QSTYRKHK.mjs";
6
+ } from "./chunk-VO5BJP5D.mjs";
7
7
 
8
8
  // src/plugin.ts
9
9
  import { Plugin } from "@dxos/app-framework";
@@ -3,24 +3,24 @@ import * as Effect from "effect/Effect";
3
3
  import React from "react";
4
4
  import { Capabilities, Capability } from "@dxos/app-framework";
5
5
  import { useCapability } from "@dxos/app-framework/ui";
6
- import { RootAttentionProvider, SelectionProvider } from "@dxos/react-ui-attention";
6
+ import { RootAttentionProvider, ViewStateProvider } from "@dxos/react-ui-attention";
7
7
  import { meta } from "#meta";
8
8
  import { AttentionCapabilities } from "#types";
9
9
  var react_context_default = Capability.makeModule(() => Effect.succeed(Capability.contributes(Capabilities.ReactContext, {
10
- id: meta.id,
10
+ id: meta.profile.key,
11
11
  context: (props) => {
12
12
  const attention = useCapability(AttentionCapabilities.Attention);
13
- const selection = useCapability(AttentionCapabilities.Selection);
13
+ const viewState = useCapability(AttentionCapabilities.ViewState);
14
14
  return /* @__PURE__ */ React.createElement(RootAttentionProvider, {
15
15
  attention,
16
16
  onChange: (nextAttended) => {
17
17
  }
18
- }, /* @__PURE__ */ React.createElement(SelectionProvider, {
19
- selection
18
+ }, /* @__PURE__ */ React.createElement(ViewStateProvider, {
19
+ manager: viewState
20
20
  }, props.children));
21
21
  }
22
22
  })));
23
23
  export {
24
24
  react_context_default as default
25
25
  };
26
- //# sourceMappingURL=react-context-W7BGQDHK.mjs.map
26
+ //# sourceMappingURL=react-context-G6G3ZRFI.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/capabilities/react-context.tsx"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport React, { type PropsWithChildren } from 'react';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { useCapability } from '@dxos/app-framework/ui';\nimport { RootAttentionProvider, ViewStateProvider } from '@dxos/react-ui-attention';\n\nimport { meta } from '#meta';\nimport { AttentionCapabilities } from '#types';\n\nexport default Capability.makeModule(() =>\n Effect.succeed(\n Capability.contributes(Capabilities.ReactContext, {\n id: meta.profile.key,\n context: (props: PropsWithChildren) => {\n const attention = useCapability(AttentionCapabilities.Attention);\n const viewState = useCapability(AttentionCapabilities.ViewState);\n\n return (\n <RootAttentionProvider\n attention={attention}\n onChange={(nextAttended) => {\n // TODO(Zan): Workout why this was in deck plugin. It didn't seem to work?\n // if (layout.values.scrollIntoView && nextAttended.has(layout.values.scrollIntoView)) {\n // layout.values.scrollIntoView = undefined;\n // }\n }}\n >\n <ViewStateProvider manager={viewState}>{props.children}</ViewStateProvider>\n </RootAttentionProvider>\n );\n },\n }),\n ),\n);\n"],
5
+ "mappings": ";AAIA,YAAYA,YAAY;AACxB,OAAOC,WAAuC;AAE9C,SAASC,cAAcC,kBAAkB;AACzC,SAASC,qBAAqB;AAC9B,SAASC,uBAAuBC,yBAAyB;AAEzD,SAASC,YAAY;AACrB,SAASC,6BAA6B;AAEtC,IAAA,wBAAeL,WAAWM,WAAW,MAC5BC,eACLP,WAAWQ,YAAYT,aAAaU,cAAc;EAChDC,IAAIN,KAAKO,QAAQC;EACjBC,SAAS,CAACC,UAAAA;AACR,UAAMC,YAAYd,cAAcI,sBAAsBW,SAAS;AAC/D,UAAMC,YAAYhB,cAAcI,sBAAsBa,SAAS;AAE/D,WACE,sBAAA,cAAChB,uBAAAA;MACCa;MACAI,UAAU,CAACC,iBAAAA;MAKX;OAEA,sBAAA,cAACjB,mBAAAA;MAAkBkB,SAASJ;OAAYH,MAAMQ,QAAQ,CAAA;EAG5D;AACF,CAAA,CAAA,CAAA;",
6
+ "names": ["Effect", "React", "Capabilities", "Capability", "useCapability", "RootAttentionProvider", "ViewStateProvider", "meta", "AttentionCapabilities", "makeModule", "succeed", "contributes", "ReactContext", "id", "profile", "key", "context", "props", "attention", "Attention", "viewState", "ViewState", "onChange", "nextAttended", "manager", "children"]
7
+ }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  AttentionCapabilities
3
- } from "./chunk-DTGSOFCE.mjs";
3
+ } from "./chunk-KYZ6BP6Z.mjs";
4
4
 
5
5
  // src/operations/select.ts
6
6
  import * as Effect from "effect/Effect";
@@ -8,39 +8,61 @@ import * as Match from "effect/Match";
8
8
  import { Capability } from "@dxos/app-framework";
9
9
  import { LayoutOperation } from "@dxos/app-toolkit";
10
10
  import { Operation } from "@dxos/compute";
11
+ import { selectionAspect } from "@dxos/react-ui-attention";
11
12
  var handler = LayoutOperation.Select.pipe(Operation.withHandler(Effect.fnUntraced(function* (input) {
12
- const selection = yield* Capability.get(AttentionCapabilities.Selection);
13
+ const viewState = yield* Capability.get(AttentionCapabilities.ViewState);
13
14
  Match.value(input.subject).pipe(Match.when({
14
15
  mode: "single",
15
16
  id: void 0
16
17
  }, () => {
17
- selection.clearSelection(input.contextId);
18
+ viewState.set(selectionAspect, input.contextId, {
19
+ mode: "single"
20
+ });
18
21
  }), Match.when({
19
22
  mode: "single"
20
23
  }, (s) => {
21
- selection.updateSingle(input.contextId, s.id);
24
+ viewState.set(selectionAspect, input.contextId, {
25
+ mode: "single",
26
+ id: s.id
27
+ });
22
28
  }), Match.when({
23
29
  mode: "multi"
24
30
  }, (s) => {
25
- selection.updateMulti(input.contextId, s.ids);
31
+ viewState.set(selectionAspect, input.contextId, {
32
+ mode: "multi",
33
+ ids: [
34
+ ...s.ids
35
+ ]
36
+ });
26
37
  }), Match.when({
27
38
  mode: "range",
28
39
  from: void 0,
29
40
  to: void 0
30
41
  }, () => {
31
- selection.clearSelection(input.contextId);
42
+ viewState.set(selectionAspect, input.contextId, {
43
+ mode: "range"
44
+ });
32
45
  }), Match.when({
33
46
  mode: "range"
34
47
  }, (s) => {
35
- selection.updateRange(input.contextId, s.from, s.to);
48
+ viewState.set(selectionAspect, input.contextId, {
49
+ mode: "range",
50
+ from: s.from,
51
+ to: s.to
52
+ });
36
53
  }), Match.when({
37
54
  mode: "multi-range"
38
55
  }, (s) => {
39
- selection.updateMultiRange(input.contextId, s.ranges);
56
+ viewState.set(selectionAspect, input.contextId, {
57
+ mode: "multi-range",
58
+ ranges: [
59
+ ...s.ranges
60
+ ]
61
+ });
40
62
  }), Match.exhaustive);
41
63
  })));
42
64
  var select_default = handler;
43
65
  export {
44
66
  select_default as default
45
67
  };
46
- //# sourceMappingURL=select-CI2OLVWT.mjs.map
68
+ //# sourceMappingURL=select-AR23P2VZ.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/operations/select.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport * as Match from 'effect/Match';\n\nimport { Capability } from '@dxos/app-framework';\nimport { LayoutOperation } from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/compute';\nimport { selectionAspect } from '@dxos/react-ui-attention';\n\nimport { AttentionCapabilities } from '../types';\n\nconst handler: Operation.WithHandler<typeof LayoutOperation.Select> = LayoutOperation.Select.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* (input) {\n const viewState = yield* Capability.get(AttentionCapabilities.ViewState);\n Match.value(input.subject).pipe(\n Match.when({ mode: 'single', id: undefined }, () => {\n viewState.set(selectionAspect, input.contextId, { mode: 'single' });\n }),\n Match.when({ mode: 'single' }, (s) => {\n viewState.set(selectionAspect, input.contextId, { mode: 'single', id: s.id });\n }),\n Match.when({ mode: 'multi' }, (s) => {\n viewState.set(selectionAspect, input.contextId, { mode: 'multi', ids: [...s.ids] });\n }),\n Match.when({ mode: 'range', from: undefined, to: undefined }, () => {\n viewState.set(selectionAspect, input.contextId, { mode: 'range' });\n }),\n Match.when({ mode: 'range' }, (s) => {\n viewState.set(selectionAspect, input.contextId, { mode: 'range', from: s.from, to: s.to });\n }),\n Match.when({ mode: 'multi-range' }, (s) => {\n viewState.set(selectionAspect, input.contextId, { mode: 'multi-range', ranges: [...s.ranges] });\n }),\n Match.exhaustive,\n );\n }),\n ),\n);\n\nexport default handler;\n"],
5
+ "mappings": ";;;;;AAIA,YAAYA,YAAY;AACxB,YAAYC,WAAW;AAEvB,SAASC,kBAAkB;AAC3B,SAASC,uBAAuB;AAChC,SAASC,iBAAiB;AAC1B,SAASC,uBAAuB;AAIhC,IAAMC,UAAgEC,gBAAgBC,OAAOC,KAC3FC,UAAUC,YACDC,kBAAW,WAAWC,OAAK;AAChC,QAAMC,YAAY,OAAOC,WAAWC,IAAIC,sBAAsBC,SAAS;AACvEC,EAAMC,YAAMP,MAAMQ,OAAO,EAAEZ,KACnBa,WAAK;IAAEC,MAAM;IAAUC,IAAIC;EAAU,GAAG,MAAA;AAC5CX,cAAUY,IAAIC,iBAAiBd,MAAMe,WAAW;MAAEL,MAAM;IAAS,CAAA;EACnE,CAAA,GACMD,WAAK;IAAEC,MAAM;EAAS,GAAG,CAACM,MAAAA;AAC9Bf,cAAUY,IAAIC,iBAAiBd,MAAMe,WAAW;MAAEL,MAAM;MAAUC,IAAIK,EAAEL;IAAG,CAAA;EAC7E,CAAA,GACMF,WAAK;IAAEC,MAAM;EAAQ,GAAG,CAACM,MAAAA;AAC7Bf,cAAUY,IAAIC,iBAAiBd,MAAMe,WAAW;MAAEL,MAAM;MAASO,KAAK;WAAID,EAAEC;;IAAK,CAAA;EACnF,CAAA,GACMR,WAAK;IAAEC,MAAM;IAASQ,MAAMN;IAAWO,IAAIP;EAAU,GAAG,MAAA;AAC5DX,cAAUY,IAAIC,iBAAiBd,MAAMe,WAAW;MAAEL,MAAM;IAAQ,CAAA;EAClE,CAAA,GACMD,WAAK;IAAEC,MAAM;EAAQ,GAAG,CAACM,MAAAA;AAC7Bf,cAAUY,IAAIC,iBAAiBd,MAAMe,WAAW;MAAEL,MAAM;MAASQ,MAAMF,EAAEE;MAAMC,IAAIH,EAAEG;IAAG,CAAA;EAC1F,CAAA,GACMV,WAAK;IAAEC,MAAM;EAAc,GAAG,CAACM,MAAAA;AACnCf,cAAUY,IAAIC,iBAAiBd,MAAMe,WAAW;MAAEL,MAAM;MAAeU,QAAQ;WAAIJ,EAAEI;;IAAQ,CAAA;EAC/F,CAAA,GACMC,gBAAU;AAEpB,CAAA,CAAA,CAAA;AAIJ,IAAA,iBAAe5B;",
6
+ "names": ["Effect", "Match", "Capability", "LayoutOperation", "Operation", "selectionAspect", "handler", "LayoutOperation", "Select", "pipe", "Operation", "withHandler", "fnUntraced", "input", "viewState", "Capability", "get", "AttentionCapabilities", "ViewState", "Match", "value", "subject", "when", "mode", "id", "undefined", "set", "selectionAspect", "contextId", "s", "ids", "from", "to", "ranges", "exhaustive"]
7
+ }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  AttentionPlugin
3
- } from "./chunk-DPUSNLAH.mjs";
3
+ } from "./chunk-BJDXKPRR.mjs";
4
4
  export {
5
5
  AttentionPlugin
6
6
  };
@@ -2,7 +2,7 @@ import {
2
2
  AttentionAction,
3
3
  AttentionCapabilities,
4
4
  AttentionEvents
5
- } from "../chunk-DTGSOFCE.mjs";
5
+ } from "../chunk-KYZ6BP6Z.mjs";
6
6
  export {
7
7
  AttentionAction,
8
8
  AttentionCapabilities,
@@ -0,0 +1,28 @@
1
+ declare const _default: {
2
+ readonly plugin: {
3
+ readonly key: string;
4
+ readonly name: string;
5
+ readonly description?: string | undefined;
6
+ readonly author?: string | undefined;
7
+ readonly homePage?: string | undefined;
8
+ readonly source?: string | undefined;
9
+ readonly screenshots?: readonly {
10
+ readonly light?: string | undefined;
11
+ readonly dark?: string | undefined;
12
+ }[] | undefined;
13
+ readonly tags?: readonly string[] | undefined;
14
+ readonly icon?: {
15
+ readonly key: string;
16
+ readonly hue?: string | undefined;
17
+ } | undefined;
18
+ readonly spec?: string | undefined;
19
+ readonly dependsOn?: readonly string[] | undefined;
20
+ };
21
+ readonly publish?: {
22
+ readonly buildCommand?: string | undefined;
23
+ readonly outputDirectory?: string | undefined;
24
+ readonly assetBaseUrl?: string | undefined;
25
+ } | undefined;
26
+ };
27
+ export default _default;
28
+ //# sourceMappingURL=dx.config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dx.config.d.ts","sourceRoot":"","sources":["../../dx.config.ts"],"names":[],"mappings":""}
@@ -1,10 +1,6 @@
1
1
  import { Capability } from '@dxos/app-framework';
2
2
  import { OperationHandlerSet } from '@dxos/compute';
3
- export declare const Keyboard: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<null>>, Error>;
3
+ export declare const Keyboard: Capability.LazyCapability<void, Capability.ModuleReturn, Error>;
4
4
  export declare const OperationHandler: Capability.LazyCapability<OperationHandlerSet.OperationHandlerSet, Capability.ModuleReturn, Error>;
5
- export declare const ReactContext: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<Readonly<{
6
- id: string;
7
- dependsOn?: string[];
8
- context: import("react").FC<import("react").PropsWithChildren>;
9
- }>>>, Error>;
5
+ export declare const ReactContext: Capability.LazyCapability<void, Capability.ModuleReturn, Error>;
10
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpD,eAAO,MAAM,QAAQ,8FAA0D,CAAC;AAChF,eAAO,MAAM,gBAAgB,oGAG5B,CAAC;AACF,eAAO,MAAM,YAAY;;;;YAAmE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpD,eAAO,MAAM,QAAQ,iEAA0D,CAAC;AAChF,eAAO,MAAM,gBAAgB,oGAG5B,CAAC;AACF,eAAO,MAAM,YAAY,iEAAmE,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import * as Effect from 'effect/Effect';
2
2
  import { Capability } from '@dxos/app-framework';
3
- declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<null>>, Error, Capability.Service>;
3
+ declare const _default: (props: void) => Effect.Effect<Capability.Any, Error, Capability.Service>;
4
4
  export default _default;
5
5
  //# sourceMappingURL=keyboard.d.ts.map
@@ -1,10 +1,5 @@
1
1
  import * as Effect from 'effect/Effect';
2
- import React, { type PropsWithChildren } from 'react';
3
2
  import { Capability } from '@dxos/app-framework';
4
- declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<Readonly<{
5
- id: string;
6
- dependsOn?: string[];
7
- context: React.FC<PropsWithChildren>;
8
- }>>>, never, never>;
3
+ declare const _default: (props: void) => Effect.Effect<Capability.Any, never, never>;
9
4
  export default _default;
10
5
  //# sourceMappingURL=react-context.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"react-context.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-context.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAEtD,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC"}
1
+ {"version":3,"file":"react-context.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-context.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC"}