@dxos/app-graph 0.8.3 → 0.8.4-main.03d5cd7b56

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 (73) hide show
  1. package/dist/lib/neutral/chunk-J5LGTIGS.mjs +10 -0
  2. package/dist/lib/neutral/chunk-J5LGTIGS.mjs.map +7 -0
  3. package/dist/lib/neutral/chunk-WJJ5KEOH.mjs +1477 -0
  4. package/dist/lib/neutral/chunk-WJJ5KEOH.mjs.map +7 -0
  5. package/dist/lib/neutral/index.mjs +40 -0
  6. package/dist/lib/neutral/index.mjs.map +7 -0
  7. package/dist/lib/neutral/meta.json +1 -0
  8. package/dist/lib/neutral/scheduler.mjs +15 -0
  9. package/dist/lib/neutral/scheduler.mjs.map +7 -0
  10. package/dist/lib/neutral/testing/index.mjs +40 -0
  11. package/dist/lib/neutral/testing/index.mjs.map +7 -0
  12. package/dist/types/src/atoms.d.ts +8 -0
  13. package/dist/types/src/atoms.d.ts.map +1 -0
  14. package/dist/types/src/graph-builder.d.ts +117 -60
  15. package/dist/types/src/graph-builder.d.ts.map +1 -1
  16. package/dist/types/src/graph.d.ts +188 -218
  17. package/dist/types/src/graph.d.ts.map +1 -1
  18. package/dist/types/src/index.d.ts +7 -3
  19. package/dist/types/src/index.d.ts.map +1 -1
  20. package/dist/types/src/node-matcher.d.ts +244 -0
  21. package/dist/types/src/node-matcher.d.ts.map +1 -0
  22. package/dist/types/src/node-matcher.test.d.ts +2 -0
  23. package/dist/types/src/node-matcher.test.d.ts.map +1 -0
  24. package/dist/types/src/node.d.ts +50 -5
  25. package/dist/types/src/node.d.ts.map +1 -1
  26. package/dist/types/src/scheduler.browser.d.ts +2 -0
  27. package/dist/types/src/scheduler.browser.d.ts.map +1 -0
  28. package/dist/types/src/scheduler.d.ts +8 -0
  29. package/dist/types/src/scheduler.d.ts.map +1 -0
  30. package/dist/types/src/stories/EchoGraph.stories.d.ts +6 -13
  31. package/dist/types/src/stories/EchoGraph.stories.d.ts.map +1 -1
  32. package/dist/types/src/testing/index.d.ts +2 -0
  33. package/dist/types/src/testing/index.d.ts.map +1 -0
  34. package/dist/types/src/testing/setup-graph-builder.d.ts +31 -0
  35. package/dist/types/src/testing/setup-graph-builder.d.ts.map +1 -0
  36. package/dist/types/src/util.d.ts +40 -0
  37. package/dist/types/src/util.d.ts.map +1 -0
  38. package/dist/types/tsconfig.tsbuildinfo +1 -1
  39. package/package.json +53 -42
  40. package/src/atoms.ts +25 -0
  41. package/src/graph-builder.test.ts +1193 -126
  42. package/src/graph-builder.ts +753 -264
  43. package/src/graph.test.ts +451 -123
  44. package/src/graph.ts +1057 -407
  45. package/src/index.ts +10 -3
  46. package/src/node-matcher.test.ts +301 -0
  47. package/src/node-matcher.ts +314 -0
  48. package/src/node.ts +83 -7
  49. package/src/scheduler.browser.ts +5 -0
  50. package/src/scheduler.ts +17 -0
  51. package/src/stories/EchoGraph.stories.tsx +178 -255
  52. package/src/stories/Tree.tsx +1 -1
  53. package/src/testing/index.ts +5 -0
  54. package/src/testing/setup-graph-builder.ts +41 -0
  55. package/src/util.ts +101 -0
  56. package/dist/lib/browser/index.mjs +0 -778
  57. package/dist/lib/browser/index.mjs.map +0 -7
  58. package/dist/lib/browser/meta.json +0 -1
  59. package/dist/lib/node/index.cjs +0 -816
  60. package/dist/lib/node/index.cjs.map +0 -7
  61. package/dist/lib/node/meta.json +0 -1
  62. package/dist/lib/node-esm/index.mjs +0 -780
  63. package/dist/lib/node-esm/index.mjs.map +0 -7
  64. package/dist/lib/node-esm/meta.json +0 -1
  65. package/dist/types/src/experimental/graph-projections.test.d.ts +0 -25
  66. package/dist/types/src/experimental/graph-projections.test.d.ts.map +0 -1
  67. package/dist/types/src/signals-integration.test.d.ts +0 -2
  68. package/dist/types/src/signals-integration.test.d.ts.map +0 -1
  69. package/dist/types/src/testing.d.ts +0 -5
  70. package/dist/types/src/testing.d.ts.map +0 -1
  71. package/src/experimental/graph-projections.test.ts +0 -56
  72. package/src/signals-integration.test.ts +0 -218
  73. package/src/testing.ts +0 -20
