@dxos/plugin-attention 0.8.4-main.422d1c7879 → 0.8.4-main.4f23b4e393

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 (80) hide show
  1. package/dist/lib/neutral/AttentionPlugin.mjs +9 -0
  2. package/dist/lib/neutral/capabilities/index.mjs +11 -0
  3. package/dist/lib/neutral/capabilities/index.mjs.map +7 -0
  4. package/dist/lib/{browser/index.mjs → neutral/chunk-DPUSNLAH.mjs} +3 -12
  5. package/dist/lib/{browser/index.mjs.map → neutral/chunk-DPUSNLAH.mjs.map} +4 -4
  6. package/dist/lib/{browser/chunk-BDLH2DQU.mjs → neutral/chunk-DTGSOFCE.mjs} +1 -1
  7. package/dist/lib/{browser/chunk-BDLH2DQU.mjs.map → neutral/chunk-DTGSOFCE.mjs.map} +2 -2
  8. package/dist/lib/neutral/chunk-PT4QDAR2.mjs +18 -0
  9. package/dist/lib/neutral/chunk-PT4QDAR2.mjs.map +7 -0
  10. package/dist/lib/{browser/operations/index.mjs → neutral/chunk-QSTYRKHK.mjs} +4 -3
  11. package/dist/lib/neutral/chunk-QSTYRKHK.mjs.map +7 -0
  12. package/dist/lib/{node-esm/types → neutral}/index.mjs +6 -3
  13. package/dist/lib/neutral/keyboard-6CPNUR24.mjs +19 -0
  14. package/dist/lib/neutral/keyboard-6CPNUR24.mjs.map +7 -0
  15. package/dist/lib/neutral/meta.json +1 -0
  16. package/dist/lib/neutral/meta.mjs +7 -0
  17. package/dist/lib/neutral/meta.mjs.map +7 -0
  18. package/dist/lib/neutral/operation-handler-O5PDEBTC.mjs +11 -0
  19. package/dist/lib/neutral/operation-handler-O5PDEBTC.mjs.map +7 -0
  20. package/dist/lib/neutral/operations/index.mjs +7 -0
  21. package/dist/lib/neutral/operations/index.mjs.map +7 -0
  22. package/dist/lib/neutral/plugin.mjs +15 -0
  23. package/dist/lib/neutral/plugin.mjs.map +7 -0
  24. package/dist/lib/neutral/react-context-W7BGQDHK.mjs +26 -0
  25. package/dist/lib/neutral/react-context-W7BGQDHK.mjs.map +7 -0
  26. package/dist/lib/{browser/select-SKCOV6LN.mjs → neutral/select-CI2OLVWT.mjs} +3 -3
  27. package/dist/lib/{browser/select-SKCOV6LN.mjs.map → neutral/select-CI2OLVWT.mjs.map} +1 -1
  28. package/dist/lib/neutral/testing.mjs +7 -0
  29. package/dist/lib/neutral/testing.mjs.map +7 -0
  30. package/dist/lib/{browser → neutral}/types/index.mjs +1 -1
  31. package/dist/lib/neutral/types/index.mjs.map +7 -0
  32. package/dist/types/src/AttentionPlugin.d.ts +1 -0
  33. package/dist/types/src/AttentionPlugin.d.ts.map +1 -1
  34. package/dist/types/src/AttentionPlugin.test.d.ts +2 -0
  35. package/dist/types/src/AttentionPlugin.test.d.ts.map +1 -0
  36. package/dist/types/src/capabilities/index.d.ts +1 -1
  37. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  38. package/dist/types/src/capabilities/keyboard.d.ts.map +1 -1
  39. package/dist/types/src/capabilities/operation-handler.d.ts +1 -1
  40. package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -1
  41. package/dist/types/src/capabilities/react-context.d.ts.map +1 -1
  42. package/dist/types/src/index.d.ts +2 -2
  43. package/dist/types/src/index.d.ts.map +1 -1
  44. package/dist/types/src/meta.d.ts.map +1 -1
  45. package/dist/types/src/operations/index.d.ts +1 -1
  46. package/dist/types/src/operations/index.d.ts.map +1 -1
  47. package/dist/types/src/operations/select.d.ts +1 -1
  48. package/dist/types/src/operations/select.d.ts.map +1 -1
  49. package/dist/types/src/plugin.d.ts +4 -0
  50. package/dist/types/src/plugin.d.ts.map +1 -0
  51. package/dist/types/src/testing.d.ts +2 -0
  52. package/dist/types/src/testing.d.ts.map +1 -0
  53. package/dist/types/src/types/capabilities.d.ts.map +1 -1
  54. package/dist/types/src/types/events.d.ts.map +1 -1
  55. package/dist/types/src/types/types.d.ts.map +1 -1
  56. package/dist/types/tsconfig.tsbuildinfo +1 -1
  57. package/package.json +43 -28
  58. package/src/AttentionPlugin.test.ts +32 -0
  59. package/src/AttentionPlugin.ts +2 -0
  60. package/src/capabilities/index.ts +1 -1
  61. package/src/capabilities/operation-handler.ts +1 -1
  62. package/src/index.ts +2 -2
  63. package/src/meta.ts +1 -0
  64. package/src/operations/index.ts +1 -1
  65. package/src/operations/select.ts +1 -1
  66. package/src/plugin.ts +11 -0
  67. package/src/testing.ts +7 -0
  68. package/dist/lib/browser/meta.json +0 -1
  69. package/dist/lib/browser/operations/index.mjs.map +0 -7
  70. package/dist/lib/node-esm/chunk-GWUE2YCZ.mjs +0 -43
  71. package/dist/lib/node-esm/chunk-GWUE2YCZ.mjs.map +0 -7
  72. package/dist/lib/node-esm/index.mjs +0 -71
  73. package/dist/lib/node-esm/index.mjs.map +0 -7
  74. package/dist/lib/node-esm/meta.json +0 -1
  75. package/dist/lib/node-esm/operations/index.mjs +0 -9
  76. package/dist/lib/node-esm/operations/index.mjs.map +0 -7
  77. package/dist/lib/node-esm/select-G2YZ2R7L.mjs +0 -47
  78. package/dist/lib/node-esm/select-G2YZ2R7L.mjs.map +0 -7
  79. /package/dist/lib/{browser/types/index.mjs.map → neutral/AttentionPlugin.mjs.map} +0 -0
  80. /package/dist/lib/{node-esm/types → neutral}/index.mjs.map +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/plugin-attention",
