@dxos/app-graph 0.3.11-next.ee2b64c → 0.4.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/app-graph",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
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",
|
|
@@ -37,14 +37,13 @@
|
|
|
37
37
|
"deepsignal": "1.4.0-shallow.0",
|
|
38
38
|
"lodash.get": "^4.4.2",
|
|
39
39
|
"lodash.set": "^4.3.2",
|
|
40
|
-
"@dxos/async": "0.
|
|
41
|
-
"@dxos/
|
|
42
|
-
"@dxos/
|
|
43
|
-
"@dxos/
|
|
44
|
-
"@dxos/
|
|
40
|
+
"@dxos/async": "0.4.0",
|
|
41
|
+
"@dxos/debug": "0.4.0",
|
|
42
|
+
"@dxos/keyboard": "0.4.0",
|
|
43
|
+
"@dxos/util": "0.4.0",
|
|
44
|
+
"@dxos/invariant": "0.4.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@faker-js/faker": "^8.3.1",
|
|
48
47
|
"@phosphor-icons/react": "^2.0.5",
|
|
49
48
|
"@types/lodash.get": "^4.4.7",
|
|
50
49
|
"@types/lodash.set": "^4.3.7",
|
|
@@ -53,10 +52,11 @@
|
|
|
53
52
|
"react": "^18.2.0",
|
|
54
53
|
"react-dom": "^18.2.0",
|
|
55
54
|
"vite": "^5.0.12",
|
|
56
|
-
"@dxos/
|
|
57
|
-
"@dxos/react-
|
|
58
|
-
"@dxos/react-ui": "0.
|
|
59
|
-
"@dxos/
|
|
55
|
+
"@dxos/random": "0.4.0",
|
|
56
|
+
"@dxos/react-client": "0.4.0",
|
|
57
|
+
"@dxos/react-ui": "0.4.0",
|
|
58
|
+
"@dxos/react-ui-theme": "0.4.0",
|
|
59
|
+
"@dxos/storybook-utils": "0.4.0"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
62
|
"@phosphor-icons/react": "^2.0.5",
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
import '@dxosTheme';
|
|
6
6
|
|
|
7
|
-
import { faker } from '@faker-js/faker';
|
|
8
7
|
import { Pause, Play, Plus, Timer } from '@phosphor-icons/react';
|
|
9
8
|
import { effect } from '@preact/signals-react';
|
|
10
9
|
import React, { useEffect, useState } from 'react';
|
|
11
10
|
|
|
12
11
|
import { EventSubscriptions } from '@dxos/async';
|
|
12
|
+
import { faker } from '@dxos/random';
|
|
13
13
|
import { Client } from '@dxos/react-client';
|
|
14
14
|
import { Expando, type Space, SpaceProxy, SpaceState } from '@dxos/react-client/echo';
|
|
15
15
|
import { ClientRepeater, TestBuilder } from '@dxos/react-client/testing';
|
|
@@ -140,13 +140,13 @@ const runAction = (action: Action) => {
|
|
|
140
140
|
case Action.RENAME_SPACE: {
|
|
141
141
|
const space = getSpace();
|
|
142
142
|
if (space) {
|
|
143
|
-
space.properties.name = faker.
|
|
143
|
+
space.properties.name = faker.commerce.productName();
|
|
144
144
|
}
|
|
145
145
|
break;
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
case Action.ADD_OBJECT:
|
|
149
|
-
getSpace()?.db.add(new Expando({ type: 'test', name: faker.
|
|
149
|
+
getSpace()?.db.add(new Expando({ type: 'test', name: faker.commerce.productName() }));
|
|
150
150
|
break;
|
|
151
151
|
|
|
152
152
|
case Action.REMOVE_OBJECT: {
|
|
@@ -162,7 +162,7 @@ const runAction = (action: Action) => {
|
|
|
162
162
|
const space = getSpaceWithObjects();
|
|
163
163
|
if (space) {
|
|
164
164
|
const objects = space.db.query({ type: 'test' }).objects;
|
|
165
|
-
objects[Math.floor(Math.random() * objects.length)].name = faker.
|
|
165
|
+
objects[Math.floor(Math.random() * objects.length)].name = faker.commerce.productName();
|
|
166
166
|
}
|
|
167
167
|
break;
|
|
168
168
|
}
|