@@ -1,264 +1,234 @@
1
- import { Registry, Rx } from '@effect-rx/rx-react';
2
- import { Option } from 'effect';
1
+ import { Atom, Registry } from '@effect-atom/atom-react';
2
+ import * as Option from 'effect/Option';
3
+ import * as Pipeable from 'effect/Pipeable';
3
4
  import { Event } from '@dxos/async';
4
5
  import { type MakeOptional } from '@dxos/util';
5
- import { type NodeArg, type Node, type Relation, type Action, type ActionGroup } from './node';
6
+ import * as Node from './node';
6
7
  /**
7
8
  * Get the Graph a Node is currently associated with.
8
9
  */
9
- export declare const getGraph: (node: Node) => Graph;
10
- export declare const ROOT_ID = "root";
11
- export declare const ROOT_TYPE = "dxos.org/type/GraphRoot";
12
- export declare const ACTION_TYPE = "dxos.org/type/GraphAction";
13
- export declare const ACTION_GROUP_TYPE = "dxos.org/type/GraphActionGroup";
10
+ export declare const getGraph: (node: Node.Node) => Graph;
14
11
  export type GraphTraversalOptions = {
15
12
  /**
16
13
  * A callback which is called for each node visited during traversal.
17
14
  *
18
15
  * If the callback returns `false`, traversal is stops recursing.
19
16
  */
20
- visitor: (node: Node, path: string[]) => boolean | void;
17
+ visitor: (node: Node.Node, path: string[]) => boolean | void;
21
18
  /**
22
19
  * The node to start traversing from.
23
20
  *
24
21
  * @default ROOT_ID
25
22
  */
26
23
  source?: string;
27
- /**
28
- * The relation to traverse graph edges.
29
- *
30
- * @default 'outbound'
31
- */
32
- relation?: Relation;
24
+ /** The relation(s) to traverse graph edges. */
25
+ relation: Node.RelationInput | Node.RelationInput[];
33
26
  };
