vue-micro-router 1.0.28 → 1.0.30

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 CHANGED
@@ -259,7 +259,7 @@ declare interface GestureContext {
259
259
  canGoBack: () => boolean;
260
260
  }
261
261
 
262
- /** Get last segment from path: "/home/missions/detail" → "detail" */
262
+ /** Get last segment from path: "/home/missions/detail" → "detail" (zero-allocation) */
263
263
  export declare function getLastSegment(path: string): string;
264
264
 
265
265
  declare interface GuardConfig {
@@ -417,6 +417,8 @@ export declare interface MicroRouterConfig {
417
417
  volumeRef?: Ref<number>;
418
418
  /** Default BGM audio path — used as initial track and fallback when route has no bgm field. Example: '/audios/default.mp3' */
419
419
  defaultBgm?: string;
420
+ /** Set to true (in a user gesture handler) to start default BGM. Watched with flush:'sync' to preserve gesture context for autoplay policy. */
421
+ bgmStartRef?: Ref<boolean>;
420
422
  }
421
423
 
422
424
  /**