@dxos/react-ui-graph 0.8.3-main.672df60 → 0.8.3-staging.0fa589b
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":"Graph.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Graph/Graph.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAGrB,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAIjD,OAAO,EAAmC,KAAK,KAAK,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"Graph.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Graph/Graph.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAGrB,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAIjD,OAAO,EAAmC,KAAK,KAAK,EAAE,MAAM,aAAa,CAAC;AAK1E,OAAO,EAAE,KAAK,IAAI,EAAyB,MAAM,uBAAuB,CAAC;AAEzE,OAAO,EAAiD,KAAK,UAAU,EAAE,MAAM,SAAS,CAAC;AAEzF,OAAO,EAEL,KAAK,0BAA0B,EAE/B,KAAK,iCAAiC,EAEtC,KAAK,2BAA2B,EAEhC,KAAK,+BAA+B,EAIrC,MAAM,aAAa,CAAC;AAGrB,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEhD,OAAO,2BAA2B,CAAC;AAEnC,KAAK,aAAa,GAAG,OAAO,GAAG,QAAQ,GAAG,cAAc,GAAG,YAAY,CAAC;AAaxE,KAAK,UAAU,GAAG,UAAU,GAAG;IAC7B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,GAAG,YAAY,CAAC;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,KAAK,EAAE,MAAM,KAAK,CAAC;IACnB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,gBAAgB,CAAC,EACb,0BAA0B,GAC1B,iCAAiC,GACjC,2BAA2B,GAC3B,+BAA+B,CAAC;CACrC,CAAC;AAoQF,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,UAAU,CAO1B,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,UAAU,CAAC,CAAC;AAElC,eAAO,MAAM,OAAO,EAAE,KAUrB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAYvB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KA+BnB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAmBpB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAe3B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAezB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAUnB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/react-ui-graph",
|
|
3
|
-
"version": "0.8.3-
|
|
3
|
+
"version": "0.8.3-staging.0fa589b",
|
|
4
4
|
"description": "GEM Graph.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -46,13 +46,13 @@
|
|
|
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.3-
|
|
50
|
-
"@dxos/debug": "0.8.3-
|
|
51
|
-
"@dxos/
|
|
52
|
-
"@dxos/
|
|
53
|
-
"@dxos/invariant": "0.8.3-
|
|
54
|
-
"@dxos/node-std": "0.8.3-
|
|
55
|
-
"@dxos/log": "0.8.3-
|
|
49
|
+
"@dxos/async": "0.8.3-staging.0fa589b",
|
|
50
|
+
"@dxos/debug": "0.8.3-staging.0fa589b",
|
|
51
|
+
"@dxos/echo-signals": "0.8.3-staging.0fa589b",
|
|
52
|
+
"@dxos/graph": "0.8.3-staging.0fa589b",
|
|
53
|
+
"@dxos/invariant": "0.8.3-staging.0fa589b",
|
|
54
|
+
"@dxos/node-std": "0.8.3-staging.0fa589b",
|
|
55
|
+
"@dxos/log": "0.8.3-staging.0fa589b"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@babel/core": "^7.18.13",
|
|
@@ -65,20 +65,21 @@
|
|
|
65
65
|
"postcss": "^8.4.41",
|
|
66
66
|
"react": "~18.2.0",
|
|
67
67
|
"react-dom": "~18.2.0",
|
|
68
|
-
"@dxos/
|
|
69
|
-
"@dxos/
|
|
70
|
-
"@dxos/react-ui-syntax-highlighter": "0.8.3-
|
|
71
|
-
"@dxos/react-ui-
|
|
72
|
-
"@dxos/
|
|
68
|
+
"@dxos/random": "0.8.3-staging.0fa589b",
|
|
69
|
+
"@dxos/react-ui": "0.8.3-staging.0fa589b",
|
|
70
|
+
"@dxos/react-ui-syntax-highlighter": "0.8.3-staging.0fa589b",
|
|
71
|
+
"@dxos/react-ui-stack": "0.8.3-staging.0fa589b",
|
|
72
|
+
"@dxos/react-ui-theme": "0.8.3-staging.0fa589b",
|
|
73
|
+
"@dxos/storybook-utils": "0.8.3-staging.0fa589b"
|
|
73
74
|
},
|
|
74
75
|
"peerDependencies": {
|
|
75
76
|
"react": "~18.2.0",
|
|
76
77
|
"react-dom": "~18.2.0",
|
|
77
|
-
"@dxos/react-ui": "0.8.3-
|
|
78
|
-
"@dxos/react-ui-theme": "0.8.3-
|
|
78
|
+
"@dxos/react-ui": "0.8.3-staging.0fa589b",
|
|
79
|
+
"@dxos/react-ui-theme": "0.8.3-staging.0fa589b"
|
|
79
80
|
},
|
|
80
81
|
"optionalDependencies": {
|
|
81
|
-
"@dxos/random": "0.8.3-
|
|
82
|
+
"@dxos/random": "0.8.3-staging.0fa589b"
|
|
82
83
|
},
|
|
83
84
|
"publishConfig": {
|
|
84
85
|
"access": "public"
|
|
@@ -11,6 +11,7 @@ import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react'
|
|
|
11
11
|
|
|
12
12
|
import { type GraphModel, SelectionModel, type Graph } from '@dxos/graph';
|
|
13
13
|
import { IconButton, Popover, Toolbar } from '@dxos/react-ui';
|
|
14
|
+
import { Card } from '@dxos/react-ui-stack';
|
|
14
15
|
import { JsonFilter, SyntaxHighlighter } from '@dxos/react-ui-syntax-highlighter';
|
|
15
16
|
import { getHashColor, mx } from '@dxos/react-ui-theme';
|
|
16
17
|
import { type Meta, withLayout, withTheme } from '@dxos/storybook-utils';
|
|
@@ -252,15 +253,16 @@ const DefaultStory = ({
|
|
|
252
253
|
</div>
|
|
253
254
|
|
|
254
255
|
<Popover.VirtualTrigger virtualRef={popoverAnchorRef} />
|
|
255
|
-
<Popover.Content
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
256
|
+
<Popover.Content onOpenAutoFocus={(event) => event.preventDefault()}>
|
|
257
|
+
<Popover.Viewport>
|
|
258
|
+
<Card.Container role='popover'>
|
|
259
|
+
<SyntaxHighlighter
|
|
260
|
+
classNames='bg-transparent text-xs !mlb-cardSpacingBlock !pli-cardSpacingInline !overflow-visible'
|
|
261
|
+
language='json'
|
|
262
|
+
code={JSON.stringify(popover, null, 2)}
|
|
263
|
+
/>
|
|
264
|
+
</Card.Container>
|
|
265
|
+
</Popover.Viewport>
|
|
264
266
|
<Popover.Arrow />
|
|
265
267
|
</Popover.Content>
|
|
266
268
|
</Popover.Root>
|