@plumile/router 0.1.13 → 0.1.17

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 (117) hide show
  1. package/README.md +43 -422
  2. package/lib/esm/builder.d.ts +5 -5
  3. package/lib/esm/builder.d.ts.map +1 -1
  4. package/lib/esm/builder.js +1 -1
  5. package/lib/esm/index.d.ts +0 -4
  6. package/lib/esm/index.d.ts.map +1 -1
  7. package/lib/esm/index.js +1 -5
  8. package/lib/esm/routing/Link.d.ts +3 -3
  9. package/lib/esm/routing/Link.d.ts.map +1 -1
  10. package/lib/esm/routing/Link.js +3 -8
  11. package/lib/esm/routing/RouteComponentWrapper.d.ts +6 -5
  12. package/lib/esm/routing/RouteComponentWrapper.d.ts.map +1 -1
  13. package/lib/esm/routing/RouteComponentWrapper.js +1 -1
  14. package/lib/esm/routing/RouterRenderer.d.ts.map +1 -1
  15. package/lib/esm/routing/RouterRenderer.js +1 -1
  16. package/lib/esm/routing/createRouter.d.ts +0 -1
  17. package/lib/esm/routing/createRouter.d.ts.map +1 -1
  18. package/lib/esm/routing/createRouter.js +434 -399
  19. package/lib/esm/routing/index.d.ts +2 -6
  20. package/lib/esm/routing/index.d.ts.map +1 -1
  21. package/lib/esm/routing/index.js +3 -7
  22. package/lib/esm/routing/useAllQuery.d.ts +7 -0
  23. package/lib/esm/routing/useAllQuery.d.ts.map +1 -0
  24. package/lib/esm/routing/useAllQuery.js +31 -0
  25. package/lib/esm/routing/useFilterDiagnostics.d.ts +2 -0
  26. package/lib/esm/routing/useFilterDiagnostics.d.ts.map +1 -0
  27. package/lib/esm/routing/useFilterDiagnostics.js +11 -0
  28. package/lib/esm/routing/useFilters.d.ts +16 -0
  29. package/lib/esm/routing/useFilters.d.ts.map +1 -0
  30. package/lib/esm/routing/useFilters.js +83 -0
  31. package/lib/esm/routing/useNavigate.d.ts +2 -9
  32. package/lib/esm/routing/useNavigate.d.ts.map +1 -1
  33. package/lib/esm/routing/useNavigate.js +1 -1
  34. package/lib/esm/routing/useQueryState.d.ts +1 -1
  35. package/lib/esm/routing/useQueryState.d.ts.map +1 -1
  36. package/lib/esm/routing/useQueryState.js +2 -2
  37. package/lib/esm/routing/useTypedQuery.js +1 -1
  38. package/lib/esm/tools/buildCombinedSearch.d.ts +11 -0
  39. package/lib/esm/tools/buildCombinedSearch.d.ts.map +1 -0
  40. package/lib/esm/tools/buildCombinedSearch.js +28 -0
  41. package/lib/esm/tools/buildSearch.d.ts +2 -8
  42. package/lib/esm/tools/buildSearch.d.ts.map +1 -1
  43. package/lib/esm/tools/buildSearch.js +12 -216
  44. package/lib/esm/tools.d.ts +1 -1
  45. package/lib/esm/tools.d.ts.map +1 -1
  46. package/lib/esm/tools.js +1 -1
  47. package/lib/esm/types.d.ts +25 -37
  48. package/lib/esm/types.d.ts.map +1 -1
  49. package/lib/esm/types.js +1 -1
  50. package/lib/tsconfig.esm.tsbuildinfo +1 -1
  51. package/lib/types/builder.d.ts +5 -5
  52. package/lib/types/builder.d.ts.map +1 -1
  53. package/lib/types/index.d.ts +0 -4
  54. package/lib/types/index.d.ts.map +1 -1
  55. package/lib/types/routing/Link.d.ts +3 -3
  56. package/lib/types/routing/Link.d.ts.map +1 -1
  57. package/lib/types/routing/RouteComponentWrapper.d.ts +6 -5
  58. package/lib/types/routing/RouteComponentWrapper.d.ts.map +1 -1
  59. package/lib/types/routing/RouterRenderer.d.ts.map +1 -1
  60. package/lib/types/routing/createRouter.d.ts +0 -1
  61. package/lib/types/routing/createRouter.d.ts.map +1 -1
  62. package/lib/types/routing/index.d.ts +2 -6
  63. package/lib/types/routing/index.d.ts.map +1 -1
  64. package/lib/types/routing/useAllQuery.d.ts +7 -0
  65. package/lib/types/routing/useAllQuery.d.ts.map +1 -0
  66. package/lib/types/routing/useFilterDiagnostics.d.ts +2 -0
  67. package/lib/types/routing/useFilterDiagnostics.d.ts.map +1 -0
  68. package/lib/types/routing/useFilters.d.ts +16 -0
  69. package/lib/types/routing/useFilters.d.ts.map +1 -0
  70. package/lib/types/routing/useNavigate.d.ts +2 -9
  71. package/lib/types/routing/useNavigate.d.ts.map +1 -1
  72. package/lib/types/routing/useQueryState.d.ts +1 -1
  73. package/lib/types/routing/useQueryState.d.ts.map +1 -1
  74. package/lib/types/tools/buildCombinedSearch.d.ts +11 -0
  75. package/lib/types/tools/buildCombinedSearch.d.ts.map +1 -0
  76. package/lib/types/tools/buildSearch.d.ts +2 -8
  77. package/lib/types/tools/buildSearch.d.ts.map +1 -1
  78. package/lib/types/tools.d.ts +1 -1
  79. package/lib/types/tools.d.ts.map +1 -1
  80. package/lib/types/types.d.ts +25 -37
  81. package/lib/types/types.d.ts.map +1 -1
  82. package/package.json +6 -5
  83. package/lib/esm/routing/devtools.d.ts +0 -20
  84. package/lib/esm/routing/devtools.d.ts.map +0 -1
  85. package/lib/esm/routing/devtools.js +0 -678
  86. package/lib/esm/routing/filters.d.ts +0 -97
  87. package/lib/esm/routing/filters.d.ts.map +0 -1
  88. package/lib/esm/routing/filters.js +0 -557
  89. package/lib/esm/routing/useActiveFilters.d.ts +0 -9
  90. package/lib/esm/routing/useActiveFilters.d.ts.map +0 -1
  91. package/lib/esm/routing/useActiveFilters.js +0 -38
  92. package/lib/esm/routing/useFilterState.d.ts +0 -10
  93. package/lib/esm/routing/useFilterState.d.ts.map +0 -1
  94. package/lib/esm/routing/useFilterState.js +0 -14
  95. package/lib/esm/routing/useNavigateWithQuery.d.ts +0 -15
  96. package/lib/esm/routing/useNavigateWithQuery.d.ts.map +0 -1
  97. package/lib/esm/routing/useNavigateWithQuery.js +0 -95
  98. package/lib/esm/routing/useQueryObject.d.ts +0 -18
  99. package/lib/esm/routing/useQueryObject.d.ts.map +0 -1
  100. package/lib/esm/routing/useQueryObject.js +0 -107
  101. package/lib/esm/routing/useStableRefEquality.d.ts +0 -5
  102. package/lib/esm/routing/useStableRefEquality.d.ts.map +0 -1
  103. package/lib/esm/routing/useStableRefEquality.js +0 -47
  104. package/lib/types/routing/devtools.d.ts +0 -20
  105. package/lib/types/routing/devtools.d.ts.map +0 -1
  106. package/lib/types/routing/filters.d.ts +0 -97
  107. package/lib/types/routing/filters.d.ts.map +0 -1
  108. package/lib/types/routing/useActiveFilters.d.ts +0 -9
  109. package/lib/types/routing/useActiveFilters.d.ts.map +0 -1
  110. package/lib/types/routing/useFilterState.d.ts +0 -10
  111. package/lib/types/routing/useFilterState.d.ts.map +0 -1
  112. package/lib/types/routing/useNavigateWithQuery.d.ts +0 -15
  113. package/lib/types/routing/useNavigateWithQuery.d.ts.map +0 -1
  114. package/lib/types/routing/useQueryObject.d.ts +0 -18
  115. package/lib/types/routing/useQueryObject.d.ts.map +0 -1
  116. package/lib/types/routing/useStableRefEquality.d.ts +0 -5
  117. package/lib/types/routing/useStableRefEquality.d.ts.map +0 -1