3
- "version": "0.8.4-main.422d1c7879",
3
+ "version": "0.8.4-main.4f23b4e393",
4
4
  "description": "Plugin for attention",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -13,29 +13,47 @@
13
13
  "sideEffects": true,
14
14
  "type": "module",
15
15
  "imports": {
16
- "#capabilities": "./src/capabilities/index.ts",
17
- "#meta": "./src/meta.ts",
18
- "#operations": "./src/operations/index.ts",
19
- "#types": "./src/types/index.ts"
16
+ "#capabilities": {
17
+ "source": "./src/capabilities/index.ts",
18
+ "types": "./dist/types/src/capabilities/index.d.ts",
19
+ "default": "./dist/lib/neutral/capabilities/index.mjs"
20
+ },
21
+ "#meta": {
22
+ "source": "./src/meta.ts",
23
+ "types": "./dist/types/src/meta.d.ts",
24
+ "default": "./dist/lib/neutral/meta.mjs"
25
+ },
26
+ "#operations": {
27
+ "source": "./src/operations/index.ts",
28
+ "types": "./dist/types/src/operations/index.d.ts",
29
+ "default": "./dist/lib/neutral/operations/index.mjs"
30
+ },
31
+ "#plugin": {
32
+ "source": "./src/AttentionPlugin.ts",
33
+ "types": "./dist/types/src/AttentionPlugin.d.ts",
34
+ "default": "./dist/lib/neutral/AttentionPlugin.mjs"
35
+ },
36
+ "#types": {
37
+ "source": "./src/types/index.ts",
38
+ "types": "./dist/types/src/types/index.d.ts",
39
+ "default": "./dist/lib/neutral/types/index.mjs"
40
+ }
20
41
  },
