@plumile/router 0.1.12 → 0.1.13

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.
Files changed (68) hide show
  1. package/README.md +426 -13
  2. package/lib/esm/index.d.ts +4 -0
  3. package/lib/esm/index.d.ts.map +1 -1
  4. package/lib/esm/index.js +5 -1
  5. package/lib/esm/routing/createRouter.d.ts +1 -0
  6. package/lib/esm/routing/createRouter.d.ts.map +1 -1
  7. package/lib/esm/routing/createRouter.js +399 -359
  8. package/lib/esm/routing/devtools.d.ts +20 -0
  9. package/lib/esm/routing/devtools.d.ts.map +1 -0
  10. package/lib/esm/routing/devtools.js +678 -0
  11. package/lib/esm/routing/filters.d.ts +97 -0
  12. package/lib/esm/routing/filters.d.ts.map +1 -0
  13. package/lib/esm/routing/filters.js +557 -0
  14. package/lib/esm/routing/index.d.ts +6 -0
  15. package/lib/esm/routing/index.d.ts.map +1 -1
  16. package/lib/esm/routing/index.js +7 -1
  17. package/lib/esm/routing/useActiveFilters.d.ts +9 -0
  18. package/lib/esm/routing/useActiveFilters.d.ts.map +1 -0
  19. package/lib/esm/routing/useActiveFilters.js +38 -0
  20. package/lib/esm/routing/useFilterState.d.ts +10 -0
  21. package/lib/esm/routing/useFilterState.d.ts.map +1 -0
  22. package/lib/esm/routing/useFilterState.js +14 -0
  23. package/lib/esm/routing/useNavigate.d.ts +7 -0
  24. package/lib/esm/routing/useNavigate.d.ts.map +1 -1
  25. package/lib/esm/routing/useNavigate.js +1 -1
  26. package/lib/esm/routing/useNavigateWithQuery.d.ts +15 -0
  27. package/lib/esm/routing/useNavigateWithQuery.d.ts.map +1 -0
  28. package/lib/esm/routing/useNavigateWithQuery.js +95 -0
  29. package/lib/esm/routing/useQueryObject.d.ts +18 -0
  30. package/lib/esm/routing/useQueryObject.d.ts.map +1 -0
  31. package/lib/esm/routing/useQueryObject.js +107 -0
  32. package/lib/esm/routing/useStableRefEquality.d.ts +5 -0
  33. package/lib/esm/routing/useStableRefEquality.d.ts.map +1 -0
  34. package/lib/esm/routing/useStableRefEquality.js +47 -0
  35. package/lib/esm/tools/buildSearch.d.ts +8 -2
  36. package/lib/esm/tools/buildSearch.d.ts.map +1 -1
  37. package/lib/esm/tools/buildSearch.js +216 -12
  38. package/lib/esm/types.d.ts +19 -0
  39. package/lib/esm/types.d.ts.map +1 -1
  40. package/lib/esm/types.js +1 -1
  41. package/lib/tsconfig.esm.tsbuildinfo +1 -1
  42. package/lib/types/index.d.ts +4 -0
  43. package/lib/types/index.d.ts.map +1 -1
  44. package/lib/types/routing/createRouter.d.ts +1 -0
  45. package/lib/types/routing/createRouter.d.ts.map +1 -1
  46. package/lib/types/routing/devtools.d.ts +20 -0
  47. package/lib/types/routing/devtools.d.ts.map +1 -0
  48. package/lib/types/routing/filters.d.ts +97 -0
  49. package/lib/types/routing/filters.d.ts.map +1 -0
  50. package/lib/types/routing/index.d.ts +6 -0
  51. package/lib/types/routing/index.d.ts.map +1 -1
  52. package/lib/types/routing/useActiveFilters.d.ts +9 -0
  53. package/lib/types/routing/useActiveFilters.d.ts.map +1 -0
  54. package/lib/types/routing/useFilterState.d.ts +10 -0
  55. package/lib/types/routing/useFilterState.d.ts.map +1 -0
  56. package/lib/types/routing/useNavigate.d.ts +7 -0
  57. package/lib/types/routing/useNavigate.d.ts.map +1 -1
  58. package/lib/types/routing/useNavigateWithQuery.d.ts +15 -0
  59. package/lib/types/routing/useNavigateWithQuery.d.ts.map +1 -0
  60. package/lib/types/routing/useQueryObject.d.ts +18 -0
  61. package/lib/types/routing/useQueryObject.d.ts.map +1 -0
  62. package/lib/types/routing/useStableRefEquality.d.ts +5 -0
  63. package/lib/types/routing/useStableRefEquality.d.ts.map +1 -0
  64. package/lib/types/tools/buildSearch.d.ts +8 -2
  65. package/lib/types/tools/buildSearch.d.ts.map +1 -1
  66. package/lib/types/types.d.ts +19 -0
  67. package/lib/types/types.d.ts.map +1 -1
  68. package/package.json +3 -3
@@ -0,0 +1,20 @@
1
+ import type { RoutingContextType } from '../types.js';
2
+ export interface InitRouterDevtoolsOptions {
3
+ global: boolean;
4
+ panel: boolean;
5
+ shortcut: string;
6
+ }
7
+ export interface NavEventMetaPublic {
8
+ kind: string;
9
+ mode: string;
10
+ count: number;
11
+ pathname: string;
12
+ search: string;
13
+ timestamp: number;
14
+ }
15
+ export declare function initRouterDevtools(params: {
16
+ context: RoutingContextType<any>;
17
+ options: InitRouterDevtoolsOptions;
18
+ }): (meta: NavEventMetaPublic) => void;
19
+ export default initRouterDevtools;
20
+ //# sourceMappingURL=devtools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"devtools.d.ts","sourceRoot":"","sources":["../../../src/routing/devtools.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAGtD,MAAM,WAAW,yBAAyB;IACxC,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CAClB;AACD,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;CACnB;AAkvBD,wBAAgB,kBAAkB,CAAC,MAAM,EAAE;IACzC,OAAO,EAAE,kBAAkB,CAAC,GAAG,CAAC,CAAC;IACjC,OAAO,EAAE,yBAAyB,CAAC;CACpC,GAAG,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,CAgCrC;AAED,eAAe,kBAAkB,CAAC"}