34
- export type GraphParams = {
27
+ export type GraphProps = {
35
28
  registry?: Registry.Registry;
36
- nodes?: MakeOptional<Node, 'data' | 'cacheable'>[];
29
+ nodes?: MakeOptional<Node.Node, 'data' | 'cacheable'>[];
37
30
  edges?: Record<string, Edges>;
38
- onExpand?: Graph['_onExpand'];
39
- onRemoveNode?: Graph['_onRemoveNode'];
31
+ onExpand?: (id: string, relation: Node.Relation) => void;
32
+ onInitialize?: (id: string) => Promise<void>;
33
+ onRemoveNode?: (id: string) => void;
40
34
  };
41
35
  export type Edge = {
42
36
  source: string;
43
37
  target: string;
38
+ relation: Node.RelationInput;
44
39
  };
45
- export type Edges = {
46
- inbound: string[];
47
- outbound: string[];
48
- };
49
- export interface ReadableGraph {
40
+ export type Edges = Record<string, string[]>;
41
+ /**
42
+ * Identifier denoting a Graph.
43
+ */
44
+ export declare const GraphTypeId: unique symbol;
45
+ export type GraphTypeId = typeof GraphTypeId;
46
+ /**
47
+ * Identifier for the graph kind discriminator.
48
+ */
49
+ export declare const GraphKind: unique symbol;
50
+ export type GraphKind = typeof GraphKind;
51
+ export type GraphKindType = 'readable' | 'expandable' | 'writable';
52
+ export interface BaseGraph extends Pipeable.Pipeable {
53
+ readonly [GraphTypeId]: GraphTypeId;
54
+ readonly [GraphKind]: GraphKindType;
50
55
  /**
51
56
  * Event emitted when a node is changed.
52
57
  */
53
- onNodeChanged: Event<{
58
+ readonly onNodeChanged: Event<{
54
59
  id: string;
55
- node: Option.Option<Node>;
60
+ node: Option.Option<Node.Node>;
56
61
  }>;
57
62
  /**
58
- * Convert the graph to a JSON object.
59
- */
60
- toJSON(id?: string): object;
61
- json(id?: string): Rx.Rx<any>;
62
- /**
63
- * Get the rx key for the node with the given id.
64
- */
65
- node(id: string): Rx.Rx<Option.Option<Node>>;
66
- /**
67
- * Get the rx key for the node with the given id.
68
- */
69
- nodeOrThrow(id: string): Rx.Rx<Node>;
70
- /**
71
- * Get the rx key for the connections of the node with the given id.
63
+ * Get the atom key for the JSON representation of the graph.
72
64
  */
73
- connections(id: string, relation?: Relation): Rx.Rx<Node[]>;
65
+ json(id?: string): Atom.Atom<any>;
74
66
  /**
75
- * Get the rx key for the actions of the node with the given id.
67
+ * Get the atom key for the node with the given id.
76
68
  */
77
- actions(id: string): Rx.Rx<(Action | ActionGroup)[]>;
69
+ node(id: string): Atom.Atom<Option.Option<Node.Node>>;
78
70
  /**
79
- * Get the rx key for the edges of the node with the given id.
71
+ * Get the atom key for the node with the given id.
80
72
  */
81
- edges(id: string): Rx.Rx<Edges>;
73
+ nodeOrThrow(id: string): Atom.Atom<Node.Node>;
82
74
  /**
83
- * Alias for `getNodeOrThrow(ROOT_ID)`.
75
+ * Get the atom key for the connections of the node with the given id.
84
76
  */
85
- get root(): Node;
77
+ connections(id: string, relation: Node.RelationInput): Atom.Atom<Node.Node[]>;
86
78
  /**
87
- * Get the node with the given id from the graph's registry.
79
+ * Get the atom key for the actions of the node with the given id.
88
80
  */
89
- getNode(id: string): Option.Option<Node>;
81
+ actions(id: string): Atom.Atom<(Node.Action | Node.ActionGroup)[]>;
90
82
  /**
91
- * Get the node with the given id from the graph's registry.
92
- *
93
- * @throws If the node is Option.none().
94
- */
95
- getNodeOrThrow(id: string): Node;
96
- /**
97
- * Get all nodes connected to the node with the given id by the given relation from the graph's registry.
98
- */
99
- getConnections(id: string, relation?: Relation): Node[];
100
- /**
101
- * Get all actions connected to the node with the given id from the graph's registry.
102
- */
103
- getActions(id: string): Node[];
104
- /**
105
- * Get the edges from the node with the given id from the graph's registry.
83
+ * Get the atom key for the edges of the node with the given id.
106
84
  */
107
- getEdges(id: string): Edges;
108
- /**
109
- * Recursive depth-first traversal of the graph.
110
- *
111
- * @param options.node The node to start traversing from.
112
- * @param options.relation The relation to traverse graph edges.
113
- * @param options.visitor A callback which is called for each node visited during traversal.
114
- */
115
- traverse(options: GraphTraversalOptions, path?: string[]): void;
116
- /**
117
- * Get the path between two nodes in the graph.
118
- */
119
- getPath(params: {
120
- source?: string;
121
- target: string;
122
- }): Option.Option<string[]>;
123
- /**
124
- * Wait for the path between two nodes in the graph to be established.
125
- */
126
- waitForPath(params: {
127
- source?: string;
128
- target: string;
129
- }, options?: {
130
- timeout?: number;
131
- interval?: number;
132
- }): Promise<string[]>;
133
- }
134
- export interface ExpandableGraph extends ReadableGraph {
135
- /**
136
- * Initialize a node in the graph.
137
- *
138
- * Fires the `onInitialize` callback to provide initial data for a node.
139
- */
140
- /**
141
- * Expand a node in the graph.
142
- *
143
- * Fires the `onExpand` callback to add connections to the node.
144
- */
145
- expand(id: string, relation?: Relation): void;
146
- /**
147
- * Sort the edges of the node with the given id.
148
- */
149
- sortEdges(id: string, relation: Relation, order: string[]): void;
150
- }
151
- export interface WritableGraph extends ExpandableGraph {
152
- /**
153
- * Add nodes to the graph.
154
- */
155
- addNodes(nodes: NodeArg<any, Record<string, any>>[]): void;
156
- /**
157
- * Add a node to the graph.
158
- */
159
- addNode(node: NodeArg<any, Record<string, any>>): void;
160
- /**
161
- * Remove nodes from the graph.
162
- */
163
- removeNodes(ids: string[], edges?: boolean): void;
164
- /**
165
- * Remove a node from the graph.
166
- */
167
- removeNode(id: string, edges?: boolean): void;
168
- /**
169
- * Add edges to the graph.
170
- */
171
- addEdges(edges: Edge[]): void;
172
- /**
173
- * Add an edge to the graph.
174
- */
175
- addEdge(edge: Edge): void;
176
- /**
177
- * Remove edges from the graph.
178
- */
179
- removeEdges(edges: Edge[], removeOrphans?: boolean): void;
180
- /**
181
- * Remove an edge from the graph.
182
- */
183
- removeEdge(edge: Edge, removeOrphans?: boolean): void;
85
+ edges(id: string): Atom.Atom<Edges>;
184
86
  }
87
+ export type ReadableGraph = BaseGraph & {
88
+ readonly [GraphKind]: 'readable' | 'expandable' | 'writable';
89
+ };
90
+ export type ExpandableGraph = BaseGraph & {
91
+ readonly [GraphKind]: 'expandable' | 'writable';
92
+ };
93
+ export type WritableGraph = BaseGraph & {
94
+ readonly [GraphKind]: 'writable';
95
+ };
185
96
  /**
186
- * The Graph represents the user interface information architecture of the application constructed via plugins.
97
+ * Graph interface.
187
98
  */
188
- export declare class Graph implements WritableGraph {
189
- readonly onNodeChanged: Event<{
190
- id: string;
191
- node: Option.Option<Node>;
192
- }>;
193
- private readonly _onExpand?;
194
- private readonly _onRemoveNode?;
195
- private readonly _registry;
196
- private readonly _expanded;
197
- private readonly _initialized;
198
- private readonly _initialEdges;
199
- private readonly _initialNodes;
200
- private readonly _nodeOrThrow;
201
- private readonly _edges;
202
- private readonly _connections;
203
- private readonly _actions;
204
- private readonly _json;
205
- constructor({ registry, nodes, edges, onExpand, onRemoveNode }?: GraphParams);
206
- toJSON(id?: string): any;
207
- json(id?: string): Rx.Rx<any>;
208
- node(id: string): Rx.Rx<Option.Option<Node>>;
209
- nodeOrThrow(id: string): Rx.Rx<Node>;
210
- connections(id: string, relation?: Relation): Rx.Rx<Node[]>;
211
- actions(id: string): Rx.Rx<(Readonly<Omit<Readonly<{
212
- id: string;
213
- type: string;
214
- cacheable?: string[];
215
- properties: Readonly<Record<string, any>>;
216
- data: import("./node").ActionData;
217
- }>, "properties"> & {
218
- properties: Readonly<Record<string, any>>;
219
- }> | Readonly<Omit<Readonly<{
220
- id: string;
221
- type: string;
222
- cacheable?: string[];
223
- properties: Readonly<Record<string, any>>;
224
- data: typeof import("./node").actionGroupSymbol;
225
- }>, "properties"> & {
226
- properties: Readonly<Record<string, any>>;
227
- }>)[]>;
228
- edges(id: string): Rx.Rx<Edges>;
229
- get root(): Readonly<{
230
- id: string;
231
- type: string;
232
- cacheable?: string[];
233
- properties: Readonly<Record<string, any>>;
234
- data: any;
235
- }>;
236
- getNode(id: string): Option.Option<Node>;
237
- getNodeOrThrow(id: string): Node;
238
- getConnections(id: string, relation?: Relation): Node[];
239
- getActions(id: string): Node[];
240
- getEdges(id: string): Edges;
241
- expand(id: string, relation?: Relation): void;
242
- addNodes(nodes: NodeArg<any, Record<string, any>>[]): void;
243
- addNode({ nodes, edges, ...nodeArg }: NodeArg<any, Record<string, any>>): void;
244
- removeNodes(ids: string[], edges?: boolean): void;
245
- removeNode(id: string, edges?: boolean): void;
246
- addEdges(edges: Edge[]): void;
247
- addEdge(edgeArg: Edge): void;
248
- removeEdges(edges: Edge[], removeOrphans?: boolean): void;
249
- removeEdge(edgeArg: Edge, removeOrphans?: boolean): void;
250
- sortEdges(id: string, relation: Relation, order: string[]): void;
251
- traverse({ visitor, source, relation }: GraphTraversalOptions, path?: string[]): void;
252
- getPath({ source, target }: {
253
- source?: string;
254
- target: string;
255
- }): Option.Option<string[]>;
256
- waitForPath(params: {
257
- source?: string;
258
- target: string;
259
- }, { timeout, interval }?: {
260
- timeout?: number;
261
- interval?: number;
262
- }): Promise<string[]>;
263
- }
99
+ export type Graph = WritableGraph;
100
+ /**
101
+ * Convert the graph to a JSON object.
102
+ */
103
+ export declare const toJSON: (graph: BaseGraph, id?: string) => object;
104
+ /**
105
+ * Get the node with the given id from the graph's registry.
106
+ */
107
+ export declare function getNode(graph: BaseGraph, id: string): Option.Option<Node.Node>;
108
+ export declare function getNode(id: string): (graph: BaseGraph) => Option.Option<Node.Node>;
109
+ /**
110
+ * Get the node with the given id from the graph's registry.
111
+ *
112
+ * @throws If the node is Option.none().
113
+ */
114
+ export declare function getNodeOrThrow(graph: BaseGraph, id: string): Node.Node;
115
+ export declare function getNodeOrThrow(id: string): (graph: BaseGraph) => Node.Node;
116
+ /**
117
+ * Get the root node of the graph.
118
+ * This is an alias for `getNodeOrThrow(graph, ROOT_ID)`.
119
+ */
120
+ export declare function getRoot(graph: BaseGraph): Node.Node;
121
+ /**
122
+ * Get all nodes connected to the node with the given id by the given relation from the graph's registry.
123
+ */
124
+ export declare function getConnections(graph: BaseGraph, id: string, relation: Node.RelationInput): Node.Node[];
125
+ export declare function getConnections(id: string, relation: Node.RelationInput): (graph: BaseGraph) => Node.Node[];
126
+ /**
127
+ * Get all actions connected to the node with the given id from the graph's registry.
128
+ */
129
+ export declare function getActions(graph: BaseGraph, id: string): Node.Node[];
130
+ export declare function getActions(id: string): (graph: BaseGraph) => Node.Node[];
131
+ /**
132
+ * Get the edges from the node with the given id from the graph's registry.
133
+ */
134
+ export declare function getEdges(graph: BaseGraph, id: string): Edges;
135
+ export declare function getEdges(id: string): (graph: BaseGraph) => Edges;
136
+ /**
137
+ * Traverse the graph with the given options.
138
+ */
139
+ export declare function traverse(graph: BaseGraph, options: GraphTraversalOptions, path?: string[]): void;
140
+ export declare function traverse(options: GraphTraversalOptions, path?: string[]): (graph: BaseGraph) => void;
141
+ /**
142
+ * Get the path between two nodes in the graph.
143
+ */
144
+ export declare function getPath(graph: BaseGraph, params: {
145
+ source?: string;
146
+ target: string;
147
+ }): Option.Option<string[]>;
148
+ export declare function getPath(params: {
149
+ source?: string;
150
+ target: string;
151
+ }): (graph: BaseGraph) => Option.Option<string[]>;
152
+ /**
153
+ * Wait for the path between two nodes in the graph to be established.
154
+ */
155
+ export declare function waitForPath(graph: BaseGraph, params: {
156
+ source?: string;
157
+ target: string;
158
+ }, options?: {
159
+ timeout?: number;
160
+ interval?: number;
161
+ }): Promise<string[]>;
162
+ export declare function waitForPath(params: {
163
+ source?: string;
164
+ target: string;
165
+ }, options?: {
166
+ timeout?: number;
167
+ interval?: number;
168
+ }): (graph: BaseGraph) => Promise<string[]>;
169
+ /**
170
+ * Initialize a node in the graph.
171
+ *
172
+ * Fires the `onInitialize` callback to provide initial data for a node.
173
+ */
174
+ export declare function initialize<T extends ExpandableGraph | WritableGraph>(graph: T, id: string): Promise<T>;
175
+ export declare function initialize(id: string): <T extends ExpandableGraph | WritableGraph>(graph: T) => Promise<T>;
176
+ /**
177
+ * Expand a node in the graph.
178
+ *
179
+ * Fires the `onExpand` callback to add connections to the node.
180
+ */
181
+ export declare function expand<T extends ExpandableGraph | WritableGraph>(graph: T, id: string, relation: Node.RelationInput): T;
182
+ export declare function expand(id: string, relation: Node.RelationInput): <T extends ExpandableGraph | WritableGraph>(graph: T) => T;
183
+ /**
184
+ * Sort the edges of the node with the given id.
185
+ */
186
+ export declare function sortEdges<T extends ExpandableGraph | WritableGraph>(graph: T, id: string, relation: Node.RelationInput, order: string[]): T;
187
+ export declare function sortEdges(id: string, relation: Node.RelationInput, order: string[]): <T extends ExpandableGraph | WritableGraph>(graph: T) => T;
188
+ /**
189
+ * Add nodes to the graph.
190
+ */
191
+ export declare function addNodes<T extends WritableGraph>(graph: T, nodes: Node.NodeArg<any, Record<string, any>>[]): T;
192
+ export declare function addNodes(nodes: Node.NodeArg<any, Record<string, any>>[]): <T extends WritableGraph>(graph: T) => T;
193
+ /**
194
+ * Add a node to the graph.
195
+ */
196
+ export declare function addNode<T extends WritableGraph>(graph: T, nodeArg: Node.NodeArg<any, Record<string, any>>): T;
197
+ export declare function addNode(nodeArg: Node.NodeArg<any, Record<string, any>>): <T extends WritableGraph>(graph: T) => T;
198
+ /**
199
+ * Remove nodes from the graph.
200
+ */
201
+ export declare function removeNodes<T extends WritableGraph>(graph: T, ids: string[], edges?: boolean): T;
202
+ export declare function removeNodes(ids: string[], edges?: boolean): <T extends WritableGraph>(graph: T) => T;
203
+ /**
204
+ * Remove a node from the graph.
205
+ */
206
+ export declare function removeNode<T extends WritableGraph>(graph: T, id: string, edges?: boolean): T;
207
+ export declare function removeNode(id: string, edges?: boolean): <T extends WritableGraph>(graph: T) => T;
208
+ /**
209
+ * Add edges to the graph.
210
+ */
211
+ export declare function addEdges<T extends WritableGraph>(graph: T, edges: Edge[]): T;
212
+ export declare function addEdges(edges: Edge[]): <T extends WritableGraph>(graph: T) => T;
213
+ /**
214
+ * Add an edge to the graph.
215
+ */
216
+ export declare function addEdge<T extends WritableGraph>(graph: T, edgeArg: Edge): T;
217
+ export declare function addEdge(edgeArg: Edge): <T extends WritableGraph>(graph: T) => T;
218
+ /**
219
+ * Remove edges from the graph.
220
+ */
221
+ export declare function removeEdges<T extends WritableGraph>(graph: T, edges: Edge[], removeOrphans?: boolean): T;
222
+ export declare function removeEdges(edges: Edge[], removeOrphans?: boolean): <T extends WritableGraph>(graph: T) => T;
223
+ /**
224
+ * Remove an edge from the graph.
225
+ */
226
+ export declare function removeEdge<T extends WritableGraph>(graph: T, edgeArg: Edge, removeOrphans?: boolean): T;
227
+ export declare function removeEdge(edgeArg: Edge, removeOrphans?: boolean): <T extends WritableGraph>(graph: T) => T;
228
+ /**
229
+ * Creates a new Graph instance.
230
+ */
231
+ export declare const make: (params?: GraphProps) => Graph;
232
+ export declare const relationKey: (relation: Node.RelationInput) => string;
233
+ export declare const relationFromKey: (encoded: string) => Node.Relation;
264
234
  //# sourceMappingURL=graph.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"graph.d.ts","sourceRoot":"","sources":["../../../src/graph.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAgB,MAAM,QAAQ,CAAC;AAE9C,OAAO,EAAE,KAAK,EAAW,MAAM,aAAa,CAAC;AAI7C,OAAO,EAAiB,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAE9D,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,QAAQ,EAAE,KAAK,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,QAAQ,CAAC;AAM/F;;GAEG;AACH,eAAO,MAAM,QAAQ,GAAI,MAAM,IAAI,KAAG,KAIrC,CAAC;AAEF,eAAO,MAAM,OAAO,SAAS,CAAC;AAC9B,eAAO,MAAM,SAAS,4BAA4B,CAAC;AACnD,eAAO,MAAM,WAAW,8BAA8B,CAAC;AACvD,eAAO,MAAM,iBAAiB,mCAAmC,CAAC;AAElE,MAAM,MAAM,qBAAqB,GAAG;IAClC;;;;OAIG;IACH,OAAO,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,OAAO,GAAG,IAAI,CAAC;IAExD;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC;IAC7B,KAAK,CAAC,EAAE,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW,CAAC,EAAE,CAAC;IACnD,KAAK,CAAC,EAAE,MAAM,CAAC,MA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eAAO,MAAM,IAAI,YAAa,UAAU,KAAG,KAE1C,CAAC;AAMF,eAAO,MAAM,WAAW,aAAc,IAAI,CAAC,aAAa,KAAG,MAG1D,CAAC;AAEF,eAAO,MAAM,eAAe,YAAa,MAAM,KAAG,IAAI,CAAC,QAMtD,CAAC"}
@@ -1,4 +1,8 @@
1
- export * from './graph';
2
- export * from './graph-builder';
3
- export * from './node';
1
+ export * as CreateAtom from './atoms';
2
+ export * as Graph from './graph';
3
+ export * as GraphBuilder from './graph-builder';
4
+ export * as Node from './node';
5
+ export * as NodeMatcher from './node-matcher';
6
+ export { qualifyId, getParentId, getSegmentId } from './util';
7
+ export type { BuilderExtensions } from './graph-builder';
4
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,UAAU,MAAM,SAAS,CAAC;AACtC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,YAAY,MAAM,iBAAiB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,KAAK,WAAW,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAG9D,YAAY,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC"}