@dxos/plugin-conductor 0.13.0 → 0.14.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-conductor",
3
- "version": "0.13.0",
3
+ "version": "0.14.0",
4
4
  "description": "Composer plugin for conductor.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -92,19 +92,18 @@
92
92
  ],
93
93
  "dependencies": {
94
94
  "effect": "4.0.0",
95
- "@dxos/ai": "0.13.0",
96
- "@dxos/app-framework": "0.13.0",
97
- "@dxos/app-toolkit": "0.13.0",
98
- "@dxos/compute": "0.13.0",
99
- "@dxos/conductor": "0.13.0",
100
- "@dxos/echo": "0.13.0",
101
- "@dxos/echo-react": "0.13.0",
102
- "@dxos/plugin-client": "0.13.0",
103
- "@dxos/plugin-space": "0.13.0",
104
- "@dxos/react-ui-canvas": "0.13.0",
105
- "@dxos/react-ui-canvas-compute": "0.13.0",
106
- "@dxos/react-ui-canvas-editor": "0.13.0",
107
- "@dxos/util": "0.13.0"
95
+ "@dxos/ai": "0.14.0",
96
+ "@dxos/app-framework": "0.14.0",
97
+ "@dxos/app-toolkit": "0.14.0",
98
+ "@dxos/compute": "0.14.0",
99
+ "@dxos/conductor": "0.14.0",
100
+ "@dxos/echo": "0.14.0",
101
+ "@dxos/echo-react": "0.14.0",
102
+ "@dxos/plugin-client": "0.14.0",
103
+ "@dxos/plugin-space": "0.14.0",
104
+ "@dxos/react-ui-canvas": "0.14.0",
105
+ "@dxos/react-ui-canvas-compute": "0.14.0",
106
+ "@dxos/util": "0.14.0"
108
107
  },
109
108
  "devDependencies": {
110
109
  "@types/react": "~19.2.17",
@@ -112,16 +111,16 @@
112
111
  "react": "~19.2.7",
113
112
  "react-dom": "~19.2.7",
114
113
  "vite": "^8.2.2",
115
- "@dxos/plugin-testing": "0.13.0",
116
- "@dxos/react-ui": "0.13.0",
117
- "@dxos/ui-theme": "0.13.0"
114
+ "@dxos/plugin-testing": "0.14.0",
115
+ "@dxos/react-ui": "0.14.0",
116
+ "@dxos/ui-theme": "0.14.0"
118
117
  },
119
118
  "peerDependencies": {
120
119
  "effect": "4.0.0",
121
120
  "react": "~19.2.7",
122
121
  "react-dom": "~19.2.7",
123
- "@dxos/react-ui": "^0.13.0",
124
- "@dxos/ui-theme": "^0.13.0"
122
+ "@dxos/react-ui": "^0.14.0",
123
+ "@dxos/ui-theme": "^0.14.0"
125
124
  },
