@flemo/react 1.3.2 → 1.4.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/dist/Router.d.ts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.mjs +278 -652
- package/dist/navigate/useNavigate.d.ts +6 -8
- package/dist/screen/Part.d.ts +7 -0
- package/dist/screen/store.d.ts +2 -16
- package/dist/transition/styles.d.ts +2 -2
- package/package.json +4 -4
- package/dist/transition/__tests__/animateInline.test.d.ts +0 -1
- package/dist/transition/animateInline.d.ts +0 -4
- /package/dist/screen/__tests__/{store.test.d.ts → Part.test.d.ts} +0 -0
|
@@ -4,15 +4,13 @@ interface DistanceOptions {
|
|
|
4
4
|
skip?: number;
|
|
5
5
|
until?: keyof RegisterRoute;
|
|
6
6
|
}
|
|
7
|
+
type RouteOptions = DistanceOptions & {
|
|
8
|
+
layoutId?: string | number;
|
|
9
|
+
transitionName?: TransitionName;
|
|
10
|
+
};
|
|
7
11
|
export default function useNavigate(): {
|
|
8
|
-
push: <T extends keyof RegisterRoute>(path: T, params?: RegisterRoute[T], options?:
|
|
9
|
-
|
|
10
|
-
transitionName?: TransitionName;
|
|
11
|
-
}) => Promise<void>;
|
|
12
|
-
replace: <T extends keyof RegisterRoute>(path: T, params?: RegisterRoute[T], options?: DistanceOptions & {
|
|
13
|
-
layoutId?: string | number;
|
|
14
|
-
transitionName?: TransitionName;
|
|
15
|
-
}) => Promise<void>;
|
|
12
|
+
push: <T extends keyof RegisterRoute>(path: T, params?: RegisterRoute[T], options?: RouteOptions) => Promise<void>;
|
|
13
|
+
replace: <T extends keyof RegisterRoute>(path: T, params?: RegisterRoute[T], options?: RouteOptions) => Promise<void>;
|
|
16
14
|
pop: (options?: DistanceOptions & {
|
|
17
15
|
transitionName?: TransitionName;
|
|
18
16
|
}) => Promise<void>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentPropsWithRef, PropsWithChildren } from 'react';
|
|
2
|
+
import { PartTransitionName } from '@flemo/core';
|
|
3
|
+
export interface PartProps extends PropsWithChildren<ComponentPropsWithRef<"div">> {
|
|
4
|
+
name: PartTransitionName;
|
|
5
|
+
}
|
|
6
|
+
declare function Part({ ref, name, style, children, ...props }: PartProps): import("react").JSX.Element;
|
|
7
|
+
export default Part;
|
package/dist/screen/store.d.ts
CHANGED
|
@@ -1,16 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
appBar: boolean;
|
|
4
|
-
navigationBar: boolean;
|
|
5
|
-
}
|
|
6
|
-
export interface ScreenStore {
|
|
7
|
-
dragStatus: "IDLE" | "PENDING";
|
|
8
|
-
replaceTransitionStatus: "IDLE" | "PENDING";
|
|
9
|
-
sharedBars: Record<string, SharedBarPresence>;
|
|
10
|
-
setDragStatus: (dragStatus: "IDLE" | "PENDING") => void;
|
|
11
|
-
setReplaceTransitionStatus: (replaceTransitionStatus: "IDLE" | "PENDING") => void;
|
|
12
|
-
registerSharedBars: (id: string, presence: SharedBarPresence) => void;
|
|
13
|
-
unregisterSharedBars: (id: string) => void;
|
|
14
|
-
}
|
|
15
|
-
export type ScreenStoreApi = StoreApi<ScreenStore>;
|
|
16
|
-
export default function createScreenStore(): ScreenStoreApi;
|
|
1
|
+
export { createScreenStore as default } from '@flemo/core';
|
|
2
|
+
export type { ScreenStore, ScreenStoreApi, SharedBarPresence } from '@flemo/core';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Decorator, Transition } from '@flemo/core';
|
|
2
|
-
export default function useTransitionStyles(transitions: Transition[], decorators: Decorator[]): void;
|
|
1
|
+
import { PartTransition, Decorator, Transition } from '@flemo/core';
|
|
2
|
+
export default function useTransitionStyles(transitions: Transition[], decorators: Decorator[], partTransitions?: PartTransition[]): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flemo/react",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.1",
|
|
4
4
|
"description": "React bindings for flemo: Router, Route, Screen, and the screen-transition runtime.",
|
|
5
5
|
"main": "./dist/index.mjs",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"path-to-regexp": "^8.4.2",
|
|
38
38
|
"zustand": "^5.0.14",
|
|
39
|
-
"@flemo/core": "1.
|
|
39
|
+
"@flemo/core": "1.5.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@testing-library/jest-dom": "^6.9.1",
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"vite": "^8.0.16",
|
|
55
55
|
"vite-plugin-dts": "^5.0.2",
|
|
56
56
|
"vitest": "^4.1.9",
|
|
57
|
-
"@flemo/
|
|
58
|
-
"@flemo/
|
|
57
|
+
"@flemo/tsconfig": "0.0.0",
|
|
58
|
+
"@flemo/eslint-config": "0.0.0"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
61
|
"react": "^19.2.7",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
File without changes
|