@plitzi/sdk-navigation 0.39.1 → 0.39.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 +15 -0
- package/dist/hooks/useNavigation.mjs +1 -2
- package/dist/index.mjs +3 -3
- package/package.json +12 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @plitzi/sdk-navigation
|
|
2
2
|
|
|
3
|
+
## 0.39.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @plitzi/sdk-shared@0.39.3
|
|
8
|
+
|
|
9
|
+
## 0.39.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- fad1264: Released with every `@plitzi` package at this version. What changed in each, and what to do when you upgrade, is in
|
|
14
|
+
`@plitzi/cli`'s `CHANGELOG.md`: one copy of the notes, not one per package.
|
|
15
|
+
- Updated dependencies [fad1264]
|
|
16
|
+
- @plitzi/sdk-shared@0.39.2
|
|
17
|
+
|
|
3
18
|
## 0.39.1
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { get as e } from "@plitzi/plitzi-ui/helpers";
|
|
2
2
|
import { useMemo as t } from "react";
|
|
3
3
|
import { ParamsFromURL as n } from "@plitzi/sdk-shared/helpers";
|
|
4
|
-
|
|
4
|
+
// src/hooks/useNavigation.ts
|
|
5
5
|
var r = ({ server: r, routerLocation: i }) => {
|
|
6
6
|
let a = t(() => typeof window < "u" ? window.location : e(r, "location", { pathname: "/" }), [r]), o = t(() => {
|
|
7
7
|
if (!i) return a;
|
|
@@ -29,5 +29,4 @@ var r = ({ server: r, routerLocation: i }) => {
|
|
|
29
29
|
o
|
|
30
30
|
]);
|
|
31
31
|
};
|
|
32
|
-
//#endregion
|
|
33
32
|
export { r as default };
|
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import s from "./
|
|
3
|
-
export {
|
|
1
|
+
import e from "./hooks/useNavigation.mjs";
|
|
2
|
+
import { getPageFullPath as t, getPaths as n, getRouteParams as r, isPageAuthored as i, matchPath as a, matchRoutePath as o, notFoundPageFor as s } from "./NavigationHelper.mjs";
|
|
3
|
+
export { t as getPageFullPath, n as getPaths, r as getRouteParams, i as isPageAuthored, a as matchPath, o as matchRoutePath, s as notFoundPageFor, e as useNavigation };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plitzi/sdk-navigation",
|
|
3
|
-
"version": "0.39.
|
|
3
|
+
"version": "0.39.3",
|
|
4
4
|
"license": "AGPL-3.0",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -9,17 +9,19 @@
|
|
|
9
9
|
".": {
|
|
10
10
|
"@plitzi/source": "./src/index.ts",
|
|
11
11
|
"types": "./dist/index.d.ts",
|
|
12
|
-
"import": "./dist/index.mjs"
|
|
12
|
+
"import": "./dist/index.mjs",
|
|
13
|
+
"default": "./dist/index.mjs"
|
|
13
14
|
},
|
|
14
15
|
"./*": {
|
|
15
16
|
"@plitzi/source": "./src/*/index.ts",
|
|
16
17
|
"types": "./dist/*/index.d.ts",
|
|
17
|
-
"import": "./dist/*/index.mjs"
|
|
18
|
+
"import": "./dist/*/index.mjs",
|
|
19
|
+
"default": "./dist/*/index.mjs"
|
|
18
20
|
}
|
|
19
21
|
},
|
|
20
22
|
"scripts": {
|
|
21
|
-
"lint": "eslint ./src",
|
|
22
|
-
"typecheck": "tsc -p tsconfig.app.json --noEmit",
|
|
23
|
+
"lint": "eslint --cache --cache-location .eslintcache --cache-strategy content ./src",
|
|
24
|
+
"typecheck": "tsc -p tsconfig.app.json --noEmit --incremental --tsBuildInfoFile .tsbuildinfo/app.tsbuildinfo",
|
|
23
25
|
"test": "vitest run",
|
|
24
26
|
"test:coverage": "vitest --coverage",
|
|
25
27
|
"test:watch": "vitest",
|
|
@@ -34,17 +36,17 @@
|
|
|
34
36
|
"eslint": "^9.39.5",
|
|
35
37
|
"react": "^19.3.1",
|
|
36
38
|
"react-dom": "^19.3.1",
|
|
37
|
-
"react-router-dom": "^7.18.
|
|
39
|
+
"react-router-dom": "^7.18.5",
|
|
38
40
|
"typescript": "^6.0.3",
|
|
39
|
-
"vite": "^8.3.
|
|
40
|
-
"vitest": "^5.0
|
|
41
|
+
"vite": "^8.3.7",
|
|
42
|
+
"vitest": "^5.1.0"
|
|
41
43
|
},
|
|
42
44
|
"peerDependencies": {
|
|
43
45
|
"react": "^19",
|
|
44
46
|
"react-dom": "^19"
|
|
45
47
|
},
|
|
46
48
|
"dependencies": {
|
|
47
|
-
"@plitzi/plitzi-ui": "^1.6.
|
|
48
|
-
"@plitzi/sdk-shared": "0.39.
|
|
49
|
+
"@plitzi/plitzi-ui": "^1.6.38",
|
|
50
|
+
"@plitzi/sdk-shared": "0.39.3"
|
|
49
51
|
}
|
|
50
52
|
}
|