@@ -1,18 +0,0 @@
1
- import type { QuerySchema } from '../types.js';
2
- export interface UseQueryObjectOptions {
3
- raw?: boolean;
4
- replace?: boolean;
5
- omitDefaults?: boolean;
6
- }
7
- export type InferTypedQuery<S extends QuerySchema | undefined> = S extends QuerySchema ? {
8
- [K in keyof S]?: any;
9
- } : Record<string, any>;
10
- export declare function useQueryObject(opts?: UseQueryObjectOptions): [
11
- Record<string, any>,
12
- (next: Record<string, any> | ((p: Record<string, any>) => Record<string, any>), navOpts?: {
13
- replace?: boolean;
14
- batch?: boolean;
15
- }) => void
16
- ];
17
- export default useQueryObject;
18
- //# sourceMappingURL=useQueryObject.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useQueryObject.d.ts","sourceRoot":"","sources":["../../../src/routing/useQueryObject.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,MAAM,WAAW,qBAAqB;IACpC,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,WAAW,GAAG,SAAS,IAC3D,CAAC,SAAS,WAAW,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,GAAG;CAAE,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAazE,wBAAgB,cAAc,CAC5B,IAAI,GAAE,qBAA0B,GAC/B;IACD,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IACnB,CACE,IAAI,EACA,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GACnB,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,EACrD,OAAO,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,OAAO,CAAA;KAAE,KAC7C,IAAI;CACV,CAyHA;AAED,eAAe,cAAc,CAAC"}
@@ -1,5 +0,0 @@
1
- export type EqualityFn<T> = (a: T, b: T) => boolean;
2
- export declare function shallowEqual(a: unknown, b: unknown): boolean;
3
- export declare function useStableRefEquality<T>(value: T, isEqual?: EqualityFn<T>): T;
4
- export default useStableRefEquality;
5
- //# sourceMappingURL=useStableRefEquality.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useStableRefEquality.d.ts","sourceRoot":"","sources":["../../../src/routing/useStableRefEquality.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,OAAO,CAAC;AAGpD,wBAAgB,YAAY,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,GAAG,OAAO,CA4B5D;AAQD,wBAAgB,oBAAoB,CAAC,CAAC,EACpC,KAAK,EAAE,CAAC,EACR,OAAO,GAAE,UAAU,CAAC,CAAC,CAAiC,GACrD,CAAC,CAQH;AAED,eAAe,oBAAoB,CAAC"}