@dxos/plugin-conductor 0.8.4-main.9be5663bfe → 0.8.4-main.abd8ff62ef

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 (32) hide show
  1. package/dist/lib/browser/ConductorPlugin-Z47S57T7.mjs +46 -0
  2. package/dist/lib/browser/ConductorPlugin-Z47S57T7.mjs.map +7 -0
  3. package/dist/lib/browser/index.mjs +6 -67
  4. package/dist/lib/browser/index.mjs.map +4 -4
  5. package/dist/lib/browser/meta.json +1 -1
  6. package/dist/lib/browser/translations.mjs +28 -0
  7. package/dist/lib/browser/translations.mjs.map +7 -0
  8. package/dist/lib/node-esm/ConductorPlugin-YBGIJPHK.mjs +48 -0
  9. package/dist/lib/node-esm/ConductorPlugin-YBGIJPHK.mjs.map +7 -0
  10. package/dist/lib/node-esm/index.mjs +6 -67
  11. package/dist/lib/node-esm/index.mjs.map +4 -4
  12. package/dist/lib/node-esm/meta.json +1 -1
  13. package/dist/lib/node-esm/translations.mjs +30 -0
  14. package/dist/lib/node-esm/translations.mjs.map +7 -0
  15. package/dist/types/src/ConductorPlugin.d.ts +1 -0
  16. package/dist/types/src/ConductorPlugin.d.ts.map +1 -1
  17. package/dist/types/src/ConductorPlugin.test.d.ts +2 -0
  18. package/dist/types/src/ConductorPlugin.test.d.ts.map +1 -0
  19. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  20. package/dist/types/src/containers/CanvasContainer/CanvasContainer.d.ts +1 -1
  21. package/dist/types/src/containers/CanvasContainer/CanvasContainer.d.ts.map +1 -1
  22. package/dist/types/src/index.d.ts +2 -1
  23. package/dist/types/src/index.d.ts.map +1 -1
  24. package/dist/types/src/translations.d.ts +24 -16
  25. package/dist/types/src/translations.d.ts.map +1 -1
  26. package/dist/types/tsconfig.tsbuildinfo +1 -1
  27. package/package.json +35 -28
  28. package/src/ConductorPlugin.test.ts +27 -0
  29. package/src/ConductorPlugin.tsx +4 -3
  30. package/src/capabilities/react-surface.tsx +4 -2
  31. package/src/containers/CanvasContainer/CanvasContainer.tsx +6 -6
  32. package/src/index.ts +6 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/plugin-conductor",
3
- "version": "0.8.4-main.9be5663bfe",
3
+ "version": "0.8.4-main.abd8ff62ef",
4
4
  "description": "Composer plugin for conductor.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -13,10 +13,12 @@
13
13
  "sideEffects": true,
14
14
  "type": "module",
15
15
  "imports": {
16
+ "#plugin": "./src/ConductorPlugin.tsx",
16
17
  "#capabilities": "./src/capabilities/index.ts",
17
18
  "#components": "./src/components/index.ts",
18
19
  "#containers": "./src/containers/index.ts",
19
20
  "#meta": "./src/meta.ts",
21
+ "#translations": "./src/translations.ts",
20
22
  "#types": "./src/types/index.ts"
21
23
  },
22
24
  "exports": {
@@ -25,6 +27,12 @@
25
27
  "browser": "./dist/lib/browser/index.mjs",
26
28
  "node": "./dist/lib/node-esm/index.mjs",
27
29
  "types": "./dist/types/src/index.d.ts"
30
+ },
31
+ "./translations": {
32
+ "source": "./src/translations.ts",
33
+ "types": "./dist/types/src/translations.d.ts",
34
+ "browser": "./dist/lib/browser/translations.mjs",
35
+ "node": "./dist/lib/node-esm/translations.mjs"
28
36
  }
29
37
  },
30
38
  "types": "dist/types/src/index.d.ts",
@@ -34,44 +42,43 @@
34
42
  ],
