@dxos/plugin-attention 0.9.1-main.c7dcc2e112 → 0.10.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/plugin-attention",
3
- "version": "0.9.1-main.c7dcc2e112",
3
+ "version": "0.10.0",
4
4
  "description": "Plugin for attention",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -63,33 +63,33 @@
63
63
  "src"
64
64
  ],
65
65
  "dependencies": {
66
- "effect": "3.21.3",
67
- "@dxos/compute": "0.9.1-main.c7dcc2e112",
68
- "@dxos/app-framework": "0.9.1-main.c7dcc2e112",
69
- "@dxos/app-toolkit": "0.9.1-main.c7dcc2e112",
70
- "@dxos/keys": "0.9.1-main.c7dcc2e112",
71
- "@dxos/react-ui-attention": "0.9.1-main.c7dcc2e112",
72
- "@dxos/plugin-graph": "0.9.1-main.c7dcc2e112",
73
- "@dxos/util": "0.9.1-main.c7dcc2e112",
74
- "@dxos/keyboard": "0.9.1-main.c7dcc2e112"
66
+ "effect": "3.21.4",
67
+ "@dxos/app-framework": "0.10.0",
68
+ "@dxos/app-toolkit": "0.10.0",
69
+ "@dxos/compute": "0.10.0",
70
+ "@dxos/keys": "0.10.0",
71
+ "@dxos/plugin-graph": "0.10.0",
72
+ "@dxos/util": "0.10.0",
73
+ "@dxos/react-ui-attention": "0.10.0",
74
+ "@dxos/keyboard": "0.10.0"
75
75
  },
76
76
  "devDependencies": {
77
- "@types/react": "~19.2.7",
77
+ "@types/react": "~19.2.17",
78
78
  "@types/react-dom": "~19.2.3",
79
- "react": "~19.2.3",
80
- "react-dom": "~19.2.3",
79
+ "react": "~19.2.7",
80
+ "react-dom": "~19.2.7",
81
81
  "vite": "^8.0.16",
82
- "@dxos/react-ui": "0.9.1-main.c7dcc2e112",
83
- "@dxos/react-ui-editor": "0.9.1-main.c7dcc2e112",
84
- "@dxos/react-ui-list": "0.9.1-main.c7dcc2e112",
85
- "@dxos/storybook-utils": "0.9.1-main.c7dcc2e112",
86
- "@dxos/ui-theme": "0.9.1-main.c7dcc2e112",
87
- "@dxos/ui-editor": "0.9.1-main.c7dcc2e112"
82
+ "@dxos/react-ui-editor": "0.10.0",
83
+ "@dxos/react-ui-list": "0.10.0",
84
+ "@dxos/storybook-utils": "0.10.0",
85
+ "@dxos/ui-editor": "0.10.0",
86
+ "@dxos/ui-theme": "0.10.0",
87
+ "@dxos/react-ui": "0.10.0"
88
88
  },
89
89
  "peerDependencies": {
90
- "effect": "3.21.3",
91
- "react": "~19.2.3",
92
- "react-dom": "~19.2.3"
90
+ "effect": "3.21.4",
91
+ "react": "~19.2.7",
92
+ "react-dom": "~19.2.7"
93
93
  },
94
94
  "publishConfig": {
95
95
  "access": "public"
@@ -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 { Keyboard } from '@dxos/keyboard';
8
+ import { Keyboard, nestKeyboardContext } from '@dxos/keyboard';
9
9
 
10
10
  import { AttentionCapabilities } from '#types';
11
11
 
@@ -15,9 +15,8 @@ export default Capability.makeModule(
15
15
 
16
16
  const unsubscribe = attention.subscribeCurrent((current) => {
17
17
  const id = current[0];
18
- if (id) {
19
- Keyboard.singleton.setCurrentContext(id);
20
- }
18
+ // Nested under graph root so plank context inherits root-level bindings (e.g. global search).
19
+ Keyboard.singleton.setCurrentContext(nestKeyboardContext(id));
21
20
  });
22
21
 
23
22
  return Capability.contributes(Capabilities.Null, null, () => Effect.sync(() => unsubscribe()));
@@ -136,7 +136,7 @@ const SelectionStateStory = () => {
136
136
 
137
137
  return (
138
138
  <div className='flex h-full overflow-hidden divide-x divide-separator'>
139
- {/* Left pane: ordered list with selection */}
139
+ {/* Left pane: ordered list with selection. */}
140
140
  <div className='w-56 shrink-0 flex flex-col overflow-hidden'>
141
141
  <div className='px-3 py-2 text-sm font-medium text-subdued border-b border-separator'>Items</div>
142
142
  <OrderedList.Root<StoryItem> items={ITEMS} isItem={isItem} getId={(item) => item.id}>
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/capabilities/keyboard.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { Keyboard } from '@dxos/keyboard';\n\nimport { AttentionCapabilities } from '#types';\n\nexport default Capability.makeModule(\n Effect.fnUntraced(function* () {\n const attention = yield* Capability.get(AttentionCapabilities.Attention);\n\n const unsubscribe = attention.subscribeCurrent((current) => {\n const id = current[0];\n if (id) {\n Keyboard.singleton.setCurrentContext(id);\n }\n });\n\n return Capability.contributes(Capabilities.Null, null, () => Effect.sync(() => unsubscribe()));\n }),\n);\n"],
5
- "mappings": ";AAIA,YAAYA,YAAY;AAExB,SAASC,cAAcC,kBAAkB;AACzC,SAASC,gBAAgB;AAEzB,SAASC,6BAA6B;AAEtC,IAAA,mBAAeF,WAAWG,WACjBC,kBAAW,aAAA;AAChB,QAAMC,YAAY,OAAOL,WAAWM,IAAIJ,sBAAsBK,SAAS;AAEvE,QAAMC,cAAcH,UAAUI,iBAAiB,CAACC,YAAAA;AAC9C,UAAMC,KAAKD,QAAQ,CAAA;AACnB,QAAIC,IAAI;AACNV,eAASW,UAAUC,kBAAkBF,EAAAA;IACvC;EACF,CAAA;AAEA,SAAOX,WAAWc,YAAYf,aAAagB,MAAM,MAAM,MAAaC,YAAK,MAAMR,YAAAA,CAAAA,CAAAA;AACjF,CAAA,CAAA;",
6
- "names": ["Effect", "Capabilities", "Capability", "Keyboard", "AttentionCapabilities", "makeModule", "fnUntraced", "attention", "get", "Attention", "unsubscribe", "subscribeCurrent", "current", "id", "singleton", "setCurrentContext", "contributes", "Null", "sync"]
7
- }