@runtypelabs/react-flow 0.1.0 → 0.1.2
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/.turbo/turbo-build.log +18 -0
- package/CHANGELOG.md +17 -0
- package/README.md +2 -0
- package/dist/index.js +3249 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +3226 -0
- package/dist/index.mjs.map +1 -0
- package/example/node_modules/.bin/tsc +2 -2
- package/example/node_modules/.bin/tsserver +2 -2
- package/example/node_modules/.bin/vite +2 -2
- package/package.json +3 -3
- package/src/hooks/useRuntypeFlow.ts +1 -1
- package/src/types/index.ts +1 -1
- package/src/utils/adapter.ts +1 -1
- package/example/node_modules/.bin/browserslist +0 -21
- package/example/node_modules/.bin/terser +0 -21
|
@@ -10,9 +10,9 @@ case `uname` in
|
|
|
10
10
|
esac
|
|
11
11
|
|
|
12
12
|
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/home/
|
|
13
|
+
export NODE_PATH="/home/runner/work/core/core/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/node_modules:/home/runner/work/core/core/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/home/runner/work/core/core/node_modules/.pnpm/typescript@5.9.3/node_modules:/home/runner/work/core/core/node_modules/.pnpm/node_modules"
|
|
14
14
|
else
|
|
15
|
-
export NODE_PATH="/home/
|
|
15
|
+
export NODE_PATH="/home/runner/work/core/core/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/node_modules:/home/runner/work/core/core/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/home/runner/work/core/core/node_modules/.pnpm/typescript@5.9.3/node_modules:/home/runner/work/core/core/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
16
|
fi
|
|
17
17
|
if [ -x "$basedir/node" ]; then
|
|
18
18
|
exec "$basedir/node" "$basedir/../typescript/bin/tsserver" "$@"
|
|
@@ -10,9 +10,9 @@ case `uname` in
|
|
|
10
10
|
esac
|
|
11
11
|
|
|
12
12
|
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/home/
|
|
13
|
+
export NODE_PATH="/home/runner/work/core/core/node_modules/.pnpm/vite@5.4.21_@types+node@25.0.3_lightningcss@1.30.1_terser@5.44.1/node_modules/vite/bin/node_modules:/home/runner/work/core/core/node_modules/.pnpm/vite@5.4.21_@types+node@25.0.3_lightningcss@1.30.1_terser@5.44.1/node_modules/vite/node_modules:/home/runner/work/core/core/node_modules/.pnpm/vite@5.4.21_@types+node@25.0.3_lightningcss@1.30.1_terser@5.44.1/node_modules:/home/runner/work/core/core/node_modules/.pnpm/node_modules"
|
|
14
14
|
else
|
|
15
|
-
export NODE_PATH="/home/
|
|
15
|
+
export NODE_PATH="/home/runner/work/core/core/node_modules/.pnpm/vite@5.4.21_@types+node@25.0.3_lightningcss@1.30.1_terser@5.44.1/node_modules/vite/bin/node_modules:/home/runner/work/core/core/node_modules/.pnpm/vite@5.4.21_@types+node@25.0.3_lightningcss@1.30.1_terser@5.44.1/node_modules/vite/node_modules:/home/runner/work/core/core/node_modules/.pnpm/vite@5.4.21_@types+node@25.0.3_lightningcss@1.30.1_terser@5.44.1/node_modules:/home/runner/work/core/core/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
16
|
fi
|
|
17
17
|
if [ -x "$basedir/node" ]; then
|
|
18
18
|
exec "$basedir/node" "$basedir/../vite/bin/vite.js" "$@"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@runtypelabs/react-flow",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "React Flow adapter for building visual flow editors with Runtype",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"*.css"
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@
|
|
20
|
-
"@runtypelabs/sdk": "0.
|
|
19
|
+
"@runtypelabs/shared": "1.0.0",
|
|
20
|
+
"@runtypelabs/sdk": "0.2.0"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"@xyflow/react": "^12.0.0",
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
createDefaultStep,
|
|
24
24
|
} from '../utils/adapter'
|
|
25
25
|
import { autoLayout } from '../utils/layout'
|
|
26
|
-
import type { FlowStepType } from '@
|
|
26
|
+
import type { FlowStepType } from '@runtypelabs/shared'
|
|
27
27
|
|
|
28
28
|
// ============================================================================
|
|
29
29
|
// Hook Options
|
package/src/types/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Node, Edge, NodeProps } from '@xyflow/react'
|
|
2
|
-
import type { FlowStepType, PromptStepMode } from '@
|
|
2
|
+
import type { FlowStepType, PromptStepMode } from '@runtypelabs/shared'
|
|
3
3
|
import type { RuntypeClient } from '@runtypelabs/sdk'
|
|
4
4
|
|
|
5
5
|
// ============================================================================
|
package/src/utils/adapter.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { FlowStep, RuntypeNode, RuntypeEdge, RuntypeNodeData } from '../types'
|
|
2
|
-
import type { FlowStepType } from '@
|
|
2
|
+
import type { FlowStepType } from '@runtypelabs/shared'
|
|
3
3
|
|
|
4
4
|
// ============================================================================
|
|
5
5
|
// Constants
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
-
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
-
basedir=`cygpath -w "$basedir"`
|
|
8
|
-
fi
|
|
9
|
-
;;
|
|
10
|
-
esac
|
|
11
|
-
|
|
12
|
-
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/home/exedev/GitHub/core/node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/node_modules:/home/exedev/GitHub/core/node_modules/.pnpm/browserslist@4.28.1/node_modules:/home/exedev/GitHub/core/node_modules/.pnpm/node_modules"
|
|
14
|
-
else
|
|
15
|
-
export NODE_PATH="/home/exedev/GitHub/core/node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/node_modules:/home/exedev/GitHub/core/node_modules/.pnpm/browserslist@4.28.1/node_modules:/home/exedev/GitHub/core/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
-
fi
|
|
17
|
-
if [ -x "$basedir/node" ]; then
|
|
18
|
-
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/cli.js" "$@"
|
|
19
|
-
else
|
|
20
|
-
exec node "$basedir/../../../../../node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/cli.js" "$@"
|
|
21
|
-
fi
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
-
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
-
basedir=`cygpath -w "$basedir"`
|
|
8
|
-
fi
|
|
9
|
-
;;
|
|
10
|
-
esac
|
|
11
|
-
|
|
12
|
-
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/home/exedev/GitHub/core/node_modules/.pnpm/terser@5.44.1/node_modules/terser/bin/node_modules:/home/exedev/GitHub/core/node_modules/.pnpm/terser@5.44.1/node_modules/terser/node_modules:/home/exedev/GitHub/core/node_modules/.pnpm/terser@5.44.1/node_modules:/home/exedev/GitHub/core/node_modules/.pnpm/node_modules"
|
|
14
|
-
else
|
|
15
|
-
export NODE_PATH="/home/exedev/GitHub/core/node_modules/.pnpm/terser@5.44.1/node_modules/terser/bin/node_modules:/home/exedev/GitHub/core/node_modules/.pnpm/terser@5.44.1/node_modules/terser/node_modules:/home/exedev/GitHub/core/node_modules/.pnpm/terser@5.44.1/node_modules:/home/exedev/GitHub/core/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
-
fi
|
|
17
|
-
if [ -x "$basedir/node" ]; then
|
|
18
|
-
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/terser@5.44.1/node_modules/terser/bin/terser" "$@"
|
|
19
|
-
else
|
|
20
|
-
exec node "$basedir/../../../../../node_modules/.pnpm/terser@5.44.1/node_modules/terser/bin/terser" "$@"
|
|
21
|
-
fi
|