@multiplatform.one/node-graph 7.67.0 → 7.69.0
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.
|
|
3
|
+
"version": "7.69.0",
|
|
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.
|
|
84
|
-
"@multiplatform.one/platform": "^7.
|
|
85
|
-
"@multiplatform.one/theme": "^7.
|
|
83
|
+
"@multiplatform.one/forms": "^7.69.0",
|
|
84
|
+
"@multiplatform.one/platform": "^7.69.0",
|
|
85
|
+
"@multiplatform.one/theme": "^7.69.0",
|
|
86
86
|
"@tamagui/web": "2.7.6",
|
|
87
87
|
"@xyflow/react": "^12.12.0",
|
|
88
88
|
"@xyflow/system": "0.0.83",
|
|
89
89
|
"tamagui": "2.7.6"
|
|
90
90
|
},
|
|
91
91
|
"devDependencies": {
|
|
92
|
-
"@multiplatform.one/config": "7.
|
|
93
|
-
"@multiplatform.one/test-utils": "7.
|
|
92
|
+
"@multiplatform.one/config": "7.69.0",
|
|
93
|
+
"@multiplatform.one/test-utils": "7.69.0",
|
|
94
94
|
"@tamagui/build": "2.7.6",
|
|
95
95
|
"@testing-library/react": "^16.3.3",
|
|
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.
|
|
106
|
+
"@multiplatform.one/components": "^7.69.0",
|
|
107
107
|
"expo": ">=55",
|
|
108
108
|
"expo-haptics": "*",
|
|
109
109
|
"react": "^19.1.0",
|
|
@@ -18,7 +18,8 @@
|
|
|
18
18
|
*/
|
|
19
19
|
|
|
20
20
|
import { useResolvedKnobs } from "@multiplatform.one/theme";
|
|
21
|
-
import {
|
|
21
|
+
import { IconButton, standardActions } from "@multiplatform.one/forms";
|
|
22
|
+
import { SizableText, YStack } from "tamagui";
|
|
22
23
|
import type { BootStage } from "../dom/boot";
|
|
23
24
|
|
|
24
25
|
export type GraphFallbackReason = "no-ready" | "no-dom-entry" | "module" | "render" | "runtime";
|
|
@@ -117,7 +118,14 @@ export function GraphFallback({
|
|
|
117
118
|
{message}
|
|
118
119
|
</SizableText>
|
|
119
120
|
) : null}
|
|
120
|
-
{onRetry ?
|
|
121
|
+
{onRetry ? (
|
|
122
|
+
<IconButton
|
|
123
|
+
icon={standardActions.retry.icon}
|
|
124
|
+
plate="primary"
|
|
125
|
+
aria-label={standardActions.retry.label}
|
|
126
|
+
onPress={onRetry}
|
|
127
|
+
/>
|
|
128
|
+
) : null}
|
|
121
129
|
</YStack>
|
|
122
130
|
);
|
|
123
131
|
}
|
|
@@ -130,12 +130,12 @@ describe("the handle across a WebView remount", () => {
|
|
|
130
130
|
|
|
131
131
|
// The watchdog fires — a 10 ms budget and a fake entry that never reports
|
|
132
132
|
// `paint` or `ready` — and the fallback draws its Retry.
|
|
133
|
-
await screen.
|
|
133
|
+
await screen.findByLabelText("Retry");
|
|
134
134
|
// Widen the budget BEFORE the retry so the second attempt is not killed by
|
|
135
135
|
// the same watchdog while this test is looking at it. `readyTimeoutMs` is
|
|
136
136
|
// read every render, so the fallback stays up and Retry is still there.
|
|
137
137
|
view.rerender(element(graphRef, 60_000));
|
|
138
|
-
fireEvent.click(screen.
|
|
138
|
+
fireEvent.click(screen.getByLabelText("Retry"));
|
|
139
139
|
await waitFor(() => expect(screen.queryByTestId("webview-2")).not.toBeNull());
|
|
140
140
|
|
|
141
141
|
graphRef.current?.relayout();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GraphFallback.native.d.ts","sourceRoot":"","sources":["../../src/native/GraphFallback.native.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;
|
|
1
|
+
{"version":3,"file":"GraphFallback.native.d.ts","sourceRoot":"","sources":["../../src/native/GraphFallback.native.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAKH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,MAAM,MAAM,mBAAmB,GAAG,UAAU,GAAG,cAAc,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEhG,MAAM,WAAW,kBAAkB;IACjC,oGAAoG;IACpG,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,MAAM,EAAE,mBAAmB,CAAC;IACrC,6EAA6E;IAC7E,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;IAClC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,wFAAwF;IACxF,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CAC/B;AAYD;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,SAAS,GAAG,IAAI,GAAG,SAAS,EACnC,OAAO,CAAC,EAAE,OAAO,EACjB,MAAM,CAAC,EAAE,mBAAmB,EAC5B,QAAQ,CAAC,EAAE,MAAM,GAChB,MAAM,CA4BR;AAED,wBAAgB,aAAa,CAAC,EAC5B,OAAO,EACP,OAAO,EACP,MAAM,EACN,KAAK,EACL,OAAO,EACP,QAAQ,GACT,EAAE,kBAAkB,2CAiCpB"}
|