@dxos/app-graph 0.4.10-main.c32f430 → 0.4.10-main.c42bfdb
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EchoGraph.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/EchoGraph.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,YAAY,CAAC;;;;;
|
|
1
|
+
{"version":3,"file":"EchoGraph.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/EchoGraph.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,YAAY,CAAC;;;;;AAsBpB,wBAGE;AA8OF,eAAO,MAAM,OAAO;;CAEnB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/app-graph",
|
|
3
|
-
"version": "0.4.10-main.
|
|
3
|
+
"version": "0.4.10-main.c42bfdb",
|
|
4
4
|
"description": "Constructs knowledge graphs for the purpose of building applications on top of",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
],
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@preact/signals-core": "^1.6.0",
|
|
24
|
-
"@dxos/async": "0.4.10-main.
|
|
25
|
-
"@dxos/
|
|
26
|
-
"@dxos/
|
|
27
|
-
"@dxos/invariant": "0.4.10-main.
|
|
28
|
-
"@dxos/
|
|
29
|
-
"@dxos/
|
|
24
|
+
"@dxos/async": "0.4.10-main.c42bfdb",
|
|
25
|
+
"@dxos/echo-signals": "0.4.10-main.c42bfdb",
|
|
26
|
+
"@dxos/debug": "0.4.10-main.c42bfdb",
|
|
27
|
+
"@dxos/invariant": "0.4.10-main.c42bfdb",
|
|
28
|
+
"@dxos/echo-schema": "0.4.10-main.c42bfdb",
|
|
29
|
+
"@dxos/util": "0.4.10-main.c42bfdb"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@phosphor-icons/react": "^2.0.5",
|
|
@@ -34,12 +34,12 @@
|
|
|
34
34
|
"@types/react-dom": "^18.0.6",
|
|
35
35
|
"react": "^18.2.0",
|
|
36
36
|
"react-dom": "^18.2.0",
|
|
37
|
-
"vite": "^5.1.
|
|
38
|
-
"@dxos/random": "0.4.10-main.
|
|
39
|
-
"@dxos/react-client": "0.4.10-main.
|
|
40
|
-
"@dxos/react-ui": "0.4.10-main.
|
|
41
|
-
"@dxos/
|
|
42
|
-
"@dxos/
|
|
37
|
+
"vite": "^5.1.7",
|
|
38
|
+
"@dxos/random": "0.4.10-main.c42bfdb",
|
|
39
|
+
"@dxos/react-client": "0.4.10-main.c42bfdb",
|
|
40
|
+
"@dxos/react-ui": "0.4.10-main.c42bfdb",
|
|
41
|
+
"@dxos/react-ui-theme": "0.4.10-main.c42bfdb",
|
|
42
|
+
"@dxos/storybook-utils": "0.4.10-main.c42bfdb"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"react": "^18.2.0",
|
|
@@ -9,10 +9,11 @@ import { effect } from '@preact/signals-core';
|
|
|
9
9
|
import React, { useEffect, useState } from 'react';
|
|
10
10
|
|
|
11
11
|
import { EventSubscriptions } from '@dxos/async';
|
|
12
|
+
import * as E from '@dxos/echo-schema';
|
|
12
13
|
import { registerSignalRuntime } from '@dxos/echo-signals';
|
|
13
14
|
import { faker } from '@dxos/random';
|
|
14
15
|
import { Client } from '@dxos/react-client';
|
|
15
|
-
import {
|
|
16
|
+
import { type Space, SpaceState } from '@dxos/react-client/echo';
|
|
16
17
|
import { ClientRepeater, TestBuilder } from '@dxos/react-client/testing';
|
|
17
18
|
import { Button, DensityProvider, Input, Select } from '@dxos/react-ui';
|
|
18
19
|
import { getSize, mx } from '@dxos/react-ui-theme';
|
|
@@ -94,7 +95,7 @@ const objectBuilderExtension = (graph: Graph) => {
|
|
|
94
95
|
subscriptions.clear();
|
|
95
96
|
spaces.forEach((space) => {
|
|
96
97
|
const query = space.db.query({ type: 'test' });
|
|
97
|
-
let previousObjects:
|
|
98
|
+
let previousObjects: E.EchoReactiveObject<any>[] = [];
|
|
98
99
|
subscriptions.add(
|
|
99
100
|
effect(() => {
|
|
100
101
|
const removedObjects = previousObjects.filter((object) => !query.objects.includes(object));
|
|
@@ -180,7 +181,7 @@ const runAction = (action: Action) => {
|
|
|
180
181
|
}
|
|
181
182
|
|
|
182
183
|
case Action.ADD_OBJECT:
|
|
183
|
-
getSpace()?.db.add(
|
|
184
|
+
getSpace()?.db.add(E.object({ type: 'test', name: faker.commerce.productName() }));
|
|
184
185
|
break;
|
|
185
186
|
|
|
186
187
|
case Action.REMOVE_OBJECT: {
|