@dxos/plugin-attention 0.8.4-main.e098934 → 0.8.4-main.ead640a

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 (64) hide show
  1. package/dist/lib/browser/chunk-EJ4ELAEO.mjs +16 -0
  2. package/dist/lib/browser/chunk-EJ4ELAEO.mjs.map +7 -0
  3. package/dist/lib/browser/chunk-NMXGUHSU.mjs +10 -0
  4. package/dist/lib/browser/chunk-NMXGUHSU.mjs.map +7 -0
  5. package/dist/lib/browser/{chunk-WOQAO42V.mjs → chunk-SBLZSJTD.mjs} +5 -5
  6. package/dist/lib/browser/chunk-SBLZSJTD.mjs.map +7 -0
  7. package/dist/lib/browser/index.mjs +7 -9
  8. package/dist/lib/browser/index.mjs.map +3 -3
  9. package/dist/lib/browser/{intent-resolver-E7G6R755.mjs → intent-resolver-C3JE25O5.mjs} +7 -7
  10. package/dist/lib/browser/intent-resolver-C3JE25O5.mjs.map +7 -0
  11. package/dist/lib/browser/{keyboard-JTQ2RGL7.mjs → keyboard-H7IAAFBN.mjs} +6 -6
  12. package/dist/lib/browser/keyboard-H7IAAFBN.mjs.map +7 -0
  13. package/dist/lib/browser/meta.json +1 -1
  14. package/dist/lib/browser/{react-context-IUBFXFFZ.mjs → react-context-7HCRTOWZ.mjs} +7 -7
  15. package/dist/lib/browser/react-context-7HCRTOWZ.mjs.map +7 -0
  16. package/dist/lib/browser/types/index.mjs +2 -2
  17. package/dist/lib/node-esm/{chunk-K3STXVKU.mjs → chunk-FKQHPGTA.mjs} +5 -5
  18. package/dist/lib/node-esm/chunk-FKQHPGTA.mjs.map +7 -0
  19. package/dist/lib/node-esm/{chunk-YUJM7ABN.mjs → chunk-GC4PRMVZ.mjs} +2 -4
  20. package/dist/lib/node-esm/chunk-GC4PRMVZ.mjs.map +7 -0
  21. package/dist/lib/node-esm/{chunk-MS46IMND.mjs → chunk-YNOCLBTT.mjs} +5 -5
  22. package/dist/lib/node-esm/chunk-YNOCLBTT.mjs.map +7 -0
  23. package/dist/lib/node-esm/index.mjs +7 -9
  24. package/dist/lib/node-esm/index.mjs.map +3 -3
  25. package/dist/lib/node-esm/{intent-resolver-ELLJ67CV.mjs → intent-resolver-2IB4I23V.mjs} +7 -7
  26. package/dist/lib/node-esm/intent-resolver-2IB4I23V.mjs.map +7 -0
  27. package/dist/lib/node-esm/{keyboard-S7SW6XBY.mjs → keyboard-Y32WSEOC.mjs} +6 -6
  28. package/dist/lib/node-esm/keyboard-Y32WSEOC.mjs.map +7 -0
  29. package/dist/lib/node-esm/meta.json +1 -1
  30. package/dist/lib/node-esm/{react-context-2RSEVMNC.mjs → react-context-7RDGSUXD.mjs} +7 -7
  31. package/dist/lib/node-esm/react-context-7RDGSUXD.mjs.map +7 -0
  32. package/dist/lib/node-esm/types/index.mjs +2 -2
  33. package/dist/types/src/AttentionPlugin.d.ts +1 -1
  34. package/dist/types/src/AttentionPlugin.d.ts.map +1 -1
  35. package/dist/types/src/capabilities/capabilities.d.ts.map +1 -1
  36. package/dist/types/src/events.d.ts.map +1 -1
  37. package/dist/types/src/meta.d.ts +0 -1
  38. package/dist/types/src/meta.d.ts.map +1 -1
  39. package/dist/types/src/types/types.d.ts +3 -3
  40. package/dist/types/src/types/types.d.ts.map +1 -1
  41. package/dist/types/tsconfig.tsbuildinfo +1 -1
  42. package/package.json +13 -14
  43. package/src/AttentionPlugin.ts +31 -32
  44. package/src/capabilities/capabilities.ts +3 -3
  45. package/src/capabilities/intent-resolver.ts +1 -1
  46. package/src/capabilities/keyboard.ts +1 -1
  47. package/src/capabilities/react-context.tsx +2 -2
  48. package/src/events.ts +2 -2
  49. package/src/meta.ts +1 -3
  50. package/src/types/types.ts +3 -3
  51. package/dist/lib/browser/chunk-DF2PBRKK.mjs +0 -12
  52. package/dist/lib/browser/chunk-DF2PBRKK.mjs.map +0 -7
  53. package/dist/lib/browser/chunk-LRNGQJHD.mjs +0 -16
  54. package/dist/lib/browser/chunk-LRNGQJHD.mjs.map +0 -7
  55. package/dist/lib/browser/chunk-WOQAO42V.mjs.map +0 -7
  56. package/dist/lib/browser/intent-resolver-E7G6R755.mjs.map +0 -7
  57. package/dist/lib/browser/keyboard-JTQ2RGL7.mjs.map +0 -7
  58. package/dist/lib/browser/react-context-IUBFXFFZ.mjs.map +0 -7
  59. package/dist/lib/node-esm/chunk-K3STXVKU.mjs.map +0 -7
  60. package/dist/lib/node-esm/chunk-MS46IMND.mjs.map +0 -7
  61. package/dist/lib/node-esm/chunk-YUJM7ABN.mjs.map +0 -7
  62. package/dist/lib/node-esm/intent-resolver-ELLJ67CV.mjs.map +0 -7
  63. package/dist/lib/node-esm/keyboard-S7SW6XBY.mjs.map +0 -7
  64. package/dist/lib/node-esm/react-context-2RSEVMNC.mjs.map +0 -7
@@ -0,0 +1,16 @@
1
+ import {
2
+ meta
3
+ } from "./chunk-NMXGUHSU.mjs";
4
+
5
+ // src/capabilities/capabilities.ts
6
+ import { defineCapability } from "@dxos/app-framework";
7
+ (function(AttentionCapabilities2) {
8
+ AttentionCapabilities2.Attention = defineCapability(`${meta.id}/capability/attention`);
9
+ AttentionCapabilities2.Selection = defineCapability(`${meta.id}/capability/selection`);
10
+ })(AttentionCapabilities || (AttentionCapabilities = {}));
11
+ var AttentionCapabilities;
12
+
13
+ export {
14
+ AttentionCapabilities
15
+ };
16
+ //# sourceMappingURL=chunk-EJ4ELAEO.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/capabilities/capabilities.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { defineCapability } from '@dxos/app-framework';\nimport { type AttentionManager, type SelectionManager } from '@dxos/react-ui-attention';\n\nimport { meta } from '../meta';\n\nexport namespace AttentionCapabilities {\n export const Attention = defineCapability<AttentionManager>(`${meta.id}/capability/attention`);\n export const Selection = defineCapability<SelectionManager>(`${meta.id}/capability/selection`);\n}\n"],
5
+ "mappings": ";;;;;AAIA,SAASA,wBAAwB;UAKhBC,wBAAAA;yBACFC,YAAYC,iBAAmC,GAAGC,KAAKC,EAAE,uBAAuB;yBAChFC,YAAYH,iBAAmC,GAAGC,KAAKC,EAAE,uBAAuB;AAC/F,GAHiBJ,0BAAAA,wBAAAA,CAAAA,EAAAA;;",
6
+ "names": ["defineCapability", "AttentionCapabilities", "Attention", "defineCapability", "meta", "id", "Selection"]
7
+ }
@@ -0,0 +1,10 @@
1
+ // src/meta.ts
2
+ var meta = {
3
+ id: "dxos.org/plugin/attention",
4
+ name: "Attention"
5
+ };
6
+
7
+ export {
8
+ meta
9
+ };
10
+ //# sourceMappingURL=chunk-NMXGUHSU.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/meta.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport { type PluginMeta } from '@dxos/app-framework';\n\nexport const meta: PluginMeta = {\n id: 'dxos.org/plugin/attention',\n name: 'Attention',\n};\n"],
5
+ "mappings": ";AAMO,IAAMA,OAAmB;EAC9BC,IAAI;EACJC,MAAM;AACR;",
6
+ "names": ["meta", "id", "name"]
7
+ }
@@ -1,12 +1,12 @@
1
1
  import {
2
- ATTENTION_PLUGIN
3
- } from "./chunk-DF2PBRKK.mjs";
2
+ meta
3
+ } from "./chunk-NMXGUHSU.mjs";
4
4
 
5
5
  // src/types/types.ts
