@idealyst/navigation 1.2.39 → 1.2.40

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": "@idealyst/navigation",
3
- "version": "1.2.39",
3
+ "version": "1.2.40",
4
4
  "description": "Cross-platform navigation library for React and React Native",
5
5
  "readme": "README.md",
6
6
  "main": "src/index.ts",
@@ -45,9 +45,9 @@
45
45
  },
46
46
  "peerDependencies": {
47
47
  "@idealyst/camera": "^1.2.30",
48
- "@idealyst/components": "^1.2.39",
48
+ "@idealyst/components": "^1.2.40",
49
49
  "@idealyst/microphone": "^1.2.30",
50
- "@idealyst/theme": "^1.2.39",
50
+ "@idealyst/theme": "^1.2.40",
51
51
  "@react-navigation/bottom-tabs": ">=7.0.0",
52
52
  "@react-navigation/drawer": ">=7.0.0",
53
53
  "@react-navigation/native": ">=7.0.0",
@@ -72,14 +72,15 @@
72
72
  },
73
73
  "devDependencies": {
74
74
  "@idealyst/animate": "^1.2.38",
75
+ "@idealyst/blur": "^1.2.40",
75
76
  "@idealyst/camera": "^1.2.30",
76
- "@idealyst/components": "^1.2.39",
77
+ "@idealyst/components": "^1.2.40",
77
78
  "@idealyst/datagrid": "^1.2.30",
78
79
  "@idealyst/datepicker": "^1.2.30",
79
80
  "@idealyst/lottie": "^1.2.38",
80
- "@idealyst/markdown": "^1.2.39",
81
+ "@idealyst/markdown": "^1.2.40",
81
82
  "@idealyst/microphone": "^1.2.30",
82
- "@idealyst/theme": "^1.2.39",
83
+ "@idealyst/theme": "^1.2.40",
83
84
  "@types/react": "^19.1.8",
84
85
  "@types/react-dom": "^19.1.6",
85
86
  "react": "^19.1.0",
@@ -293,10 +293,15 @@ export const NavigatorProvider = ({
293
293
  return isValidRoute(parentPath, validPatterns);
294
294
  };
295
295
 
296
+ // Find the nearest valid parent route and navigate to it
296
297
  const goBack = () => {
297
- const parentPath = getParentPath(location.pathname);
298
- if (parentPath && isValidRoute(parentPath, validPatterns)) {
299
- reactRouterNavigate(parentPath);
298
+ let parentPath = getParentPath(location.pathname);
299
+ while (parentPath) {
300
+ if (parentPath && isValidRoute(parentPath, validPatterns)) {
301
+ reactRouterNavigate(parentPath);
302
+ break;
303
+ }
304
+ parentPath = getParentPath(parentPath);
300
305
  }
301
306
  };
302
307
 
@@ -6,6 +6,7 @@ import { CameraExamples } from '@idealyst/camera/examples';
6
6
  import { MicrophoneExamples } from '@idealyst/microphone/examples';
7
7
  import { AnimateExamples } from '@idealyst/animate/examples';
8
8
  import { LottieExamples } from '@idealyst/lottie/examples';
9
+ import { BlurViewExamples } from '@idealyst/blur/examples';
9
10
  import { MarkdownEditorExamples } from '@idealyst/markdown/examples';
10
11
  import { Text, View, Card, Screen, Icon, Button } from '@idealyst/components';
11
12
  import { NavigatorParam, RouteParam, NotFoundComponentProps } from '../routing';
@@ -341,6 +342,7 @@ const ExampleNavigationRouter: NavigatorParam = {
341
342
  { path: "datepicker", type: 'screen', component: DatePickerExamples, options: { title: "Date Picker" } },
342
343
  { path: "animate", type: 'screen', component: AnimateExamples, options: { title: "Animate" } },
343
344
  { path: "lottie", type: 'screen', component: LottieExamples, options: { title: "Lottie" } },
345
+ { path: "blur", type: 'screen', component: BlurViewExamples, options: { title: "Blur" } },
344
346
  { path: "markdown-editor", type: 'screen', component: MarkdownEditorExamples, options: { title: "Markdown Editor" } },
345
347
  { path: "theme-extension", type: 'screen', component: ThemeExtensionExamples, options: { title: "Theme Extension" } },
346
348
  ],