@dxos/plugin-attention 0.8.4-main.1068cf700f → 0.8.4-main.1c7ec43d41

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 (104) hide show
  1. package/dist/lib/browser/AttentionPlugin-ZPILA2LV.mjs +9 -0
  2. package/dist/lib/browser/AttentionPlugin-ZPILA2LV.mjs.map +7 -0
  3. package/dist/lib/browser/chunk-DPUSNLAH.mjs +60 -0
  4. package/dist/lib/browser/chunk-DPUSNLAH.mjs.map +7 -0
  5. package/dist/lib/browser/chunk-DTGSOFCE.mjs +41 -0
  6. package/dist/lib/browser/chunk-DTGSOFCE.mjs.map +7 -0
  7. package/dist/lib/browser/index.mjs +16 -75
  8. package/dist/lib/browser/index.mjs.map +4 -4
  9. package/dist/lib/browser/meta.json +1 -1
  10. package/dist/lib/browser/operations/index.mjs +7 -0
  11. package/dist/lib/browser/operations/index.mjs.map +7 -0
  12. package/dist/lib/browser/plugin.mjs +7 -0
  13. package/dist/lib/browser/plugin.mjs.map +7 -0
  14. package/dist/lib/browser/select-CI2OLVWT.mjs +46 -0
  15. package/dist/lib/browser/select-CI2OLVWT.mjs.map +7 -0
  16. package/dist/lib/browser/types/index.mjs +3 -5
  17. package/dist/lib/node-esm/AttentionPlugin-66CVORUX.mjs +10 -0
  18. package/dist/lib/node-esm/AttentionPlugin-66CVORUX.mjs.map +7 -0
  19. package/dist/lib/node-esm/chunk-ELMCOBE6.mjs +62 -0
  20. package/dist/lib/node-esm/chunk-ELMCOBE6.mjs.map +7 -0
  21. package/dist/lib/node-esm/chunk-HMHKU4FO.mjs +43 -0
  22. package/dist/lib/node-esm/chunk-HMHKU4FO.mjs.map +7 -0
  23. package/dist/lib/node-esm/index.mjs +16 -74
  24. package/dist/lib/node-esm/index.mjs.map +4 -4
  25. package/dist/lib/node-esm/meta.json +1 -1
  26. package/dist/lib/node-esm/operations/index.mjs +9 -0
  27. package/dist/lib/node-esm/operations/index.mjs.map +7 -0
  28. package/dist/lib/node-esm/plugin.mjs +8 -0
  29. package/dist/lib/node-esm/plugin.mjs.map +7 -0
  30. package/dist/lib/node-esm/select-QNJSO4Q5.mjs +47 -0
  31. package/dist/lib/node-esm/select-QNJSO4Q5.mjs.map +7 -0
  32. package/dist/lib/node-esm/types/index.mjs +3 -5
  33. package/dist/types/src/AttentionPlugin.d.ts +1 -0
  34. package/dist/types/src/AttentionPlugin.d.ts.map +1 -1
  35. package/dist/types/src/AttentionPlugin.test.d.ts +2 -0
  36. package/dist/types/src/AttentionPlugin.test.d.ts.map +1 -0
  37. package/dist/types/src/capabilities/index.d.ts +9 -3
  38. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  39. package/dist/types/src/capabilities/keyboard.d.ts +5 -0
  40. package/dist/types/src/capabilities/keyboard.d.ts.map +1 -0
  41. package/dist/types/src/capabilities/operation-handler.d.ts +6 -0
  42. package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
  43. package/dist/types/src/capabilities/{react-context/react-context.d.ts → react-context.d.ts} +1 -1
  44. package/dist/types/src/capabilities/react-context.d.ts.map +1 -0
  45. package/dist/types/src/index.d.ts +2 -3
  46. package/dist/types/src/index.d.ts.map +1 -1
  47. package/dist/types/src/meta.d.ts.map +1 -1
  48. package/dist/types/src/operations/index.d.ts +3 -0
  49. package/dist/types/src/operations/index.d.ts.map +1 -0
  50. package/dist/types/src/operations/select.d.ts +5 -0
  51. package/dist/types/src/operations/select.d.ts.map +1 -0
  52. package/dist/types/src/plugin.d.ts +2 -0
  53. package/dist/types/src/plugin.d.ts.map +1 -0
  54. package/dist/types/src/types/capabilities.d.ts.map +1 -1
  55. package/dist/types/src/types/events.d.ts.map +1 -1
  56. package/dist/types/src/types/types.d.ts +2 -38
  57. package/dist/types/src/types/types.d.ts.map +1 -1
  58. package/dist/types/tsconfig.tsbuildinfo +1 -1
  59. package/package.json +32 -19
  60. package/src/AttentionPlugin.test.ts +32 -0
  61. package/src/AttentionPlugin.ts +11 -9
  62. package/src/capabilities/index.ts +9 -3
  63. package/src/capabilities/{keyboard/keyboard.ts → keyboard.ts} +3 -8
  64. package/src/capabilities/operation-handler.ts +16 -0
  65. package/src/capabilities/{react-context/react-context.tsx → react-context.tsx} +2 -2
  66. package/src/index.ts +5 -3
  67. package/src/meta.ts +2 -1
  68. package/src/operations/index.ts +7 -0
  69. package/src/operations/select.ts +43 -0
  70. package/src/plugin.ts +7 -0
  71. package/src/types/capabilities.ts +3 -3
  72. package/src/types/events.ts +2 -2
  73. package/src/types/types.ts +3 -23
  74. package/dist/lib/browser/chunk-ME5PHTSM.mjs +0 -79
  75. package/dist/lib/browser/chunk-ME5PHTSM.mjs.map +0 -7
  76. package/dist/lib/browser/keyboard-DI2TQRGK.mjs +0 -29
  77. package/dist/lib/browser/keyboard-DI2TQRGK.mjs.map +0 -7
  78. package/dist/lib/browser/operation-resolver-7VEZFZOX.mjs +0 -52
  79. package/dist/lib/browser/operation-resolver-7VEZFZOX.mjs.map +0 -7
  80. package/dist/lib/browser/react-context-WX2SNCOW.mjs +0 -29
  81. package/dist/lib/browser/react-context-WX2SNCOW.mjs.map +0 -7
  82. package/dist/lib/node-esm/chunk-MIO5EA55.mjs +0 -81
  83. package/dist/lib/node-esm/chunk-MIO5EA55.mjs.map +0 -7
  84. package/dist/lib/node-esm/keyboard-T6BIKQYG.mjs +0 -30
  85. package/dist/lib/node-esm/keyboard-T6BIKQYG.mjs.map +0 -7
  86. package/dist/lib/node-esm/operation-resolver-4YES2MF3.mjs +0 -53
  87. package/dist/lib/node-esm/operation-resolver-4YES2MF3.mjs.map +0 -7
  88. package/dist/lib/node-esm/react-context-LNH7DILM.mjs +0 -30
  89. package/dist/lib/node-esm/react-context-LNH7DILM.mjs.map +0 -7
  90. package/dist/types/src/capabilities/keyboard/index.d.ts +0 -3
  91. package/dist/types/src/capabilities/keyboard/index.d.ts.map +0 -1
  92. package/dist/types/src/capabilities/keyboard/keyboard.d.ts +0 -5
  93. package/dist/types/src/capabilities/keyboard/keyboard.d.ts.map +0 -1
  94. package/dist/types/src/capabilities/operation-resolver/index.d.ts +0 -3
  95. package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +0 -1
  96. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +0 -5
  97. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +0 -1
  98. package/dist/types/src/capabilities/react-context/index.d.ts +0 -7
  99. package/dist/types/src/capabilities/react-context/index.d.ts.map +0 -1
  100. package/dist/types/src/capabilities/react-context/react-context.d.ts.map +0 -1
  101. package/src/capabilities/keyboard/index.ts +0 -7
  102. package/src/capabilities/operation-resolver/index.ts +0 -7
  103. package/src/capabilities/operation-resolver/operation-resolver.ts +0 -45
  104. package/src/capabilities/react-context/index.ts +0 -7
