flemo 1.5.1 → 1.5.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.
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { History } from '../history/store';
|
|
2
2
|
import { TransitionName } from '../transition/typing';
|
|
3
|
+
import { Path } from 'path-to-regexp';
|
|
3
4
|
export interface ScreenContextProps extends History {
|
|
4
5
|
id: string;
|
|
5
6
|
isActive: boolean;
|
|
@@ -7,6 +8,7 @@ export interface ScreenContextProps extends History {
|
|
|
7
8
|
isPrev: boolean;
|
|
8
9
|
zIndex: number;
|
|
9
10
|
prevTransitionName: TransitionName;
|
|
11
|
+
routePath: Path;
|
|
10
12
|
}
|
|
11
13
|
declare const ScreenContext: import('react').Context<ScreenContextProps>;
|
|
12
14
|
export default ScreenContext;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flemo",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.3",
|
|
4
4
|
"description": "A modern React router library with built-in motion animations and smooth transitions",
|
|
5
5
|
"main": "./dist/index.mjs",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -33,6 +33,14 @@
|
|
|
33
33
|
},
|
|
34
34
|
"homepage": "https://flemo-dev.lovable.app",
|
|
35
35
|
"license": "MIT",
|
|
36
|
+
"scripts": {
|
|
37
|
+
"build": "vite build",
|
|
38
|
+
"watch": "vite build --watch",
|
|
39
|
+
"prettier": "prettier --write --config ./.prettierrc \"**/*.{js,mjs,ts,jsx,tsx,mts,json}\"",
|
|
40
|
+
"convention": "pnpm prettier && eslint --fix \"**/*.{js,mjs,ts,jsx,tsx,mts,html}\"",
|
|
41
|
+
"prepare": "husky",
|
|
42
|
+
"prepublishOnly": "pnpm build"
|
|
43
|
+
},
|
|
36
44
|
"dependencies": {
|
|
37
45
|
"path-to-regexp": "^8.2.0",
|
|
38
46
|
"zustand": "^5.0.11"
|
|
@@ -67,11 +75,5 @@
|
|
|
67
75
|
"lint-staged": {
|
|
68
76
|
"*.{js,mjs,ts,jsx,tsx,mts,json}": "prettier --write",
|
|
69
77
|
"*.{js,mjs,ts,jsx,tsx,mts,html}": "eslint --fix"
|
|
70
|
-
},
|
|
71
|
-
"scripts": {
|
|
72
|
-
"build": "vite build",
|
|
73
|
-
"watch": "vite build --watch",
|
|
74
|
-
"prettier": "prettier --write --config ./.prettierrc \"**/*.{js,mjs,ts,jsx,tsx,mts,json}\"",
|
|
75
|
-
"convention": "pnpm prettier && eslint --fix \"**/*.{js,mjs,ts,jsx,tsx,mts,html}\""
|
|
76
78
|
}
|
|
77
|
-
}
|
|
79
|
+
}
|