@flemo/react 1.3.2 → 1.4.0
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 +277 -648
- 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 +2 -2
- 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
package/dist/Router.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { Decorator, Transition, TransitionName } from '@flemo/core';
|
|
2
|
+
import { PartTransition, Decorator, Transition, TransitionName } from '@flemo/core';
|
|
3
3
|
interface RouterProps {
|
|
4
4
|
initPath?: string;
|
|
5
5
|
defaultTransitionName?: TransitionName;
|
|
6
6
|
transitions?: Transition[];
|
|
7
7
|
decorators?: Decorator[];
|
|
8
|
+
partTransitions?: PartTransition[];
|
|
8
9
|
}
|
|
9
|
-
declare function Router({ children, initPath, defaultTransitionName, transitions, decorators }: PropsWithChildren<RouterProps>): import("react").JSX.Element;
|
|
10
|
+
declare function Router({ children, initPath, defaultTransitionName, transitions, decorators, partTransitions }: PropsWithChildren<RouterProps>): import("react").JSX.Element;
|
|
10
11
|
export default Router;
|
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export { default as Screen, type ScreenProps } from './screen/Screen';
|
|
|
8
8
|
export { default as ScreenMotion } from './screen/ScreenMotion';
|
|
9
9
|
export { default as ScreenFreeze } from './screen/ScreenFreeze';
|
|
10
10
|
export { default as ScreenDecorator } from './screen/ScreenDecorator';
|
|
11
|
+
export { default as Part, type PartProps } from './screen/Part';
|
|
11
12
|
export { default as ScreenContext, type ScreenContextProps } from './screen/ScreenContext';
|
|
12
13
|
export { default as useHistoryStore } from './stores/useHistoryStore';
|
|
13
14
|
export { default as useNavigateStore } from './stores/useNavigateStore';
|
|
@@ -17,5 +18,5 @@ export { default as RouterScopeProvider } from './stores/RouterScopeProvider';
|
|
|
17
18
|
export { type FlemoStores } from './stores/StoreContext';
|
|
18
19
|
export { type SharedBarPresence } from './screen/store';
|
|
19
20
|
export { default as useViewportScrollHeight } from './screen/useViewportScrollHeight';
|
|
20
|
-
export { createTransition, createRawTransition, createDecorator, createRawDecorator } from '@flemo/core';
|
|
21
|
-
export type { TransitionName, RegisterTransition, DecoratorName, RegisterDecorator } from '@flemo/core';
|
|
21
|
+
export { createTransition, createRawTransition, createDecorator, createRawDecorator, createPartTransition, createRawPartTransition, partTransitionMap } from '@flemo/core';
|
|
22
|
+
export type { TransitionName, RegisterTransition, DecoratorName, RegisterDecorator, PartTransitionName, RegisterPartTransition, PartTransitionOptions } from '@flemo/core';
|