@@ -1,83 +1,25 @@
1
1
  import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
- import {
3
- AttentionAction,
4
- AttentionCapabilities,
5
- AttentionEvents,
6
- AttentionOperation,
7
- meta
8
- } from "./chunk-MIO5EA55.mjs";
9
2
 
10
3
  // src/index.ts
11
- export * from "@dxos/react-ui-attention";
12
-
13
- // src/AttentionPlugin.ts
14
- import * as Effect from "effect/Effect";
15
- import { ActivationEvent, ActivationEvents, Capabilities, Capability as Capability4, Plugin } from "@dxos/app-framework";
16
- import { AppActivationEvents, AppPlugin } from "@dxos/app-toolkit";
17
- import { AttentionManager, SelectionManager } from "@dxos/react-ui-attention";
18
-
19
- // src/capabilities/keyboard/index.ts
20
- import { Capability } from "@dxos/app-framework";
21
- var Keyboard = Capability.lazy("Keyboard", () => import("./keyboard-T6BIKQYG.mjs"));
22
-
23
- // src/capabilities/operation-resolver/index.ts
24
- import { Capability as Capability2 } from "@dxos/app-framework";
25
- var OperationResolver = Capability2.lazy("OperationResolver", () => import("./operation-resolver-4YES2MF3.mjs"));
4
+ import { Plugin } from "@dxos/app-framework";
26
5
 
