@dxos/plugin-graph 0.8.4-main.406dc2a → 0.8.4-main.548089c

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-graph",
3
- "version": "0.8.4-main.406dc2a",
3
+ "version": "0.8.4-main.548089c",
4
4
  "description": "DXOS Surface plugin for constructing knowledge graphs",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -26,25 +26,26 @@
26
26
  ],
27
27
  "dependencies": {
28
28
  "@preact-signals/safe-react": "^0.9.0",
29
- "@dxos/app-framework": "0.8.4-main.406dc2a",
30
- "@dxos/app-graph": "0.8.4-main.406dc2a",
31
- "@dxos/async": "0.8.4-main.406dc2a",
32
- "@dxos/debug": "0.8.4-main.406dc2a"
29
+ "@dxos/app-framework": "0.8.4-main.548089c",
30
+ "@dxos/async": "0.8.4-main.548089c",
31
+ "@dxos/app-graph": "0.8.4-main.548089c",
32
+ "@dxos/debug": "0.8.4-main.548089c",
33
+ "@dxos/util": "0.8.4-main.548089c"
33
34
  },
34
35
  "devDependencies": {
35
- "@effect-rx/rx-react": "0.42.4",
36
+ "@effect-atom/atom-react": "^0.3.4",
36
37
  "@effect/platform": "0.92.1",
37
38
  "@types/react": "~19.2.2",
38
- "@types/react-dom": "~19.2.1",
39
+ "@types/react-dom": "~19.2.2",
39
40
  "effect": "3.18.3",
40
41
  "react": "~19.2.0",
41
42
  "react-dom": "~19.2.0",
42
43
  "vite": "7.1.9",
43
- "@dxos/storybook-utils": "0.8.4-main.406dc2a",
44
- "@dxos/react-client": "0.8.4-main.406dc2a"
44
+ "@dxos/storybook-utils": "0.8.4-main.548089c",
45
+ "@dxos/react-client": "0.8.4-main.548089c"
45
46
  },
46
47
  "peerDependencies": {
47
- "@effect-rx/rx-react": "^0.34.1",
48
+ "@effect-atom/atom-react": "^0.3.4",
48
49
  "@effect/platform": "^0.80.12",
49
50
  "effect": "^3.13.3",
50
51
  "react": "^19.0.0",
@@ -2,7 +2,7 @@
2
2
  // Copyright 2024 DXOS.org
3
3
  //
4
4
 
5
- import { useRxValue } from '@effect-rx/rx-react';
5
+ import { useAtomValue } from '@effect-atom/atom-react';
6
6
  import * as Option from 'effect/Option';
7
7
 
8
8
  import { type Node, type ReadableGraph, type Relation } from '@dxos/app-graph';
@@ -17,13 +17,13 @@ import { type Node, type ReadableGraph, type Relation } from '@dxos/app-graph';
17
17
  */
18
18
  // TODO(wittjosiah): Factor out to @dxos/app-graph/react.
19
19
  export const useNode = <T = any>(graph: ReadableGraph, id?: string): Node<T> | undefined => {
20
- return Option.getOrElse(useRxValue(graph.node(id ?? '')), () => undefined);
20
+ return Option.getOrElse(useAtomValue(graph.node(id ?? '')), () => undefined);
21
21
  };
22
22
 
23
23
  export const useConnections = (graph: ReadableGraph, id?: string, relation?: Relation): Node[] => {
24
- return useRxValue(graph.connections(id ?? '', relation));
24
+ return useAtomValue(graph.connections(id ?? '', relation));
25
25
  };
26
26
 
27
27
  export const useActions = (graph: ReadableGraph, id?: string): Node[] => {
28
- return useRxValue(graph.actions(id ?? ''));
28
+ return useAtomValue(graph.actions(id ?? ''));
29
29
  };
package/src/meta.ts CHANGED
@@ -3,8 +3,13 @@
3
3
  //
4
4
 
5
5
  import { type PluginMeta } from '@dxos/app-framework';
6
+ import { trim } from '@dxos/util';
6
7
 
7
8
  export const meta: PluginMeta = {
8
9
  id: 'dxos.org/plugin/graph',
9
10
  name: 'Graph',
11
+ description: trim`
12
+ Graph database layer providing relationship modeling and queries for workspace objects.
13
+ Build knowledge graphs and explore complex data relationships.
14
+ `,
10
15
  };