126
125
  "publishConfig": {
127
126
  "access": "public"
@@ -9,7 +9,7 @@ import * as Operation from '@dxos/compute/Operation';
9
9
  import { Type } from '@dxos/echo';
10
10
  import * as SpaceCapabilities from '@dxos/plugin-space/SpaceCapabilities';
11
11
  import * as SpaceOperation from '@dxos/plugin-space/SpaceOperation';
12
- import { CanvasBoard } from '@dxos/react-ui-canvas-editor/types';
12
+ import { CanvasBoard } from '@dxos/react-ui-canvas-compute/types';
13
13
 
14
14
  export default Capability.makeModule(
15
15
  Effect.fnUntraced(function* () {
@@ -8,7 +8,7 @@ import * as Capabilities from '@dxos/app-framework/Capabilities';
8
8
  import * as Capability from '@dxos/app-framework/Capability';
9
9
  import * as Surface from '@dxos/app-framework/Surface';
10
10
  import * as AppSurface from '@dxos/app-toolkit/AppSurface';
11
- import { CanvasBoard } from '@dxos/react-ui-canvas-editor';
11
+ import { CanvasBoard } from '@dxos/react-ui-canvas-compute';
12
12
 
13
13
  import { CanvasArticle } from '#containers';
14
14
 
@@ -3,7 +3,7 @@
3
3
  //
4
4
 
5
5
  import { ComputeGraph } from '@dxos/conductor';
6
- import { CanvasBoard } from '@dxos/react-ui-canvas-editor/types';
6
+ import { CanvasBoard } from '@dxos/react-ui-canvas-compute/types';
7
7
 
8
8
  /**
9
9
  * Schemas this plugin registers, loaded on demand: the capability activates at idle,
@@ -19,15 +19,14 @@ import { Database, Obj } from '@dxos/echo';
19
19
  import { useObject } from '@dxos/echo-react';
20
20
  import {
21
21
  Bullets,
22
+ type CanvasBoard,
22
23
  ComputeContext,
23
24
  ComputeGraphController,
24
25
  boardSceneId,
25
26
  computeNodeRegistry,
26
- computeShapes,
27
27
  createComputeProjection,
28
28
  createEchoStore,
29
29
  } from '@dxos/react-ui-canvas-compute';
30
- import { type CanvasBoard, KeyboardContainer, ShapeRegistry } from '@dxos/react-ui-canvas-editor';
31
30
  import {
32
31
  type FreehandProjectionOptions,
33
32
  SceneView,
@@ -59,9 +58,7 @@ CanvasArticle.displayName = 'CanvasArticle';
59
58
  type CanvasSceneProps = Pick<CanvasArticleProps, 'role' | 'subject'> & { controller: ComputeGraphController };
60
59
 
61
60
  const CanvasScene = ({ role, subject, controller }: CanvasSceneProps) => {
62
- const id = Obj.getURI(subject);
63
61
  const registry = useRegistry();
64
- const shapeRegistry = useMemo(() => new ShapeRegistry(computeShapes), []);
65
62
  const store = useMemo(() => createEchoStore(subject), [subject]);
66
63
  const sceneId = useMemo(() => boardSceneId(subject), [subject]);
67
64
  const atoms = useMemo(() => createSceneViewAtoms(sceneId), [sceneId]);
@@ -89,23 +86,15 @@ const CanvasScene = ({ role, subject, controller }: CanvasSceneProps) => {
89
86
  const Root = role === AppSurface.Section.role ? Container : Fragment;
90
87
 
91
88
  return (
92
- <ComputeContext.Provider value={{ controller, registry: shapeRegistry, resize }}>
89
+ <ComputeContext.Provider value={{ controller, resize }}>
93
90
  <Root>
94
- <KeyboardContainer id={id}>
95
- <SceneView.Root
96
- store={store}
97
- root={sceneId}
98
- atoms={atoms}
99
- nodes={computeNodeRegistry}
100
- projection={projection}
101
- >
102
- <SceneView.Canvas overlay={<Bullets controller={controller} projection={projection} />} />
103
- <SceneView.Navigation />
104
- <SceneView.Actions />
105
- <SceneView.Debug />
106
- <SceneView.Palette />
107
- </SceneView.Root>
108
- </KeyboardContainer>
91
+ <SceneView.Root store={store} root={sceneId} atoms={atoms} nodes={computeNodeRegistry} projection={projection}>
92
+ <SceneView.Canvas overlay={<Bullets controller={controller} projection={projection} />} />
93
+ <SceneView.Navigation />
94
+ <SceneView.Actions />
95
+ <SceneView.Debug />
96
+ <SceneView.Palette />
97
+ </SceneView.Root>
109
98
  </Root>
110
99
  </ComputeContext.Provider>
111
100
  );
@@ -3,7 +3,7 @@
3
3
  //
4
4
 
5
5
  import { Type } from '@dxos/echo';
6
- import { CanvasBoard } from '@dxos/react-ui-canvas-editor/types';
6
+ import { CanvasBoard } from '@dxos/react-ui-canvas-compute/types';
7
7
  import type * as Theme from '@dxos/react-ui/Theme';
8
8
 
9
9
  import { meta } from '#meta';