27
- // src/capabilities/react-context/index.ts
28
- import { Capability as Capability3 } from "@dxos/app-framework";
29
- var ReactContext = Capability3.lazy("ReactContext", () => import("./react-context-LNH7DILM.mjs"));
30
-
31
- // src/AttentionPlugin.ts
32
- var AttentionPlugin = Plugin.define(meta).pipe(AppPlugin.addOperationResolverModule({
33
- activate: OperationResolver
34
- }), Plugin.addModule({
35
- id: "attention",
36
- activatesOn: ActivationEvents.Startup,
37
- activatesAfter: [
38
- AttentionEvents.AttentionReady
39
- ],
40
- activate: () => Effect.gen(function* () {
41
- const registry = yield* Capability4.get(Capabilities.AtomRegistry);
42
- const attention = new AttentionManager(registry);
43
- const selection = new SelectionManager(registry);
44
- setupDevtools(attention);
45
- return [
46
- Capability4.contributes(AttentionCapabilities.Attention, attention),
47
- Capability4.contributes(AttentionCapabilities.Selection, selection)
48
- ];
49
- })
50
- }), Plugin.addModule({
51
- activatesOn: ActivationEvents.Startup,
52
- activate: ReactContext
53
- }), Plugin.addModule({
54
- activatesOn: ActivationEvent.allOf(AppActivationEvents.AppGraphReady, AttentionEvents.AttentionReady),
55
- activate: Keyboard
56
- }), Plugin.make);
57
- var setupDevtools = (attention) => {
58
- globalThis.composer ??= {};
59
- globalThis.composer.attention = {
60
- get manager() {
61
- return attention;
62
- },
63
- get attended() {
64
- return attention.getCurrent();
65
- },
66
- get currentSpace() {
67
- for (const id of attention.getCurrent()) {
68
- const [spaceId, objectId] = id.split(":");
69
- if (spaceId && objectId && spaceId.length === 33) {
70
- return spaceId;
71
- }
72
- }
73
- }
74
- };
6
+ // src/meta.ts
7
+ import { trim } from "@dxos/util";
8
+ var meta = {
9
+ id: "org.dxos.plugin.attention",
10
+ name: "Attention",
11
+ description: trim`
12
+ Track and manage focused attention on objects across your workspace.
13
+ Highlight items requiring action and coordinate team focus on priority work.
14
+ `,
15
+ tags: [
16
+ "system"
17
+ ]
75
18
  };
19
+
20
+ // src/index.ts
21
+ var AttentionPlugin = Plugin.lazy(meta, () => import("./AttentionPlugin-66CVORUX.mjs"));
76
22
  export {
77
- AttentionAction,
78
- AttentionCapabilities,
79
- AttentionEvents,
80
- AttentionOperation,
81
23
  AttentionPlugin,
82
24
  meta
83
25
  };
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../src/index.ts", "../../../src/AttentionPlugin.ts", "../../../src/capabilities/keyboard/index.ts", "../../../src/capabilities/operation-resolver/index.ts", "../../../src/capabilities/react-context/index.ts"],
4
- "sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nexport * from '@dxos/react-ui-attention';\n\nexport * from './AttentionPlugin';\nexport * from './meta';\nexport * from './types';\n", "//\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, SelectionManager } from '@dxos/react-ui-attention';\n\nimport { Keyboard, OperationResolver, 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.addOperationResolverModule({ activate: OperationResolver }),\n Plugin.addModule({\n id: 'attention',\n activatesOn: ActivationEvents.Startup,\n activatesAfter: [AttentionEvents.AttentionReady],\n activate: () =>\n Effect.gen(function* () {\n const registry = yield* Capability.get(Capabilities.AtomRegistry);\n const attention = new AttentionManager(registry);\n const selection = new SelectionManager(registry);\n setupDevtools(attention);\n return [\n Capability.contributes(AttentionCapabilities.Attention, attention),\n Capability.contributes(AttentionCapabilities.Selection, selection),\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 [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 { Capability } from '@dxos/app-framework';\n\nexport const Keyboard = Capability.lazy('Keyboard', () => import('./keyboard'));\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capability } from '@dxos/app-framework';\n\nexport const OperationResolver = Capability.lazy('OperationResolver', () => import('./operation-resolver'));\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capability } from '@dxos/app-framework';\n\nexport const ReactContext = Capability.lazy('ReactContext', () => import('./react-context'));\n"],
5
- "mappings": ";;;;;;;;;;AAIA,cAAc;;;ACAd,YAAYA,YAAY;AAExB,SAASC,iBAAiBC,kBAAkBC,cAAcC,cAAAA,aAAYC,cAAc;AACpF,SAASC,qBAAqBC,iBAAiB;AAC/C,SAASC,kBAAkBC,wBAAwB;;;ACJnD,SAASC,kBAAkB;AAEpB,IAAMC,WAAWC,WAAWC,KAAK,YAAY,MAAM,OAAO,yBAAA,CAAA;;;ACFjE,SAASC,cAAAA,mBAAkB;AAEpB,IAAMC,oBAAoBC,YAAWC,KAAK,qBAAqB,MAAM,OAAO,mCAAA,CAAA;;;ACFnF,SAASC,cAAAA,mBAAkB;AAEpB,IAAMC,eAAeC,YAAWC,KAAK,gBAAgB,MAAM,OAAO,8BAAA,CAAA;;;AHSlE,IAAMC,kBAAkBC,OAAOC,OAAOC,IAAAA,EAAMC,KACjDC,UAAUC,2BAA2B;EAAEC,UAAUC;AAAkB,CAAA,GACnEP,OAAOQ,UAAU;EACfC,IAAI;EACJC,aAAaC,iBAAiBC;EAC9BC,gBAAgB;IAACC,gBAAgBC;;EACjCT,UAAU,MACDU,WAAI,aAAA;AACT,UAAMC,WAAW,OAAOC,YAAWC,IAAIC,aAAaC,YAAY;AAChE,UAAMC,YAAY,IAAIC,iBAAiBN,QAAAA;AACvC,UAAMO,YAAY,IAAIC,iBAAiBR,QAAAA;AACvCS,kBAAcJ,SAAAA;AACd,WAAO;MACLJ,YAAWS,YAAYC,sBAAsBC,WAAWP,SAAAA;MACxDJ,YAAWS,YAAYC,sBAAsBE,WAAWN,SAAAA;;EAE5D,CAAA;AACJ,CAAA,GACAxB,OAAOQ,UAAU;EACfE,aAAaC,iBAAiBC;EAC9BN,UAAUyB;AACZ,CAAA,GACA/B,OAAOQ,UAAU;EACfE,aAAasB,gBAAgBC,MAAMC,oBAAoBC,eAAerB,gBAAgBC,cAAc;EACpGT,UAAU8B;AACZ,CAAA,GACApC,OAAOqC,IAAI;AAGb,IAAMX,gBAAgB,CAACJ,cAAAA;AACpBgB,aAAmBC,aAAa,CAAC;AAEjCD,aAAmBC,SAASjB,YAAY;IACvC,IAAIkB,UAAU;AACZ,aAAOlB;IACT;IACA,IAAImB,WAAW;AACb,aAAOnB,UAAUoB,WAAU;IAC7B;IACA,IAAIC,eAAe;AACjB,iBAAWlC,MAAMa,UAAUoB,WAAU,GAAI;AACvC,cAAM,CAACE,SAASC,QAAAA,IAAYpC,GAAGqC,MAAM,GAAA;AACrC,YAAIF,WAAWC,YAAYD,QAAQG,WAAW,IAAI;AAChD,iBAAOH;QACT;MACF;IACF;EACF;AACF;",
6
- "names": ["Effect", "ActivationEvent", "ActivationEvents", "Capabilities", "Capability", "Plugin", "AppActivationEvents", "AppPlugin", "AttentionManager", "SelectionManager", "Capability", "Keyboard", "Capability", "lazy", "Capability", "OperationResolver", "Capability", "lazy", "Capability", "ReactContext", "Capability", "lazy", "AttentionPlugin", "Plugin", "define", "meta", "pipe", "AppPlugin", "addOperationResolverModule", "activate", "OperationResolver", "addModule", "id", "activatesOn", "ActivationEvents", "Startup", "activatesAfter", "AttentionEvents", "AttentionReady", "gen", "registry", "Capability", "get", "Capabilities", "AtomRegistry", "attention", "AttentionManager", "selection", "SelectionManager", "setupDevtools", "contributes", "AttentionCapabilities", "Attention", "Selection", "ReactContext", "ActivationEvent", "allOf", "AppActivationEvents", "AppGraphReady", "Keyboard", "make", "globalThis", "composer", "manager", "attended", "getCurrent", "currentSpace", "spaceId", "objectId", "split", "length"]
3
+ "sources": ["../../../src/index.ts", "../../../src/meta.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport { Plugin } from '@dxos/app-framework';\n\nimport { meta } from './meta';\n\nexport const AttentionPlugin = Plugin.lazy(meta, () => import('./AttentionPlugin'));\n\nexport * from './meta';\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport { type Plugin } from '@dxos/app-framework';\nimport { trim } from '@dxos/util';\n\nexport const meta: Plugin.Meta = {\n id: 'org.dxos.plugin.attention',\n name: 'Attention',\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"],
5
+ "mappings": ";;;AAIA,SAASA,cAAc;;;ACCvB,SAASC,YAAY;AAEd,IAAMC,OAAoB;EAC/BC,IAAI;EACJC,MAAM;EACNC,aAAaJ;;;;EAIbK,MAAM;IAAC;;AACT;;;ADPO,IAAMC,kBAAkBC,OAAOC,KAAKC,MAAM,MAAM,OAAO,gCAAA,CAAA;",
6
+ "names": ["Plugin", "trim", "meta", "id", "name", "description", "tags", "AttentionPlugin", "Plugin", "lazy", "meta"]
7
7
  }
