@dark-engine/native-navigation
Advanced tools
Comparing version 1.0.2 to 1.0.3
'use strict'; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
exports.VERSION = void 0; | ||
exports.VERSION = '1.0.2'; | ||
exports.VERSION = '1.0.3'; | ||
//# sourceMappingURL=constants.js.map |
'use strict'; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
exports.TransitionName = exports.SLASH_MARK = exports.VERSION = void 0; | ||
exports.VERSION = '1.0.2'; | ||
exports.VERSION = '1.0.3'; | ||
exports.SLASH_MARK = '/'; | ||
@@ -6,0 +6,0 @@ var TransitionName; |
@@ -1,2 +0,2 @@ | ||
export const VERSION = '1.0.2'; | ||
export const VERSION = '1.0.3'; | ||
//# sourceMappingURL=constants.js.map |
@@ -1,2 +0,2 @@ | ||
export const VERSION = '1.0.2'; | ||
export const VERSION = '1.0.3'; | ||
export const SLASH_MARK = '/'; | ||
@@ -3,0 +3,0 @@ export var TransitionName; |
import { type Component, type TagVirtualNodeFactory } from '@dark-engine/core'; | ||
import { type SpringValue } from '../shared'; | ||
import { type Spring } from '../spring'; | ||
type AnimatedProps<E = unknown, T extends string = string> = { | ||
spring: Spring<T>; | ||
fn: StyleFn<E, T>; | ||
slot: Component | TagVirtualNodeFactory; | ||
}; | ||
declare const Animated: import('@dark-engine/core').ComponentFactory< | ||
AnimatedProps<unknown, string> & | ||
import('@dark-engine/core').KeyProps & | ||
import('@dark-engine/core').RefProps & | ||
Partial<Record<'__skipScanOpt' | '__memoSlotOpt' | '__staticSlotOpt', boolean>>, | ||
{ | ||
spring: Spring<string>; | ||
fn: StyleFn<unknown, string>; | ||
slot: Component | TagVirtualNodeFactory; | ||
key?: import('@dark-engine/core').ElementKey; | ||
ref?: import('@dark-engine/core').Ref<unknown>; | ||
}, | ||
unknown | ||
@@ -15,0 +13,0 @@ >; |
@@ -1,1 +0,1 @@ | ||
export declare const VERSION = '1.0.2'; | ||
export declare const VERSION = '1.0.3'; |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = '1.0.2'; | ||
export declare const VERSION = '1.0.3'; | ||
export declare const SLASH_MARK = '/'; | ||
@@ -3,0 +3,0 @@ export declare enum TransitionName { |
import { type DarkElement } from '@dark-engine/core'; | ||
import { type HistorySubscriber, type ParamsMap, type ParamsObject } from '../history'; | ||
import { TransitionName } from '../constants'; | ||
type NavigationContainerProps = { | ||
slot: DarkElement; | ||
defaultPathname: string; | ||
renderActionBar?: (options: RenderActionBarOptions) => DarkElement; | ||
onNavigate?: (pathname: string) => void; | ||
}; | ||
export type NavigationContainerRef = { | ||
@@ -19,6 +13,10 @@ navigateTo: Push; | ||
declare const NavigationContainer: import('@dark-engine/core').ComponentFactory< | ||
NavigationContainerProps & | ||
import('@dark-engine/core').RefProps<NavigationContainerRef> & | ||
import('@dark-engine/core').KeyProps & | ||
Partial<Record<'__skipScanOpt' | '__memoSlotOpt' | '__staticSlotOpt', boolean>>, | ||
{ | ||
slot: DarkElement; | ||
defaultPathname: string; | ||
renderActionBar?: (options: RenderActionBarOptions) => DarkElement; | ||
onNavigate?: (pathname: string) => void; | ||
ref?: import('@dark-engine/core').Ref<NavigationContainerRef>; | ||
key?: import('@dark-engine/core').ElementKey; | ||
}, | ||
NavigationContainerRef | ||
@@ -25,0 +23,0 @@ >; |
@@ -21,14 +21,20 @@ import { | ||
Root: ComponentFactory< | ||
StackNavigatorProps & | ||
import('@dark-engine/core').RefProps<StackNavigatorRef> & | ||
import('@dark-engine/core').KeyProps & | ||
Partial<Record<'__skipScanOpt' | '__memoSlotOpt' | '__staticSlotOpt', boolean>> & | ||
Omit<StandardComponentProps, 'ref'>, | ||
{ | ||
slot: Array<ScreenComponent>; | ||
onNavigate?: (pathname: string) => void; | ||
ref?: import('@dark-engine/core').Ref<StackNavigatorRef>; | ||
key?: import('@dark-engine/core').ElementKey; | ||
} & Omit<StandardComponentProps, 'ref'> & | ||
import('@dark-engine/core').RefProps<StackNavigatorRef>, | ||
StackNavigatorRef | ||
>; | ||
Screen: ComponentFactory< | ||
StackScreenProps & | ||
import('@dark-engine/core').KeyProps & | ||
import('@dark-engine/core').RefProps & | ||
Partial<Record<'__skipScanOpt' | '__memoSlotOpt' | '__staticSlotOpt', boolean>>, | ||
{ | ||
name: string; | ||
component?: ComponentFactory; | ||
initialParams?: ParamsObject; | ||
slot?: () => DarkElement; | ||
key?: import('@dark-engine/core').ElementKey; | ||
ref?: import('@dark-engine/core').Ref<unknown>; | ||
}, | ||
unknown | ||
@@ -35,0 +41,0 @@ >; |
import { type DarkElement, type Component, type StandardComponentProps } from '@dark-engine/core'; | ||
import { type StackScreenProps } from '../stack-navigator'; | ||
type TabNavigatorProps = { | ||
bottomNavigationOptions?: Partial<BottomNavigationOptions>; | ||
slot: Array<Component<TabScreenProps & StandardComponentProps>>; | ||
}; | ||
type TabScreenProps = { | ||
@@ -24,7 +20,8 @@ renderTab?: (name: string, isActive: boolean) => DarkElement; | ||
Root: import('@dark-engine/core').ComponentFactory< | ||
TabNavigatorProps & | ||
import('@dark-engine/core').KeyProps & | ||
import('@dark-engine/core').RefProps & | ||
Partial<Record<'__skipScanOpt' | '__memoSlotOpt' | '__staticSlotOpt', boolean>> & | ||
Omit<StandardComponentProps, 'ref'> & | ||
{ | ||
bottomNavigationOptions?: Partial<BottomNavigationOptions>; | ||
slot: Array<Component<TabScreenProps & StandardComponentProps>>; | ||
key?: import('@dark-engine/core').ElementKey; | ||
ref?: import('@dark-engine/core').Ref<unknown>; | ||
} & Omit<StandardComponentProps, 'ref'> & | ||
import('@dark-engine/core').RefProps<unknown>, | ||
@@ -36,6 +33,9 @@ unknown | ||
renderTab?: (name: string, isActive: boolean) => DarkElement; | ||
} & StackScreenProps & | ||
import('@dark-engine/core').KeyProps & | ||
import('@dark-engine/core').RefProps & | ||
Partial<Record<'__skipScanOpt' | '__memoSlotOpt' | '__staticSlotOpt', boolean>>, | ||
name: string; | ||
component?: import('@dark-engine/core').ComponentFactory; | ||
initialParams?: import('../history').ParamsObject; | ||
slot?: () => DarkElement; | ||
key?: import('@dark-engine/core').ElementKey; | ||
ref?: import('@dark-engine/core').Ref<unknown>; | ||
}, | ||
unknown | ||
@@ -42,0 +42,0 @@ >; |
{ | ||
"name": "@dark-engine/native-navigation", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Dark navigation for NativeScript platform", | ||
@@ -5,0 +5,0 @@ "author": "AlexPlex", |
@@ -15,3 +15,3 @@ # @dark-engine/native-navigation 🌖 | ||
- 📈 Hooks | ||
- 🚫 No deps | ||
- ✂️ No deps | ||
@@ -18,0 +18,0 @@ ## Installation |
4475
278312