35
43
  "dependencies": {
36
44
  "effect": "3.20.0",
37
- "@dxos/app-framework": "0.8.4-main.9be5663bfe",
38
- "@dxos/app-toolkit": "0.8.4-main.9be5663bfe",
39
- "@dxos/ai": "0.8.4-main.9be5663bfe",
40
- "@dxos/assistant": "0.8.4-main.9be5663bfe",
41
- "@dxos/conductor": "0.8.4-main.9be5663bfe",
42
- "@dxos/debug": "0.8.4-main.9be5663bfe",
43
- "@dxos/functions": "0.8.4-main.9be5663bfe",
44
- "@dxos/functions-runtime": "0.8.4-main.9be5663bfe",
45
- "@dxos/edge-client": "0.8.4-main.9be5663bfe",
46
- "@dxos/log": "0.8.4-main.9be5663bfe",
47
- "@dxos/operation": "0.8.4-main.9be5663bfe",
48
- "@dxos/plugin-automation": "0.8.4-main.9be5663bfe",
49
- "@dxos/plugin-client": "0.8.4-main.9be5663bfe",
50
- "@dxos/plugin-space": "0.8.4-main.9be5663bfe",
51
- "@dxos/react-ui-canvas-compute": "0.8.4-main.9be5663bfe",
52
- "@dxos/react-ui-mosaic": "0.8.4-main.9be5663bfe",
53
- "@dxos/react-client": "0.8.4-main.9be5663bfe",
54
- "@dxos/react-ui-canvas-editor": "0.8.4-main.9be5663bfe",
55
- "@dxos/react-ui-stack": "0.8.4-main.9be5663bfe",
56
- "@dxos/util": "0.8.4-main.9be5663bfe",
57
- "@dxos/echo": "0.8.4-main.9be5663bfe"
45
+ "@dxos/ai": "0.8.4-main.abd8ff62ef",
46
+ "@dxos/assistant": "0.8.4-main.abd8ff62ef",
47
+ "@dxos/app-framework": "0.8.4-main.abd8ff62ef",
48
+ "@dxos/conductor": "0.8.4-main.abd8ff62ef",
49
+ "@dxos/echo": "0.8.4-main.abd8ff62ef",
50
+ "@dxos/compute": "0.8.4-main.abd8ff62ef",
51
+ "@dxos/debug": "0.8.4-main.abd8ff62ef",
52
+ "@dxos/log": "0.8.4-main.abd8ff62ef",
53
+ "@dxos/edge-client": "0.8.4-main.abd8ff62ef",
54
+ "@dxos/plugin-automation": "0.8.4-main.abd8ff62ef",
55
+ "@dxos/app-toolkit": "0.8.4-main.abd8ff62ef",
56
+ "@dxos/react-client": "0.8.4-main.abd8ff62ef",
57
+ "@dxos/plugin-client": "0.8.4-main.abd8ff62ef",
58
+ "@dxos/plugin-space": "0.8.4-main.abd8ff62ef",
59
+ "@dxos/react-ui-canvas-editor": "0.8.4-main.abd8ff62ef",
60
+ "@dxos/react-ui-canvas-compute": "0.8.4-main.abd8ff62ef",
61
+ "@dxos/react-ui-mosaic": "0.8.4-main.abd8ff62ef",
62
+ "@dxos/react-ui-stack": "0.8.4-main.abd8ff62ef",
63
+ "@dxos/util": "0.8.4-main.abd8ff62ef"
58
64
  },
59
65
  "devDependencies": {
60
66
  "@types/react": "~19.2.7",
61
67
  "@types/react-dom": "~19.2.3",
62
68
  "react": "~19.2.3",
63
69
  "react-dom": "~19.2.3",
64
- "vite": "^7.1.11",
65
- "@dxos/react-ui": "0.8.4-main.9be5663bfe",
66
- "@dxos/ui-theme": "0.8.4-main.9be5663bfe",
67
- "@dxos/storybook-utils": "0.8.4-main.9be5663bfe"
70
+ "vite": "^8.0.10",
71
+ "@dxos/plugin-testing": "0.8.4-main.abd8ff62ef",
72
+ "@dxos/storybook-utils": "0.8.4-main.abd8ff62ef",
73
+ "@dxos/ui-theme": "0.8.4-main.abd8ff62ef",
74
+ "@dxos/react-ui": "0.8.4-main.abd8ff62ef"
68
75
  },
69
76
  "peerDependencies": {
70
77
  "effect": "3.20.0",
71
78
  "react": "~19.2.3",
72
79
  "react-dom": "~19.2.3",
73
- "@dxos/react-ui": "0.8.4-main.9be5663bfe",
74
- "@dxos/ui-theme": "0.8.4-main.9be5663bfe"
80
+ "@dxos/react-ui": "0.8.4-main.abd8ff62ef",
81
+ "@dxos/ui-theme": "0.8.4-main.abd8ff62ef"
75
82
  },