@@ -1 +1 @@
1
- {"inputs":{"src/meta.ts":{"bytes":1376,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/types/capabilities.ts":{"bytes":1731,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"src/types/events.ts":{"bytes":1257,"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":4719,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/operation","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":645,"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/capabilities/keyboard/keyboard.ts":{"bytes":4078,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Option","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/keyboard","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../../types"}],"format":"esm"},"src/capabilities/keyboard/index.ts":{"bytes":867,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/keyboard/keyboard.ts","kind":"dynamic-import","original":"./keyboard"}],"format":"esm"},"src/capabilities/operation-resolver/operation-resolver.ts":{"bytes":6555,"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/operation","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../../types"}],"format":"esm"},"src/capabilities/operation-resolver/index.ts":{"bytes":965,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/operation-resolver/operation-resolver.ts","kind":"dynamic-import","original":"./operation-resolver"}],"format":"esm"},"src/capabilities/react-context/react-context.tsx":{"bytes":4680,"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":"src/meta.ts","kind":"import-statement","original":"../../meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"../../types"}],"format":"esm"},"src/capabilities/react-context/index.ts":{"bytes":913,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/react-context/react-context.tsx","kind":"dynamic-import","original":"./react-context"}],"format":"esm"},"src/capabilities/index.ts":{"bytes":692,"imports":[{"path":"src/capabilities/keyboard/index.ts","kind":"import-statement","original":"./keyboard"},{"path":"src/capabilities/operation-resolver/index.ts","kind":"import-statement","original":"./operation-resolver"},{"path":"src/capabilities/react-context/index.ts","kind":"import-statement","original":"./react-context"}],"format":"esm"},"src/AttentionPlugin.ts":{"bytes":7960,"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":"src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"./types"},{"path":"src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/index.ts":{"bytes":766,"imports":[{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"src/AttentionPlugin.ts","kind":"import-statement","original":"./AttentionPlugin"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"}},"outputs":{"dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5547},"dist/lib/node-esm/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-MIO5EA55.mjs","kind":"import-statement"},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"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":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/node-esm/keyboard-T6BIKQYG.mjs","kind":"dynamic-import"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/node-esm/operation-resolver-4YES2MF3.mjs","kind":"dynamic-import"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/node-esm/react-context-LNH7DILM.mjs","kind":"dynamic-import"}],"exports":["AttentionAction","AttentionCapabilities","AttentionEvents","AttentionOperation","AttentionPlugin","meta"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":42},"src/AttentionPlugin.ts":{"bytesInOutput":1715},"src/capabilities/keyboard/index.ts":{"bytesInOutput":135},"src/capabilities/index.ts":{"bytesInOutput":0},"src/capabilities/operation-resolver/index.ts":{"bytesInOutput":179},"src/capabilities/react-context/index.ts":{"bytesInOutput":164}},"bytes":2820},"dist/lib/node-esm/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/node-esm/types/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-MIO5EA55.mjs","kind":"import-statement"}],"exports":["AttentionAction","AttentionCapabilities","AttentionEvents","AttentionOperation"],"entryPoint":"src/types/index.ts","inputs":{},"bytes":348},"dist/lib/node-esm/keyboard-T6BIKQYG.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2191},"dist/lib/node-esm/keyboard-T6BIKQYG.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-MIO5EA55.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Option","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/keyboard","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/keyboard/keyboard.ts","inputs":{"src/capabilities/keyboard/keyboard.ts":{"bytesInOutput":885}},"bytes":1172},"dist/lib/node-esm/operation-resolver-4YES2MF3.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3309},"dist/lib/node-esm/operation-resolver-4YES2MF3.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-MIO5EA55.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/operation","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/operation-resolver/operation-resolver.ts","inputs":{"src/capabilities/operation-resolver/operation-resolver.ts":{"bytesInOutput":1484}},"bytes":1833},"dist/lib/node-esm/react-context-LNH7DILM.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2384},"dist/lib/node-esm/react-context-LNH7DILM.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-MIO5EA55.mjs","kind":"import-statement"},{"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}],"exports":["default"],"entryPoint":"src/capabilities/react-context/react-context.tsx","inputs":{"src/capabilities/react-context/react-context.tsx":{"bytesInOutput":823}},"bytes":1139},"dist/lib/node-esm/chunk-MIO5EA55.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4162},"dist/lib/node-esm/chunk-MIO5EA55.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true}],"exports":["AttentionAction","AttentionCapabilities","AttentionEvents","AttentionOperation","meta"],"inputs":{"src/types/capabilities.ts":{"bytesInOutput":350},"src/meta.ts":{"bytesInOutput":286},"src/types/index.ts":{"bytesInOutput":0},"src/types/events.ts":{"bytesInOutput":247},"src/types/types.ts":{"bytesInOutput":1270}},"bytes":2517}}}
1
+ {"inputs":{"src/meta.ts":{"bytes":1397,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"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/index.ts":{"bytes":976,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/AttentionPlugin.ts","kind":"dynamic-import","original":"./AttentionPlugin"}],"format":"esm"},"src/plugin.ts":{"bytes":673,"imports":[{"path":"src/AttentionPlugin.ts","kind":"import-statement","original":"./AttentionPlugin"}],"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/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"}},"outputs":{"dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1091},"dist/lib/node-esm/index.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"dist/lib/node-esm/AttentionPlugin-66CVORUX.mjs","kind":"dynamic-import"}],"exports":["AttentionPlugin","meta"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":135},"src/meta.ts":{"bytesInOutput":314}},"bytes":664},"dist/lib/node-esm/plugin.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/node-esm/plugin.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-ELMCOBE6.mjs","kind":"import-statement"}],"exports":["AttentionPlugin"],"entryPoint":"src/plugin.ts","inputs":{"src/plugin.ts":{"bytesInOutput":0}},"bytes":216},"dist/lib/node-esm/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/node-esm/types/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-HMHKU4FO.mjs","kind":"import-statement"}],"exports":["AttentionAction","AttentionCapabilities","AttentionEvents"],"entryPoint":"src/types/index.ts","inputs":{},"bytes":304},"dist/lib/node-esm/operations/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":459},"dist/lib/node-esm/operations/index.mjs":{"imports":[{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"dist/lib/node-esm/select-QNJSO4Q5.mjs","kind":"dynamic-import"}],"exports":["AttentionOperationHandlerSet"],"entryPoint":"src/operations/index.ts","inputs":{"src/operations/index.ts":{"bytesInOutput":154}},"bytes":352},"dist/lib/node-esm/AttentionPlugin-66CVORUX.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/node-esm/AttentionPlugin-66CVORUX.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-ELMCOBE6.mjs","kind":"import-statement"}],"exports":["AttentionPlugin","default"],"entryPoint":"src/AttentionPlugin.ts","inputs":{},"bytes":299},"dist/lib/node-esm/chunk-ELMCOBE6.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4188},"dist/lib/node-esm/chunk-ELMCOBE6.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":2160},"dist/lib/node-esm/select-QNJSO4Q5.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2953},"dist/lib/node-esm/select-QNJSO4Q5.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-HMHKU4FO.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":1438},"dist/lib/node-esm/chunk-HMHKU4FO.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2396},"dist/lib/node-esm/chunk-HMHKU4FO.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":1489}}}
@@ -0,0 +1,9 @@
1
+ import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
+
3
+ // src/operations/index.ts
4
+ import { OperationHandlerSet } from "@dxos/compute";
5
+ var AttentionOperationHandlerSet = OperationHandlerSet.lazy(() => import("../select-QNJSO4Q5.mjs"));
6
+ export {
7
+ AttentionOperationHandlerSet
8
+ };
9
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/operations/index.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { OperationHandlerSet } from '@dxos/compute';\n\nexport const AttentionOperationHandlerSet = OperationHandlerSet.lazy(() => import('./select'));\n"],
5
+ "mappings": ";;;AAIA,SAASA,2BAA2B;AAE7B,IAAMC,+BAA+BD,oBAAoBE,KAAK,MAAM,OAAO,wBAAA,CAAA;",
6
+ "names": ["OperationHandlerSet", "AttentionOperationHandlerSet", "lazy"]
7
+ }
@@ -0,0 +1,8 @@
1
+ import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
+ import {
3
+ AttentionPlugin
4
+ } from "./chunk-ELMCOBE6.mjs";
5
+ export {
6
+ AttentionPlugin
7
+ };
8
+ //# sourceMappingURL=plugin.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -0,0 +1,47 @@
1
+ import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
+ import {
3
+ AttentionCapabilities
4
+ } from "./chunk-HMHKU4FO.mjs";
5
+
6
+ // src/operations/select.ts
7
+ import * as Effect from "effect/Effect";
8
+ import * as Match from "effect/Match";
9
+ import { Capability } from "@dxos/app-framework";
10
+ import { LayoutOperation } from "@dxos/app-toolkit";
11
+ import { Operation } from "@dxos/compute";
12
+ var handler = LayoutOperation.Select.pipe(Operation.withHandler(Effect.fnUntraced(function* (input) {
13
+ const selection = yield* Capability.get(AttentionCapabilities.Selection);
14
+ Match.value(input.subject).pipe(Match.when({
15
+ mode: "single",
16
+ id: void 0
17
+ }, () => {
18
+ selection.clearSelection(input.contextId);
19
+ }), Match.when({
20
+ mode: "single"
21
+ }, (s) => {
22
+ selection.updateSingle(input.contextId, s.id);
23
+ }), Match.when({
24
+ mode: "multi"
25
+ }, (s) => {
26
+ selection.updateMulti(input.contextId, s.ids);
27
+ }), Match.when({
28
+ mode: "range",
29
+ from: void 0,
30
+ to: void 0
31
+ }, () => {
32
+ selection.clearSelection(input.contextId);
33
+ }), Match.when({
34
+ mode: "range"
35
+ }, (s) => {
36
+ selection.updateRange(input.contextId, s.from, s.to);
37
+ }), Match.when({
38
+ mode: "multi-range"
39
+ }, (s) => {
40
+ selection.updateMultiRange(input.contextId, s.ranges);
41
+ }), Match.exhaustive);
42
+ })));
43
+ var select_default = handler;
44
+ export {
45
+ select_default as default
46
+ };
47
+ //# sourceMappingURL=select-QNJSO4Q5.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';\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 selection = yield* Capability.get(AttentionCapabilities.Selection);\n Match.value(input.subject).pipe(\n Match.when({ mode: 'single', id: undefined }, () => {\n selection.clearSelection(input.contextId);\n }),\n Match.when({ mode: 'single' }, (s) => {\n selection.updateSingle(input.contextId, s.id!);\n }),\n Match.when({ mode: 'multi' }, (s) => {\n selection.updateMulti(input.contextId, s.ids);\n }),\n Match.when({ mode: 'range', from: undefined, to: undefined }, () => {\n selection.clearSelection(input.contextId);\n }),\n Match.when({ mode: 'range' }, (s) => {\n selection.updateRange(input.contextId, s.from!, s.to!);\n }),\n Match.when({ mode: 'multi-range' }, (s) => {\n selection.updateMultiRange(input.contextId, 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;AAI1B,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,eAAeb,MAAMc,SAAS;EAC1C,CAAA,GACML,WAAK;IAAEC,MAAM;EAAS,GAAG,CAACK,MAAAA;AAC9Bd,cAAUe,aAAahB,MAAMc,WAAWC,EAAEJ,EAAE;EAC9C,CAAA,GACMF,WAAK;IAAEC,MAAM;EAAQ,GAAG,CAACK,MAAAA;AAC7Bd,cAAUgB,YAAYjB,MAAMc,WAAWC,EAAEG,GAAG;EAC9C,CAAA,GACMT,WAAK;IAAEC,MAAM;IAASS,MAAMP;IAAWQ,IAAIR;EAAU,GAAG,MAAA;AAC5DX,cAAUY,eAAeb,MAAMc,SAAS;EAC1C,CAAA,GACML,WAAK;IAAEC,MAAM;EAAQ,GAAG,CAACK,MAAAA;AAC7Bd,cAAUoB,YAAYrB,MAAMc,WAAWC,EAAEI,MAAOJ,EAAEK,EAAE;EACtD,CAAA,GACMX,WAAK;IAAEC,MAAM;EAAc,GAAG,CAACK,MAAAA;AACnCd,cAAUqB,iBAAiBtB,MAAMc,WAAWC,EAAEQ,MAAM;EACtD,CAAA,GACMC,gBAAU;AAEpB,CAAA,CAAA,CAAA;AAIJ,IAAA,iBAAe/B;",
6
+ "names": ["Effect", "Match", "Capability", "LayoutOperation", "Operation", "handler", "LayoutOperation", "Select", "pipe", "Operation", "withHandler", "fnUntraced", "input", "selection", "Capability", "get", "AttentionCapabilities", "Selection", "Match", "value", "subject", "when", "mode", "id", "undefined", "clearSelection", "contextId", "s", "updateSingle", "updateMulti", "ids", "from", "to", "updateRange", "updateMultiRange", "ranges", "exhaustive"]
7
+ }
@@ -2,13 +2,11 @@ import { createRequire } from 'node:module';const require = createRequire(import
2
2
  import {
3
3
  AttentionAction,
4
4
  AttentionCapabilities,
5
- AttentionEvents,
6
- AttentionOperation
7
- } from "../chunk-MIO5EA55.mjs";
5
+ AttentionEvents
6
+ } from "../chunk-HMHKU4FO.mjs";
8
7
  export {
9
8
  AttentionAction,
10
9
  AttentionCapabilities,
11
- AttentionEvents,
12
- AttentionOperation
10
+ AttentionEvents
13
11
  };
