@idealyst/navigation 1.2.38 → 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.
|
|
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.
|
|
48
|
+
"@idealyst/components": "^1.2.40",
|
|
49
49
|
"@idealyst/microphone": "^1.2.30",
|
|
50
|
-
"@idealyst/theme": "^1.2.
|
|
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",
|
|
@@ -71,12 +71,16 @@
|
|
|
71
71
|
}
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
|
+
"@idealyst/animate": "^1.2.38",
|
|
75
|
+
"@idealyst/blur": "^1.2.40",
|
|
74
76
|
"@idealyst/camera": "^1.2.30",
|
|
75
|
-
"@idealyst/components": "^1.2.
|
|
77
|
+
"@idealyst/components": "^1.2.40",
|
|
76
78
|
"@idealyst/datagrid": "^1.2.30",
|
|
77
79
|
"@idealyst/datepicker": "^1.2.30",
|
|
80
|
+
"@idealyst/lottie": "^1.2.38",
|
|
81
|
+
"@idealyst/markdown": "^1.2.40",
|
|
78
82
|
"@idealyst/microphone": "^1.2.30",
|
|
79
|
-
"@idealyst/theme": "^1.2.
|
|
83
|
+
"@idealyst/theme": "^1.2.40",
|
|
80
84
|
"@types/react": "^19.1.8",
|
|
81
85
|
"@types/react-dom": "^19.1.6",
|
|
82
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
|
-
|
|
298
|
-
|
|
299
|
-
|
|
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
|
|
|
@@ -4,6 +4,10 @@ import { DataGridShowcase } from '@idealyst/datagrid/examples';
|
|
|
4
4
|
import { DatePickerExamples } from '@idealyst/datepicker/examples';
|
|
5
5
|
import { CameraExamples } from '@idealyst/camera/examples';
|
|
6
6
|
import { MicrophoneExamples } from '@idealyst/microphone/examples';
|
|
7
|
+
import { AnimateExamples } from '@idealyst/animate/examples';
|
|
8
|
+
import { LottieExamples } from '@idealyst/lottie/examples';
|
|
9
|
+
import { BlurViewExamples } from '@idealyst/blur/examples';
|
|
10
|
+
import { MarkdownEditorExamples } from '@idealyst/markdown/examples';
|
|
7
11
|
import { Text, View, Card, Screen, Icon, Button } from '@idealyst/components';
|
|
8
12
|
import { NavigatorParam, RouteParam, NotFoundComponentProps } from '../routing';
|
|
9
13
|
import { ExampleWebLayout } from './ExampleWebLayout';
|
|
@@ -336,6 +340,10 @@ const ExampleNavigationRouter: NavigatorParam = {
|
|
|
336
340
|
{ path: "microphone", type: 'screen', component: MicrophoneExamples, options: { title: "Microphone" } },
|
|
337
341
|
{ path: "datagrid", type: 'screen', component: DataGridShowcase, options: { title: "Data Grid" } },
|
|
338
342
|
{ path: "datepicker", type: 'screen', component: DatePickerExamples, options: { title: "Date Picker" } },
|
|
343
|
+
{ path: "animate", type: 'screen', component: AnimateExamples, options: { title: "Animate" } },
|
|
344
|
+
{ path: "lottie", type: 'screen', component: LottieExamples, options: { title: "Lottie" } },
|
|
345
|
+
{ path: "blur", type: 'screen', component: BlurViewExamples, options: { title: "Blur" } },
|
|
346
|
+
{ path: "markdown-editor", type: 'screen', component: MarkdownEditorExamples, options: { title: "Markdown Editor" } },
|
|
339
347
|
{ path: "theme-extension", type: 'screen', component: ThemeExtensionExamples, options: { title: "Theme Extension" } },
|
|
340
348
|
],
|
|
341
349
|
};
|
|
@@ -90,6 +90,19 @@ const componentGroups: ComponentGroup[] = [
|
|
|
90
90
|
{ label: 'Table', path: '/table', icon: 'table' },
|
|
91
91
|
],
|
|
92
92
|
},
|
|
93
|
+
{
|
|
94
|
+
title: 'Content',
|
|
95
|
+
items: [
|
|
96
|
+
{ label: 'Markdown Editor', path: '/markdown-editor', icon: 'text-box-edit' },
|
|
97
|
+
],
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
title: 'Animation',
|
|
101
|
+
items: [
|
|
102
|
+
{ label: 'Animate', path: '/animate', icon: 'animation' },
|
|
103
|
+
{ label: 'Lottie', path: '/lottie', icon: 'animation-play' },
|
|
104
|
+
],
|
|
105
|
+
},
|
|
93
106
|
{
|
|
94
107
|
title: 'Theme',
|
|
95
108
|
items: [
|