6
- import { Schema } from "effect";
6
+ import * as Schema from "effect/Schema";
7
7
  import { SelectionSchema } from "@dxos/react-ui-attention";
8
8
  (function(AttentionAction2) {
9
- const ATTENTION_ACTION = `${ATTENTION_PLUGIN}/action`;
9
+ const ATTENTION_ACTION = `${meta.id}/action`;
10
10
  class Select extends Schema.TaggedClass()(`${ATTENTION_ACTION}/select`, {
11
11
  input: Schema.Struct({
12
12
  contextId: Schema.String,
@@ -22,4 +22,4 @@ var AttentionAction;
22
22
  export {
23
23
  AttentionAction
24
24
  };
25
- //# sourceMappingURL=chunk-WOQAO42V.mjs.map
25
+ //# sourceMappingURL=chunk-SBLZSJTD.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/types/types.ts"],
4
+ "sourcesContent": ["//\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.id}/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,YAAYA,YAAY;AAExB,SAASC,uBAAuB;UAIfC,kBAAAA;AACf,QAAMC,mBAAmB,GAAGC,KAAKC,EAAE;EAE5B,MAAMC,eAAsBC,mBAAW,EAAW,GAAGJ,gBAAAA,WAA2B;IACrFK,OAAcC,cAAO;MACnBC,WAAkBC;MAClBC,WAAWC;IACb,CAAA;IACAC,QAAeC;EACjB,CAAA,EAAA;EAAI;mBANST,SAAAA;AAOf,GAViBJ,oBAAAA,kBAAAA,CAAAA,EAAAA;;",
6
+ "names": ["Schema", "SelectionSchema", "AttentionAction", "ATTENTION_ACTION", "meta", "id", "Select", "TaggedClass", "input", "Struct", "contextId", "String", "selection", "SelectionSchema", "output", "Void"]
7
+ }
@@ -1,10 +1,9 @@
1
1
  import {
2
2
  AttentionCapabilities
3
- } from "./chunk-LRNGQJHD.mjs";
3
+ } from "./chunk-EJ4ELAEO.mjs";
4
4
  import {
5
- ATTENTION_PLUGIN,
6
5
  meta
7
- } from "./chunk-DF2PBRKK.mjs";
6
+ } from "./chunk-NMXGUHSU.mjs";
8
7
 
9
8
  // src/index.ts
10
9
  export * from "@dxos/react-ui-attention";
@@ -15,19 +14,19 @@ import { AttentionManager, SelectionManager } from "@dxos/react-ui-attention";
15
14
 
16
15
  // src/capabilities/index.ts
17
16
  import { lazy } from "@dxos/app-framework";
18
- var IntentResolver = lazy(() => import("./intent-resolver-E7G6R755.mjs"));
19
- var Keyboard = lazy(() => import("./keyboard-JTQ2RGL7.mjs"));
20
- var ReactContext = lazy(() => import("./react-context-IUBFXFFZ.mjs"));
17
+ var IntentResolver = lazy(() => import("./intent-resolver-C3JE25O5.mjs"));
18
+ var Keyboard = lazy(() => import("./keyboard-H7IAAFBN.mjs"));
19
+ var ReactContext = lazy(() => import("./react-context-7HCRTOWZ.mjs"));
21
20
 
22
21
  // src/events.ts
23
22
  import { defineEvent } from "@dxos/app-framework";
24
23
  (function(AttentionEvents2) {
25
- AttentionEvents2.AttentionReady = defineEvent(`${ATTENTION_PLUGIN}/event/attention-ready`);
24
+ AttentionEvents2.AttentionReady = defineEvent(`${meta.id}/event/attention-ready`);
26
25
  })(AttentionEvents || (AttentionEvents = {}));
27
26
  var AttentionEvents;
28
27
 
29
28
  // src/AttentionPlugin.ts
30
- var AttentionPlugin = () => definePlugin(meta, [
29
+ var AttentionPlugin = definePlugin(meta, () => [
31
30
  defineModule({
32
31
  id: `${meta.id}/module/attention`,
33
32
  activatesOn: Events.Startup,
@@ -81,7 +80,6 @@ var setupDevtools = (attention) => {
81
80
  };
82
81
  };
83
82
  export {
84
- ATTENTION_PLUGIN,
85
83
  AttentionCapabilities,
86
84
  AttentionEvents,
87
85
  AttentionPlugin,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/index.ts", "../../../src/AttentionPlugin.ts", "../../../src/capabilities/index.ts", "../../../src/events.ts"],
4
- "sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nexport * from '@dxos/react-ui-attention';\n\nexport * from './AttentionPlugin';\nexport { AttentionCapabilities } from './capabilities';\nexport * from './events';\nexport * from './meta';\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { Events, allOf, contributes, defineModule, definePlugin } from '@dxos/app-framework';\nimport { AttentionManager, SelectionManager } from '@dxos/react-ui-attention';\n\nimport { AttentionCapabilities, IntentResolver, Keyboard, ReactContext } from './capabilities';\nimport { AttentionEvents } from './events';\nimport { meta } from './meta';\n\nexport const AttentionPlugin = () =>\n definePlugin(meta, [\n defineModule({\n id: `${meta.id}/module/attention`,\n activatesOn: Events.Startup,\n activatesAfter: [AttentionEvents.AttentionReady],\n activate: () => {\n const attention = new AttentionManager();\n const selection = new SelectionManager();\n setupDevtools(attention);\n return [\n contributes(AttentionCapabilities.Attention, attention),\n contributes(AttentionCapabilities.Selection, selection),\n ];\n },\n }),\n defineModule({\n id: `${meta.id}/module/react-context`,\n activatesOn: Events.Startup,\n activate: ReactContext,\n }),\n defineModule({\n id: `${meta.id}/module/keyboard`,\n activatesOn: allOf(Events.AppGraphReady, AttentionEvents.AttentionReady),\n activate: Keyboard,\n }),\n defineModule({\n id: `${meta.id}/module/intent-resolver`,\n activatesOn: Events.SetupIntentResolver,\n activate: IntentResolver,\n }),\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.current;\n },\n get currentSpace() {\n for (const id of attention.current) {\n const [spaceId, objectId] = id.split(':');\n if (spaceId && objectId && spaceId.length === 33) {\n return spaceId;\n }\n }\n },\n };\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { lazy } from '@dxos/app-framework';\n\nexport const IntentResolver = lazy(() => import('./intent-resolver'));\nexport const Keyboard = lazy(() => import('./keyboard'));\nexport const ReactContext = lazy(() => import('./react-context'));\n\nexport * from './capabilities';\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { defineEvent } from '@dxos/app-framework';\n\nimport { ATTENTION_PLUGIN } from './meta';\n\nexport namespace AttentionEvents {\n export const AttentionReady = defineEvent(`${ATTENTION_PLUGIN}/event/attention-ready`);\n}\n"],
5
- "mappings": ";;;;;;;;;AAIA,cAAc;;;ACAd,SAASA,QAAQC,OAAOC,aAAaC,cAAcC,oBAAoB;AACvE,SAASC,kBAAkBC,wBAAwB;;;ACDnD,SAASC,YAAY;AAEd,IAAMC,iBAAiBC,KAAK,MAAM,OAAO,gCAAA,CAAA;AACzC,IAAMC,WAAWD,KAAK,MAAM,OAAO,yBAAA,CAAA;AACnC,IAAME,eAAeF,KAAK,MAAM,OAAO,8BAAA,CAAA;;;ACJ9C,SAASG,mBAAmB;UAIXC,kBAAAA;mBACFC,iBAAiBC,YAAY,GAAGC,gBAAAA,wBAAwC;AACvF,GAFiBH,oBAAAA,kBAAAA,CAAAA,EAAAA;;;;AFGV,IAAMI,kBAAkB,MAC7BC,aAAaC,MAAM;EACjBC,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOC;IACpBC,gBAAgB;MAACC,gBAAgBC;;IACjCC,UAAU,MAAA;AACR,YAAMC,YAAY,IAAIC,iBAAAA;AACtB,YAAMC,YAAY,IAAIC,iBAAAA;AACtBC,oBAAcJ,SAAAA;AACd,aAAO;QACLK,YAAYC,sBAAsBC,WAAWP,SAAAA;QAC7CK,YAAYC,sBAAsBE,WAAWN,SAAAA;;IAEjD;EACF,CAAA;EACAX,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOC;IACpBI,UAAUU;EACZ,CAAA;EACAlB,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaiB,MAAMhB,OAAOiB,eAAed,gBAAgBC,cAAc;IACvEC,UAAUa;EACZ,CAAA;EACArB,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOmB;IACpBd,UAAUe;EACZ,CAAA;CACD;AAEH,IAAMV,gBAAgB,CAACJ,cAAAA;MACpBe;AAAD,GAACA,cAAAA,YAAmBC,aAAnBD,YAAmBC,WAAa,CAAC;AAEjCD,aAAmBC,SAAShB,YAAY;IACvC,IAAIiB,UAAU;AACZ,aAAOjB;IACT;IACA,IAAIkB,WAAW;AACb,aAAOlB,UAAUmB;IACnB;IACA,IAAIC,eAAe;AACjB,iBAAW5B,MAAMQ,UAAUmB,SAAS;AAClC,cAAM,CAACE,SAASC,QAAAA,IAAY9B,GAAG+B,MAAM,GAAA;AACrC,YAAIF,WAAWC,YAAYD,QAAQG,WAAW,IAAI;AAChD,iBAAOH;QACT;MACF;IACF;EACF;AACF;",
6
- "names": ["Events", "allOf", "contributes", "defineModule", "definePlugin", "AttentionManager", "SelectionManager", "lazy", "IntentResolver", "lazy", "Keyboard", "ReactContext", "defineEvent", "AttentionEvents", "AttentionReady", "defineEvent", "ATTENTION_PLUGIN", "AttentionPlugin", "definePlugin", "meta", "defineModule", "id", "activatesOn", "Events", "Startup", "activatesAfter", "AttentionEvents", "AttentionReady", "activate", "attention", "AttentionManager", "selection", "SelectionManager", "setupDevtools", "contributes", "AttentionCapabilities", "Attention", "Selection", "ReactContext", "allOf", "AppGraphReady", "Keyboard", "SetupIntentResolver", "IntentResolver", "globalThis", "composer", "manager", "attended", "current", "currentSpace", "spaceId", "objectId", "split", "length"]
4
+ "sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nexport * from '@dxos/react-ui-attention';\n\nexport * from './AttentionPlugin';\nexport { AttentionCapabilities } from './capabilities';\nexport * from './events';\nexport * from './meta';\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { Events, allOf, contributes, defineModule, definePlugin } from '@dxos/app-framework';\nimport { AttentionManager, SelectionManager } from '@dxos/react-ui-attention';\n\nimport { AttentionCapabilities, IntentResolver, Keyboard, ReactContext } from './capabilities';\nimport { AttentionEvents } from './events';\nimport { meta } from './meta';\n\nexport const AttentionPlugin = definePlugin(meta, () => [\n defineModule({\n id: `${meta.id}/module/attention`,\n activatesOn: Events.Startup,\n activatesAfter: [AttentionEvents.AttentionReady],\n activate: () => {\n const attention = new AttentionManager();\n const selection = new SelectionManager();\n setupDevtools(attention);\n return [\n contributes(AttentionCapabilities.Attention, attention),\n contributes(AttentionCapabilities.Selection, selection),\n ];\n },\n }),\n defineModule({\n id: `${meta.id}/module/react-context`,\n activatesOn: Events.Startup,\n activate: ReactContext,\n }),\n defineModule({\n id: `${meta.id}/module/keyboard`,\n activatesOn: allOf(Events.AppGraphReady, AttentionEvents.AttentionReady),\n activate: Keyboard,\n }),\n defineModule({\n id: `${meta.id}/module/intent-resolver`,\n activatesOn: Events.SetupIntentResolver,\n activate: IntentResolver,\n }),\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.current;\n },\n get currentSpace() {\n for (const id of attention.current) {\n const [spaceId, objectId] = id.split(':');\n if (spaceId && objectId && spaceId.length === 33) {\n return spaceId;\n }\n }\n },\n };\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { lazy } from '@dxos/app-framework';\n\nexport const IntentResolver = lazy(() => import('./intent-resolver'));\nexport const Keyboard = lazy(() => import('./keyboard'));\nexport const ReactContext = lazy(() => import('./react-context'));\n\nexport * from './capabilities';\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { defineEvent } from '@dxos/app-framework';\n\nimport { meta } from './meta';\n\nexport namespace AttentionEvents {\n export const AttentionReady = defineEvent(`${meta.id}/event/attention-ready`);\n}\n"],
5
+ "mappings": ";;;;;;;;AAIA,cAAc;;;ACAd,SAASA,QAAQC,OAAOC,aAAaC,cAAcC,oBAAoB;AACvE,SAASC,kBAAkBC,wBAAwB;;;ACDnD,SAASC,YAAY;AAEd,IAAMC,iBAAiBC,KAAK,MAAM,OAAO,gCAAA,CAAA;AACzC,IAAMC,WAAWD,KAAK,MAAM,OAAO,yBAAA,CAAA;AACnC,IAAME,eAAeF,KAAK,MAAM,OAAO,8BAAA,CAAA;;;ACJ9C,SAASG,mBAAmB;UAIXC,kBAAAA;mBACFC,iBAAiBC,YAAY,GAAGC,KAAKC,EAAE,wBAAwB;AAC9E,GAFiBJ,oBAAAA,kBAAAA,CAAAA,EAAAA;;;;AFGV,IAAMK,kBAAkBC,aAAaC,MAAM,MAAM;EACtDC,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOC;IACpBC,gBAAgB;MAACC,gBAAgBC;;IACjCC,UAAU,MAAA;AACR,YAAMC,YAAY,IAAIC,iBAAAA;AACtB,YAAMC,YAAY,IAAIC,iBAAAA;AACtBC,oBAAcJ,SAAAA;AACd,aAAO;QACLK,YAAYC,sBAAsBC,WAAWP,SAAAA;QAC7CK,YAAYC,sBAAsBE,WAAWN,SAAAA;;IAEjD;EACF,CAAA;EACAX,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOC;IACpBI,UAAUU;EACZ,CAAA;EACAlB,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaiB,MAAMhB,OAAOiB,eAAed,gBAAgBC,cAAc;IACvEC,UAAUa;EACZ,CAAA;EACArB,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOmB;IACpBd,UAAUe;EACZ,CAAA;CACD;AAED,IAAMV,gBAAgB,CAACJ,cAAAA;MACpBe;AAAD,GAACA,cAAAA,YAAmBC,aAAnBD,YAAmBC,WAAa,CAAC;AAEjCD,aAAmBC,SAAShB,YAAY;IACvC,IAAIiB,UAAU;AACZ,aAAOjB;IACT;IACA,IAAIkB,WAAW;AACb,aAAOlB,UAAUmB;IACnB;IACA,IAAIC,eAAe;AACjB,iBAAW5B,MAAMQ,UAAUmB,SAAS;AAClC,cAAM,CAACE,SAASC,QAAAA,IAAY9B,GAAG+B,MAAM,GAAA;AACrC,YAAIF,WAAWC,YAAYD,QAAQG,WAAW,IAAI;AAChD,iBAAOH;QACT;MACF;IACF;EACF;AACF;",
6
+ "names": ["Events", "allOf", "contributes", "defineModule", "definePlugin", "AttentionManager", "SelectionManager", "lazy", "IntentResolver", "lazy", "Keyboard", "ReactContext", "defineEvent", "AttentionEvents", "AttentionReady", "defineEvent", "meta", "id", "AttentionPlugin", "definePlugin", "meta", "defineModule", "id", "activatesOn", "Events", "Startup", "activatesAfter", "AttentionEvents", "AttentionReady", "activate", "attention", "AttentionManager", "selection", "SelectionManager", "setupDevtools", "contributes", "AttentionCapabilities", "Attention", "Selection", "ReactContext", "allOf", "AppGraphReady", "Keyboard", "SetupIntentResolver", "IntentResolver", "globalThis", "composer", "manager", "attended", "current", "currentSpace", "spaceId", "objectId", "split", "length"]
7
7
  }
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  AttentionAction
3
- } from "./chunk-WOQAO42V.mjs";
3
+ } from "./chunk-SBLZSJTD.mjs";
4
4
  import {
5
5
  AttentionCapabilities
6
- } from "./chunk-LRNGQJHD.mjs";
7
- import "./chunk-DF2PBRKK.mjs";
6
+ } from "./chunk-EJ4ELAEO.mjs";
7
+ import "./chunk-NMXGUHSU.mjs";
8
8
 
9
9
  // src/capabilities/intent-resolver.ts
10
- import { Match } from "effect";
10
+ import * as Match from "effect/Match";
11
11
  import { Capabilities, contributes, createResolver } from "@dxos/app-framework";
12
- var intent_resolver_default = (context) => contributes(Capabilities.IntentResolver, [
12
+ var intent_resolver_default = ((context) => contributes(Capabilities.IntentResolver, [
13
13
  createResolver({
14
14
  intent: AttentionAction.Select,
15
15
  resolve: (data) => {
@@ -44,8 +44,8 @@ var intent_resolver_default = (context) => contributes(Capabilities.IntentResolv
44
44
  }), Match.exhaustive)(data.selection);
45
45
  }
46
46
  })
47
- ]);
47
+ ]));
48
48
  export {
49
49
  intent_resolver_default as default
50
50
  };
51
- //# sourceMappingURL=intent-resolver-E7G6R755.mjs.map
51
+ //# sourceMappingURL=intent-resolver-C3JE25O5.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 * as Match from 'effect/Match';\n\nimport { Capabilities, type PluginContext, contributes, createResolver } from '@dxos/app-framework';\nimport { type Selection } from '@dxos/react-ui-attention';\n\nimport { AttentionAction } from '../types';\n\nimport { AttentionCapabilities } from './capabilities';\n\nexport default (context: PluginContext) =>\n contributes(Capabilities.IntentResolver, [\n createResolver({\n intent: AttentionAction.Select,\n resolve: (data) => {\n const selection = context.getCapability(AttentionCapabilities.Selection);\n Match.type<Selection>().pipe(\n Match.when({ mode: 'single', id: undefined }, () => {\n selection.clearSelection(data.contextId);\n }),\n Match.when({ mode: 'single' }, (s) => {\n selection.updateSingle(data.contextId, s.id!);\n }),\n Match.when({ mode: 'multi' }, (s) => {\n selection.updateMulti(data.contextId, s.ids);\n }),\n Match.when({ mode: 'range', from: undefined, to: undefined }, () => {\n selection.clearSelection(data.contextId);\n }),\n Match.when({ mode: 'range' }, (s) => {\n selection.updateRange(data.contextId, s.from!, s.to!);\n }),\n Match.when({ mode: 'multi-range' }, (s) => {\n selection.updateMultiRange(data.contextId, s.ranges);\n }),\n Match.exhaustive,\n )(data.selection);\n },\n }),\n ]);\n"],
5
+ "mappings": ";;;;;;;;;AAIA,YAAYA,WAAW;AAEvB,SAASC,cAAkCC,aAAaC,sBAAsB;AAO9E,IAAA,2BAAe,CAACC,YACdC,YAAYC,aAAaC,gBAAgB;EACvCC,eAAe;IACbC,QAAQC,gBAAgBC;IACxBC,SAAS,CAACC,SAAAA;AACR,YAAMC,YAAYV,QAAQW,cAAcC,sBAAsBC,SAAS;AACvEC,MAAMC,WAAI,EAAcC,KAChBC,WAAK;QAAEC,MAAM;QAAUC,IAAIC;MAAU,GAAG,MAAA;AAC5CV,kBAAUW,eAAeZ,KAAKa,SAAS;MACzC,CAAA,GACML,WAAK;QAAEC,MAAM;MAAS,GAAG,CAACK,MAAAA;AAC9Bb,kBAAUc,aAAaf,KAAKa,WAAWC,EAAEJ,EAAE;MAC7C,CAAA,GACMF,WAAK;QAAEC,MAAM;MAAQ,GAAG,CAACK,MAAAA;AAC7Bb,kBAAUe,YAAYhB,KAAKa,WAAWC,EAAEG,GAAG;MAC7C,CAAA,GACMT,WAAK;QAAEC,MAAM;QAASS,MAAMP;QAAWQ,IAAIR;MAAU,GAAG,MAAA;AAC5DV,kBAAUW,eAAeZ,KAAKa,SAAS;MACzC,CAAA,GACML,WAAK;QAAEC,MAAM;MAAQ,GAAG,CAACK,MAAAA;AAC7Bb,kBAAUmB,YAAYpB,KAAKa,WAAWC,EAAEI,MAAOJ,EAAEK,EAAE;MACrD,CAAA,GACMX,WAAK;QAAEC,MAAM;MAAc,GAAG,CAACK,MAAAA;AACnCb,kBAAUoB,iBAAiBrB,KAAKa,WAAWC,EAAEQ,MAAM;MACrD,CAAA,GACMC,gBAAU,EAChBvB,KAAKC,SAAS;IAClB;EACF,CAAA;CACD;",
6
+ "names": ["Match", "Capabilities", "contributes", "createResolver", "context", "contributes", "Capabilities", "IntentResolver", "createResolver", "intent", "AttentionAction", "Select", "resolve", "data", "selection", "getCapability", "AttentionCapabilities", "Selection", "Match", "type", "pipe", "when", "mode", "id", "undefined", "clearSelection", "contextId", "s", "updateSingle", "updateMulti", "ids", "from", "to", "updateRange", "updateMultiRange", "ranges", "exhaustive"]
7
+ }
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  AttentionCapabilities
3
- } from "./chunk-LRNGQJHD.mjs";
4
- import "./chunk-DF2PBRKK.mjs";
3
+ } from "./chunk-EJ4ELAEO.mjs";
4
+ import "./chunk-NMXGUHSU.mjs";
5
5
 
