@multiplatform.one/node-graph 9.8.0 → 9.8.1
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": "@multiplatform.one/node-graph",
|
|
3
|
-
"version": "9.8.
|
|
3
|
+
"version": "9.8.1",
|
|
4
4
|
"description": "Node graph editor — React Flow on web, Tamagui knob-aware nodes, an Expo DOM host on native",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"multiplatform",
|
|
@@ -91,16 +91,16 @@
|
|
|
91
91
|
},
|
|
92
92
|
"dependencies": {
|
|
93
93
|
"@dagrejs/dagre": "^3.1.1",
|
|
94
|
-
"@multiplatform.one/forms": "^9.8.
|
|
95
|
-
"@multiplatform.one/theme": "^9.8.
|
|
94
|
+
"@multiplatform.one/forms": "^9.8.1",
|
|
95
|
+
"@multiplatform.one/theme": "^9.8.1",
|
|
96
96
|
"@tamagui/web": "2.7.6",
|
|
97
97
|
"@xyflow/react": "^12.12.0",
|
|
98
98
|
"@xyflow/system": "0.0.83",
|
|
99
99
|
"tamagui": "2.7.6"
|
|
100
100
|
},
|
|
101
101
|
"devDependencies": {
|
|
102
|
-
"@multiplatform.one/config": "9.8.
|
|
103
|
-
"@multiplatform.one/test-utils": "9.8.
|
|
102
|
+
"@multiplatform.one/config": "9.8.1",
|
|
103
|
+
"@multiplatform.one/test-utils": "9.8.1",
|
|
104
104
|
"@tamagui/build": "2.7.6",
|
|
105
105
|
"@testing-library/react": "^16.3.3",
|
|
106
106
|
"@types/react-dom": "^19.2.3",
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
"vitest": "^4.1.12"
|
|
114
114
|
},
|
|
115
115
|
"peerDependencies": {
|
|
116
|
-
"@multiplatform.one/components": "^9.8.
|
|
116
|
+
"@multiplatform.one/components": "^9.8.1",
|
|
117
117
|
"expo": ">=55",
|
|
118
118
|
"expo-haptics": "*",
|
|
119
119
|
"react": "^19.1.0",
|
|
@@ -29,26 +29,21 @@ import { GraphPort } from "../nodes/GraphPort";
|
|
|
29
29
|
import type { GraphNodePort } from "../nodes/nodeMeasure";
|
|
30
30
|
import { builtinEdgeKindNames, builtinEdgeKinds } from "./edgeKinds";
|
|
31
31
|
import type { BuiltinEdgeData } from "./edgeKinds";
|
|
32
|
-
import { domOnlyStoryDecorator } from "../native/DomOnlyStory";
|
|
33
32
|
import { SizableText } from "@multiplatform.one/components";
|
|
34
33
|
|
|
35
34
|
export default {
|
|
36
35
|
title: "NodeGraph/Edges",
|
|
37
|
-
parameters: {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
needs: "mounts the web canvas to build one lane per edge kind",
|
|
49
|
-
readInstead: "NodeGraph → NodeGraph, where the same typed edges render in a real document",
|
|
50
|
-
}),
|
|
51
|
-
],
|
|
36
|
+
parameters: {
|
|
37
|
+
status: { type: "beta" },
|
|
38
|
+
nativeGallery: {
|
|
39
|
+
exempt: {
|
|
40
|
+
from: "native",
|
|
41
|
+
reason:
|
|
42
|
+
"These stories mount the web canvas, which draws DOM, to build one lane per edge kind. On device the edges render inside the canvas's WebView.",
|
|
43
|
+
readInstead: "NodeGraph → NodeGraph, where the same typed edges render in a real document",
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
},
|
|
52
47
|
};
|
|
53
48
|
|
|
54
49
|
const rowHeight = 110;
|
|
@@ -32,7 +32,6 @@ import { XStack, YStack } from "tamagui";
|
|
|
32
32
|
// itself or it shows a layout the product never has.
|
|
33
33
|
import "@xyflow/react/dist/style.css";
|
|
34
34
|
import "../../css/graph.css";
|
|
35
|
-
import { domOnlyStoryDecorator } from "../native/DomOnlyStory";
|
|
36
35
|
import { getHandlePosition, Position, ReactFlowProvider } from "../react-flow/xy";
|
|
37
36
|
import type { HandleBounds, InternalNodeBase } from "../react-flow/xy";
|
|
38
37
|
import { GraphNode } from "./GraphNode";
|
|
@@ -60,6 +59,14 @@ const meta: Meta<typeof GraphPort> = {
|
|
|
60
59
|
component: GraphPort,
|
|
61
60
|
parameters: {
|
|
62
61
|
status: { type: "beta" },
|
|
62
|
+
nativeGallery: {
|
|
63
|
+
exempt: {
|
|
64
|
+
from: "native",
|
|
65
|
+
reason:
|
|
66
|
+
"Every story here mounts a React Flow handle, a DOM element, outside a canvas, because the port off canvas is the subject. On device the port renders inside the canvas's WebView.",
|
|
67
|
+
readInstead: "NodeGraph → NodeGraph, where the same ports render inside real nodes",
|
|
68
|
+
},
|
|
69
|
+
},
|
|
63
70
|
docs: {
|
|
64
71
|
description: {
|
|
65
72
|
component:
|
|
@@ -72,30 +79,6 @@ const meta: Meta<typeof GraphPort> = {
|
|
|
72
79
|
direction: { control: "inline-radio", options: ["in", "out"] },
|
|
73
80
|
coarsePointer: { control: "boolean", description: "Touch surface — hit becomes 44" },
|
|
74
81
|
},
|
|
75
|
-
decorators: [
|
|
76
|
-
/*
|
|
77
|
-
NATIVE STOPS HERE (task 6.8). Every story on this page mounts a React Flow
|
|
78
|
-
`Handle` — a `div` — OUTSIDE a canvas, which is the whole subject: the
|
|
79
|
-
port is shown off canvas so the two rectangles can be told apart. On
|
|
80
|
-
Hermes a lowercase intrinsic React Native does not know throws `View
|
|
81
|
-
config getter callback for component "div" must be a function` and takes
|
|
82
|
-
the tree down, and the Kitchen Sink showed a red box.
|
|
83
|
-
|
|
84
|
-
The port itself is not web-only. It renders on device inside the canvas's
|
|
85
|
-
WebView, which is where `NodeGraph → NodeGraph` shows it.
|
|
86
|
-
*/
|
|
87
|
-
domOnlyStoryDecorator({
|
|
88
|
-
needs: "mounts a React Flow handle outside a canvas",
|
|
89
|
-
readInstead: "NodeGraph → NodeGraph, where the same ports render inside real nodes",
|
|
90
|
-
}),
|
|
91
|
-
(Story) => (
|
|
92
|
-
<ReactFlowProvider>
|
|
93
|
-
<YStack className="mp-graph" padding="$6">
|
|
94
|
-
<Story />
|
|
95
|
-
</YStack>
|
|
96
|
-
</ReactFlowProvider>
|
|
97
|
-
),
|
|
98
|
-
],
|
|
99
82
|
};
|
|
100
83
|
export default meta;
|
|
101
84
|
|