@dxos/react-ui-graph 0.8.4-main.a4bbb77 → 0.8.4-main.ae835ea

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/react-ui-graph",
3
- "version": "0.8.4-main.a4bbb77",
3
+ "version": "0.8.4-main.ae835ea",
4
4
  "description": "GEM Graph.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -46,40 +46,40 @@
46
46
  "lodash.defaultsdeep": "^4.6.1",
47
47
  "react-resize-detector": "^11.0.1",
48
48
  "topojson-client": "^3.1.0",
49
- "@dxos/async": "0.8.4-main.a4bbb77",
50
- "@dxos/debug": "0.8.4-main.a4bbb77",
51
- "@dxos/echo-signals": "0.8.4-main.a4bbb77",
52
- "@dxos/graph": "0.8.4-main.a4bbb77",
53
- "@dxos/invariant": "0.8.4-main.a4bbb77",
54
- "@dxos/log": "0.8.4-main.a4bbb77",
55
- "@dxos/node-std": "0.8.4-main.a4bbb77"
49
+ "@dxos/async": "0.8.4-main.ae835ea",
50
+ "@dxos/echo-signals": "0.8.4-main.ae835ea",
51
+ "@dxos/debug": "0.8.4-main.ae835ea",
52
+ "@dxos/invariant": "0.8.4-main.ae835ea",
53
+ "@dxos/log": "0.8.4-main.ae835ea",
54
+ "@dxos/graph": "0.8.4-main.ae835ea",
55
+ "@dxos/node-std": "0.8.4-main.ae835ea"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@babel/core": "^7.18.13",
59
59
  "@types/d3": "^7.4.3",
60
60
  "@types/lodash.defaultsdeep": "^4.6.6",
61
- "@types/react": "~19.2.0",
62
- "@types/react-dom": "~19.2.0",
61
+ "@types/react": "~19.2.2",
62
+ "@types/react-dom": "~19.2.2",
63
63
  "@types/topojson-client": "^3.1.4",
64
64
  "@types/topojson-specification": "^1.0.5",
65
65
  "postcss": "^8.4.41",
66
66
  "react": "~19.2.0",
67
67
  "react-dom": "~19.2.0",
68
- "@dxos/random": "0.8.4-main.a4bbb77",
69
- "@dxos/react-ui": "0.8.4-main.a4bbb77",
70
- "@dxos/react-ui-stack": "0.8.4-main.a4bbb77",
71
- "@dxos/react-ui-syntax-highlighter": "0.8.4-main.a4bbb77",
72
- "@dxos/react-ui-theme": "0.8.4-main.a4bbb77",
73
- "@dxos/storybook-utils": "0.8.4-main.a4bbb77"
68
+ "@dxos/react-ui-stack": "0.8.4-main.ae835ea",
69
+ "@dxos/react-ui": "0.8.4-main.ae835ea",
70
+ "@dxos/random": "0.8.4-main.ae835ea",
71
+ "@dxos/react-ui-syntax-highlighter": "0.8.4-main.ae835ea",
72
+ "@dxos/storybook-utils": "0.8.4-main.ae835ea",
73
+ "@dxos/react-ui-theme": "0.8.4-main.ae835ea"
74
74
  },
75
75
  "peerDependencies": {
76
76
  "react": "^19.0.0",
77
77
  "react-dom": "^19.0.0",
78
- "@dxos/react-ui": "0.8.4-main.a4bbb77",
79
- "@dxos/react-ui-theme": "0.8.4-main.a4bbb77"
78
+ "@dxos/react-ui": "0.8.4-main.ae835ea",
79
+ "@dxos/react-ui-theme": "0.8.4-main.ae835ea"
80
80
  },
81
81
  "optionalDependencies": {
82
- "@dxos/random": "0.8.4-main.a4bbb77"
82
+ "@dxos/random": "0.8.4-main.ae835ea"
83
83
  },
84
84
  "publishConfig": {
85
85
  "access": "public"
@@ -12,7 +12,7 @@ import { IconButton, Popover, Toolbar } from '@dxos/react-ui';
12
12
  import { withTheme } from '@dxos/react-ui/testing';
13
13
  import { Card } from '@dxos/react-ui-stack';
14
14
  import { JsonFilter, SyntaxHighlighter } from '@dxos/react-ui-syntax-highlighter';
15
- import { getHashColor, mx } from '@dxos/react-ui-theme';
15
+ import { getHashStyles, mx } from '@dxos/react-ui-theme';
16
16
 
17
17
  import { Pulsar } from '../../fx';
18
18
  import {
@@ -215,7 +215,7 @@ const DefaultStory = ({
215
215
  attributes={{
216
216
  node: (node: GraphLayoutNode<TestNode>) => ({
217
217
  data: {
218
- color: getHashColor(node.data?.type ?? node.type)?.color,
218
+ color: getHashStyles(node.data?.type ?? node.type)?.hue,
219
219
  },
220
220
  classes: {
221
221
  'dx-selected': selection.contains(node.id),
@@ -223,7 +223,7 @@ const DefaultStory = ({
223
223
  }),
224
224
  edge: (edge: GraphLayoutEdge<TestNode>) => ({
225
225
  data: {
226
- color: getHashColor(edge.data?.type ?? edge.type)?.color,
226
+ color: getHashStyles(edge.data?.type ?? edge.type)?.hue,
227
227
  },
228
228
  }),
229
229
  }}