vue-micro-router 1.0.36 → 1.0.37
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/index.d.ts +16 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -596,13 +596,20 @@ export declare interface PluginTypedCloseDialog<Dialogs extends string> {
|
|
|
596
596
|
* Typed store from plugin(s) — push/openDialog/closeDialog/toggleControl all validate names.
|
|
597
597
|
* Accepts single plugin or union of plugins: `typeof pluginA | typeof pluginB`
|
|
598
598
|
*/
|
|
599
|
-
export declare type PluginTypedMicroRouterStore<T> = Omit<MicroRouterStore, 'push' | 'stepWisePush' | 'stepWiseBack' | 'openDialog' | 'closeDialog' | 'toggleControl'> & {
|
|
599
|
+
export declare type PluginTypedMicroRouterStore<T> = Omit<MicroRouterStore, 'push' | 'stepWisePush' | 'stepWiseBack' | 'openDialog' | 'closeDialog' | 'toggleControl' | 'activePage' | 'fromPage' | 'toPage' | 'activeDialog' | 'fromDialog' | 'toDialog' | 'currentControl'> & {
|
|
600
600
|
push: PluginTypedPush<ExtractRoutePaths<T>, RegisteredRouteAttrs>;
|
|
601
601
|
stepWisePush: PluginTypedStepWisePush<ExtractRoutePaths<T>, RegisteredRouteAttrs>;
|
|
602
602
|
stepWiseBack: PluginTypedStepWiseBack;
|
|
603
603
|
openDialog: PluginTypedOpenDialog<ExtractDialogPaths<T>, RegisteredDialogAttrs>;
|
|
604
604
|
closeDialog: PluginTypedCloseDialog<ExtractDialogPaths<T>>;
|
|
605
605
|
toggleControl: PluginTypedToggleControl<ExtractControlNames<T>, RegisteredControlAttrs>;
|
|
606
|
+
activePage: ComputedRef<ExtractRoutePaths<T>>;
|
|
607
|
+
fromPage: ComputedRef<ExtractRoutePaths<T>>;
|
|
608
|
+
toPage: ComputedRef<ExtractRoutePaths<T>>;
|
|
609
|
+
activeDialog: ComputedRef<ExtractDialogPaths<T> | ''>;
|
|
610
|
+
fromDialog: ComputedRef<ExtractDialogPaths<T> | ''>;
|
|
611
|
+
toDialog: ComputedRef<ExtractDialogPaths<T> | ''>;
|
|
612
|
+
currentControl: ComputedRef<ExtractControlNames<T>>;
|
|
606
613
|
};
|
|
607
614
|
|
|
608
615
|
export declare interface PluginTypedOpenDialog<Dialogs extends string, AttrsMap = {}> {
|
|
@@ -692,13 +699,20 @@ export declare function registerFeaturePlugins(plugins: FeaturePlugin[], store:
|
|
|
692
699
|
* Priority: plugin > routeMap > untyped MicroRouterStore
|
|
693
700
|
* Attrs maps (routeAttrs/dialogAttrs/controlAttrs) are passed through when declared.
|
|
694
701
|
*/
|
|
695
|
-
export declare type ResolvedMicroRouterStore = HasRegisteredPlugin extends true ? Omit<MicroRouterStore, 'push' | 'stepWisePush' | 'stepWiseBack' | 'openDialog' | 'closeDialog' | 'toggleControl'> & {
|
|
702
|
+
export declare type ResolvedMicroRouterStore = HasRegisteredPlugin extends true ? Omit<MicroRouterStore, 'push' | 'stepWisePush' | 'stepWiseBack' | 'openDialog' | 'closeDialog' | 'toggleControl' | 'activePage' | 'fromPage' | 'toPage' | 'activeDialog' | 'fromDialog' | 'toDialog' | 'currentControl'> & {
|
|
696
703
|
push: PluginTypedPush<ExtractRoutePaths<RegisteredPlugin>, RegisteredRouteAttrs>;
|
|
697
704
|
stepWisePush: PluginTypedStepWisePush<ExtractRoutePaths<RegisteredPlugin>, RegisteredRouteAttrs>;
|
|
698
705
|
stepWiseBack: PluginTypedStepWiseBack;
|
|
699
706
|
openDialog: PluginTypedOpenDialog<ExtractDialogPaths<RegisteredPlugin>, RegisteredDialogAttrs>;
|
|
700
707
|
closeDialog: PluginTypedCloseDialog<ExtractDialogPaths<RegisteredPlugin>>;
|
|
701
708
|
toggleControl: PluginTypedToggleControl<ExtractControlNames<RegisteredPlugin>, RegisteredControlAttrs>;
|
|
709
|
+
activePage: ComputedRef<ExtractRoutePaths<RegisteredPlugin>>;
|
|
710
|
+
fromPage: ComputedRef<ExtractRoutePaths<RegisteredPlugin>>;
|
|
711
|
+
toPage: ComputedRef<ExtractRoutePaths<RegisteredPlugin>>;
|
|
712
|
+
activeDialog: ComputedRef<ExtractDialogPaths<RegisteredPlugin> | ''>;
|
|
713
|
+
fromDialog: ComputedRef<ExtractDialogPaths<RegisteredPlugin> | ''>;
|
|
714
|
+
toDialog: ComputedRef<ExtractDialogPaths<RegisteredPlugin> | ''>;
|
|
715
|
+
currentControl: ComputedRef<ExtractControlNames<RegisteredPlugin>>;
|
|
702
716
|
} : HasRegisteredRouteMap extends true ? Omit<MicroRouterStore, 'push'> & {
|
|
703
717
|
push: TypedPush<RegisteredRouteMap>;
|
|
704
718
|
} : MicroRouterStore;
|