14
12
  //# sourceMappingURL=index.mjs.map
@@ -1,3 +1,4 @@
1
1
  import { Plugin } from '@dxos/app-framework';
2
2
  export declare const AttentionPlugin: Plugin.PluginFactory<void>;
3
+ export default AttentionPlugin;
3
4
  //# sourceMappingURL=AttentionPlugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AttentionPlugin.d.ts","sourceRoot":"","sources":["../../../src/AttentionPlugin.ts"],"names":[],"mappings":"AAMA,OAAO,EAA+D,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAS1G,eAAO,MAAM,eAAe,4BA2B3B,CAAC"}
1
+ {"version":3,"file":"AttentionPlugin.d.ts","sourceRoot":"","sources":["../../../src/AttentionPlugin.ts"],"names":[],"mappings":"AAMA,OAAO,EAA+D,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAS1G,eAAO,MAAM,eAAe,4BA2B3B,CAAC;eAuBa,eAAe"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=AttentionPlugin.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AttentionPlugin.test.d.ts","sourceRoot":"","sources":["../../../src/AttentionPlugin.test.ts"],"names":[],"mappings":""}
@@ -1,4 +1,10 @@
1
- export * from './keyboard';
2
- export * from './operation-resolver';
3
- export * from './react-context';
1
+ import { Capability } from '@dxos/app-framework';
2
+ import { OperationHandlerSet } from '@dxos/compute';
3
+ export declare const Keyboard: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<null>>, Error>;
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>;
4
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAIA,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,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,8FAA0D,CAAC;AAChF,eAAO,MAAM,gBAAgB,oGAG5B,CAAC;AACF,eAAO,MAAM,YAAY;;;;YAAmE,CAAC"}
@@ -0,0 +1,5 @@
1
+ import * as Effect from 'effect/Effect';
2
+ import { Capability } from '@dxos/app-framework';
3
+ declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<null>>, Error, Capability.Service>;
4
+ export default _default;
5
+ //# sourceMappingURL=keyboard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"keyboard.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/keyboard.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,6 @@
1
+ import * as Effect from 'effect/Effect';
2
+ import { Capability } from '@dxos/app-framework';
3
+ import type { OperationHandlerSet } from '@dxos/compute';
4
+ declare const _default: (props: OperationHandlerSet.OperationHandlerSet) => Effect.Effect<Capability.ModuleReturn, Error, Capability.Service>;
5
+ export default _default;
6
+ //# sourceMappingURL=operation-handler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operation-handler.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/operation-handler.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import * as Effect from 'effect/Effect';
2
2
  import React, { type PropsWithChildren } from 'react';
3
3
  import { Capability } from '@dxos/app-framework';
4
- declare const _default: (props?: void | undefined) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<Readonly<{
4
+ declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<Readonly<{
5
5
  id: string;
6
6
  dependsOn?: string[];
7
7
  context: React.FC<PropsWithChildren>;
@@ -0,0 +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,5 +1,4 @@
1
- export * from '@dxos/react-ui-attention';
2
- export * from './AttentionPlugin';
1
+ import { Plugin } from '@dxos/app-framework';
2
+ export declare const AttentionPlugin: Plugin.PluginFactory<void>;
3
3
  export * from './meta';
4
- export * from './types';
5
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,0BAA0B,CAAC;AAEzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAI7C,eAAO,MAAM,eAAe,4BAAuD,CAAC;AAEpF,cAAc,QAAQ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAGlD,eAAO,MAAM,IAAI,EAAE,MAAM,CAAC,IAOzB,CAAC"}
1
+ {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAGlD,eAAO,MAAM,IAAI,EAAE,MAAM,CAAC,IAQzB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { OperationHandlerSet } from '@dxos/compute';
2
+ export declare const AttentionOperationHandlerSet: OperationHandlerSet.OperationHandlerSet;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/operations/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpD,eAAO,MAAM,4BAA4B,yCAAqD,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { LayoutOperation } from '@dxos/app-toolkit';
2
+ import { Operation } from '@dxos/compute';
3
+ declare const handler: Operation.WithHandler<typeof LayoutOperation.Select>;
4
+ export default handler;
5
+ //# sourceMappingURL=select.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../../src/operations/select.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAI1C,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,eAAe,CAAC,MAAM,CA2BjE,CAAC;eAEa,OAAO"}
@@ -0,0 +1,2 @@
1
+ export * from './AttentionPlugin';
2
+ //# sourceMappingURL=plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../src/plugin.ts"],"names":[],"mappings":"AAMA,cAAc,mBAAmB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../../../../src/types/capabilities.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAIxF,yBAAiB,qBAAqB,CAAC;IAC9B,MAAM,SAAS,2CAAuE,CAAC;IACvF,MAAM,SAAS,2CAAuE,CAAC;CAC/F"}
1
+ {"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../../../../src/types/capabilities.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAIxF,yBAAiB,qBAAqB,CAAC,CAAC;IAC/B,MAAM,SAAS,2CAAuE,CAAC;IACvF,MAAM,SAAS,2CAAuE,CAAC;CAC/F"}
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../src/types/events.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAItD,yBAAiB,eAAe,CAAC;IACxB,MAAM,cAAc,iCAA2D,CAAC;CACxF"}
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../src/types/events.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAItD,yBAAiB,eAAe,CAAC,CAAC;IACzB,MAAM,cAAc,iCAA2D,CAAC;CACxF"}
@@ -1,8 +1,7 @@
1
1
  import * as Schema from 'effect/Schema';
2
- import { Capability } from '@dxos/app-framework';
3
2
  export declare namespace AttentionAction {
4
- const Select_base: Schema.TaggedClass<Select, `${string}/select`, {
5
- readonly _tag: Schema.tag<`${string}/select`>;
3
+ const Select_base: Schema.TaggedClass<Select, `${string}.select`, {
4
+ readonly _tag: Schema.tag<`${string}.select`>;
6
5
  } & {
7
6
  input: Schema.Struct<{
8
7
  contextId: typeof Schema.String;
@@ -30,39 +29,4 @@ export declare namespace AttentionAction {
30
29
  }
31
30
  export {};
32
31
  }
33
- export declare namespace AttentionOperation {
34
- const Select: Omit<{
35
- readonly meta: {
36
- readonly key: `${string}/operation/select`;
37
- readonly name: "Select";
38
- readonly description: "Select items in an attention context.";
39
- };
40
- readonly services: readonly [typeof Capability.Service];
41
- readonly schema: {
42
- readonly input: Schema.Struct<{
43
- contextId: Schema.SchemaClass<string, string, never>;
44
- selection: Schema.mutable<Schema.Union<[Schema.mutable<Schema.Struct<{
45
- mode: Schema.Literal<["single"]>;
46
- id: Schema.optional<typeof Schema.String>;
47
- }>>, Schema.mutable<Schema.Struct<{
48
- mode: Schema.Literal<["multi"]>;
49
- ids: Schema.mutable<Schema.Array$<typeof Schema.String>>;
50
- }>>, Schema.mutable<Schema.Struct<{
51
- mode: Schema.Literal<["range"]>;
52
- from: Schema.optional<typeof Schema.String>;
53
- to: Schema.optional<typeof Schema.String>;
54
- }>>, Schema.mutable<Schema.Struct<{
55
- mode: Schema.Literal<["multi-range"]>;
56
- ranges: Schema.mutable<Schema.Array$<Schema.Struct<{
57
- from: typeof Schema.String;
58
- to: typeof Schema.String;
59
- }>>>;
60
- }>>]>>;
61
- }>;
62
- readonly output: typeof Schema.Void;
63
- };
64
- }, "executionMode"> & import("effect/Pipeable").Pipeable & {
65
- readonly executionMode: "sync" | "async";
66
- };
67
- }
68
32
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/types/types.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAMjD,yBAAiB,eAAe,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;IAG/B,MAAM,OAAO,MAAO,SAAQ,WAM1B;KAAG;;CACN;AAED,yBAAiB,kBAAkB,CAAC;IAC3B,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAcjB,CAAC;CACJ"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/types/types.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAMxC,yBAAiB,eAAe,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;IAGhC,MAAM,OAAO,MAAO,SAAQ,WAM1B;KAAG;;CACN"}