21
42
  "exports": {
22
43
  ".": {
23
44
  "source": "./src/index.ts",
24
45
  "types": "./dist/types/src/index.d.ts",
25
- "browser": "./dist/lib/browser/index.mjs",
26
- "node": "./dist/lib/node-esm/index.mjs"
46
+ "default": "./dist/lib/neutral/index.mjs"
27
47
  },
28
- "./operations": {
29
- "source": "./src/operations/index.ts",
30
- "types": "./dist/types/src/operations/index.d.ts",
31
- "browser": "./dist/lib/browser/operations/index.mjs",
32
- "node": "./dist/lib/node-esm/operations/index.mjs"
48
+ "./plugin": {
49
+ "source": "./src/plugin.ts",
50
+ "types": "./dist/types/src/plugin.d.ts",
51
+ "default": "./dist/lib/neutral/plugin.mjs"
33
52
  },
34
- "./types": {
35
- "source": "./src/types/index.ts",
36
- "types": "./dist/types/src/types/index.d.ts",
37
- "browser": "./dist/lib/browser/types/index.mjs",
38
- "node": "./dist/lib/node-esm/types/index.mjs"
53
+ "./testing": {
54
+ "source": "./src/testing.ts",
55
+ "types": "./dist/types/src/testing.d.ts",
56
+ "default": "./dist/lib/neutral/testing.mjs"
39
57
  }
40
58
  },
41
59
  "types": "dist/types/src/index.d.ts",
@@ -45,14 +63,14 @@
45
63
  ],
46
64
  "dependencies": {
47
65
  "effect": "3.20.0",
48
- "@dxos/app-toolkit": "0.8.4-main.422d1c7879",
49
- "@dxos/app-framework": "0.8.4-main.422d1c7879",
50
- "@dxos/keyboard": "0.8.4-main.422d1c7879",
51
- "@dxos/operation": "0.8.4-main.422d1c7879",
52
- "@dxos/plugin-graph": "0.8.4-main.422d1c7879",
53
- "@dxos/react-ui-attention": "0.8.4-main.422d1c7879",
54
- "@dxos/util": "0.8.4-main.422d1c7879",
55
- "@dxos/echo": "0.8.4-main.422d1c7879"
66
+ "@dxos/app-toolkit": "0.8.4-main.4f23b4e393",
67
+ "@dxos/echo": "0.8.4-main.4f23b4e393",
68
+ "@dxos/compute": "0.8.4-main.4f23b4e393",
69
+ "@dxos/keyboard": "0.8.4-main.4f23b4e393",
70
+ "@dxos/plugin-graph": "0.8.4-main.4f23b4e393",
71
+ "@dxos/react-ui-attention": "0.8.4-main.4f23b4e393",
72
+ "@dxos/util": "0.8.4-main.4f23b4e393",
73
+ "@dxos/app-framework": "0.8.4-main.4f23b4e393"
56
74
  },
57
75
  "devDependencies": {
58
76
  "@types/react": "~19.2.7",
@@ -63,8 +81,5 @@
63
81
  "effect": "3.20.0",
64
82
  "react": "~19.2.3",
65
83
  "react-dom": "~19.2.3"
66
- },
67
- "publishConfig": {
68
- "access": "public"
69
84
  }
70
85
  }
@@ -0,0 +1,32 @@
1
+ //
2
+ // Copyright 2026 DXOS.org
3
+ //
4
+
5
+ import { describe, test } from 'vitest';
6
+
7
+ import { ActivationEvents, OperationPlugin, RuntimePlugin } from '@dxos/app-framework';
8
+ import { createTestApp } from '@dxos/app-framework/testing';
9
+ import { GraphPlugin } from '@dxos/plugin-graph/plugin';
10
+
11
+ import { AttentionPlugin } from '#plugin';
12
+
13
+ import { meta } from './meta';
14
+
15
+ const moduleId = (name: string) => `${meta.id}.module.${name}`;
16
+
17
+ describe('AttentionPlugin', () => {
18
+ test('modules activate on the expected events', async ({ expect }) => {
19
+ await using harness = await createTestApp({
20
+ plugins: [GraphPlugin(), OperationPlugin(), RuntimePlugin(), AttentionPlugin()],
21
+ });
22
+
23
+ // Modules expected to be active after a normal startup.
24
+ expect(harness.manager.getActive()).toEqual(
25
+ expect.arrayContaining([moduleId('attention'), moduleId('ReactContext'), moduleId('Keyboard')]),
26
+ );
27
+
28
+ // OperationHandler fires lazily when an operation is invoked.
29
+ await harness.fire(ActivationEvents.SetupOperationHandler);
30
+ expect(harness.manager.getActive()).toContain(moduleId('OperationHandler'));
31
+ });
32
+ });
@@ -62,3 +62,5 @@ const setupDevtools = (attention: AttentionManager) => {
62
62
  },
