one 1.1.324 → 1.1.326

Sign up to get free protection for your applications and to get access to all the features.
Files changed (105) hide show
  1. package/dist/cjs/createApp.native.js +0 -2
  2. package/dist/cjs/createApp.native.js.map +1 -1
  3. package/dist/cjs/createHandleRequest.cjs +2 -1
  4. package/dist/cjs/createHandleRequest.js +2 -1
  5. package/dist/cjs/createHandleRequest.js.map +1 -1
  6. package/dist/cjs/createHandleRequest.native.js +2 -1
  7. package/dist/cjs/createHandleRequest.native.js.map +2 -2
  8. package/dist/cjs/hooks.js.map +1 -1
  9. package/dist/cjs/hooks.native.js.map +1 -1
  10. package/dist/cjs/href.cjs +29 -0
  11. package/dist/cjs/href.js +25 -0
  12. package/dist/cjs/href.js.map +6 -0
  13. package/dist/cjs/href.native.js +30 -0
  14. package/dist/cjs/href.native.js.map +6 -0
  15. package/dist/cjs/imperative-api.cjs +1 -3
  16. package/dist/cjs/imperative-api.js +1 -4
  17. package/dist/cjs/imperative-api.js.map +1 -1
  18. package/dist/cjs/imperative-api.native.js +1 -4
  19. package/dist/cjs/imperative-api.native.js.map +1 -1
  20. package/dist/cjs/index.cjs +16 -14
  21. package/dist/cjs/index.js +3 -1
  22. package/dist/cjs/index.js.map +1 -1
  23. package/dist/cjs/index.native.js +4 -1
  24. package/dist/cjs/index.native.js.map +1 -1
  25. package/dist/cjs/router/router.js.map +1 -1
  26. package/dist/cjs/router/router.native.js.map +1 -1
  27. package/dist/cjs/vite/clientTreeShakePlugin.cjs +1 -3
  28. package/dist/cjs/vite/clientTreeShakePlugin.js +1 -2
  29. package/dist/cjs/vite/clientTreeShakePlugin.js.map +1 -1
  30. package/dist/cjs/vite/clientTreeShakePlugin.native.js +1 -2
  31. package/dist/cjs/vite/clientTreeShakePlugin.native.js.map +1 -1
  32. package/dist/cjs/vite/vitePluginSsrCss.js.map +1 -1
  33. package/dist/cjs/vite/vitePluginSsrCss.native.js.map +1 -1
  34. package/dist/esm/createApp.native.js +0 -2
  35. package/dist/esm/createApp.native.js.map +1 -1
  36. package/dist/esm/createHandleRequest.js +2 -1
  37. package/dist/esm/createHandleRequest.js.map +1 -1
  38. package/dist/esm/createHandleRequest.mjs +2 -1
  39. package/dist/esm/createHandleRequest.mjs.map +1 -1
  40. package/dist/esm/createHandleRequest.native.js +2 -1
  41. package/dist/esm/createHandleRequest.native.js.map +2 -2
  42. package/dist/esm/hooks.js.map +1 -1
  43. package/dist/esm/hooks.mjs.map +1 -1
  44. package/dist/esm/hooks.native.js.map +1 -1
  45. package/dist/esm/href.js +9 -0
  46. package/dist/esm/href.js.map +6 -0
  47. package/dist/esm/href.mjs +6 -0
  48. package/dist/esm/href.mjs.map +1 -0
  49. package/dist/esm/href.native.js +9 -0
  50. package/dist/esm/href.native.js.map +6 -0
  51. package/dist/esm/imperative-api.js +1 -4
  52. package/dist/esm/imperative-api.js.map +1 -1
  53. package/dist/esm/imperative-api.mjs +1 -3
  54. package/dist/esm/imperative-api.mjs.map +1 -1
  55. package/dist/esm/imperative-api.native.js +1 -4
  56. package/dist/esm/imperative-api.native.js.map +1 -1
  57. package/dist/esm/index.js +15 -13
  58. package/dist/esm/index.js.map +1 -1
  59. package/dist/esm/index.mjs +15 -14
  60. package/dist/esm/index.mjs.map +1 -1
  61. package/dist/esm/index.native.js +15 -13
  62. package/dist/esm/index.native.js.map +2 -2
  63. package/dist/esm/router/router.js.map +1 -1
  64. package/dist/esm/router/router.mjs.map +1 -1
  65. package/dist/esm/router/router.native.js.map +1 -1
  66. package/dist/esm/vite/clientTreeShakePlugin.js +1 -2
  67. package/dist/esm/vite/clientTreeShakePlugin.js.map +1 -1
  68. package/dist/esm/vite/clientTreeShakePlugin.mjs +1 -3
  69. package/dist/esm/vite/clientTreeShakePlugin.mjs.map +1 -1
  70. package/dist/esm/vite/clientTreeShakePlugin.native.js +1 -2
  71. package/dist/esm/vite/clientTreeShakePlugin.native.js.map +1 -1
  72. package/dist/esm/vite/vitePluginSsrCss.js.map +1 -1
  73. package/dist/esm/vite/vitePluginSsrCss.mjs.map +1 -1
  74. package/dist/esm/vite/vitePluginSsrCss.native.js.map +1 -1
  75. package/package.json +10 -10
  76. package/src/createApp.native.tsx +0 -3
  77. package/src/createHandleRequest.ts +6 -2
  78. package/src/hooks.tsx +1 -2
  79. package/src/href.ts +12 -0
  80. package/src/imperative-api.ts +1 -5
  81. package/src/index.ts +22 -25
  82. package/src/interfaces/router.ts +4 -3
  83. package/src/router/router.ts +1 -1
  84. package/src/types.ts +1 -0
  85. package/src/vite/clientTreeShakePlugin.ts +0 -1
  86. package/src/vite/vitePluginSsrCss.ts +0 -1
  87. package/types/createApp.native.d.ts.map +1 -1
  88. package/types/createHandleRequest.d.ts +2 -4
  89. package/types/createHandleRequest.d.ts.map +1 -1
  90. package/types/createRoute.d.ts +2 -2
  91. package/types/hooks.d.ts +1 -1
  92. package/types/hooks.d.ts.map +1 -1
  93. package/types/href.d.ts +7 -0
  94. package/types/href.d.ts.map +1 -0
  95. package/types/imperative-api.d.ts.map +1 -1
  96. package/types/index.d.ts +14 -13
  97. package/types/index.d.ts.map +1 -1
  98. package/types/interfaces/router.d.ts +3 -1
  99. package/types/interfaces/router.d.ts.map +1 -1
  100. package/types/router/router.d.ts +1 -1
  101. package/types/router/router.d.ts.map +1 -1
  102. package/types/types.d.ts +1 -0
  103. package/types/types.d.ts.map +1 -1
  104. package/types/vite/clientTreeShakePlugin.d.ts.map +1 -1
  105. package/types/vite/vitePluginSsrCss.d.ts.map +1 -1