6
6
  // src/capabilities/keyboard.ts
7
7
  import { effect } from "@preact/signals-core";
8
- import { Option } from "effect";
8
+ import * as Option from "effect/Option";
9
9
  import { Capabilities as AppCapabilities, contributes } from "@dxos/app-framework";
10
10
  import { Keyboard } from "@dxos/keyboard";
11
- var keyboard_default = (context) => {
11
+ var keyboard_default = ((context) => {
12
12
  const { graph } = context.getCapability(AppCapabilities.AppGraph);
13
13
  const attention = context.getCapability(AttentionCapabilities.Attention);
14
14
  const unsubscribe = effect(() => {
@@ -21,8 +21,8 @@ var keyboard_default = (context) => {
21
21
  }
22
22
  });
23
23
  return contributes(AppCapabilities.Null, null, () => unsubscribe());
24
- };
24
+ });
25
25
  export {
26
26
  keyboard_default as default
27
27
  };
28
- //# sourceMappingURL=keyboard-JTQ2RGL7.mjs.map
28
+ //# sourceMappingURL=keyboard-H7IAAFBN.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 { effect } from '@preact/signals-core';\nimport * as Option from 'effect/Option';\n\nimport { Capabilities as AppCapabilities, type PluginContext, contributes } from '@dxos/app-framework';\nimport { Keyboard } from '@dxos/keyboard';\n\nimport { AttentionCapabilities } from './capabilities';\n\nexport default (context: PluginContext) => {\n const { graph } = context.getCapability(AppCapabilities.AppGraph);\n const attention = context.getCapability(AttentionCapabilities.Attention);\n\n const unsubscribe = effect(() => {\n const id = Array.from(attention.current)[0];\n const path = id && graph.getPath({ target: id }).pipe(Option.getOrNull);\n if (path) {\n Keyboard.singleton.setCurrentContext(path.join('/'));\n }\n });\n\n return contributes(AppCapabilities.Null, null, () => unsubscribe());\n};\n"],
5
+ "mappings": ";;;;;;AAIA,SAASA,cAAc;AACvB,YAAYC,YAAY;AAExB,SAASC,gBAAgBC,iBAAqCC,mBAAmB;AACjF,SAASC,gBAAgB;AAIzB,IAAA,oBAAe,CAACC,YAAAA;AACd,QAAM,EAAEC,MAAK,IAAKD,QAAQE,cAAcC,gBAAgBC,QAAQ;AAChE,QAAMC,YAAYL,QAAQE,cAAcI,sBAAsBC,SAAS;AAEvE,QAAMC,cAAcC,OAAO,MAAA;AACzB,UAAMC,KAAKC,MAAMC,KAAKP,UAAUQ,OAAO,EAAE,CAAA;AACzC,UAAMC,OAAOJ,MAAMT,MAAMc,QAAQ;MAAEC,QAAQN;IAAG,CAAA,EAAGO,KAAYC,gBAAS;AACtE,QAAIJ,MAAM;AACRK,eAASC,UAAUC,kBAAkBP,KAAKQ,KAAK,GAAA,CAAA;IACjD;EACF,CAAA;AAEA,SAAOC,YAAYpB,gBAAgBqB,MAAM,MAAM,MAAMhB,YAAAA,CAAAA;AACvD;",
6
+ "names": ["effect", "Option", "Capabilities", "AppCapabilities", "contributes", "Keyboard", "context", "graph", "getCapability", "AppCapabilities", "AppGraph", "attention", "AttentionCapabilities", "Attention", "unsubscribe", "effect", "id", "Array", "from", "current", "path", "getPath", "target", "pipe", "getOrNull", "Keyboard", "singleton", "setCurrentContext", "join", "contributes", "Null"]
7
+ }
@@ -1 +1 @@
1
- {"inputs":{"src/meta.ts":{"bytes":949,"imports":[],"format":"esm"},"src/capabilities/capabilities.ts":{"bytes":1792,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"src/types/types.ts":{"bytes":2264,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"src/types/index.ts":{"bytes":459,"imports":[{"path":"src/types/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/capabilities/intent-resolver.ts":{"bytes":5997,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"},{"path":"src/capabilities/capabilities.ts","kind":"import-statement","original":"./capabilities"}],"format":"esm"},"src/capabilities/keyboard.ts":{"bytes":3527,"imports":[{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/keyboard","kind":"import-statement","external":true},{"path":"src/capabilities/capabilities.ts","kind":"import-statement","original":"./capabilities"}],"format":"esm"},"src/capabilities/react-context.tsx":{"bytes":4182,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"src/capabilities/capabilities.ts","kind":"import-statement","original":"./capabilities"}],"format":"esm"},"src/capabilities/index.ts":{"bytes":1355,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/capabilities/intent-resolver.ts","kind":"dynamic-import","original":"./intent-resolver"},{"path":"src/capabilities/keyboard.ts","kind":"dynamic-import","original":"./keyboard"},{"path":"src/capabilities/react-context.tsx","kind":"dynamic-import","original":"./react-context"}],"format":"esm"},"src/events.ts":{"bytes":1238,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"src/AttentionPlugin.ts":{"bytes":7490,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/events.ts","kind":"import-statement","original":"./events"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"src/index.ts":{"bytes":971,"imports":[{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"src/AttentionPlugin.ts","kind":"import-statement","original":"./AttentionPlugin"},{"path":"src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/events.ts","kind":"import-statement","original":"./events"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"}},"outputs":{"dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5093},"dist/lib/browser/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-LRNGQJHD.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-DF2PBRKK.mjs","kind":"import-statement"},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/browser/intent-resolver-E7G6R755.mjs","kind":"dynamic-import"},{"path":"dist/lib/browser/keyboard-JTQ2RGL7.mjs","kind":"dynamic-import"},{"path":"dist/lib/browser/react-context-IUBFXFFZ.mjs","kind":"dynamic-import"},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"exports":["ATTENTION_PLUGIN","AttentionCapabilities","AttentionEvents","AttentionPlugin","meta"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":42},"src/AttentionPlugin.ts":{"bytesInOutput":1636},"src/capabilities/index.ts":{"bytesInOutput":252},"src/events.ts":{"bytesInOutput":243}},"bytes":2560},"dist/lib/browser/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/browser/types/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-WOQAO42V.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-DF2PBRKK.mjs","kind":"import-statement"}],"exports":["AttentionAction"],"entryPoint":"src/types/index.ts","inputs":{},"bytes":156},"dist/lib/browser/intent-resolver-E7G6R755.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3070},"dist/lib/browser/intent-resolver-E7G6R755.mjs":{"imports":[{"path":"dist/lib/browser/chunk-WOQAO42V.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-LRNGQJHD.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-DF2PBRKK.mjs","kind":"import-statement"},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/intent-resolver.ts","inputs":{"src/capabilities/intent-resolver.ts":{"bytesInOutput":1210}},"bytes":1506},"dist/lib/browser/chunk-WOQAO42V.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1146},"dist/lib/browser/chunk-WOQAO42V.mjs":{"imports":[{"path":"dist/lib/browser/chunk-DF2PBRKK.mjs","kind":"import-statement"},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true}],"exports":["AttentionAction"],"inputs":{"src/types/types.ts":{"bytesInOutput":495},"src/types/index.ts":{"bytesInOutput":0}},"bytes":652},"dist/lib/browser/keyboard-JTQ2RGL7.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1910},"dist/lib/browser/keyboard-JTQ2RGL7.mjs":{"imports":[{"path":"dist/lib/browser/chunk-LRNGQJHD.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-DF2PBRKK.mjs","kind":"import-statement"},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/keyboard","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/keyboard.ts","inputs":{"src/capabilities/keyboard.ts":{"bytesInOutput":725}},"bytes":942},"dist/lib/browser/react-context-IUBFXFFZ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2102},"dist/lib/browser/react-context-IUBFXFFZ.mjs":{"imports":[{"path":"dist/lib/browser/chunk-LRNGQJHD.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-DF2PBRKK.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/react-context.tsx","inputs":{"src/capabilities/react-context.tsx":{"bytesInOutput":701}},"bytes":962},"dist/lib/browser/chunk-LRNGQJHD.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":900},"dist/lib/browser/chunk-LRNGQJHD.mjs":{"imports":[{"path":"dist/lib/browser/chunk-DF2PBRKK.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"exports":["AttentionCapabilities"],"inputs":{"src/capabilities/capabilities.ts":{"bytesInOutput":376}},"bytes":553},"dist/lib/browser/chunk-DF2PBRKK.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":469},"dist/lib/browser/chunk-DF2PBRKK.mjs":{"imports":[],"exports":["ATTENTION_PLUGIN","meta"],"inputs":{"src/meta.ts":{"bytesInOutput":112}},"bytes":211}}}
1
+ {"inputs":{"src/meta.ts":{"bytes":759,"imports":[],"format":"esm"},"src/capabilities/capabilities.ts":{"bytes":1730,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"src/types/types.ts":{"bytes":2227,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"src/types/index.ts":{"bytes":459,"imports":[{"path":"src/types/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/capabilities/intent-resolver.ts":{"bytes":6004,"imports":[{"path":"effect/Match","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"},{"path":"src/capabilities/capabilities.ts","kind":"import-statement","original":"./capabilities"}],"format":"esm"},"src/capabilities/keyboard.ts":{"bytes":3539,"imports":[{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/keyboard","kind":"import-statement","external":true},{"path":"src/capabilities/capabilities.ts","kind":"import-statement","original":"./capabilities"}],"format":"esm"},"src/capabilities/react-context.tsx":{"bytes":4129,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"src/capabilities/capabilities.ts","kind":"import-statement","original":"./capabilities"}],"format":"esm"},"src/capabilities/index.ts":{"bytes":1355,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/capabilities/intent-resolver.ts","kind":"dynamic-import","original":"./intent-resolver"},{"path":"src/capabilities/keyboard.ts","kind":"dynamic-import","original":"./keyboard"},{"path":"src/capabilities/react-context.tsx","kind":"dynamic-import","original":"./react-context"}],"format":"esm"},"src/events.ts":{"bytes":1189,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"src/AttentionPlugin.ts":{"bytes":7402,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/events.ts","kind":"import-statement","original":"./events"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"src/index.ts":{"bytes":971,"imports":[{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"src/AttentionPlugin.ts","kind":"import-statement","original":"./AttentionPlugin"},{"path":"src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/events.ts","kind":"import-statement","original":"./events"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"}},"outputs":{"dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5005},"dist/lib/browser/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-EJ4ELAEO.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-NMXGUHSU.mjs","kind":"import-statement"},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/browser/intent-resolver-C3JE25O5.mjs","kind":"dynamic-import"},{"path":"dist/lib/browser/keyboard-H7IAAFBN.mjs","kind":"dynamic-import"},{"path":"dist/lib/browser/react-context-7HCRTOWZ.mjs","kind":"dynamic-import"},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"exports":["AttentionCapabilities","AttentionEvents","AttentionPlugin","meta"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":42},"src/AttentionPlugin.ts":{"bytesInOutput":1636},"src/capabilities/index.ts":{"bytesInOutput":252},"src/events.ts":{"bytesInOutput":234}},"bytes":2511},"dist/lib/browser/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/browser/types/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-SBLZSJTD.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-NMXGUHSU.mjs","kind":"import-statement"}],"exports":["AttentionAction"],"entryPoint":"src/types/index.ts","inputs":{},"bytes":156},"dist/lib/browser/intent-resolver-C3JE25O5.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3034},"dist/lib/browser/intent-resolver-C3JE25O5.mjs":{"imports":[{"path":"dist/lib/browser/chunk-SBLZSJTD.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-EJ4ELAEO.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-NMXGUHSU.mjs","kind":"import-statement"},{"path":"effect/Match","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/intent-resolver.ts","inputs":{"src/capabilities/intent-resolver.ts":{"bytesInOutput":1219}},"bytes":1515},"dist/lib/browser/chunk-SBLZSJTD.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1100},"dist/lib/browser/chunk-SBLZSJTD.mjs":{"imports":[{"path":"dist/lib/browser/chunk-NMXGUHSU.mjs","kind":"import-statement"},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true}],"exports":["AttentionAction"],"inputs":{"src/types/types.ts":{"bytesInOutput":494},"src/types/index.ts":{"bytesInOutput":0}},"bytes":639},"dist/lib/browser/keyboard-H7IAAFBN.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1903},"dist/lib/browser/keyboard-H7IAAFBN.mjs":{"imports":[{"path":"dist/lib/browser/chunk-EJ4ELAEO.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-NMXGUHSU.mjs","kind":"import-statement"},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/keyboard","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/keyboard.ts","inputs":{"src/capabilities/keyboard.ts":{"bytesInOutput":735}},"bytes":952},"dist/lib/browser/react-context-7HCRTOWZ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2075},"dist/lib/browser/react-context-7HCRTOWZ.mjs":{"imports":[{"path":"dist/lib/browser/chunk-EJ4ELAEO.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-NMXGUHSU.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/react-context.tsx","inputs":{"src/capabilities/react-context.tsx":{"bytesInOutput":694}},"bytes":943},"dist/lib/browser/chunk-EJ4ELAEO.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":872},"dist/lib/browser/chunk-EJ4ELAEO.mjs":{"imports":[{"path":"dist/lib/browser/chunk-NMXGUHSU.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"exports":["AttentionCapabilities"],"inputs":{"src/capabilities/capabilities.ts":{"bytesInOutput":358}},"bytes":523},"dist/lib/browser/chunk-NMXGUHSU.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":376},"dist/lib/browser/chunk-NMXGUHSU.mjs":{"imports":[],"exports":["meta"],"inputs":{"src/meta.ts":{"bytesInOutput":71}},"bytes":150}}}
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  AttentionCapabilities
3
- } from "./chunk-LRNGQJHD.mjs";
3
+ } from "./chunk-EJ4ELAEO.mjs";
4
4
  import {
5
- ATTENTION_PLUGIN
6
- } from "./chunk-DF2PBRKK.mjs";
5
+ meta
6
+ } from "./chunk-NMXGUHSU.mjs";
7
7
 
8
8
  // src/capabilities/react-context.tsx
9
9
  import React from "react";
10
10
  import { Capabilities, contributes, useCapability } from "@dxos/app-framework";
11
11
  import { RootAttentionProvider, SelectionProvider } from "@dxos/react-ui-attention";
12
- var react_context_default = () => contributes(Capabilities.ReactContext, {
13
- id: ATTENTION_PLUGIN,
12
+ var react_context_default = (() => contributes(Capabilities.ReactContext, {
13
+ id: meta.id,
14
14
  context: (props) => {
15
15
  const attention = useCapability(AttentionCapabilities.Attention);
16
16
  const selection = useCapability(AttentionCapabilities.Selection);
@@ -22,8 +22,8 @@ var react_context_default = () => contributes(Capabilities.ReactContext, {
22
22
  selection
23
23
  }, props.children));
24
24
  }
25
- });
25
+ }));
26
26
  export {
27
27
  react_context_default as default
28
28
  };
29
- //# sourceMappingURL=react-context-IUBFXFFZ.mjs.map
29
+ //# sourceMappingURL=react-context-7HCRTOWZ.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 React, { type PropsWithChildren } from 'react';\n\nimport { Capabilities, contributes, useCapability } from '@dxos/app-framework';\nimport { RootAttentionProvider, SelectionProvider } from '@dxos/react-ui-attention';\n\nimport { meta } from '../meta';\n\nimport { AttentionCapabilities } from './capabilities';\n\nexport default () =>\n contributes(Capabilities.ReactContext, {\n id: meta.id,\n context: (props: PropsWithChildren) => {\n const attention = useCapability(AttentionCapabilities.Attention);\n const selection = useCapability(AttentionCapabilities.Selection);\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 <SelectionProvider selection={selection}>{props.children}</SelectionProvider>\n </RootAttentionProvider>\n );\n },\n });\n"],
5
+ "mappings": ";;;;;;;;AAIA,OAAOA,WAAuC;AAE9C,SAASC,cAAcC,aAAaC,qBAAqB;AACzD,SAASC,uBAAuBC,yBAAyB;AAMzD,IAAA,yBAAe,MACbC,YAAYC,aAAaC,cAAc;EACrCC,IAAIC,KAAKD;EACTE,SAAS,CAACC,UAAAA;AACR,UAAMC,YAAYC,cAAcC,sBAAsBC,SAAS;AAC/D,UAAMC,YAAYH,cAAcC,sBAAsBG,SAAS;AAE/D,WACE,sBAAA,cAACC,uBAAAA;MACCN;MACAO,UAAU,CAACC,iBAAAA;MAKX;OAEA,sBAAA,cAACC,mBAAAA;MAAkBL;OAAuBL,MAAMW,QAAQ,CAAA;EAG9D;AACF,CAAA;",
6
+ "names": ["React", "Capabilities", "contributes", "useCapability", "RootAttentionProvider", "SelectionProvider", "contributes", "Capabilities", "ReactContext", "id", "meta", "context", "props", "attention", "useCapability", "AttentionCapabilities", "Attention", "selection", "Selection", "RootAttentionProvider", "onChange", "nextAttended", "SelectionProvider", "children"]
7
+ }
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  AttentionAction
3
- } from "../chunk-WOQAO42V.mjs";
4
- import "../chunk-DF2PBRKK.mjs";
3
+ } from "../chunk-SBLZSJTD.mjs";
4
+ import "../chunk-NMXGUHSU.mjs";
5
5
  export {
6
6
  AttentionAction
7
7
  };
@@ -1,17 +1,17 @@
1
1
  import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
2
  import {
3
- ATTENTION_PLUGIN
4
- } from "./chunk-YUJM7ABN.mjs";
3
+ meta
4
+ } from "./chunk-GC4PRMVZ.mjs";
5
5
 
6
6
  // src/capabilities/capabilities.ts
7
7
  import { defineCapability } from "@dxos/app-framework";
8
8
  (function(AttentionCapabilities2) {
9
- AttentionCapabilities2.Attention = defineCapability(`${ATTENTION_PLUGIN}/capability/attention`);
10
- AttentionCapabilities2.Selection = defineCapability(`${ATTENTION_PLUGIN}/capability/selection`);
9
+ AttentionCapabilities2.Attention = defineCapability(`${meta.id}/capability/attention`);
10
+ AttentionCapabilities2.Selection = defineCapability(`${meta.id}/capability/selection`);
11
11
  })(AttentionCapabilities || (AttentionCapabilities = {}));
12
12
  var AttentionCapabilities;
13
13
 
14
14
  export {
15
15
  AttentionCapabilities
16
16
  };
17
- //# sourceMappingURL=chunk-K3STXVKU.mjs.map
17
+ //# sourceMappingURL=chunk-FKQHPGTA.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/capabilities/capabilities.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { defineCapability } from '@dxos/app-framework';\nimport { type AttentionManager, type SelectionManager } from '@dxos/react-ui-attention';\n\nimport { meta } from '../meta';\n\nexport namespace AttentionCapabilities {\n export const Attention = defineCapability<AttentionManager>(`${meta.id}/capability/attention`);\n export const Selection = defineCapability<SelectionManager>(`${meta.id}/capability/selection`);\n}\n"],
5
+ "mappings": ";;;;;;AAIA,SAASA,wBAAwB;UAKhBC,wBAAAA;yBACFC,YAAYC,iBAAmC,GAAGC,KAAKC,EAAE,uBAAuB;yBAChFC,YAAYH,iBAAmC,GAAGC,KAAKC,EAAE,uBAAuB;AAC/F,GAHiBJ,0BAAAA,wBAAAA,CAAAA,EAAAA;;",
6
+ "names": ["defineCapability", "AttentionCapabilities", "Attention", "defineCapability", "meta", "id", "Selection"]
7
+ }
@@ -1,14 +1,12 @@
1
1
  import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
2
 
3
3
  // src/meta.ts
4
- var ATTENTION_PLUGIN = "dxos.org/plugin/attention";
5
4
  var meta = {
6
- id: ATTENTION_PLUGIN,
5
+ id: "dxos.org/plugin/attention",
7
6
  name: "Attention"
8
7
  };
9
8
 
10
9
  export {
11
- ATTENTION_PLUGIN,
12
10
  meta
13
11
  };
14
- //# sourceMappingURL=chunk-YUJM7ABN.mjs.map
12
+ //# sourceMappingURL=chunk-GC4PRMVZ.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/meta.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport { type PluginMeta } from '@dxos/app-framework';\n\nexport const meta: PluginMeta = {\n id: 'dxos.org/plugin/attention',\n name: 'Attention',\n};\n"],
5
+ "mappings": ";;;AAMO,IAAMA,OAAmB;EAC9BC,IAAI;EACJC,MAAM;AACR;",
6
+ "names": ["meta", "id", "name"]
7
+ }
@@ -1,13 +1,13 @@
1
1
  import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
2
  import {
3
- ATTENTION_PLUGIN
4
- } from "./chunk-YUJM7ABN.mjs";
3
+ meta
4
+ } from "./chunk-GC4PRMVZ.mjs";
5
5
 
6
6
  // src/types/types.ts
7
- import { Schema } from "effect";
7
+ import * as Schema from "effect/Schema";
8
8
  import { SelectionSchema } from "@dxos/react-ui-attention";
9
9
  (function(AttentionAction2) {
10
- const ATTENTION_ACTION = `${ATTENTION_PLUGIN}/action`;
10
+ const ATTENTION_ACTION = `${meta.id}/action`;
11
11
  class Select extends Schema.TaggedClass()(`${ATTENTION_ACTION}/select`, {
12
12
  input: Schema.Struct({
13
13
  contextId: Schema.String,
@@ -23,4 +23,4 @@ var AttentionAction;
23
23
  export {
24
24
  AttentionAction
25
25
  };
26
- //# sourceMappingURL=chunk-MS46IMND.mjs.map
26
+ //# sourceMappingURL=chunk-YNOCLBTT.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/types/types.ts"],
4
+ "sourcesContent": ["//\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.id}/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,YAAYA,YAAY;AAExB,SAASC,uBAAuB;UAIfC,kBAAAA;AACf,QAAMC,mBAAmB,GAAGC,KAAKC,EAAE;EAE5B,MAAMC,eAAsBC,mBAAW,EAAW,GAAGJ,gBAAAA,WAA2B;IACrFK,OAAcC,cAAO;MACnBC,WAAkBC;MAClBC,WAAWC;IACb,CAAA;IACAC,QAAeC;EACjB,CAAA,EAAA;EAAI;mBANST,SAAAA;AAOf,GAViBJ,oBAAAA,kBAAAA,CAAAA,EAAAA;;",
6
+ "names": ["Schema", "SelectionSchema", "AttentionAction", "ATTENTION_ACTION", "meta", "id", "Select", "TaggedClass", "input", "Struct", "contextId", "String", "selection", "SelectionSchema", "output", "Void"]
7
+ }
@@ -1,11 +1,10 @@
1
1
  import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
2
  import {
3
3
  AttentionCapabilities
4
- } from "./chunk-K3STXVKU.mjs";
4
+ } from "./chunk-FKQHPGTA.mjs";
5
5
  import {
6
- ATTENTION_PLUGIN,
7
6
  meta
8
- } from "./chunk-YUJM7ABN.mjs";
7
+ } from "./chunk-GC4PRMVZ.mjs";
9
8
 
10
9
  // src/index.ts
11
10
  export * from "@dxos/react-ui-attention";
@@ -16,19 +15,19 @@ import { AttentionManager, SelectionManager } from "@dxos/react-ui-attention";
16
15
 
17
16
  // src/capabilities/index.ts
18
17
  import { lazy } from "@dxos/app-framework";
19
- var IntentResolver = lazy(() => import("./intent-resolver-ELLJ67CV.mjs"));
20
- var Keyboard = lazy(() => import("./keyboard-S7SW6XBY.mjs"));
21
- var ReactContext = lazy(() => import("./react-context-2RSEVMNC.mjs"));
18
+ var IntentResolver = lazy(() => import("./intent-resolver-2IB4I23V.mjs"));
19
+ var Keyboard = lazy(() => import("./keyboard-Y32WSEOC.mjs"));
20
+ var ReactContext = lazy(() => import("./react-context-7RDGSUXD.mjs"));
22
21
 
23
22
  // src/events.ts
24
23
  import { defineEvent } from "@dxos/app-framework";
25
24
  (function(AttentionEvents2) {
26
- AttentionEvents2.AttentionReady = defineEvent(`${ATTENTION_PLUGIN}/event/attention-ready`);
25
+ AttentionEvents2.AttentionReady = defineEvent(`${meta.id}/event/attention-ready`);
27
26
  })(AttentionEvents || (AttentionEvents = {}));
28
27
  var AttentionEvents;
29
28
 
30
29
  // src/AttentionPlugin.ts
31
- var AttentionPlugin = () => definePlugin(meta, [
30
+ var AttentionPlugin = definePlugin(meta, () => [
32
31
  defineModule({
33
32
  id: `${meta.id}/module/attention`,
34
33
  activatesOn: Events.Startup,
@@ -82,7 +81,6 @@ var setupDevtools = (attention) => {
82
81
  };
83
82
  };
84
83
  export {
85
- ATTENTION_PLUGIN,
86
84
  AttentionCapabilities,
87
85
  AttentionEvents,
88
86
  AttentionPlugin,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/index.ts", "../../../src/AttentionPlugin.ts", "../../../src/capabilities/index.ts", "../../../src/events.ts"],
4
- "sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nexport * from '@dxos/react-ui-attention';\n\nexport * from './AttentionPlugin';\nexport { AttentionCapabilities } from './capabilities';\nexport * from './events';\nexport * from './meta';\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { Events, allOf, contributes, defineModule, definePlugin } from '@dxos/app-framework';\nimport { AttentionManager, SelectionManager } from '@dxos/react-ui-attention';\n\nimport { AttentionCapabilities, IntentResolver, Keyboard, ReactContext } from './capabilities';\nimport { AttentionEvents } from './events';\nimport { meta } from './meta';\n\nexport const AttentionPlugin = () =>\n definePlugin(meta, [\n defineModule({\n id: `${meta.id}/module/attention`,\n activatesOn: Events.Startup,\n activatesAfter: [AttentionEvents.AttentionReady],\n activate: () => {\n const attention = new AttentionManager();\n const selection = new SelectionManager();\n setupDevtools(attention);\n return [\n contributes(AttentionCapabilities.Attention, attention),\n contributes(AttentionCapabilities.Selection, selection),\n ];\n },\n }),\n defineModule({\n id: `${meta.id}/module/react-context`,\n activatesOn: Events.Startup,\n activate: ReactContext,\n }),\n defineModule({\n id: `${meta.id}/module/keyboard`,\n activatesOn: allOf(Events.AppGraphReady, AttentionEvents.AttentionReady),\n activate: Keyboard,\n }),\n defineModule({\n id: `${meta.id}/module/intent-resolver`,\n activatesOn: Events.SetupIntentResolver,\n activate: IntentResolver,\n }),\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.current;\n },\n get currentSpace() {\n for (const id of attention.current) {\n const [spaceId, objectId] = id.split(':');\n if (spaceId && objectId && spaceId.length === 33) {\n return spaceId;\n }\n }\n },\n };\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { lazy } from '@dxos/app-framework';\n\nexport const IntentResolver = lazy(() => import('./intent-resolver'));\nexport const Keyboard = lazy(() => import('./keyboard'));\nexport const ReactContext = lazy(() => import('./react-context'));\n\nexport * from './capabilities';\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { defineEvent } from '@dxos/app-framework';\n\nimport { ATTENTION_PLUGIN } from './meta';\n\nexport namespace AttentionEvents {\n export const AttentionReady = defineEvent(`${ATTENTION_PLUGIN}/event/attention-ready`);\n}\n"],
5
- "mappings": ";;;;;;;;;;AAIA,cAAc;;;ACAd,SAASA,QAAQC,OAAOC,aAAaC,cAAcC,oBAAoB;AACvE,SAASC,kBAAkBC,wBAAwB;;;ACDnD,SAASC,YAAY;AAEd,IAAMC,iBAAiBC,KAAK,MAAM,OAAO,gCAAA,CAAA;AACzC,IAAMC,WAAWD,KAAK,MAAM,OAAO,yBAAA,CAAA;AACnC,IAAME,eAAeF,KAAK,MAAM,OAAO,8BAAA,CAAA;;;ACJ9C,SAASG,mBAAmB;UAIXC,kBAAAA;mBACFC,iBAAiBC,YAAY,GAAGC,gBAAAA,wBAAwC;AACvF,GAFiBH,oBAAAA,kBAAAA,CAAAA,EAAAA;;;;AFGV,IAAMI,kBAAkB,MAC7BC,aAAaC,MAAM;EACjBC,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOC;IACpBC,gBAAgB;MAACC,gBAAgBC;;IACjCC,UAAU,MAAA;AACR,YAAMC,YAAY,IAAIC,iBAAAA;AACtB,YAAMC,YAAY,IAAIC,iBAAAA;AACtBC,oBAAcJ,SAAAA;AACd,aAAO;QACLK,YAAYC,sBAAsBC,WAAWP,SAAAA;QAC7CK,YAAYC,sBAAsBE,WAAWN,SAAAA;;IAEjD;EACF,CAAA;EACAX,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOC;IACpBI,UAAUU;EACZ,CAAA;EACAlB,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaiB,MAAMhB,OAAOiB,eAAed,gBAAgBC,cAAc;IACvEC,UAAUa;EACZ,CAAA;EACArB,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOmB;IACpBd,UAAUe;EACZ,CAAA;CACD;AAEH,IAAMV,gBAAgB,CAACJ,cAAAA;MACpBe;AAAD,GAACA,cAAAA,YAAmBC,aAAnBD,YAAmBC,WAAa,CAAC;AAEjCD,aAAmBC,SAAShB,YAAY;IACvC,IAAIiB,UAAU;AACZ,aAAOjB;IACT;IACA,IAAIkB,WAAW;AACb,aAAOlB,UAAUmB;IACnB;IACA,IAAIC,eAAe;AACjB,iBAAW5B,MAAMQ,UAAUmB,SAAS;AAClC,cAAM,CAACE,SAASC,QAAAA,IAAY9B,GAAG+B,MAAM,GAAA;AACrC,YAAIF,WAAWC,YAAYD,QAAQG,WAAW,IAAI;AAChD,iBAAOH;QACT;MACF;IACF;EACF;AACF;",
6
- "names": ["Events", "allOf", "contributes", "defineModule", "definePlugin", "AttentionManager", "SelectionManager", "lazy", "IntentResolver", "lazy", "Keyboard", "ReactContext", "defineEvent", "AttentionEvents", "AttentionReady", "defineEvent", "ATTENTION_PLUGIN", "AttentionPlugin", "definePlugin", "meta", "defineModule", "id", "activatesOn", "Events", "Startup", "activatesAfter", "AttentionEvents", "AttentionReady", "activate", "attention", "AttentionManager", "selection", "SelectionManager", "setupDevtools", "contributes", "AttentionCapabilities", "Attention", "Selection", "ReactContext", "allOf", "AppGraphReady", "Keyboard", "SetupIntentResolver", "IntentResolver", "globalThis", "composer", "manager", "attended", "current", "currentSpace", "spaceId", "objectId", "split", "length"]
4
+ "sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nexport * from '@dxos/react-ui-attention';\n\nexport * from './AttentionPlugin';\nexport { AttentionCapabilities } from './capabilities';\nexport * from './events';\nexport * from './meta';\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { Events, allOf, contributes, defineModule, definePlugin } from '@dxos/app-framework';\nimport { AttentionManager, SelectionManager } from '@dxos/react-ui-attention';\n\nimport { AttentionCapabilities, IntentResolver, Keyboard, ReactContext } from './capabilities';\nimport { AttentionEvents } from './events';\nimport { meta } from './meta';\n\nexport const AttentionPlugin = definePlugin(meta, () => [\n defineModule({\n id: `${meta.id}/module/attention`,\n activatesOn: Events.Startup,\n activatesAfter: [AttentionEvents.AttentionReady],\n activate: () => {\n const attention = new AttentionManager();\n const selection = new SelectionManager();\n setupDevtools(attention);\n return [\n contributes(AttentionCapabilities.Attention, attention),\n contributes(AttentionCapabilities.Selection, selection),\n ];\n },\n }),\n defineModule({\n id: `${meta.id}/module/react-context`,\n activatesOn: Events.Startup,\n activate: ReactContext,\n }),\n defineModule({\n id: `${meta.id}/module/keyboard`,\n activatesOn: allOf(Events.AppGraphReady, AttentionEvents.AttentionReady),\n activate: Keyboard,\n }),\n defineModule({\n id: `${meta.id}/module/intent-resolver`,\n activatesOn: Events.SetupIntentResolver,\n activate: IntentResolver,\n }),\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.current;\n },\n get currentSpace() {\n for (const id of attention.current) {\n const [spaceId, objectId] = id.split(':');\n if (spaceId && objectId && spaceId.length === 33) {\n return spaceId;\n }\n }\n },\n };\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { lazy } from '@dxos/app-framework';\n\nexport const IntentResolver = lazy(() => import('./intent-resolver'));\nexport const Keyboard = lazy(() => import('./keyboard'));\nexport const ReactContext = lazy(() => import('./react-context'));\n\nexport * from './capabilities';\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { defineEvent } from '@dxos/app-framework';\n\nimport { meta } from './meta';\n\nexport namespace AttentionEvents {\n export const AttentionReady = defineEvent(`${meta.id}/event/attention-ready`);\n}\n"],
5
+ "mappings": ";;;;;;;;;AAIA,cAAc;;;ACAd,SAASA,QAAQC,OAAOC,aAAaC,cAAcC,oBAAoB;AACvE,SAASC,kBAAkBC,wBAAwB;;;ACDnD,SAASC,YAAY;AAEd,IAAMC,iBAAiBC,KAAK,MAAM,OAAO,gCAAA,CAAA;AACzC,IAAMC,WAAWD,KAAK,MAAM,OAAO,yBAAA,CAAA;AACnC,IAAME,eAAeF,KAAK,MAAM,OAAO,8BAAA,CAAA;;;ACJ9C,SAASG,mBAAmB;UAIXC,kBAAAA;mBACFC,iBAAiBC,YAAY,GAAGC,KAAKC,EAAE,wBAAwB;AAC9E,GAFiBJ,oBAAAA,kBAAAA,CAAAA,EAAAA;;;;AFGV,IAAMK,kBAAkBC,aAAaC,MAAM,MAAM;EACtDC,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOC;IACpBC,gBAAgB;MAACC,gBAAgBC;;IACjCC,UAAU,MAAA;AACR,YAAMC,YAAY,IAAIC,iBAAAA;AACtB,YAAMC,YAAY,IAAIC,iBAAAA;AACtBC,oBAAcJ,SAAAA;AACd,aAAO;QACLK,YAAYC,sBAAsBC,WAAWP,SAAAA;QAC7CK,YAAYC,sBAAsBE,WAAWN,SAAAA;;IAEjD;EACF,CAAA;EACAX,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOC;IACpBI,UAAUU;EACZ,CAAA;EACAlB,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaiB,MAAMhB,OAAOiB,eAAed,gBAAgBC,cAAc;IACvEC,UAAUa;EACZ,CAAA;EACArB,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOmB;IACpBd,UAAUe;EACZ,CAAA;CACD;AAED,IAAMV,gBAAgB,CAACJ,cAAAA;MACpBe;AAAD,GAACA,cAAAA,YAAmBC,aAAnBD,YAAmBC,WAAa,CAAC;AAEjCD,aAAmBC,SAAShB,YAAY;IACvC,IAAIiB,UAAU;AACZ,aAAOjB;IACT;IACA,IAAIkB,WAAW;AACb,aAAOlB,UAAUmB;IACnB;IACA,IAAIC,eAAe;AACjB,iBAAW5B,MAAMQ,UAAUmB,SAAS;AAClC,cAAM,CAACE,SAASC,QAAAA,IAAY9B,GAAG+B,MAAM,GAAA;AACrC,YAAIF,WAAWC,YAAYD,QAAQG,WAAW,IAAI;AAChD,iBAAOH;QACT;MACF;IACF;EACF;AACF;",
6
+ "names": ["Events", "allOf", "contributes", "defineModule", "definePlugin", "AttentionManager", "SelectionManager", "lazy", "IntentResolver", "lazy", "Keyboard", "ReactContext", "defineEvent", "AttentionEvents", "AttentionReady", "defineEvent", "meta", "id", "AttentionPlugin", "definePlugin", "meta", "defineModule", "id", "activatesOn", "Events", "Startup", "activatesAfter", "AttentionEvents", "AttentionReady", "activate", "attention", "AttentionManager", "selection", "SelectionManager", "setupDevtools", "contributes", "AttentionCapabilities", "Attention", "Selection", "ReactContext", "allOf", "AppGraphReady", "Keyboard", "SetupIntentResolver", "IntentResolver", "globalThis", "composer", "manager", "attended", "current", "currentSpace", "spaceId", "objectId", "split", "length"]
7
7
  }
@@ -1,16 +1,16 @@
1
1
  import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
2
  import {
3
3
  AttentionAction
4
- } from "./chunk-MS46IMND.mjs";
4
+ } from "./chunk-YNOCLBTT.mjs";
5
5
  import {
6
6
  AttentionCapabilities
7
- } from "./chunk-K3STXVKU.mjs";
8
- import "./chunk-YUJM7ABN.mjs";
7
+ } from "./chunk-FKQHPGTA.mjs";
8
+ import "./chunk-GC4PRMVZ.mjs";
9
9
 
10
10
  // src/capabilities/intent-resolver.ts
11
- import { Match } from "effect";
11
+ import * as Match from "effect/Match";
12
12
  import { Capabilities, contributes, createResolver } from "@dxos/app-framework";
13
- var intent_resolver_default = (context) => contributes(Capabilities.IntentResolver, [
13
+ var intent_resolver_default = ((context) => contributes(Capabilities.IntentResolver, [
14
14
  createResolver({
15
15
  intent: AttentionAction.Select,
16
16
  resolve: (data) => {
@@ -45,8 +45,8 @@ var intent_resolver_default = (context) => contributes(Capabilities.IntentResolv
45
45
  }), Match.exhaustive)(data.selection);
46
46
  }
47
47
  })
48
- ]);
48
+ ]));
49
49
  export {
50
50
  intent_resolver_default as default
51
51
  };
52
- //# sourceMappingURL=intent-resolver-ELLJ67CV.mjs.map
52
+ //# sourceMappingURL=intent-resolver-2IB4I23V.mjs.map