@budarin/use-route 1.3.1 → 1.3.3
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/CHANGELOG.md +13 -0
- package/LICENSE +21 -21
- package/README.md +631 -596
- package/demo/node_modules/.bin/browserslist +2 -2
- package/demo/node_modules/.bin/browserslist.CMD +12 -0
- package/demo/node_modules/.bin/browserslist.ps1 +41 -0
- package/demo/node_modules/.bin/tsc +2 -2
- package/demo/node_modules/.bin/tsc.CMD +12 -0
- package/demo/node_modules/.bin/tsc.ps1 +41 -0
- package/demo/node_modules/.bin/tsserver +2 -2
- package/demo/node_modules/.bin/tsserver.CMD +12 -0
- package/demo/node_modules/.bin/tsserver.ps1 +41 -0
- package/demo/node_modules/.bin/vite +2 -2
- package/demo/node_modules/.bin/vite.CMD +12 -0
- package/demo/node_modules/.bin/vite.ps1 +41 -0
- package/demo/node_modules/.vite/deps/@budarin_use-route.js +56 -74
- package/demo/node_modules/.vite/deps/@budarin_use-route.js.map +3 -3
- package/demo/node_modules/.vite/deps/_metadata.json +15 -15
- package/demo/node_modules/.vite/deps/{chunk-DBBEQ5LR.js → chunk-3SNVYWQ3.js} +3 -16
- package/demo/node_modules/.vite/deps/{chunk-DBBEQ5LR.js.map → chunk-3SNVYWQ3.js.map} +1 -1
- package/demo/node_modules/.vite/deps/{chunk-4BQM3FN6.js → chunk-OTZU4T7N.js} +3 -16
- package/demo/node_modules/.vite/deps/{chunk-4BQM3FN6.js.map → chunk-OTZU4T7N.js.map} +1 -1
- package/demo/node_modules/.vite/deps/react-dom.js +2 -2
- package/demo/node_modules/.vite/deps/react-dom_client.js +10 -34
- package/demo/node_modules/.vite/deps/react-dom_client.js.map +1 -1
- package/demo/node_modules/.vite/deps/react.js +1 -1
- package/demo/node_modules/.vite/deps/react_jsx-dev-runtime.js +2 -15
- package/demo/node_modules/.vite/deps/react_jsx-dev-runtime.js.map +1 -1
- package/demo/node_modules/.vite/deps/react_jsx-runtime.js +2 -15
- package/demo/node_modules/.vite/deps/react_jsx-runtime.js.map +1 -1
- package/demo/package.json +9 -8
- package/demo/src/App.tsx +11 -0
- package/demo/src/pages/Home.tsx +3 -0
- package/demo/src/pages/State.tsx +119 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +33 -17
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +4 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
- package/demo/dist/assets/index-CehTkyXl.css +0 -1
- package/demo/dist/assets/index-wDy-y7oj.js +0 -49
- package/demo/dist/index.html +0 -13
- package/demo/tsconfig.tsbuildinfo +0 -1
- package/tsconfig.tsbuildinfo +0 -1
|
@@ -10,9 +10,9 @@ case `uname` in
|
|
|
10
10
|
esac
|
|
11
11
|
|
|
12
12
|
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/
|
|
13
|
+
export NODE_PATH="/proc/cygdrive/d/Projects/use-route/node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/node_modules:/proc/cygdrive/d/Projects/use-route/node_modules/.pnpm/browserslist@4.28.1/node_modules:/proc/cygdrive/d/Projects/use-route/node_modules/.pnpm/node_modules"
|
|
14
14
|
else
|
|
15
|
-
export NODE_PATH="/
|
|
15
|
+
export NODE_PATH="/proc/cygdrive/d/Projects/use-route/node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/node_modules:/proc/cygdrive/d/Projects/use-route/node_modules/.pnpm/browserslist@4.28.1/node_modules:/proc/cygdrive/d/Projects/use-route/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
16
|
fi
|
|
17
17
|
if [ -x "$basedir/node" ]; then
|
|
18
18
|
exec "$basedir/node" "$basedir/../../../node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/cli.js" "$@"
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
@SETLOCAL
|
|
2
|
+
@IF NOT DEFINED NODE_PATH (
|
|
3
|
+
@SET "NODE_PATH=D:\Projects\use-route\node_modules\.pnpm\browserslist@4.28.1\node_modules\browserslist\node_modules;D:\Projects\use-route\node_modules\.pnpm\browserslist@4.28.1\node_modules;D:\Projects\use-route\node_modules\.pnpm\node_modules"
|
|
4
|
+
) ELSE (
|
|
5
|
+
@SET "NODE_PATH=D:\Projects\use-route\node_modules\.pnpm\browserslist@4.28.1\node_modules\browserslist\node_modules;D:\Projects\use-route\node_modules\.pnpm\browserslist@4.28.1\node_modules;D:\Projects\use-route\node_modules\.pnpm\node_modules;%NODE_PATH%"
|
|
6
|
+
)
|
|
7
|
+
@IF EXIST "%~dp0\node.exe" (
|
|
8
|
+
"%~dp0\node.exe" "%~dp0\..\..\..\node_modules\.pnpm\browserslist@4.28.1\node_modules\browserslist\cli.js" %*
|
|
9
|
+
) ELSE (
|
|
10
|
+
@SET PATHEXT=%PATHEXT:;.JS;=;%
|
|
11
|
+
node "%~dp0\..\..\..\node_modules\.pnpm\browserslist@4.28.1\node_modules\browserslist\cli.js" %*
|
|
12
|
+
)
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
#!/usr/bin/env pwsh
|
|
2
|
+
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
|
3
|
+
|
|
4
|
+
$exe=""
|
|
5
|
+
$pathsep=":"
|
|
6
|
+
$env_node_path=$env:NODE_PATH
|
|
7
|
+
$new_node_path="D:\Projects\use-route\node_modules\.pnpm\browserslist@4.28.1\node_modules\browserslist\node_modules;D:\Projects\use-route\node_modules\.pnpm\browserslist@4.28.1\node_modules;D:\Projects\use-route\node_modules\.pnpm\node_modules"
|
|
8
|
+
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
|
9
|
+
# Fix case when both the Windows and Linux builds of Node
|
|
10
|
+
# are installed in the same directory
|
|
11
|
+
$exe=".exe"
|
|
12
|
+
$pathsep=";"
|
|
13
|
+
} else {
|
|
14
|
+
$new_node_path="/proc/cygdrive/d/Projects/use-route/node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/node_modules:/proc/cygdrive/d/Projects/use-route/node_modules/.pnpm/browserslist@4.28.1/node_modules:/proc/cygdrive/d/Projects/use-route/node_modules/.pnpm/node_modules"
|
|
15
|
+
}
|
|
16
|
+
if ([string]::IsNullOrEmpty($env_node_path)) {
|
|
17
|
+
$env:NODE_PATH=$new_node_path
|
|
18
|
+
} else {
|
|
19
|
+
$env:NODE_PATH="$new_node_path$pathsep$env_node_path"
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
$ret=0
|
|
23
|
+
if (Test-Path "$basedir/node$exe") {
|
|
24
|
+
# Support pipeline input
|
|
25
|
+
if ($MyInvocation.ExpectingInput) {
|
|
26
|
+
$input | & "$basedir/node$exe" "$basedir/../../../node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/cli.js" $args
|
|
27
|
+
} else {
|
|
28
|
+
& "$basedir/node$exe" "$basedir/../../../node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/cli.js" $args
|
|
29
|
+
}
|
|
30
|
+
$ret=$LASTEXITCODE
|
|
31
|
+
} else {
|
|
32
|
+
# Support pipeline input
|
|
33
|
+
if ($MyInvocation.ExpectingInput) {
|
|
34
|
+
$input | & "node$exe" "$basedir/../../../node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/cli.js" $args
|
|
35
|
+
} else {
|
|
36
|
+
& "node$exe" "$basedir/../../../node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/cli.js" $args
|
|
37
|
+
}
|
|
38
|
+
$ret=$LASTEXITCODE
|
|
39
|
+
}
|
|
40
|
+
$env:NODE_PATH=$env_node_path
|
|
41
|
+
exit $ret
|
|
@@ -10,9 +10,9 @@ case `uname` in
|
|
|
10
10
|
esac
|
|
11
11
|
|
|
12
12
|
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/
|
|
13
|
+
export NODE_PATH="/proc/cygdrive/d/Projects/use-route/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/node_modules:/proc/cygdrive/d/Projects/use-route/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/proc/cygdrive/d/Projects/use-route/node_modules/.pnpm/typescript@5.9.3/node_modules:/proc/cygdrive/d/Projects/use-route/node_modules/.pnpm/node_modules"
|
|
14
14
|
else
|
|
15
|
-
export NODE_PATH="/
|
|
15
|
+
export NODE_PATH="/proc/cygdrive/d/Projects/use-route/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/node_modules:/proc/cygdrive/d/Projects/use-route/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/proc/cygdrive/d/Projects/use-route/node_modules/.pnpm/typescript@5.9.3/node_modules:/proc/cygdrive/d/Projects/use-route/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/tsc" "$@"
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
@SETLOCAL
|
|
2
|
+
@IF NOT DEFINED NODE_PATH (
|
|
3
|
+
@SET "NODE_PATH=D:\Projects\use-route\node_modules\.pnpm\typescript@5.9.3\node_modules\typescript\bin\node_modules;D:\Projects\use-route\node_modules\.pnpm\typescript@5.9.3\node_modules\typescript\node_modules;D:\Projects\use-route\node_modules\.pnpm\typescript@5.9.3\node_modules;D:\Projects\use-route\node_modules\.pnpm\node_modules"
|
|
4
|
+
) ELSE (
|
|
5
|
+
@SET "NODE_PATH=D:\Projects\use-route\node_modules\.pnpm\typescript@5.9.3\node_modules\typescript\bin\node_modules;D:\Projects\use-route\node_modules\.pnpm\typescript@5.9.3\node_modules\typescript\node_modules;D:\Projects\use-route\node_modules\.pnpm\typescript@5.9.3\node_modules;D:\Projects\use-route\node_modules\.pnpm\node_modules;%NODE_PATH%"
|
|
6
|
+
)
|
|
7
|
+
@IF EXIST "%~dp0\node.exe" (
|
|
8
|
+
"%~dp0\node.exe" "%~dp0\..\typescript\bin\tsc" %*
|
|
9
|
+
) ELSE (
|
|
10
|
+
@SET PATHEXT=%PATHEXT:;.JS;=;%
|
|
11
|
+
node "%~dp0\..\typescript\bin\tsc" %*
|
|
12
|
+
)
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
#!/usr/bin/env pwsh
|
|
2
|
+
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
|
3
|
+
|
|
4
|
+
$exe=""
|
|
5
|
+
$pathsep=":"
|
|
6
|
+
$env_node_path=$env:NODE_PATH
|
|
7
|
+
$new_node_path="D:\Projects\use-route\node_modules\.pnpm\typescript@5.9.3\node_modules\typescript\bin\node_modules;D:\Projects\use-route\node_modules\.pnpm\typescript@5.9.3\node_modules\typescript\node_modules;D:\Projects\use-route\node_modules\.pnpm\typescript@5.9.3\node_modules;D:\Projects\use-route\node_modules\.pnpm\node_modules"
|
|
8
|
+
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
|
9
|
+
# Fix case when both the Windows and Linux builds of Node
|
|
10
|
+
# are installed in the same directory
|
|
11
|
+
$exe=".exe"
|
|
12
|
+
$pathsep=";"
|
|
13
|
+
} else {
|
|
14
|
+
$new_node_path="/proc/cygdrive/d/Projects/use-route/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/node_modules:/proc/cygdrive/d/Projects/use-route/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/proc/cygdrive/d/Projects/use-route/node_modules/.pnpm/typescript@5.9.3/node_modules:/proc/cygdrive/d/Projects/use-route/node_modules/.pnpm/node_modules"
|
|
15
|
+
}
|
|
16
|
+
if ([string]::IsNullOrEmpty($env_node_path)) {
|
|
17
|
+
$env:NODE_PATH=$new_node_path
|
|
18
|
+
} else {
|
|
19
|
+
$env:NODE_PATH="$new_node_path$pathsep$env_node_path"
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
$ret=0
|
|
23
|
+
if (Test-Path "$basedir/node$exe") {
|
|
24
|
+
# Support pipeline input
|
|
25
|
+
if ($MyInvocation.ExpectingInput) {
|
|
26
|
+
$input | & "$basedir/node$exe" "$basedir/../typescript/bin/tsc" $args
|
|
27
|
+
} else {
|
|
28
|
+
& "$basedir/node$exe" "$basedir/../typescript/bin/tsc" $args
|
|
29
|
+
}
|
|
30
|
+
$ret=$LASTEXITCODE
|
|
31
|
+
} else {
|
|
32
|
+
# Support pipeline input
|
|
33
|
+
if ($MyInvocation.ExpectingInput) {
|
|
34
|
+
$input | & "node$exe" "$basedir/../typescript/bin/tsc" $args
|
|
35
|
+
} else {
|
|
36
|
+
& "node$exe" "$basedir/../typescript/bin/tsc" $args
|
|
37
|
+
}
|
|
38
|
+
$ret=$LASTEXITCODE
|
|
39
|
+
}
|
|
40
|
+
$env:NODE_PATH=$env_node_path
|
|
41
|
+
exit $ret
|
|
@@ -10,9 +10,9 @@ case `uname` in
|
|
|
10
10
|
esac
|
|
11
11
|
|
|
12
12
|
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/
|
|
13
|
+
export NODE_PATH="/proc/cygdrive/d/Projects/use-route/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/node_modules:/proc/cygdrive/d/Projects/use-route/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/proc/cygdrive/d/Projects/use-route/node_modules/.pnpm/typescript@5.9.3/node_modules:/proc/cygdrive/d/Projects/use-route/node_modules/.pnpm/node_modules"
|
|
14
14
|
else
|
|
15
|
-
export NODE_PATH="/
|
|
15
|
+
export NODE_PATH="/proc/cygdrive/d/Projects/use-route/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/node_modules:/proc/cygdrive/d/Projects/use-route/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/proc/cygdrive/d/Projects/use-route/node_modules/.pnpm/typescript@5.9.3/node_modules:/proc/cygdrive/d/Projects/use-route/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" "$@"
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
@SETLOCAL
|
|
2
|
+
@IF NOT DEFINED NODE_PATH (
|
|
3
|
+
@SET "NODE_PATH=D:\Projects\use-route\node_modules\.pnpm\typescript@5.9.3\node_modules\typescript\bin\node_modules;D:\Projects\use-route\node_modules\.pnpm\typescript@5.9.3\node_modules\typescript\node_modules;D:\Projects\use-route\node_modules\.pnpm\typescript@5.9.3\node_modules;D:\Projects\use-route\node_modules\.pnpm\node_modules"
|
|
4
|
+
) ELSE (
|
|
5
|
+
@SET "NODE_PATH=D:\Projects\use-route\node_modules\.pnpm\typescript@5.9.3\node_modules\typescript\bin\node_modules;D:\Projects\use-route\node_modules\.pnpm\typescript@5.9.3\node_modules\typescript\node_modules;D:\Projects\use-route\node_modules\.pnpm\typescript@5.9.3\node_modules;D:\Projects\use-route\node_modules\.pnpm\node_modules;%NODE_PATH%"
|
|
6
|
+
)
|
|
7
|
+
@IF EXIST "%~dp0\node.exe" (
|
|
8
|
+
"%~dp0\node.exe" "%~dp0\..\typescript\bin\tsserver" %*
|
|
9
|
+
) ELSE (
|
|
10
|
+
@SET PATHEXT=%PATHEXT:;.JS;=;%
|
|
11
|
+
node "%~dp0\..\typescript\bin\tsserver" %*
|
|
12
|
+
)
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
#!/usr/bin/env pwsh
|
|
2
|
+
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
|
3
|
+
|
|
4
|
+
$exe=""
|
|
5
|
+
$pathsep=":"
|
|
6
|
+
$env_node_path=$env:NODE_PATH
|
|
7
|
+
$new_node_path="D:\Projects\use-route\node_modules\.pnpm\typescript@5.9.3\node_modules\typescript\bin\node_modules;D:\Projects\use-route\node_modules\.pnpm\typescript@5.9.3\node_modules\typescript\node_modules;D:\Projects\use-route\node_modules\.pnpm\typescript@5.9.3\node_modules;D:\Projects\use-route\node_modules\.pnpm\node_modules"
|
|
8
|
+
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
|
9
|
+
# Fix case when both the Windows and Linux builds of Node
|
|
10
|
+
# are installed in the same directory
|
|
11
|
+
$exe=".exe"
|
|
12
|
+
$pathsep=";"
|
|
13
|
+
} else {
|
|
14
|
+
$new_node_path="/proc/cygdrive/d/Projects/use-route/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/node_modules:/proc/cygdrive/d/Projects/use-route/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/proc/cygdrive/d/Projects/use-route/node_modules/.pnpm/typescript@5.9.3/node_modules:/proc/cygdrive/d/Projects/use-route/node_modules/.pnpm/node_modules"
|
|
15
|
+
}
|
|
16
|
+
if ([string]::IsNullOrEmpty($env_node_path)) {
|
|
17
|
+
$env:NODE_PATH=$new_node_path
|
|
18
|
+
} else {
|
|
19
|
+
$env:NODE_PATH="$new_node_path$pathsep$env_node_path"
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
$ret=0
|
|
23
|
+
if (Test-Path "$basedir/node$exe") {
|
|
24
|
+
# Support pipeline input
|
|
25
|
+
if ($MyInvocation.ExpectingInput) {
|
|
26
|
+
$input | & "$basedir/node$exe" "$basedir/../typescript/bin/tsserver" $args
|
|
27
|
+
} else {
|
|
28
|
+
& "$basedir/node$exe" "$basedir/../typescript/bin/tsserver" $args
|
|
29
|
+
}
|
|
30
|
+
$ret=$LASTEXITCODE
|
|
31
|
+
} else {
|
|
32
|
+
# Support pipeline input
|
|
33
|
+
if ($MyInvocation.ExpectingInput) {
|
|
34
|
+
$input | & "node$exe" "$basedir/../typescript/bin/tsserver" $args
|
|
35
|
+
} else {
|
|
36
|
+
& "node$exe" "$basedir/../typescript/bin/tsserver" $args
|
|
37
|
+
}
|
|
38
|
+
$ret=$LASTEXITCODE
|
|
39
|
+
}
|
|
40
|
+
$env:NODE_PATH=$env_node_path
|
|
41
|
+
exit $ret
|
|
@@ -10,9 +10,9 @@ case `uname` in
|
|
|
10
10
|
esac
|
|
11
11
|
|
|
12
12
|
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/
|
|
13
|
+
export NODE_PATH="/proc/cygdrive/d/Projects/use-route/node_modules/.pnpm/vite@7.3.1/node_modules/vite/bin/node_modules:/proc/cygdrive/d/Projects/use-route/node_modules/.pnpm/vite@7.3.1/node_modules/vite/node_modules:/proc/cygdrive/d/Projects/use-route/node_modules/.pnpm/vite@7.3.1/node_modules:/proc/cygdrive/d/Projects/use-route/node_modules/.pnpm/node_modules"
|
|
14
14
|
else
|
|
15
|
-
export NODE_PATH="/
|
|
15
|
+
export NODE_PATH="/proc/cygdrive/d/Projects/use-route/node_modules/.pnpm/vite@7.3.1/node_modules/vite/bin/node_modules:/proc/cygdrive/d/Projects/use-route/node_modules/.pnpm/vite@7.3.1/node_modules/vite/node_modules:/proc/cygdrive/d/Projects/use-route/node_modules/.pnpm/vite@7.3.1/node_modules:/proc/cygdrive/d/Projects/use-route/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" "$@"
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
@SETLOCAL
|
|
2
|
+
@IF NOT DEFINED NODE_PATH (
|
|
3
|
+
@SET "NODE_PATH=D:\Projects\use-route\node_modules\.pnpm\vite@7.3.1\node_modules\vite\bin\node_modules;D:\Projects\use-route\node_modules\.pnpm\vite@7.3.1\node_modules\vite\node_modules;D:\Projects\use-route\node_modules\.pnpm\vite@7.3.1\node_modules;D:\Projects\use-route\node_modules\.pnpm\node_modules"
|
|
4
|
+
) ELSE (
|
|
5
|
+
@SET "NODE_PATH=D:\Projects\use-route\node_modules\.pnpm\vite@7.3.1\node_modules\vite\bin\node_modules;D:\Projects\use-route\node_modules\.pnpm\vite@7.3.1\node_modules\vite\node_modules;D:\Projects\use-route\node_modules\.pnpm\vite@7.3.1\node_modules;D:\Projects\use-route\node_modules\.pnpm\node_modules;%NODE_PATH%"
|
|
6
|
+
)
|
|
7
|
+
@IF EXIST "%~dp0\node.exe" (
|
|
8
|
+
"%~dp0\node.exe" "%~dp0\..\vite\bin\vite.js" %*
|
|
9
|
+
) ELSE (
|
|
10
|
+
@SET PATHEXT=%PATHEXT:;.JS;=;%
|
|
11
|
+
node "%~dp0\..\vite\bin\vite.js" %*
|
|
12
|
+
)
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
#!/usr/bin/env pwsh
|
|
2
|
+
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
|
3
|
+
|
|
4
|
+
$exe=""
|
|
5
|
+
$pathsep=":"
|
|
6
|
+
$env_node_path=$env:NODE_PATH
|
|
7
|
+
$new_node_path="D:\Projects\use-route\node_modules\.pnpm\vite@7.3.1\node_modules\vite\bin\node_modules;D:\Projects\use-route\node_modules\.pnpm\vite@7.3.1\node_modules\vite\node_modules;D:\Projects\use-route\node_modules\.pnpm\vite@7.3.1\node_modules;D:\Projects\use-route\node_modules\.pnpm\node_modules"
|
|
8
|
+
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
|
9
|
+
# Fix case when both the Windows and Linux builds of Node
|
|
10
|
+
# are installed in the same directory
|
|
11
|
+
$exe=".exe"
|
|
12
|
+
$pathsep=";"
|
|
13
|
+
} else {
|
|
14
|
+
$new_node_path="/proc/cygdrive/d/Projects/use-route/node_modules/.pnpm/vite@7.3.1/node_modules/vite/bin/node_modules:/proc/cygdrive/d/Projects/use-route/node_modules/.pnpm/vite@7.3.1/node_modules/vite/node_modules:/proc/cygdrive/d/Projects/use-route/node_modules/.pnpm/vite@7.3.1/node_modules:/proc/cygdrive/d/Projects/use-route/node_modules/.pnpm/node_modules"
|
|
15
|
+
}
|
|
16
|
+
if ([string]::IsNullOrEmpty($env_node_path)) {
|
|
17
|
+
$env:NODE_PATH=$new_node_path
|
|
18
|
+
} else {
|
|
19
|
+
$env:NODE_PATH="$new_node_path$pathsep$env_node_path"
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
$ret=0
|
|
23
|
+
if (Test-Path "$basedir/node$exe") {
|
|
24
|
+
# Support pipeline input
|
|
25
|
+
if ($MyInvocation.ExpectingInput) {
|
|
26
|
+
$input | & "$basedir/node$exe" "$basedir/../vite/bin/vite.js" $args
|
|
27
|
+
} else {
|
|
28
|
+
& "$basedir/node$exe" "$basedir/../vite/bin/vite.js" $args
|
|
29
|
+
}
|
|
30
|
+
$ret=$LASTEXITCODE
|
|
31
|
+
} else {
|
|
32
|
+
# Support pipeline input
|
|
33
|
+
if ($MyInvocation.ExpectingInput) {
|
|
34
|
+
$input | & "node$exe" "$basedir/../vite/bin/vite.js" $args
|
|
35
|
+
} else {
|
|
36
|
+
& "node$exe" "$basedir/../vite/bin/vite.js" $args
|
|
37
|
+
}
|
|
38
|
+
$ret=$LASTEXITCODE
|
|
39
|
+
}
|
|
40
|
+
$env:NODE_PATH=$env_node_path
|
|
41
|
+
exit $ret
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__toESM,
|
|
3
3
|
require_react
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-3SNVYWQ3.js";
|
|
5
5
|
|
|
6
|
-
// ../node_modules/.pnpm/@budarin+use-route@1.2
|
|
6
|
+
// ../node_modules/.pnpm/@budarin+use-route@1.3.2/node_modules/@budarin/use-route/dist/types.js
|
|
7
7
|
var routerConfig = {
|
|
8
8
|
urlCacheLimit: 50
|
|
9
9
|
};
|
|
@@ -17,7 +17,7 @@ function getLogger() {
|
|
|
17
17
|
return routerConfig.logger ?? console;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
// ../node_modules/.pnpm/@budarin+use-route@1.2
|
|
20
|
+
// ../node_modules/.pnpm/@budarin+use-route@1.3.2/node_modules/@budarin/use-route/dist/index.js
|
|
21
21
|
var import_react = __toESM(require_react());
|
|
22
22
|
var isBrowser = typeof window !== "undefined";
|
|
23
23
|
function isValidUrl(url) {
|
|
@@ -88,60 +88,64 @@ var DEFAULT_SNAPSHOT = {
|
|
|
88
88
|
entriesKeys: [],
|
|
89
89
|
urlStr: "/",
|
|
90
90
|
pathname: "/",
|
|
91
|
-
searchParams: new URLSearchParams()
|
|
91
|
+
searchParams: new URLSearchParams(),
|
|
92
|
+
state: void 0
|
|
92
93
|
};
|
|
93
94
|
function getNavigation() {
|
|
94
95
|
return typeof window !== "undefined" && "navigation" in window ? window.navigation : void 0;
|
|
95
96
|
}
|
|
96
97
|
function computeNavigationSnapshot(nav) {
|
|
97
|
-
var _a, _b;
|
|
98
98
|
if (!nav)
|
|
99
99
|
return DEFAULT_SNAPSHOT;
|
|
100
|
-
const
|
|
100
|
+
const entry = nav.currentEntry;
|
|
101
|
+
const urlStr = entry?.url ?? (isBrowser ? window.location.href : "/");
|
|
101
102
|
const parsed = getCachedParsedUrl(urlStr);
|
|
103
|
+
const state = entry && "getState" in entry && typeof entry.getState === "function" ? entry.getState() : void 0;
|
|
102
104
|
return {
|
|
103
|
-
currentKey:
|
|
105
|
+
currentKey: entry?.key ?? "",
|
|
104
106
|
canGoBackFlag: !!nav.canGoBack,
|
|
105
107
|
canGoForwardFlag: !!nav.canGoForward,
|
|
106
108
|
entriesKeys: nav.entries().map((e) => e.key) ?? [],
|
|
107
109
|
urlStr,
|
|
108
110
|
pathname: parsed.pathname,
|
|
109
|
-
searchParams: parsed.searchParams
|
|
111
|
+
searchParams: parsed.searchParams,
|
|
112
|
+
state
|
|
110
113
|
};
|
|
111
114
|
}
|
|
112
115
|
var sharedSnapshot = null;
|
|
113
116
|
var storeCallbacks = /* @__PURE__ */ new Set();
|
|
114
117
|
var unsubscribeNavigation = null;
|
|
115
|
-
var unsubscribePopstate = null;
|
|
116
|
-
function invalidateSnapshotAndNotify() {
|
|
117
|
-
sharedSnapshot = null;
|
|
118
|
-
noNavSnapshot = null;
|
|
119
|
-
noNavSnapshotUrl = null;
|
|
120
|
-
storeCallbacks.forEach((cb) => cb());
|
|
121
|
-
}
|
|
122
118
|
function subscribeToNavigation(callback) {
|
|
123
119
|
storeCallbacks.add(callback);
|
|
124
120
|
if (storeCallbacks.size === 1) {
|
|
125
121
|
const nav = getNavigation();
|
|
126
122
|
if (nav) {
|
|
123
|
+
const interceptListener = (event) => {
|
|
124
|
+
const navEvent = event;
|
|
125
|
+
if (!navEvent.canIntercept || !isBrowser)
|
|
126
|
+
return;
|
|
127
|
+
try {
|
|
128
|
+
const destUrl = new URL(navEvent.destination.url);
|
|
129
|
+
if (destUrl.origin !== window.location.origin)
|
|
130
|
+
return;
|
|
131
|
+
navEvent.intercept({ handler() {
|
|
132
|
+
} });
|
|
133
|
+
} catch {
|
|
134
|
+
}
|
|
135
|
+
};
|
|
127
136
|
const listener = () => {
|
|
128
137
|
sharedSnapshot = computeNavigationSnapshot(nav);
|
|
129
138
|
storeCallbacks.forEach((cb) => cb());
|
|
130
139
|
};
|
|
140
|
+
nav.addEventListener("navigate", interceptListener);
|
|
131
141
|
nav.addEventListener("navigate", listener);
|
|
132
142
|
nav.addEventListener("currententrychange", listener);
|
|
133
143
|
unsubscribeNavigation = () => {
|
|
144
|
+
nav.removeEventListener("navigate", interceptListener);
|
|
134
145
|
nav.removeEventListener("navigate", listener);
|
|
135
146
|
nav.removeEventListener("currententrychange", listener);
|
|
136
147
|
};
|
|
137
148
|
}
|
|
138
|
-
if (isBrowser && typeof window.addEventListener === "function") {
|
|
139
|
-
const popListener = () => invalidateSnapshotAndNotify();
|
|
140
|
-
window.addEventListener("popstate", popListener);
|
|
141
|
-
unsubscribePopstate = () => {
|
|
142
|
-
window.removeEventListener("popstate", popListener);
|
|
143
|
-
};
|
|
144
|
-
}
|
|
145
149
|
}
|
|
146
150
|
return () => {
|
|
147
151
|
storeCallbacks.delete(callback);
|
|
@@ -150,10 +154,6 @@ function subscribeToNavigation(callback) {
|
|
|
150
154
|
unsubscribeNavigation();
|
|
151
155
|
unsubscribeNavigation = null;
|
|
152
156
|
}
|
|
153
|
-
if (unsubscribePopstate) {
|
|
154
|
-
unsubscribePopstate();
|
|
155
|
-
unsubscribePopstate = null;
|
|
156
|
-
}
|
|
157
157
|
sharedSnapshot = null;
|
|
158
158
|
noNavSnapshot = null;
|
|
159
159
|
noNavSnapshotUrl = null;
|
|
@@ -165,29 +165,12 @@ var noNavSnapshotUrl = null;
|
|
|
165
165
|
function getNavigationSnapshot() {
|
|
166
166
|
if (sharedSnapshot !== null)
|
|
167
167
|
return sharedSnapshot;
|
|
168
|
-
if (isBrowser) {
|
|
169
|
-
const urlStr2 = window.location.href;
|
|
170
|
-
const parsed2 = getCachedParsedUrl(urlStr2);
|
|
171
|
-
const nav2 = getNavigation();
|
|
172
|
-
sharedSnapshot = nav2 ? {
|
|
173
|
-
...computeNavigationSnapshot(nav2),
|
|
174
|
-
urlStr: urlStr2,
|
|
175
|
-
pathname: parsed2.pathname,
|
|
176
|
-
searchParams: parsed2.searchParams
|
|
177
|
-
} : {
|
|
178
|
-
...DEFAULT_SNAPSHOT,
|
|
179
|
-
urlStr: urlStr2,
|
|
180
|
-
pathname: parsed2.pathname,
|
|
181
|
-
searchParams: parsed2.searchParams
|
|
182
|
-
};
|
|
183
|
-
return sharedSnapshot;
|
|
184
|
-
}
|
|
185
168
|
const nav = getNavigation();
|
|
186
169
|
if (nav) {
|
|
187
170
|
sharedSnapshot = computeNavigationSnapshot(nav);
|
|
188
171
|
return sharedSnapshot;
|
|
189
172
|
}
|
|
190
|
-
const urlStr = getRouterConfig().initialLocation ?? "/";
|
|
173
|
+
const urlStr = isBrowser ? window.location.href : getRouterConfig().initialLocation ?? "/";
|
|
191
174
|
if (noNavSnapshot !== null && noNavSnapshotUrl === urlStr)
|
|
192
175
|
return noNavSnapshot;
|
|
193
176
|
const parsed = getCachedParsedUrl(urlStr);
|
|
@@ -196,7 +179,8 @@ function getNavigationSnapshot() {
|
|
|
196
179
|
...DEFAULT_SNAPSHOT,
|
|
197
180
|
urlStr,
|
|
198
181
|
pathname: parsed.pathname,
|
|
199
|
-
searchParams: parsed.searchParams
|
|
182
|
+
searchParams: parsed.searchParams,
|
|
183
|
+
state: isBrowser ? window.history.state : void 0
|
|
200
184
|
};
|
|
201
185
|
return noNavSnapshot;
|
|
202
186
|
}
|
|
@@ -223,7 +207,7 @@ function getCompiledPattern(pattern) {
|
|
|
223
207
|
}
|
|
224
208
|
function parseParamsFromCompiled(compiled, pathname) {
|
|
225
209
|
const match = compiled.exec({ pathname });
|
|
226
|
-
const groups =
|
|
210
|
+
const groups = match?.pathname.groups ?? {};
|
|
227
211
|
return Object.fromEntries(Object.entries(groups).filter(([key]) => !/^\d+$/.test(key)));
|
|
228
212
|
}
|
|
229
213
|
function clearRouterCaches() {
|
|
@@ -247,7 +231,7 @@ function useRoute(patternOrOptions, optionsParam) {
|
|
|
247
231
|
const navigation = getNavigation();
|
|
248
232
|
const rawState = (0, import_react.useSyncExternalStore)(subscribeToNavigation, getNavigationSnapshot, () => DEFAULT_SNAPSHOT);
|
|
249
233
|
const keyToIndexMap = getKeyToIndexMap(rawState.entriesKeys);
|
|
250
|
-
const effectiveBase = combineBases(getRouterConfig().base, options
|
|
234
|
+
const effectiveBase = combineBases(getRouterConfig().base, options?.section);
|
|
251
235
|
const routerState = (0, import_react.useMemo)(() => {
|
|
252
236
|
const { urlStr, pathname: rawPathname, searchParams } = rawState;
|
|
253
237
|
const pathname = pathnameWithoutBase(rawPathname, effectiveBase);
|
|
@@ -272,6 +256,7 @@ function useRoute(patternOrOptions, optionsParam) {
|
|
|
272
256
|
searchParams,
|
|
273
257
|
params,
|
|
274
258
|
historyIndex,
|
|
259
|
+
state: rawState.state,
|
|
275
260
|
matched,
|
|
276
261
|
_entriesKeys: rawState.entriesKeys
|
|
277
262
|
};
|
|
@@ -281,6 +266,7 @@ function useRoute(patternOrOptions, optionsParam) {
|
|
|
281
266
|
rawState.urlStr,
|
|
282
267
|
rawState.pathname,
|
|
283
268
|
rawState.searchParams,
|
|
269
|
+
rawState.state,
|
|
284
270
|
pattern,
|
|
285
271
|
effectiveBase
|
|
286
272
|
]);
|
|
@@ -301,25 +287,6 @@ function useRoute(patternOrOptions, optionsParam) {
|
|
|
301
287
|
getLogger().warn("[useRoute] Invalid URL rejected:", targetUrl);
|
|
302
288
|
return;
|
|
303
289
|
}
|
|
304
|
-
if (isBrowser && typeof window.history !== "undefined") {
|
|
305
|
-
const origin = window.location.origin;
|
|
306
|
-
const fullUrl = targetUrl.startsWith("http://") || targetUrl.startsWith("https://") ? targetUrl : origin + (targetUrl.startsWith("/") ? targetUrl : "/" + targetUrl);
|
|
307
|
-
try {
|
|
308
|
-
const urlParsed = new URL(fullUrl);
|
|
309
|
-
if (urlParsed.origin === origin) {
|
|
310
|
-
const useReplace = navOptions.history === "replace" || navOptions.history !== "push" && getRouterConfig().defaultHistory === "replace";
|
|
311
|
-
const state = navOptions.state ?? null;
|
|
312
|
-
if (useReplace) {
|
|
313
|
-
window.history.replaceState(state, "", fullUrl);
|
|
314
|
-
} else {
|
|
315
|
-
window.history.pushState(state, "", fullUrl);
|
|
316
|
-
}
|
|
317
|
-
invalidateSnapshotAndNotify();
|
|
318
|
-
return;
|
|
319
|
-
}
|
|
320
|
-
} catch {
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
290
|
if (!navigation) {
|
|
324
291
|
return;
|
|
325
292
|
}
|
|
@@ -336,22 +303,16 @@ function useRoute(patternOrOptions, optionsParam) {
|
|
|
336
303
|
}, [navigation, effectiveBase]);
|
|
337
304
|
const back = (0, import_react.useCallback)(() => {
|
|
338
305
|
try {
|
|
339
|
-
if (
|
|
340
|
-
window.history.back();
|
|
341
|
-
} else if (navigation) {
|
|
306
|
+
if (navigation)
|
|
342
307
|
navigation.back();
|
|
343
|
-
}
|
|
344
308
|
} catch (error) {
|
|
345
309
|
getLogger().error("[useRoute] Back navigation error:", error);
|
|
346
310
|
}
|
|
347
311
|
}, [navigation]);
|
|
348
312
|
const forward = (0, import_react.useCallback)(() => {
|
|
349
313
|
try {
|
|
350
|
-
if (
|
|
351
|
-
window.history.forward();
|
|
352
|
-
} else if (navigation) {
|
|
314
|
+
if (navigation)
|
|
353
315
|
navigation.forward();
|
|
354
|
-
}
|
|
355
316
|
} catch (error) {
|
|
356
317
|
getLogger().error("[useRoute] Forward navigation error:", error);
|
|
357
318
|
}
|
|
@@ -410,12 +371,30 @@ function useRoute(patternOrOptions, optionsParam) {
|
|
|
410
371
|
}
|
|
411
372
|
}, [navigation, routerState._entriesKeys, routerState.historyIndex]);
|
|
412
373
|
const replace = (0, import_react.useCallback)((to, options2) => navigate(to, { ...options2, history: "replace" }), [navigate]);
|
|
374
|
+
const updateState = (0, import_react.useCallback)((state) => {
|
|
375
|
+
try {
|
|
376
|
+
if (navigation) {
|
|
377
|
+
navigation.updateCurrentEntry({ state });
|
|
378
|
+
sharedSnapshot = computeNavigationSnapshot(navigation);
|
|
379
|
+
storeCallbacks.forEach((cb) => cb());
|
|
380
|
+
} else if (isBrowser) {
|
|
381
|
+
window.history.replaceState(state, "", window.location.href);
|
|
382
|
+
if (noNavSnapshot !== null) {
|
|
383
|
+
noNavSnapshot = { ...noNavSnapshot, state };
|
|
384
|
+
}
|
|
385
|
+
storeCallbacks.forEach((cb) => cb());
|
|
386
|
+
}
|
|
387
|
+
} catch (error) {
|
|
388
|
+
getLogger().error("[useRoute] updateState error:", error);
|
|
389
|
+
}
|
|
390
|
+
}, [navigation]);
|
|
413
391
|
return (0, import_react.useMemo)(() => ({
|
|
414
392
|
navigate,
|
|
415
393
|
back,
|
|
416
394
|
forward,
|
|
417
395
|
go,
|
|
418
396
|
replace,
|
|
397
|
+
updateState,
|
|
419
398
|
canGoBack,
|
|
420
399
|
canGoForward,
|
|
421
400
|
location: routerState.location,
|
|
@@ -423,6 +402,7 @@ function useRoute(patternOrOptions, optionsParam) {
|
|
|
423
402
|
searchParams: routerState.searchParams,
|
|
424
403
|
params: routerState.params,
|
|
425
404
|
historyIndex: routerState.historyIndex,
|
|
405
|
+
state: routerState.state,
|
|
426
406
|
matched: routerState.matched
|
|
427
407
|
}), [
|
|
428
408
|
navigate,
|
|
@@ -430,6 +410,7 @@ function useRoute(patternOrOptions, optionsParam) {
|
|
|
430
410
|
forward,
|
|
431
411
|
go,
|
|
432
412
|
replace,
|
|
413
|
+
updateState,
|
|
433
414
|
canGoBack,
|
|
434
415
|
canGoForward,
|
|
435
416
|
routerState.location,
|
|
@@ -437,6 +418,7 @@ function useRoute(patternOrOptions, optionsParam) {
|
|
|
437
418
|
routerState.searchParams,
|
|
438
419
|
routerState.params,
|
|
439
420
|
routerState.historyIndex,
|
|
421
|
+
routerState.state,
|
|
440
422
|
routerState.matched
|
|
441
423
|
]);
|
|
442
424
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../../../node_modules/.pnpm/@budarin+use-route@1.2
|
|
3
|
+
"sources": ["../../../../node_modules/.pnpm/@budarin+use-route@1.3.2/node_modules/@budarin/use-route/src/types.ts", "../../../../node_modules/.pnpm/@budarin+use-route@1.3.2/node_modules/@budarin/use-route/src/index.ts"],
|
|
4
4
|
"sourcesContent": [null, null],
|
|
5
|
-
"mappings": ";;;;;;
|
|
6
|
-
"names": ["
|
|
5
|
+
"mappings": ";;;;;;AAwHA,IAAI,eAA6B;EAC7B,eAAe;;AAOb,SAAU,gBAAgB,QAA6B;AACzD,iBAAe,EAAE,GAAG,cAAc,GAAG,OAAM;AAC/C;AAKM,SAAU,kBAAe;AAC3B,SAAO;AACX;AAKM,SAAU,YAAS;AACrB,SAAO,aAAa,UAAU;AAClC;;;AC/HA,mBAA2D;AAG3D,IAAM,YAAY,OAAO,WAAW;AAGpC,SAAS,WAAW,KAAc;AAC9B,MAAI,CAAC,OAAO,OAAO,QAAQ;AAAU,WAAO;AAG5C,MAAI,IAAI,WAAW,GAAG,KAAK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