@donotdev/core 0.0.7 → 0.0.9
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/index.d.ts +15 -1
- package/index.js +20 -20
- package/next/index.js +2 -2
- package/package.json +2 -2
- package/server.js +25 -25
- package/vite/index.js +15 -15
package/index.d.ts
CHANGED
|
@@ -17688,6 +17688,10 @@ interface NavigationCache {
|
|
|
17688
17688
|
interface NavigationState {
|
|
17689
17689
|
/** Cached navigation data */
|
|
17690
17690
|
cache: NavigationCache;
|
|
17691
|
+
/** Favorite route paths (persisted per computer) */
|
|
17692
|
+
favorites: string[];
|
|
17693
|
+
/** Recent route paths (persisted per computer, max 8) */
|
|
17694
|
+
recent: string[];
|
|
17691
17695
|
/** Invalidate cache and force refresh */
|
|
17692
17696
|
invalidateCache: () => void;
|
|
17693
17697
|
/** Get all routes without filtering */
|
|
@@ -17704,6 +17708,16 @@ interface NavigationState {
|
|
|
17704
17708
|
}>;
|
|
17705
17709
|
/** Get route manifest metadata */
|
|
17706
17710
|
getManifest: () => any;
|
|
17711
|
+
/** Toggle favorite status for a route */
|
|
17712
|
+
toggleFavorite: (path: string) => void;
|
|
17713
|
+
/** Check if a route is favorited */
|
|
17714
|
+
isFavorite: (path: string) => boolean;
|
|
17715
|
+
/** Get all favorite route paths */
|
|
17716
|
+
getFavorites: () => string[];
|
|
17717
|
+
/** Add route to recent history */
|
|
17718
|
+
addRecent: (path: string) => void;
|
|
17719
|
+
/** Get recent route paths */
|
|
17720
|
+
getRecent: () => string[];
|
|
17707
17721
|
/** Update cache data (internal) */
|
|
17708
17722
|
setCacheData: (data: Partial<NavigationCache>) => void;
|
|
17709
17723
|
/** Set partial state (internal) */
|
|
@@ -21363,7 +21377,7 @@ declare function useI18nReady(): boolean;
|
|
|
21363
21377
|
* ✅ HMR-safe: Store instance globally to survive module reloads
|
|
21364
21378
|
*/
|
|
21365
21379
|
declare const getI18nInstance: () => i18n;
|
|
21366
|
-
//# sourceMappingURL=instance.d.ts.map
|
|
21380
|
+
//# sourceMappingURL=instance.vite.d.ts.map
|
|
21367
21381
|
|
|
21368
21382
|
/**
|
|
21369
21383
|
* Props for LanguageSelector component
|