@multiplatform.one/node-graph 7.28.1 → 7.29.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": "7.28.1",
3
+ "version": "7.29.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",
@@ -80,17 +80,17 @@
80
80
  },
81
81
  "dependencies": {
82
82
  "@dagrejs/dagre": "^3.1.1",
83
- "@multiplatform.one/forms": "7.28.1",
84
- "@multiplatform.one/platform": "7.28.1",
85
- "@multiplatform.one/theme": "7.28.1",
83
+ "@multiplatform.one/forms": "7.29.1",
84
+ "@multiplatform.one/platform": "7.29.1",
85
+ "@multiplatform.one/theme": "7.29.1",
86
86
  "@tamagui/web": "2.7.6",
87
87
  "@xyflow/react": "^12.11.5",
88
88
  "@xyflow/system": "0.0.81",
89
89
  "tamagui": "2.7.6"
90
90
  },
91
91
  "devDependencies": {
92
- "@multiplatform.one/config": "7.28.1",
93
- "@multiplatform.one/test-utils": "7.28.1",
92
+ "@multiplatform.one/config": "7.29.1",
93
+ "@multiplatform.one/test-utils": "7.29.1",
94
94
  "@tamagui/build": "2.7.6",
95
95
  "@testing-library/react": "^16.3.2",
96
96
  "@types/react-dom": "^19.2.3",
@@ -103,7 +103,7 @@
103
103
  "vitest": "^4.1.5"
104
104
  },
105
105
  "peerDependencies": {
106
- "@multiplatform.one/components": "^7.28.1",
106
+ "@multiplatform.one/components": "^7.29.1",
107
107
  "expo": ">=55",
108
108
  "expo-haptics": "*",
109
109
  "react": "^19.1.0",
@@ -18,6 +18,7 @@ import { SizableText, View } from "tamagui";
18
18
  // into `dist/`, which a source-consumed workspace package never builds.
19
19
  import { createGraphSchema, defaultRules, resolvePorts, validateConnection } from "../model/index";
20
20
  import { legalTargets } from "../interaction/legalTargets";
21
+ import { useKnobEnvelope } from "../knobs/useKnobEnvelope";
21
22
  import { connectionPuckLabel } from "../react-flow/ConnectionPuck";
22
23
  import { NodeGraphWeb } from "../react-flow/NodeGraphWeb";
23
24
  import { demoGraphSchema } from "../react-flow/demoNodeBody";
@@ -88,6 +89,7 @@ function laneEdge(kind: BuiltinEdgeKind, row: number, label?: string): Edge {
88
89
  }
89
90
 
90
91
  function Canvas({ nodes, edges }: { nodes: Node[]; edges: Edge[] }) {
92
+ const envelope = useKnobEnvelope();
91
93
  return (
92
94
  <View width="100%" height={rowHeight * Math.max(1, edges.length) + 60}>
93
95
  <ReactFlowProvider>
@@ -95,6 +97,7 @@ function Canvas({ nodes, edges }: { nodes: Node[]; edges: Edge[] }) {
95
97
  nodes={nodes}
96
98
  edges={edges}
97
99
  edgeTypes={graphEdgeTypes}
100
+ colorMode={envelope.scheme}
98
101
  fitView
99
102
  proOptions={{ hideAttribution: true }}
100
103
  />