63
63
  };
64
64
  };
65
+
66
+ export default AttentionPlugin;
@@ -3,7 +3,7 @@
3
3
  //
4
4
 
5
5
  import { Capability } from '@dxos/app-framework';
6
- import { OperationHandlerSet } from '@dxos/operation';
6
+ import { OperationHandlerSet } from '@dxos/compute';
7
7
 
8
8
  export const Keyboard = Capability.lazy('Keyboard', () => import('./keyboard'));
9
9
  export const OperationHandler = Capability.lazy<OperationHandlerSet.OperationHandlerSet>(
@@ -5,7 +5,7 @@
5
5
  import * as Effect from 'effect/Effect';
6
6
 
7
7
  import { Capabilities, Capability } from '@dxos/app-framework';
8
- import type { OperationHandlerSet } from '@dxos/operation';
8
+ import type { OperationHandlerSet } from '@dxos/compute';
9
9
 
10
10
  import { AttentionOperationHandlerSet } from '#operations';
11
11
 
package/src/index.ts CHANGED
@@ -2,5 +2,5 @@
2
2
  // Copyright 2024 DXOS.org
3
3
  //
4
4
 
5
- export { AttentionPlugin } from './AttentionPlugin';
6
- export { meta } from './meta';
5
+ export * from './meta';
6
+ export * from './types';
package/src/meta.ts CHANGED
@@ -12,4 +12,5 @@ export const meta: Plugin.Meta = {
12
12
  Track and manage focused attention on objects across your workspace.
13
13
  Highlight items requiring action and coordinate team focus on priority work.
14
14
  `,
15
+ tags: ['system'],
15
16
  };
@@ -2,6 +2,6 @@
2
2
  // Copyright 2025 DXOS.org
3
3
  //
4
4
 
5
- import { OperationHandlerSet } from '@dxos/operation';
5
+ import { OperationHandlerSet } from '@dxos/compute';
6
6
 
7
7
  export const AttentionOperationHandlerSet = OperationHandlerSet.lazy(() => import('./select'));
@@ -7,7 +7,7 @@ import * as Match from 'effect/Match';
7
7
 
8
8
  import { Capability } from '@dxos/app-framework';
9
9
  import { LayoutOperation } from '@dxos/app-toolkit';
10
- import { Operation } from '@dxos/operation';
10
+ import { Operation } from '@dxos/compute';
11
11
 
12
12
  import { AttentionCapabilities } from '../types';
13
13
 
package/src/plugin.ts ADDED
@@ -0,0 +1,11 @@
1
+ //
2
+ // Copyright 2024 DXOS.org
3
+ //
4
+
5
+ import { Plugin } from '@dxos/app-framework';
6
+
7
+ import { meta } from './meta';
8
+
9
+ export const AttentionPlugin = Plugin.lazy(meta, () => import('#plugin'));
10
+
11
+ export { AttentionOperationHandlerSet } from './operations';
package/src/testing.ts ADDED
@@ -0,0 +1,7 @@
1
+ //
2
+ // Copyright 2025 DXOS.org
3
+ //
4
+
5
+ // Eager re-export of `AttentionPlugin`. See `@dxos/plugin-testing/src/core.ts`
6
+ // for the rationale.
7
+ export * from './AttentionPlugin';
@@ -1 +0,0 @@
1
- {"inputs":{"src/AttentionPlugin.ts":{"bytes":7976,"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/meta.ts":{"bytes":1376,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":680,"imports":[{"path":"src/AttentionPlugin.ts","kind":"import-statement","original":"./AttentionPlugin"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"src/types/capabilities.ts":{"bytes":1725,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/types/events.ts":{"bytes":1255,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/types/types.ts":{"bytes":2225,"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":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/operations/select.ts":{"bytes":5504,"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/operation","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/operations/index.ts":{"bytes":944,"imports":[{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"src/operations/select.ts","kind":"dynamic-import","original":"./select"}],"format":"esm"}},"outputs":{"dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4944},"dist/lib/browser/index.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},{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["AttentionPlugin","meta"],"entryPoint":"src/index.ts","inputs":{"src/AttentionPlugin.ts":{"bytesInOutput":1892},"src/index.ts":{"bytesInOutput":0},"src/meta.ts":{"bytesInOutput":287}},"bytes":2303},"dist/lib/browser/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/browser/types/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-BDLH2DQU.mjs","kind":"import-statement"}],"exports":["AttentionAction","AttentionCapabilities","AttentionEvents"],"entryPoint":"src/types/index.ts","inputs":{},"bytes":212},"dist/lib/browser/operations/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":482},"dist/lib/browser/operations/index.mjs":{"imports":[{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"dist/lib/browser/select-SKCOV6LN.mjs","kind":"dynamic-import"}],"exports":["AttentionOperationHandlerSet"],"entryPoint":"src/operations/index.ts","inputs":{"src/operations/index.ts":{"bytesInOutput":156}},"bytes":261},"dist/lib/browser/select-SKCOV6LN.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2954},"dist/lib/browser/select-SKCOV6LN.mjs":{"imports":[{"path":"dist/lib/browser/chunk-BDLH2DQU.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/operation","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/select.ts","inputs":{"src/operations/select.ts":{"bytesInOutput":1170}},"bytes":1348},"dist/lib/browser/chunk-BDLH2DQU.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2470},"dist/lib/browser/chunk-BDLH2DQU.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"exports":["AttentionAction","AttentionCapabilities","AttentionEvents"],"inputs":{"src/types/capabilities.ts":{"bytesInOutput":380},"src/types/index.ts":{"bytesInOutput":0},"src/types/events.ts":{"bytesInOutput":287},"src/types/types.ts":{"bytesInOutput":534}},"bytes":1396}}}
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../src/operations/index.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { OperationHandlerSet } from '@dxos/operation';\n\nexport const AttentionOperationHandlerSet = OperationHandlerSet.lazy(() => import('./select'));\n"],
5
- "mappings": ";AAIA,SAASA,2BAA2B;AAE7B,IAAMC,+BAA+BC,oBAAoBC,KAAK,MAAM,OAAO,wBAAA,CAAA;",
6
- "names": ["OperationHandlerSet", "AttentionOperationHandlerSet", "OperationHandlerSet", "lazy"]
7
- }
@@ -1,43 +0,0 @@
1
- import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
-
3
- // src/types/capabilities.ts
4
- import { Capability } from "@dxos/app-framework";
5
- import { meta } from "#meta";
6
- (function(AttentionCapabilities2) {
7
- AttentionCapabilities2.Attention = Capability.make(`${meta.id}.capability.attention`);
8
- AttentionCapabilities2.Selection = Capability.make(`${meta.id}.capability.selection`);
9
- })(AttentionCapabilities || (AttentionCapabilities = {}));
10
- var AttentionCapabilities;
11
-
12
- // src/types/events.ts
13
- import { ActivationEvent } from "@dxos/app-framework";
14
- import { meta as meta2 } from "#meta";
15
- (function(AttentionEvents2) {
16
- AttentionEvents2.AttentionReady = ActivationEvent.make(`${meta2.id}.event.attention-ready`);
17
- })(AttentionEvents || (AttentionEvents = {}));
18
- var AttentionEvents;
19
-
20
- // src/types/types.ts
21
- import * as Schema from "effect/Schema";
22
- import { SelectionSchema } from "@dxos/react-ui-attention";
23
- import { meta as meta3 } from "#meta";
24
- (function(AttentionAction2) {
25
- const ATTENTION_ACTION = `${meta3.id}.action`;
26
- class Select extends Schema.TaggedClass()(`${ATTENTION_ACTION}.select`, {
27
- input: Schema.Struct({
28
- contextId: Schema.String,
29
- selection: SelectionSchema
30
- }),
31
- output: Schema.Void
32
- }) {
33
- }
34
- AttentionAction2.Select = Select;
35
- })(AttentionAction || (AttentionAction = {}));
36
- var AttentionAction;
37
-
38
- export {
39
- AttentionCapabilities,
40
- AttentionEvents,
41
- AttentionAction
42
- };
43
- //# sourceMappingURL=chunk-GWUE2YCZ.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/types/capabilities.ts", "../../../src/types/events.ts", "../../../src/types/types.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capability } from '@dxos/app-framework';\nimport { type AttentionManager, type SelectionManager } from '@dxos/react-ui-attention';\n\nimport { meta } from '#meta';\n\nexport namespace AttentionCapabilities {\n export const Attention = Capability.make<AttentionManager>(`${meta.id}.capability.attention`);\n export const Selection = Capability.make<SelectionManager>(`${meta.id}.capability.selection`);\n}\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { ActivationEvent } from '@dxos/app-framework';\n\nimport { meta } from '#meta';\n\nexport namespace AttentionEvents {\n export const AttentionReady = ActivationEvent.make(`${meta.id}.event.attention-ready`);\n}\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport { SelectionSchema } from '@dxos/react-ui-attention';\n\nimport { meta } from '#meta';\n\nexport namespace AttentionAction {\n const ATTENTION_ACTION = `${meta.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,SAASA,kBAAkB;AAG3B,SAASC,YAAY;UAEJC,wBAAAA;yBACFC,YAAYC,WAAWC,KAAuB,GAAGC,KAAKC,EAAE,uBAAuB;yBAC/EC,YAAYJ,WAAWC,KAAuB,GAAGC,KAAKC,EAAE,uBAAuB;AAC9F,GAHiBL,0BAAAA,wBAAAA,CAAAA,EAAAA;;;;ACLjB,SAASO,uBAAuB;AAEhC,SAASC,QAAAA,aAAY;UAEJC,kBAAAA;mBACFC,iBAAiBC,gBAAgBC,KAAK,GAAGC,MAAKC,EAAE,wBAAwB;AACvF,GAFiBL,oBAAAA,kBAAAA,CAAAA,EAAAA;;;;ACJjB,YAAYM,YAAY;AAExB,SAASC,uBAAuB;AAEhC,SAASC,QAAAA,aAAY;UAEJC,kBAAAA;AACf,QAAMC,mBAAmB,GAAGC,MAAKC,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": ["Capability", "meta", "AttentionCapabilities", "Attention", "Capability", "make", "meta", "id", "Selection", "ActivationEvent", "meta", "AttentionEvents", "AttentionReady", "ActivationEvent", "make", "meta", "id", "Schema", "SelectionSchema", "meta", "AttentionAction", "ATTENTION_ACTION", "meta", "id", "Select", "TaggedClass", "input", "Struct", "contextId", "String", "selection", "SelectionSchema", "output", "Void"]
7
- }
@@ -1,71 +0,0 @@
1
- import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
-
3
- // src/AttentionPlugin.ts
4
- import * as Effect from "effect/Effect";
5
- import { ActivationEvent, ActivationEvents, Capabilities, Capability, Plugin } from "@dxos/app-framework";
6
- import { AppActivationEvents, AppPlugin } from "@dxos/app-toolkit";
7
- import { AttentionManager, SelectionManager } from "@dxos/react-ui-attention";
8
- import { Keyboard, OperationHandler, ReactContext } from "#capabilities";
9
- import { meta } from "#meta";
10
- import { AttentionEvents } from "#types";
11
- import { AttentionCapabilities } from "#types";
12
- var AttentionPlugin = Plugin.define(meta).pipe(AppPlugin.addOperationHandlerModule({
13
- activate: OperationHandler
14
- }), Plugin.addModule({
15
- id: "attention",
16
- activatesOn: ActivationEvents.Startup,
17
- firesAfterActivation: [
18
- AttentionEvents.AttentionReady
19
- ],
20
- activate: () => Effect.gen(function* () {
21
- const registry = yield* Capability.get(Capabilities.AtomRegistry);
22
- const attention = new AttentionManager(registry);
23
- const selection = new SelectionManager(registry);
24
- setupDevtools(attention);
25
- return [
26
- Capability.contributes(AttentionCapabilities.Attention, attention),
27
- Capability.contributes(AttentionCapabilities.Selection, selection)
28
- ];
29
- })
30
- }), Plugin.addModule({
31
- activatesOn: ActivationEvents.Startup,
32
- activate: ReactContext
33
- }), Plugin.addModule({
34
- activatesOn: ActivationEvent.allOf(AppActivationEvents.AppGraphReady, AttentionEvents.AttentionReady),
35
- activate: Keyboard
36
- }), Plugin.make);
37
- var setupDevtools = (attention) => {
38
- globalThis.composer ??= {};
39
- globalThis.composer.attention = {
40
- get manager() {
41
- return attention;
42
- },
43
- get attended() {
44
- return attention.getCurrent();
45
- },
46
- get currentSpace() {
47
- for (const id of attention.getCurrent()) {
48
- const segments = id.split("/");
49
- if (segments.length > 1 && segments[1].length === 33) {
50
- return segments[1];
51
- }
52
- }
53
- }
54
- };
55
- };
56
-
57
- // src/meta.ts
58
- import { trim } from "@dxos/util";
59
- var meta2 = {
60
- id: "org.dxos.plugin.attention",
61
- name: "Attention",
62
- description: trim`
63
- Track and manage focused attention on objects across your workspace.
64
- Highlight items requiring action and coordinate team focus on priority work.
65
- `
66
- };
67
- export {
68
- AttentionPlugin,
69
- meta2 as meta
70
- };
71
- //# sourceMappingURL=index.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/AttentionPlugin.ts", "../../../src/meta.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { ActivationEvent, ActivationEvents, Capabilities, Capability, Plugin } from '@dxos/app-framework';\nimport { AppActivationEvents, AppPlugin } from '@dxos/app-toolkit';\nimport { AttentionManager, SelectionManager } from '@dxos/react-ui-attention';\n\nimport { Keyboard, OperationHandler, ReactContext } from '#capabilities';\nimport { meta } from '#meta';\nimport { AttentionEvents } from '#types';\nimport { AttentionCapabilities } from '#types';\n\nexport const AttentionPlugin = Plugin.define(meta).pipe(\n AppPlugin.addOperationHandlerModule({ activate: OperationHandler }),\n Plugin.addModule({\n id: 'attention',\n activatesOn: ActivationEvents.Startup,\n firesAfterActivation: [AttentionEvents.AttentionReady],\n activate: () =>\n Effect.gen(function* () {\n const registry = yield* Capability.get(Capabilities.AtomRegistry);\n const attention = new AttentionManager(registry);\n const 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 segments = id.split('/');\n if (segments.length > 1 && segments[1].length === 33) {\n return segments[1];\n }\n }\n },\n };\n};\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};\n"],
5
- "mappings": ";;;AAIA,YAAYA,YAAY;AAExB,SAASC,iBAAiBC,kBAAkBC,cAAcC,YAAYC,cAAc;AACpF,SAASC,qBAAqBC,iBAAiB;AAC/C,SAASC,kBAAkBC,wBAAwB;AAEnD,SAASC,UAAUC,kBAAkBC,oBAAoB;AACzD,SAASC,YAAY;AACrB,SAASC,uBAAuB;AAChC,SAASC,6BAA6B;AAE/B,IAAMC,kBAAkBC,OAAOC,OAAOC,IAAAA,EAAMC,KACjDC,UAAUC,0BAA0B;EAAEC,UAAUC;AAAiB,CAAA,GACjEP,OAAOQ,UAAU;EACfC,IAAI;EACJC,aAAaC,iBAAiBC;EAC9BC,sBAAsB;IAACC,gBAAgBC;;EACvCT,UAAU,MACDU,WAAI,aAAA;AACT,UAAMC,WAAW,OAAOC,WAAWC,IAAIC,aAAaC,YAAY;AAChE,UAAMC,YAAY,IAAIC,iBAAiBN,QAAAA;AACvC,UAAMO,YAAY,IAAIC,iBAAiBR,QAAAA;AACvCS,kBAAcJ,SAAAA;AACd,WAAO;MACLJ,WAAWS,YAAYC,sBAAsBC,WAAWP,SAAAA;MACxDJ,WAAWS,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,cAAME,WAAWnC,GAAGoC,MAAM,GAAA;AAC1B,YAAID,SAASE,SAAS,KAAKF,SAAS,CAAA,EAAGE,WAAW,IAAI;AACpD,iBAAOF,SAAS,CAAA;QAClB;MACF;IACF;EACF;AACF;;;AC1DA,SAASG,YAAY;AAEd,IAAMC,QAAoB;EAC/BC,IAAI;EACJC,MAAM;EACNC,aAAaC;;;;AAIf;",
6
- "names": ["Effect", "ActivationEvent", "ActivationEvents", "Capabilities", "Capability", "Plugin", "AppActivationEvents", "AppPlugin", "AttentionManager", "SelectionManager", "Keyboard", "OperationHandler", "ReactContext", "meta", "AttentionEvents", "AttentionCapabilities", "AttentionPlugin", "Plugin", "define", "meta", "pipe", "AppPlugin", "addOperationHandlerModule", "activate", "OperationHandler", "addModule", "id", "activatesOn", "ActivationEvents", "Startup", "firesAfterActivation", "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", "segments", "split", "length", "trim", "meta", "id", "name", "description", "trim"]
7
- }
@@ -1 +0,0 @@
1
- {"inputs":{"src/AttentionPlugin.ts":{"bytes":7976,"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/meta.ts":{"bytes":1376,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":680,"imports":[{"path":"src/AttentionPlugin.ts","kind":"import-statement","original":"./AttentionPlugin"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"src/types/capabilities.ts":{"bytes":1725,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/types/events.ts":{"bytes":1255,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/types/types.ts":{"bytes":2225,"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":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/operations/select.ts":{"bytes":5504,"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/operation","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/operations/index.ts":{"bytes":944,"imports":[{"path":"@dxos/operation","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":4946},"dist/lib/node-esm/index.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},{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["AttentionPlugin","meta"],"entryPoint":"src/index.ts","inputs":{"src/AttentionPlugin.ts":{"bytesInOutput":1892},"src/index.ts":{"bytesInOutput":0},"src/meta.ts":{"bytesInOutput":287}},"bytes":2396},"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-GWUE2YCZ.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":484},"dist/lib/node-esm/operations/index.mjs":{"imports":[{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"dist/lib/node-esm/select-G2YZ2R7L.mjs","kind":"dynamic-import"}],"exports":["AttentionOperationHandlerSet"],"entryPoint":"src/operations/index.ts","inputs":{"src/operations/index.ts":{"bytesInOutput":156}},"bytes":354},"dist/lib/node-esm/select-G2YZ2R7L.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2955},"dist/lib/node-esm/select-G2YZ2R7L.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-GWUE2YCZ.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/operation","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/select.ts","inputs":{"src/operations/select.ts":{"bytesInOutput":1170}},"bytes":1440},"dist/lib/node-esm/chunk-GWUE2YCZ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2472},"dist/lib/node-esm/chunk-GWUE2YCZ.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}}}
@@ -1,9 +0,0 @@
1
- import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
-
3
- // src/operations/index.ts
4
- import { OperationHandlerSet } from "@dxos/operation";
5
- var AttentionOperationHandlerSet = OperationHandlerSet.lazy(() => import("../select-G2YZ2R7L.mjs"));
6
- export {
7
- AttentionOperationHandlerSet
8
- };
9
- //# sourceMappingURL=index.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../src/operations/index.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { OperationHandlerSet } from '@dxos/operation';\n\nexport const AttentionOperationHandlerSet = OperationHandlerSet.lazy(() => import('./select'));\n"],
5
- "mappings": ";;;AAIA,SAASA,2BAA2B;AAE7B,IAAMC,+BAA+BC,oBAAoBC,KAAK,MAAM,OAAO,wBAAA,CAAA;",
6
- "names": ["OperationHandlerSet", "AttentionOperationHandlerSet", "OperationHandlerSet", "lazy"]
7
- }
@@ -1,47 +0,0 @@
1
- import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
- import {
3
- AttentionCapabilities
4
- } from "./chunk-GWUE2YCZ.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/operation";
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-G2YZ2R7L.mjs.map
@@ -1,7 +0,0 @@
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/operation';\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
- }