@plitzi/sdk-navigation 0.30.19 → 0.31.1

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 CHANGED
@@ -1,5 +1,24 @@
1
1
  # @plitzi/sdk-navigation
2
2
 
3
+ ## 0.31.1
4
+
5
+ ### Patch Changes
6
+
7
+ - v0.31.1
8
+ - Updated dependencies
9
+ - @plitzi/sdk-shared@0.31.1
10
+
11
+ ## 0.31.0
12
+
13
+ ### Minor Changes
14
+
15
+ - v0.31.0
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies
20
+ - @plitzi/sdk-shared@0.31.0
21
+
3
22
  ## 0.30.19
4
23
 
5
24
  ### Patch Changes
@@ -15,7 +15,7 @@ export type Path = {
15
15
  declare function getPageFullPath(pages: Record<string, Element>, pageFolders: PageFolder[], pageId: string, asString: true): string;
16
16
  declare function getPageFullPath(pages: Record<string, Element>, pageFolders: PageFolder[], pageId: string, asString?: false): Record<string, string>;
17
17
  declare const isPageAuthored: (accessLevel?: NavigationAccessLevel, authenticated?: boolean, previewMode?: boolean) => boolean;
18
- declare const getPaths: (pages: Record<string, Element>, pageFolders: PageFolder[], authenticated?: boolean, basePath?: string, previewMode?: boolean, strictMode?: boolean) => Path[];
18
+ declare const getPaths: (pages?: Record<string, Element>, pageFolders?: PageFolder[], authenticated?: boolean, basePath?: string, previewMode?: boolean, strictMode?: boolean) => Path[];
19
19
  declare const matchRoutePath: (paths: Path[], pathName: string, authenticated: boolean) => {
20
20
  action: {
21
21
  type: "authenticated" | "accessDenied" | "redirect" | "notFound" | "normal";
@@ -35,7 +35,7 @@ function i(t, i, a, o = !1) {
35
35
  [`/${a}`]: a
36
36
  };
37
37
  }
38
- var a = (e, t, n = !0) => !e || !n || t === void 0 || t && e === "authenticated" || !t && e === "public" ? !0 : t && e === "public" ? !1 : !e, o = (e, t, n, r = "", o = !0, s = !0) => {
38
+ var a = (e, t, n = !0) => !e || !n || t === void 0 || t && e === "authenticated" || !t && e === "public" ? !0 : t && e === "public" ? !1 : !e, o = (e = {}, t = [], n, r = "", o = !0, s = !0) => {
39
39
  let c = Object.keys(e).reduce((s, c) => {
40
40
  let { attributes: { accessLevel: l, enabled: u = !0, unauthorizedBehaviour: d } } = e[c], { attributes: { unauthorizedPageRedirect: f } } = e[c];
41
41
  if (!u && o) return s;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plitzi/sdk-navigation",
3
- "version": "0.30.19",
3
+ "version": "0.31.1",
4
4
  "license": "AGPL-3.0",
5
5
  "files": [
6
6
  "dist"
@@ -42,20 +42,20 @@
42
42
  "sideEffects": false,
43
43
  "devDependencies": {
44
44
  "eslint": "^9.39.4",
45
- "react": "^19.2.5",
46
- "react-dom": "^19.2.5",
45
+ "react": "^19.2.6",
46
+ "react-dom": "^19.2.6",
47
47
  "typescript": "^6.0.3",
48
- "vite": "^8.0.10",
49
- "vitest": "^4.1.5"
48
+ "vite": "^8.0.14",
49
+ "vitest": "^4.1.7"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "react": "^19",
53
53
  "react-dom": "^19"
54
54
  },
55
55
  "dependencies": {
56
- "@plitzi/plitzi-ui": "^1.6.2",
57
- "@plitzi/sdk-shared": "0.30.19",
58
- "react-router": "^7.14.2",
59
- "react-router-dom": "^7.14.2"
56
+ "@plitzi/plitzi-ui": "^1.6.9",
57
+ "@plitzi/sdk-shared": "0.31.1",
58
+ "react-router": "^7.15.1",
59
+ "react-router-dom": "^7.15.1"
60
60
  }
61
61
  }