fimo-react-router 0.21.0-experimental.3 → 0.21.0-staging.7
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/FimoProviders.js +3 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/navigation-utils.d.ts +2 -2
- package/dist/navigation-utils.js +1 -1
- package/dist/prefetch.js +1 -1
- package/dist/seo.d.ts +3 -1
- package/dist/seo.js +1 -1
- package/package.json +13 -13
package/dist/FimoProviders.js
CHANGED
|
@@ -2,7 +2,7 @@ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-run
|
|
|
2
2
|
import { QueryClient, QueryClientContext, QueryClientProvider } from '@tanstack/react-query';
|
|
3
3
|
import { AppErrorBoundary, DataSourcesProvider, RefreshContentProvider, ScreenshotProvider, ViteLifecycles, } from 'fimo-react';
|
|
4
4
|
import { FimoLocaleProvider, onError } from 'fimo-react/internal';
|
|
5
|
-
import { getFimoTextDirection, resolveFimoLocale, toHtmlLang } from 'fimo/
|
|
5
|
+
import { getFimoTextDirection, resolveFimoLocale, toHtmlLang } from 'fimo/i18n';
|
|
6
6
|
import { ensurePreviewScript, getPreviewLocationChange, getPreviewParentOrigin, getSafePreviewNavigationPath, isPreviewRuntimeEnabled, } from 'fimo/preview';
|
|
7
7
|
import { matchFimoRoute } from 'fimo/routes';
|
|
8
8
|
import { Suspense, useCallback, useContext, useEffect, useMemo, useRef } from 'react';
|
|
@@ -54,7 +54,8 @@ function getCanonicalRoutePath(path) {
|
|
|
54
54
|
* route-owned integrations pass an explicit locale to `FimoProviders`.
|
|
55
55
|
*/
|
|
56
56
|
function getRouteLocale(pathname) {
|
|
57
|
-
return (matchFimoRoute(pathname, fimoConfig)?.locale ??
|
|
57
|
+
return (matchFimoRoute(pathname, fimoConfig)?.locale ??
|
|
58
|
+
resolveFimoLocale({ pathname }, fimoConfig).locale);
|
|
58
59
|
}
|
|
59
60
|
function hasReadableFrameworkManifest(manifest) {
|
|
60
61
|
return Boolean(manifest &&
|
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export { FimoProviders } from './FimoProviders.js';
|
|
2
2
|
export { FimoScripts } from './FimoScripts.js';
|
|
3
3
|
export { useLocale, formClient } from 'fimo-react';
|
|
4
|
-
export { localizeFimoPath, resolveFimoLocale } from 'fimo/
|
|
4
|
+
export { localizeFimoPath, resolveFimoLocale } from 'fimo/i18n';
|
|
5
5
|
export { FimoLink, useFimoHref, useFimoNavigate } from './navigation.js';
|
|
6
6
|
export { localizeFimoTo } from './navigation-utils.js';
|
|
7
7
|
export { AppRoutesProvider } from './AppRoutesProvider.js';
|
|
8
8
|
export type { AppRoute, SlugInfo } from './AppRoutesProvider.js';
|
|
9
9
|
export type { DisplayRoute, FimoProvidersProps, ParamInfo } from './FimoProviders.js';
|
|
10
10
|
export type { FimoLocaleContextValue } from 'fimo-react';
|
|
11
|
-
export type { FimoLocaleResolution } from 'fimo/
|
|
11
|
+
export type { FimoLocaleResolution } from 'fimo/i18n';
|
|
12
12
|
export type { FimoLinkProps, FimoNavigationOptions } from './navigation.js';
|
|
13
13
|
export { Pageview } from './Pageview.js';
|
|
14
14
|
export * from './seo.js';
|
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
export { FimoProviders } from './FimoProviders.js';
|
|
8
8
|
export { FimoScripts } from './FimoScripts.js';
|
|
9
9
|
export { useLocale, formClient } from 'fimo-react';
|
|
10
|
-
export { localizeFimoPath, resolveFimoLocale } from 'fimo/
|
|
10
|
+
export { localizeFimoPath, resolveFimoLocale } from 'fimo/i18n';
|
|
11
11
|
export { FimoLink, useFimoHref, useFimoNavigate } from './navigation.js';
|
|
12
12
|
export { localizeFimoTo } from './navigation-utils.js';
|
|
13
13
|
export { AppRoutesProvider } from './AppRoutesProvider.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { FimoRoutesConfig } from 'fimo/routes';
|
|
2
2
|
export type FimoNavigationTo = string | {
|
|
3
3
|
pathname?: string;
|
|
4
4
|
search?: string;
|
|
5
5
|
hash?: string;
|
|
6
6
|
};
|
|
7
|
-
export declare function localizeFimoTo(to: FimoNavigationTo, locale: string, config: Pick<
|
|
7
|
+
export declare function localizeFimoTo(to: FimoNavigationTo, locale: string, config: Pick<FimoRoutesConfig, 'i18n'> | undefined): FimoNavigationTo;
|
|
8
8
|
//# sourceMappingURL=navigation-utils.d.ts.map
|
package/dist/navigation-utils.js
CHANGED
package/dist/prefetch.js
CHANGED
package/dist/seo.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { resolveSeoForPath } from 'fimo/seo';
|
|
2
|
+
type FimoSEO = NonNullable<ReturnType<typeof resolveSeoForPath>>;
|
|
2
3
|
export declare function getSeoForPath(pathname: string, routeData?: unknown): FimoSEO | undefined;
|
|
3
4
|
export declare function buildMetaForPath(pathname: string, routeData?: unknown): ({
|
|
4
5
|
title: string;
|
|
@@ -90,4 +91,5 @@ export declare function loadFimoMetaData({ request }: {
|
|
|
90
91
|
fimoMetaData: Record<string, unknown> | undefined;
|
|
91
92
|
fimoLocale: import("fimo-react").FimoLocaleResolution;
|
|
92
93
|
}>;
|
|
94
|
+
export {};
|
|
93
95
|
//# sourceMappingURL=seo.d.ts.map
|
package/dist/seo.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getFimoTextDirection, toHtmlLang } from 'fimo/
|
|
1
|
+
import { getFimoTextDirection, toHtmlLang } from 'fimo/i18n';
|
|
2
2
|
import { normalizePathname, resolveSeoForPath } from 'fimo/seo';
|
|
3
3
|
// @ts-ignore - virtual module provided by fimoConfigPlugin in fimo-vite
|
|
4
4
|
import rawConfig from 'virtual:fimo-config';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fimo-react-router",
|
|
3
|
-
"version": "0.21.0-
|
|
3
|
+
"version": "0.21.0-staging.7",
|
|
4
4
|
"description": "Fimo runtime, routing and build integration for React Router projects. Pairs with the fimo package at the same version.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist/",
|
|
@@ -39,27 +39,27 @@
|
|
|
39
39
|
"test:watch": "vitest"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"fimo-react": "0.21.0-
|
|
43
|
-
"fimo-vite": "0.21.0-
|
|
42
|
+
"fimo-react": "0.21.0-staging.7",
|
|
43
|
+
"fimo-vite": "0.21.0-staging.7",
|
|
44
44
|
"react-error-boundary": "^6.0.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@fimo/tsconfig": "0.21.0-
|
|
47
|
+
"@fimo/tsconfig": "0.21.0-staging.7",
|
|
48
48
|
"@tanstack/react-query": "^5.80.6",
|
|
49
|
-
"@types/node": "
|
|
50
|
-
"@types/react": "
|
|
51
|
-
"@types/react-dom": "
|
|
52
|
-
"fimo": "0.21.0-
|
|
53
|
-
"react": "
|
|
54
|
-
"react-dom": "
|
|
55
|
-
"react-router": "
|
|
49
|
+
"@types/node": "22.18.6",
|
|
50
|
+
"@types/react": "19.2.14",
|
|
51
|
+
"@types/react-dom": "19.2.3",
|
|
52
|
+
"fimo": "0.21.0-staging.7",
|
|
53
|
+
"react": "19.2.4",
|
|
54
|
+
"react-dom": "19.2.4",
|
|
55
|
+
"react-router": "7.18.2",
|
|
56
56
|
"typescript": "7.0.2",
|
|
57
57
|
"vite": "^8.0.13",
|
|
58
|
-
"vitest": "
|
|
58
|
+
"vitest": "4.1.10"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
61
|
"@tanstack/react-query": "^5.80.6",
|
|
62
|
-
"fimo": "0.21.0-
|
|
62
|
+
"fimo": "0.21.0-staging.7",
|
|
63
63
|
"react": "^18.2.0 || ^19.0.0",
|
|
64
64
|
"react-dom": "^18.2.0 || ^19.0.0",
|
|
65
65
|
"react-router": "^7.0.0 || ^8.0.0",
|