@multiplatform.one/node-graph 7.84.5 → 7.84.6

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.84.5",
3
+ "version": "7.84.6",
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",
@@ -83,17 +83,17 @@
83
83
  },
84
84
  "dependencies": {
85
85
  "@dagrejs/dagre": "^3.1.1",
86
- "@multiplatform.one/forms": "^7.84.5",
87
- "@multiplatform.one/platform": "^7.84.5",
88
- "@multiplatform.one/theme": "^7.84.5",
86
+ "@multiplatform.one/forms": "^7.84.6",
87
+ "@multiplatform.one/platform": "^7.84.6",
88
+ "@multiplatform.one/theme": "^7.84.6",
89
89
  "@tamagui/web": "2.7.6",
90
90
  "@xyflow/react": "^12.12.0",
91
91
  "@xyflow/system": "0.0.83",
92
92
  "tamagui": "2.7.6"
93
93
  },
94
94
  "devDependencies": {
95
- "@multiplatform.one/config": "7.84.5",
96
- "@multiplatform.one/test-utils": "7.84.5",
95
+ "@multiplatform.one/config": "7.84.6",
96
+ "@multiplatform.one/test-utils": "7.84.6",
97
97
  "@tamagui/build": "2.7.6",
98
98
  "@testing-library/react": "^16.3.3",
99
99
  "@types/react-dom": "^19.2.3",
@@ -106,7 +106,7 @@
106
106
  "vitest": "^4.1.12"
107
107
  },
108
108
  "peerDependencies": {
109
- "@multiplatform.one/components": "^7.84.5",
109
+ "@multiplatform.one/components": "^7.84.6",
110
110
  "expo": ">=55",
111
111
  "expo-haptics": "*",
112
112
  "react": "^19.1.0",
@@ -8,18 +8,22 @@
8
8
  * page's tinted ramp (FZ-8939).
9
9
  */
10
10
 
11
- import { YStack } from "tamagui";
12
- import { View } from "tamagui";
11
+ import { View, YStack } from "tamagui";
13
12
  // Relative, not `@multiplatform.one/node-graph/model`: the subpath resolves
14
13
  // into `dist/`, which a source-consumed workspace package never builds.
15
- import { createGraphSchema, defaultRules, resolvePorts, validateConnection } from "../model/index";
16
- import type { GraphNodeRenderProps } from "../model/index";
14
+ import {
15
+ createGraphSchema,
16
+ defaultRules,
17
+ resolvePorts,
18
+ validateConnection,
19
+ type GraphDocument,
20
+ type GraphNodeRenderProps,
21
+ } from "../model/index";
17
22
  import { legalTargets } from "../interaction/legalTargets";
18
23
  import { connectionPuckLabel } from "../react-flow/ConnectionPuck";
19
24
  import { NodeGraphWeb } from "../react-flow/NodeGraphWeb";
20
25
  import { demoGraphSchema } from "../react-flow/demoNodeBody";
21
26
  import { demoDocument } from "../react-flow/fixtures";
22
- import type { GraphDocument } from "../model/index";
23
27
  import { GraphNode } from "../nodes/GraphNode";
24
28
  import { GraphPort } from "../nodes/GraphPort";
25
29
  import type { GraphNodePort } from "../nodes/nodeMeasure";
@@ -120,7 +124,7 @@ function laneDocument(withLabels: boolean): GraphDocument<LaneNodes, BuiltinEdge
120
124
  };
121
125
  }
122
126
 
123
- function Canvas({ withLabels = false }: { withLabels?: boolean }) {
127
+ function Canvas({ withLabels = false }: Readonly<{ withLabels?: boolean }>) {
124
128
  return (
125
129
  <View width="100%" height={rowHeight * builtinEdgeKindNames.length + 60}>
126
130
  <NodeGraphWeb schema={laneSchema} defaultDocument={laneDocument(withLabels)} readOnly />