76
83
  "publishConfig": {
77
84
  "access": "public"
@@ -0,0 +1,27 @@
1
+ //
2
+ // Copyright 2026 DXOS.org
3
+ //
4
+
5
+ import { describe, test } from 'vitest';
6
+
7
+ import { ClientPlugin } from '@dxos/plugin-client';
8
+ import { createComposerTestApp } from '@dxos/plugin-testing/harness';
9
+
10
+ import { ConductorPlugin } from '#plugin';
11
+
12
+ import { meta } from './meta';
13
+
14
+ const moduleId = (name: string) => `${meta.id}.module.${name}`;
15
+
16
+ describe('ConductorPlugin', () => {
17
+ test('modules activate on the expected events', async ({ expect }) => {
18
+ await using harness = await createComposerTestApp({
19
+ plugins: [ClientPlugin({}), ConductorPlugin()],
20
+ });
21
+
22
+ // Modules expected to be active after a normal startup.
23
+ expect(harness.manager.getActive()).toEqual(
24
+ expect.arrayContaining([moduleId('metadata'), moduleId('schema'), moduleId('ReactSurface')]),
25
+ );
26
+ });
27
+ });
@@ -7,17 +7,16 @@ import * as Option from 'effect/Option';
7
7
 
8
8
  import { Plugin } from '@dxos/app-framework';
9
9
  import { AppPlugin } from '@dxos/app-toolkit';
10
+ import { Operation } from '@dxos/compute';
10
11
  import { ComputeGraph } from '@dxos/conductor';
11
12
  import { Annotation } from '@dxos/echo';
12
- import { Operation } from '@dxos/operation';
13
13
  import { SpaceOperation } from '@dxos/plugin-space/operations';
14
14
  import { type CreateObject } from '@dxos/plugin-space/types';
15
15
  import { CanvasBoard } from '@dxos/react-ui-canvas-editor';
16
16
 
17
17
  import { ReactSurface } from '#capabilities';
18
18
  import { meta } from '#meta';
19
-
20
- import { translations } from './translations';
19
+ import { translations } from '#translations';
21
20
 
22
21
  export const ConductorPlugin = Plugin.define(meta).pipe(
23
22
  AppPlugin.addMetadataModule({
@@ -44,3 +43,5 @@ export const ConductorPlugin = Plugin.define(meta).pipe(
44
43
  AppPlugin.addTranslationsModule({ translations }),
45
44
  Plugin.make,
46
45
  );
46
+
47
+ export default ConductorPlugin;
@@ -19,8 +19,10 @@ export default Capability.makeModule(() =>
19
19
  Surface.create({
20
20
  id: 'root',
21
21
  // TODO(wittjosiah): Split into multiple surfaces if this filter proves too strict for non-article roles.
22
- role: ['article', 'section'],
23
- filter: AppSurface.objectArticle(CanvasBoard.CanvasBoard),
22
+ filter: AppSurface.oneOf(
23
+ AppSurface.object(AppSurface.Article, CanvasBoard.CanvasBoard),
24
+ AppSurface.object(AppSurface.Section, CanvasBoard.CanvasBoard),
25
+ ),
24
26
  component: ({ data, role }) => (
25
27
  <CanvasContainer role={role} subject={data.subject} attendableId={data.attendableId} />
26
28
  ),
@@ -31,14 +31,14 @@ import {
31
31
 
32
32
  export type CanvasContainerProps = AppSurface.ObjectArticleProps<CanvasBoard.CanvasBoard>;
33
33
 
34
- export const CanvasContainer = ({ role, subject: canvas, attendableId: _attendableId }: CanvasContainerProps) => {
35
- const id = Obj.getDXN(canvas as any).toString();
36
- useObject(canvas);
34
+ export const CanvasContainer = ({ role, subject, attendableId: _attendableId }: CanvasContainerProps) => {
35
+ const [canvas] = useObject(subject);
36
+ const id = Obj.getDXN(canvas).toString();
37
37
  const graph = useMemo(
38
- () => CanvasGraphModel.create<ComputeShape>(canvas.layout, (fn) => Obj.change(canvas, fn)),
39
- [canvas],
38
+ () => CanvasGraphModel.create<ComputeShape>(canvas.layout, (fn) => Obj.update(subject, fn)),
39
+ [subject, canvas.layout],
40
40
  );
41
- const controller = useGraphController(canvas);
41
+ const controller = useGraphController(subject);
42
42
  const graphMonitor = useGraphMonitor(controller?.graph);
43
43
  const registry = useMemo(() => new ShapeRegistry(computeShapes), []);
44
44
  const editorRef = useRef<EditorController>(null);
package/src/index.ts CHANGED
@@ -2,5 +2,10 @@
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
4
 
5
- export * from './ConductorPlugin';
5
+ import { Plugin } from '@dxos/app-framework';
6
+
7
+ import { meta } from './meta';
8
+
9
+ export const ConductorPlugin = Plugin.lazy(meta, () => import('./ConductorPlugin'));
10
+
6
11
  export * from './meta';