@@ -8,7 +8,6 @@ export const VIRTUAL_ENTRY = `virtual:ssr-css.css`
8
8
  export function vitePluginSsrCss(pluginOpts: { entries: string[] }): Plugin {
9
9
  let server: ViteDevServer
10
10
 
11
- // TODO: base
12
11
  const virtualHref = '/@id/__x00__' + VIRTUAL_ENTRY
13
12
 
14
13
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"createApp.native.d.ts","sourceRoot":"","sources":["../src/createApp.native.tsx"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAA;AAI3B,MAAM,MAAM,cAAc,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC,CAAA;CAAE,CAAA;AAK/E,wBAAgB,SAAS,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI,CAWvD"}
1
+ {"version":3,"file":"createApp.native.d.ts","sourceRoot":"","sources":["../src/createApp.native.tsx"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAA;AAI3B,MAAM,MAAM,cAAc,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC,CAAA;CAAE,CAAA;AAK/E,wBAAgB,SAAS,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI,CAQvD"}
@@ -1,13 +1,11 @@
1
1
  import type { RouteInfo } from './server/createRoutesManifest';
2
+ import type { LoaderProps } from './types';
2
3
  import type { One } from './vite/types';
3
4
  type RequestHandlerProps<RouteExtraProps extends Object = {}> = {
4
5
  request: Request;
5
6
  route: RouteInfo<string> & RouteExtraProps;
6
7
  url: URL;
7
- loaderProps?: {
8
- path: string;
9
- params: Record<string, any>;
10
- };
8
+ loaderProps?: LoaderProps;
11
9
  };
12
10
  type RequestHandlerResponse = null | string | Response;
13
11
  export declare function createHandleRequest(options: One.PluginOptions, handlers: {
@@ -1 +1 @@
1
- {"version":3,"file":"createHandleRequest.d.ts","sourceRoot":"","sources":["../src/createHandleRequest.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAA;AAI9D,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAEvC,KAAK,mBAAmB,CAAC,eAAe,SAAS,MAAM,GAAG,EAAE,IAAI;IAC9D,OAAO,EAAE,OAAO,CAAA;IAChB,KAAK,EAAE,SAAS,CAAC,MAAM,CAAC,GAAG,eAAe,CAAA;IAC1C,GAAG,EAAE,GAAG,CAAA;IACR,WAAW,CAAC,EAAE;QAAE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C,KAAK,EAAE,mBAAmB,KAAK,OAAO,CAAC,GAAG,CAAC,CAAA;IACxD,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,OAAO,CAAC,GAAG,CAAC,CAAA;IAC3D,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,OAAO,CAAC,GAAG,CAAC,CAAA;CACzD;;uBA4BgD,OAAO,KAAG,OAAO,CAAC,sBAAsB,CAAC;EAwJ3F"}
@@ -1,6 +1,6 @@
1
1
  import type { OneRouter } from './interfaces/router';
2
2
  export declare function createRoute<Path>(): {
3
- useParams: () => OneRouter.InputRouteParams<Path>;
3
+ useParams: () => Partial<OneRouter.InputRouteParams<Path>>;
4
4
  useActiveParams: () => Partial<OneRouter.InputRouteParams<Path>>;
5
5
  createLoader: (a: (props: {
6
6
  params: OneRouter.InputRouteParams<Path>;
@@ -9,7 +9,7 @@ export declare function createRoute<Path>(): {
9
9
  }) => any;
10
10
  };
11
11
  declare const postIdRoute: {
12
- useParams: () => OneRouter.InputRouteParams<"/feed/[id]">;
12
+ useParams: () => Partial<OneRouter.InputRouteParams<"/feed/[id]">>;
13
13
  useActiveParams: () => Partial<OneRouter.InputRouteParams<"/feed/[id]">>;
14
14
  createLoader: (a: (props: {
15
15
  params: OneRouter.InputRouteParams<"/feed/[id]">;
package/types/hooks.d.ts CHANGED
@@ -57,6 +57,6 @@ export declare const useGlobalSearchParams: typeof useActiveParams;
57
57
  *
58
58
  * To observe updates even when the invoking route is not focused, use `useActiveParams()`.
59
59
  */
60
- export declare function useParams<TParams extends Object = SearchParams>(): TParams;
60
+ export declare function useParams<TParams extends Object = SearchParams>(): Partial<TParams>;
61
61
  export {};
62
62
  //# sourceMappingURL=hooks.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../src/hooks.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAiB,KAAK,SAAS,EAAE,MAAM,OAAO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ErC;AAED,wBAAgB,YAAY,wDAE3B;AAED,uJAAuJ;AACvJ,wBAAgB,yBAAyB,4BAExC;AAID,wBAAgB,MAAM,CAAC,EAAE,EAAU,EAAE,QAAQ,EAAE,EAAE;IAAE,EAAE,CAAC,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,SAAS,CAAA;CAAE,sHAyBrF;AAED,wBAAgB,SAAS,IAAI,SAAS,CAAC,MAAM,CAE5C;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,IAAI,MAAM,CAE9C;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,WAAW,CAAC,SAAS,SAAS,MAAM,EAAE,GAAG,MAAM,EAAE,KAAK,SAAS,CAE9E;AAED,kEAAkE;AAClE,wBAAgB,WAAW,IAAI,MAAM,CAEpC;AAED;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,OAAO,SAAS,MAAM,GAAG,YAAY,KAAK,OAAO,CAAC,OAAO,CAAC,CAEzF;AAED,mCAAmC;AACnC,eAAO,MAAM,oBAAoB,kBAAY,CAAA;AAE7C,yCAAyC;AACzC,eAAO,MAAM,qBAAqB,wBAAkB,CAAA;AAEpD;;;;;GAKG;AAEH,wBAAgB,SAAS,CAAC,OAAO,SAAS,MAAM,GAAG,YAAY,KAAK,OAAO,CAAC,OAAO,CAAC,CAyBnF"}
@@ -0,0 +1,7 @@
1
+ import type { OneRouter } from './interfaces/router';
2
+ /**
3
+ * Type-level utility function to help pass valid Href typed strings.
4
+ * Does not actually validate at runtime, though we could add this later.
5
+ */
6
+ export declare function href<A extends OneRouter.Href>(a: A): A;
7
+ //# sourceMappingURL=href.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"href.d.ts","sourceRoot":"","sources":["../src/href.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAEpD;;;GAGG;AACH,wBAAgB,IAAI,CAAC,CAAC,SAAS,SAAS,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC,CAKtD"}
@@ -1 +1 @@
1
- {"version":3,"file":"imperative-api.d.ts","sourceRoot":"","sources":["../src/imperative-api.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAEpD,eAAO,MAAM,MAAM,EAAE,SAAS,CAAC,MAgB9B,CAAA"}
1
+ {"version":3,"file":"imperative-api.d.ts","sourceRoot":"","sources":["../src/imperative-api.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAEpD,eAAO,MAAM,MAAM,EAAE,SAAS,CAAC,MAY9B,CAAA"}
package/types/index.d.ts CHANGED
@@ -3,9 +3,13 @@ import type { OneRouter } from './interfaces/router';
3
3
  export type Href = OneRouter.Href;
4
4
  export type LinkProps<T extends string | object = string> = OneRouter.LinkProps<T>;
5
5
  export type { Endpoint, LoaderProps } from './types';
6
- export * from '@vxrn/universal-color-scheme';
7
- export { Root } from './Root';
6
+ export { router } from './imperative-api';
7
+ export { createRoute, route } from './createRoute';
8
+ export { onClientLoaderResolve } from './clientLoaderResolver';
9
+ export { createApp } from './createApp';
8
10
  export { render } from './render';
11
+ export { Root } from './Root';
12
+ export * as routerStore from './router/router';
9
13
  export { Stack } from './layouts/Stack';
10
14
  export { Tabs } from './layouts/Tabs';
11
15
  export { SafeAreaView } from 'react-native-safe-area-context';
@@ -13,21 +17,18 @@ export { Navigator, Slot } from './views/Navigator';
13
17
  export { ErrorBoundary } from './views/ErrorBoundary';
14
18
  export { ScrollRestoration } from './views/ScrollRestoration';
15
19
  export { LoadProgressBar } from './views/LoadProgressBar';
16
- export { createApp } from './createApp';
17
- export { createRoute, route } from './createRoute';
18
- export { onClientLoaderResolve } from './clientLoaderResolver';
19
- export { isResponse } from './utils/isResponse';
20
- export { getURL } from './getURL';
21
- export { redirect } from './utils/redirect';
22
- export { useLinkTo } from './link/useLinkTo';
23
- export { useRouter, useUnstableGlobalHref, usePathname, useNavigationContainerRef, useParams, useActiveParams, useSegments, useRootNavigationState, } from './hooks';
24
- export { useLocalSearchParams, useGlobalSearchParams, } from './hooks';
25
- export * as routerStore from './router/router';
26
- export { router } from './imperative-api';
27
20
  export { Link } from './link/Link';
28
21
  export { Redirect } from './link/Redirect';
29
22
  export { Head } from './head';
23
+ export { useLinkTo } from './link/useLinkTo';
24
+ export { useRouter, useUnstableGlobalHref, usePathname, useNavigationContainerRef, useParams, useActiveParams, useSegments, useRootNavigationState, } from './hooks';
25
+ export { useLocalSearchParams, useGlobalSearchParams, } from './hooks';
30
26
  export { withLayoutContext } from './layouts/withLayoutContext';
27
+ export { isResponse } from './utils/isResponse';
28
+ export { getURL } from './getURL';
29
+ export { redirect } from './utils/redirect';
30
+ export { href } from './href';
31
+ export * from '@vxrn/universal-color-scheme';
31
32
  export { useFocusEffect } from './useFocusEffect';
32
33
  export { useNavigation } from './useNavigation';
33
34
  export { useLoader } from './useLoader';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAA;AACzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAEpD,MAAM,MAAM,IAAI,GAAG,SAAS,CAAC,IAAI,CAAA;AACjC,MAAM,MAAM,SAAS,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,IAAI,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,CAAA;AAElF,YAAY,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAEpD,cAAc,8BAA8B,CAAA;AAE5C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEjC,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;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AAe,EAAE,MAAM,yBAAyB,CAAA;AACzD,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAG7B,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAC5C,OAAO,EACL,SAAS,EACT,qBAAqB,EACrB,WAAW,EACX,yBAAyB,EACzB,SAAS,EACT,eAAe,EACf,WAAW,EACX,sBAAsB,GACvB,MAAM,SAAS,CAAA;AAEhB,OAAO,EACL,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,SAAS,CAAA;AAGhB,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAA;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAG7B,cAAc,8BAA8B,CAAA;AAG5C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA"}
@@ -129,6 +129,8 @@ export declare namespace OneRouter {
129
129
  /***********************
130
130
  * One Exports *
131
131
  ***********************/
132
+ export type InputRouteParamsBlank = Record<string, string | undefined | null>;
133
+ export type InpurRouteParamsGeneric = InputRouteParamsBlank | InputRouteParams<any>;
132
134
  export type Router = {
133
135
  /** Go back in the history. */
134
136
  back: () => void;
@@ -147,7 +149,7 @@ export declare namespace OneRouter {
147
149
  /** If there's history that supports invoking the `dismiss` and `dismissAll` function. */
148
150
  canDismiss: () => boolean;
149
151
  /** Update the current route query params. */
150
- setParams: <T = ''>(params?: T extends '' ? Record<string, string | undefined | null> : InputRouteParams<T>) => void;
152
+ setParams: <T = ''>(params?: T extends '' ? InputRouteParamsBlank : InputRouteParams<T>) => void;
151
153
  /** Subscribe to state updates from the router */
152
154
  subscribe: (listener: RootStateListener) => () => void;
153
155
  /** Subscribe to loading state updates */
@@ -1 +1 @@
1
- {"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../src/interfaces/router.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iCAAiC,EACjC,eAAe,EACf,YAAY,EACb,MAAM,wBAAwB,CAAA;AAC/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAAK,EAAE,SAAS,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAA;AAEpE,yBAAiB,SAAS,CAAC;IACzB,MAAM,WAAW,QAAQ,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,CAAE,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;KAAG;IAGvF,MAAM,MAAM,KAAK,CAAC,IAAI,IAAI;QACxB,MAAM,EAAE,gBAAgB,CAAC,IAAI,CAAC,CAAA;QAC9B,KAAK,EAAE;YAAE,MAAM,EAAE,gBAAgB,CAAC,IAAI,CAAC,CAAA;SAAE,CAAA;QACzC,MAAM,EAAE,CAAC,KAAK,EAAE;YAAE,MAAM,EAAE,gBAAgB,CAAC,IAAI,CAAC,CAAA;SAAE,KAAK,GAAG,CAAA;KAC3D,CAAA;IAED,KAAK,YAAY,GAAG,QAAQ,SAAS;QAAE,YAAY,EAAE,MAAM,CAAA;KAAE,GAAG,QAAQ,CAAC,cAAc,CAAC,GAAG,MAAM,CAAA;IAEjG,KAAK,aAAa,CAAC,CAAC,SAAS,MAAM,IAAI,QAAQ,CAAC,CAAC,CAAC,SAAS;QAAE,aAAa,EAAE,GAAG,CAAA;KAAE,GAC7E,CAAC,SAAS,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,eAAe,CAAC,GAC1C,CA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CAAC,CAAC,CAAC,GAAG,CAAC,CAAA;IAG9C;;;;;;;;;;;;;;;;;;OAkBG;IACH,gBAAwB,WAAW,CACjC,CAAC,SAAS,aAAa,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,kBAAkB,KACxE,CAAC,SAAS,aAAa,GAAG,aAAa,CAAC,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,GAAG,CAAC,CAAA;;CAElF;AAGD,yBAAiB,GAAG,CAAC;IACnB,KAAY,KAAK,CAAC,IAAI,IAAI,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;CAChD"}
@@ -18,7 +18,7 @@ export declare function navigate(url: OneRouter.Href, options?: OneRouter.LinkTo
18
18
  export declare function push(url: OneRouter.Href, options?: OneRouter.LinkToOptions): Promise<void>;
19
19
  export declare function dismiss(count?: number): void;
20
20
  export declare function replace(url: OneRouter.Href, options?: OneRouter.LinkToOptions): Promise<void>;
21
- export declare function setParams(params?: Record<string, string | number>): void | undefined;
21
+ export declare function setParams(params?: OneRouter.InpurRouteParamsGeneric): void | undefined;
22
22
  export declare function dismissAll(): void;
23
23
  export declare function goBack(): void;
24
24
  export declare function canGoBack(): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../src/router/router.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,iCAAiC,EAEvC,MAAM,0BAA0B,CAAA;AAGjC,OAAO,EAAmD,KAAK,aAAa,EAAE,MAAM,OAAO,CAAA;AAE3F,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAKzC,OAAO,EAAoB,KAAK,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAE/E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAUrD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,EAA0B,KAAK,SAAS,EAAE,MAAM,0BAA0B,CA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M,SAGrB;AAED,wBAAgB,SAAS,IAAI,OAAO,CAKnC;AAED,wBAAgB,UAAU,IAAI,OAAO,CAcpC;AAED,wBAAgB,eAAe,gBAK9B;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,SAAS,CAAC,WAAW,EAAE,cAAc,wBAAQ,QAS/E;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,SAAS,CAAC,WAAW,aAYxD;AAmBD,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,SAAS,CAAC,iBAAiB,cAK3E;AAED,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,MAAM,IAAI,cAKtD;AAGD,wBAAgB,uBAAuB,CAAC,UAAU,EAAE,SAAS,CAAC,oBAAoB,cAKjF;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,SAAS,CAAC,YAAY,QAI5D;AAUD,wBAAgB,QAAQ;;;;;;;;;;;;qCArPa,IAAI;;gCAIF,IAAI;EAmP1C;AAqBD,wBAAgB,iBAAiB,0BAEhC;AAED,wBAAgB,iBAAiB,cAEhC;AAGD,wBAAgB,YAAY;;;;;;;;;;;;qCArRS,IAAI;;gCAIF,IAAI;EAmR1C;AAcD,wBAAgB,iBAAiB,0BAGhC;AAED,wBAAgB,iBAAiB,cAGhC;AAoCD,wBAAgB,OAAO,SAItB;AAGD,eAAO,MAAM,gBAAgB,IAAK,CAAA;AAoBlC,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,QAaxC;AAED,wBAAsB,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,CAAC,aAAa,iBAwG3F"}
package/types/types.d.ts CHANGED
@@ -17,6 +17,7 @@ export type RenderApp = (props: RenderAppProps) => Promise<string>;
17
17
  export type LoaderProps<Params extends Object = Record<string, string>> = {
18
18
  path: string;
19
19
  params: Params;
20
+ request?: Request;
20
21
  };
21
22
  export type RenderAppProps = {
22
23
  path: string;
@@ -1 +1 @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EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;IACnB,GAAG,CAAC,EAAE,MAAM,EAAE,CAAA;IACd,gBAAgB,CAAC,EAAE,GAAG,CAAA;IACtB,UAAU,CAAC,EAAE,GAAG,CAAA;IAChB,WAAW,CAAC,EAAE,WAAW,CAAA;CAC1B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"clientTreeShakePlugin.d.ts","sourceRoot":"","sources":["../../src/vite/clientTreeShakePlugin.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAMlC,eAAO,MAAM,qBAAqB,QAAO,MAiBxC,CAAA;AAED,wBAAsB,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM;;;;;;;;;;;eAoEtE"}
1
+ {"version":3,"file":"clientTreeShakePlugin.d.ts","sourceRoot":"","sources":["../../src/vite/clientTreeShakePlugin.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAMlC,eAAO,MAAM,qBAAqB,QAAO,MAiBxC,CAAA;AAED,wBAAsB,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM;;;;;;;;;;;eAmEtE"}
@@ -1 +1 @@
1
- {"version":3,"file":"vitePluginSsrCss.d.ts","sourceRoot":"","sources":["../../src/vite/vitePluginSsrCss.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,MAAM,CAAA;AAKjD,eAAO,MAAM,aAAa,wBAAwB,CAAA;AAElD,wBAAgB,gBAAgB,CAAC,UAAU,EAAE;IAAE,OAAO,EAAE,MAAM,EAAE,CAAA;CAAE,GAAG,MAAM,CAiF1E;AAaD,wBAAsB,YAAY,CAAC,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,EAAE,mBAyB1E"}
1
+ {"version":3,"file":"vitePluginSsrCss.d.ts","sourceRoot":"","sources":["../../src/vite/vitePluginSsrCss.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,MAAM,CAAA;AAKjD,eAAO,MAAM,aAAa,wBAAwB,CAAA;AAElD,wBAAgB,gBAAgB,CAAC,UAAU,EAAE;IAAE,OAAO,EAAE,MAAM,EAAE,CAAA;CAAE,GAAG,MAAM,CAgF1E;AAaD,wBAAsB,YAAY,CAAC,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,EAAE,mBAyB1E"}