reroute-js 0.45.11 → 0.46.0
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/README.md +100 -2
- package/_/blog/src/client/routes/blog/[layout].tsx +45 -13
- package/_/blog/src/client/routes/blog/content/pt-BR/1-hello-world.tsx +27 -0
- package/_/blog/src/client/routes/index.tsx +4 -4
- package/_/search/src/client/routes/docs/content/content-collections.md +18 -0
- package/cli/bin.d.ts +2 -2
- package/cli/bin.js +1175 -431
- package/cli/bin.js.map +33 -24
- package/cli/index.d.ts +2 -2
- package/cli/index.js +5 -5
- package/cli/index.js.map +1 -1
- package/cli/src/cli.d.ts +2 -2
- package/cli/src/commands/analyze.d.ts +2 -2
- package/cli/src/commands/build.d.ts +2 -2
- package/cli/src/commands/dev.d.ts +2 -2
- package/cli/src/commands/gen.d.ts +2 -2
- package/cli/src/commands/gen.d.ts.map +1 -1
- package/cli/src/commands/index.d.ts +2 -2
- package/cli/src/commands/init.d.ts +2 -2
- package/cli/src/commands/lib/assets.d.ts +2 -2
- package/cli/src/commands/lib/bundler.d.ts +2 -2
- package/cli/src/commands/lib/command.d.ts +2 -2
- package/cli/src/commands/lib/env.d.ts +2 -2
- package/cli/src/commands/lib/index.d.ts +2 -2
- package/cli/src/commands/lib/log.d.ts +2 -2
- package/cli/src/commands/lib/markdown/availability.d.ts +2 -2
- package/cli/src/commands/lib/markdown/index.d.ts +2 -2
- package/cli/src/commands/lib/markdown/processor.d.ts +2 -2
- package/cli/src/commands/lib/production.d.ts +2 -2
- package/cli/src/commands/lib/server.d.ts +2 -2
- package/cli/src/commands/lib/streaming/analyzer.d.ts +2 -2
- package/cli/src/commands/lib/streaming/suspense.d.ts +2 -2
- package/cli/src/commands/lib/tailwind.d.ts +2 -2
- package/cli/src/commands/lib/terminal-ui.d.ts +2 -2
- package/cli/src/commands/lib/version.d.ts +2 -2
- package/cli/src/commands/og.d.ts +2 -2
- package/cli/src/commands/start.d.ts +2 -2
- package/cli/src/index.d.ts +2 -2
- package/core/index.d.ts +2 -2
- package/core/index.js +827 -192
- package/core/index.js.map +32 -23
- package/core/src/bundler/hash.d.ts +2 -2
- package/core/src/bundler/index.d.ts +2 -2
- package/core/src/config.d.ts +6 -3
- package/core/src/config.d.ts.map +1 -1
- package/core/src/content/discovery.d.ts +2 -2
- package/core/src/content/index.d.ts +2 -2
- package/core/src/content/metadata.d.ts +2 -2
- package/core/src/i18n/catalog.d.ts +17 -0
- package/core/src/i18n/catalog.d.ts.map +1 -0
- package/core/src/i18n/discover.d.ts +19 -0
- package/core/src/i18n/discover.d.ts.map +1 -0
- package/core/src/i18n/index.d.ts +17 -0
- package/core/src/i18n/index.d.ts.map +1 -0
- package/core/src/i18n/messages.d.ts +18 -0
- package/core/src/i18n/messages.d.ts.map +1 -0
- package/core/src/i18n/negotiate.d.ts +18 -0
- package/core/src/i18n/negotiate.d.ts.map +1 -0
- package/core/src/i18n/pathname.d.ts +34 -0
- package/core/src/i18n/pathname.d.ts.map +1 -0
- package/core/src/i18n/resolve.d.ts +22 -0
- package/core/src/i18n/resolve.d.ts.map +1 -0
- package/core/src/i18n/types.d.ts +68 -0
- package/core/src/i18n/types.d.ts.map +1 -0
- package/core/src/index.d.ts +3 -2
- package/core/src/index.d.ts.map +1 -1
- package/core/src/llms/extractor.d.ts +2 -2
- package/core/src/llms/formatter.d.ts +2 -2
- package/core/src/llms/full-generator.d.ts +2 -2
- package/core/src/llms/index-generator.d.ts +2 -2
- package/core/src/llms/index.d.ts +2 -2
- package/core/src/og/discovery.d.ts +2 -2
- package/core/src/og/discovery.d.ts.map +1 -1
- package/core/src/og/index.d.ts +2 -2
- package/core/src/og/meta.d.ts +2 -2
- package/core/src/og/render.d.ts +2 -2
- package/core/src/og/types.d.ts +2 -2
- package/core/src/robots/discovery.d.ts +2 -2
- package/core/src/robots/generator.d.ts +2 -2
- package/core/src/robots/index.d.ts +2 -2
- package/core/src/robots/policies.d.ts +2 -2
- package/core/src/rss/discovery.d.ts +4 -2
- package/core/src/rss/discovery.d.ts.map +1 -1
- package/core/src/rss/generator.d.ts +2 -2
- package/core/src/rss/index.d.ts +2 -2
- package/core/src/sitemap/discovery.d.ts +7 -2
- package/core/src/sitemap/discovery.d.ts.map +1 -1
- package/core/src/sitemap/generator.d.ts +2 -2
- package/core/src/sitemap/generator.d.ts.map +1 -1
- package/core/src/sitemap/index.d.ts +2 -2
- package/core/src/ssr/index.d.ts +2 -2
- package/core/src/ssr/lib/cache.d.ts +2 -2
- package/core/src/ssr/lib/cleanup.d.ts +2 -2
- package/core/src/ssr/lib/collections.d.ts +2 -2
- package/core/src/ssr/lib/compression.d.ts +2 -2
- package/core/src/ssr/lib/compute/content.d.ts +2 -9
- package/core/src/ssr/lib/compute/content.d.ts.map +1 -1
- package/core/src/ssr/lib/compute/index.d.ts +2 -2
- package/core/src/ssr/lib/compute/index.d.ts.map +1 -1
- package/core/src/ssr/lib/compute/layouts.d.ts +2 -2
- package/core/src/ssr/lib/compute/routes.d.ts +2 -2
- package/core/src/ssr/lib/compute/routes.d.ts.map +1 -1
- package/core/src/ssr/lib/content-path.d.ts +22 -0
- package/core/src/ssr/lib/content-path.d.ts.map +1 -0
- package/core/src/ssr/lib/data.d.ts +2 -2
- package/core/src/ssr/lib/data.d.ts.map +1 -1
- package/core/src/ssr/lib/html.d.ts +2 -2
- package/core/src/ssr/lib/imports.d.ts +2 -2
- package/core/src/ssr/lib/index.d.ts +3 -2
- package/core/src/ssr/lib/index.d.ts.map +1 -1
- package/core/src/ssr/lib/layouts.d.ts +2 -2
- package/core/src/ssr/lib/metadata.d.ts +2 -2
- package/core/src/ssr/lib/metadata.d.ts.map +1 -1
- package/core/src/ssr/lib/mime.d.ts +2 -2
- package/core/src/ssr/lib/modules.d.ts +4 -4
- package/core/src/ssr/lib/modules.d.ts.map +1 -1
- package/core/src/ssr/lib/path.d.ts +2 -2
- package/core/src/ssr/lib/preload.d.ts +2 -2
- package/core/src/ssr/lib/preload.d.ts.map +1 -1
- package/core/src/ssr/lib/route-match.d.ts +20 -0
- package/core/src/ssr/lib/route-match.d.ts.map +1 -0
- package/core/src/ssr/lib/scripts/collections.d.ts +2 -2
- package/core/src/ssr/lib/scripts/data.d.ts +3 -3
- package/core/src/ssr/lib/scripts/data.d.ts.map +1 -1
- package/core/src/ssr/lib/scripts/escape.d.ts +2 -2
- package/core/src/ssr/lib/scripts/feeds.d.ts +2 -2
- package/core/src/ssr/lib/scripts/index.d.ts +2 -2
- package/core/src/ssr/lib/seed.d.ts +2 -2
- package/core/src/ssr/lib/seed.d.ts.map +1 -1
- package/core/src/ssr/lib/serialize.d.ts +2 -2
- package/core/src/ssr/lib/setup.d.ts +3 -3
- package/core/src/ssr/lib/setup.d.ts.map +1 -1
- package/core/src/ssr/lib/styles.d.ts +2 -2
- package/core/src/ssr/lib/template.d.ts +2 -2
- package/core/src/ssr/lib/types.d.ts +2 -2
- package/core/src/ssr/render.d.ts +4 -2
- package/core/src/ssr/render.d.ts.map +1 -1
- package/core/src/ssr/stream.d.ts +4 -2
- package/core/src/ssr/stream.d.ts.map +1 -1
- package/elysia/index.d.ts +2 -2
- package/elysia/index.js +1072 -276
- package/elysia/index.js.map +37 -27
- package/elysia/src/index.d.ts +2 -2
- package/elysia/src/libs/assets.d.ts +2 -2
- package/elysia/src/libs/cache.d.ts +2 -2
- package/elysia/src/libs/caching.d.ts +2 -2
- package/elysia/src/libs/http.d.ts +2 -2
- package/elysia/src/libs/i18n.d.ts +26 -0
- package/elysia/src/libs/i18n.d.ts.map +1 -0
- package/elysia/src/libs/image.d.ts +2 -2
- package/elysia/src/libs/index.d.ts +2 -2
- package/elysia/src/libs/llms.d.ts +2 -2
- package/elysia/src/libs/response.d.ts +2 -2
- package/elysia/src/libs/serving.d.ts +2 -2
- package/elysia/src/plugin.d.ts +2 -2
- package/elysia/src/routes/artifacts.d.ts +2 -2
- package/elysia/src/routes/content.d.ts +2 -2
- package/elysia/src/routes/image.d.ts +2 -2
- package/elysia/src/routes/index.d.ts +2 -2
- package/elysia/src/routes/internal.d.ts +2 -2
- package/elysia/src/routes/llms.d.ts +2 -2
- package/elysia/src/routes/og.d.ts +2 -2
- package/elysia/src/routes/og.d.ts.map +1 -1
- package/elysia/src/routes/redirects.d.ts +2 -2
- package/elysia/src/routes/robots.d.ts +2 -2
- package/elysia/src/routes/rss.d.ts +2 -2
- package/elysia/src/routes/rss.d.ts.map +1 -1
- package/elysia/src/routes/search.d.ts +2 -2
- package/elysia/src/routes/search.d.ts.map +1 -1
- package/elysia/src/routes/sitemap.d.ts +2 -2
- package/elysia/src/routes/ssr.d.ts +2 -2
- package/elysia/src/routes/ssr.d.ts.map +1 -1
- package/elysia/src/routes/static.d.ts +2 -2
- package/elysia/src/types.d.ts +2 -2
- package/package.json +7 -6
- package/react/index.d.ts +2 -2
- package/react/index.js +565 -171
- package/react/index.js.map +12 -10
- package/react/src/components/ClientOnly.d.ts +2 -2
- package/react/src/components/ContentRoute.d.ts +3 -3
- package/react/src/components/ContentRoute.d.ts.map +1 -1
- package/react/src/components/Image.d.ts +2 -2
- package/react/src/components/LazyRoute.d.ts +2 -2
- package/react/src/components/Link.d.ts +2 -2
- package/react/src/components/Link.d.ts.map +1 -1
- package/react/src/components/Markdown.d.ts +2 -2
- package/react/src/components/Outlet.d.ts +2 -2
- package/react/src/components/index.d.ts +2 -2
- package/react/src/hooks/index.d.ts +2 -2
- package/react/src/hooks/useContent.d.ts +2 -2
- package/react/src/hooks/useContent.d.ts.map +1 -1
- package/react/src/hooks/useData.d.ts +2 -2
- package/react/src/hooks/useFeed.d.ts +2 -2
- package/react/src/hooks/useLayoutData.d.ts +2 -2
- package/react/src/hooks/useLlms.d.ts +2 -2
- package/react/src/hooks/useNavigate.d.ts +2 -2
- package/react/src/hooks/useParams.d.ts +2 -2
- package/react/src/hooks/useRouter.d.ts +2 -2
- package/react/src/hooks/useSearch.d.ts +2 -2
- package/react/src/hooks/useSearch.d.ts.map +1 -1
- package/react/src/hooks/useSearchParams.d.ts +2 -2
- package/react/src/hooks/useToc.d.ts +2 -2
- package/react/src/i18n/LocaleProvider.d.ts +49 -0
- package/react/src/i18n/LocaleProvider.d.ts.map +1 -0
- package/react/src/i18n/helpers.d.ts +24 -0
- package/react/src/i18n/helpers.d.ts.map +1 -0
- package/react/src/i18n/index.d.ts +13 -0
- package/react/src/i18n/index.d.ts.map +1 -0
- package/react/src/index.d.ts +3 -2
- package/react/src/index.d.ts.map +1 -1
- package/react/src/lib/collection.d.ts +2 -2
- package/react/src/lib/content.d.ts +4 -3
- package/react/src/lib/content.d.ts.map +1 -1
- package/react/src/lib/head.d.ts +2 -2
- package/react/src/lib/index.d.ts +2 -2
- package/react/src/lib/lazy-route.d.ts +2 -2
- package/react/src/lib/route-loader.d.ts +2 -2
- package/react/src/providers/ContentProvider.d.ts +3 -3
- package/react/src/providers/ContentProvider.d.ts.map +1 -1
- package/react/src/providers/RerouteProvider.d.ts +8 -6
- package/react/src/providers/RerouteProvider.d.ts.map +1 -1
- package/react/src/providers/RouterProvider.d.ts +2 -2
- package/react/src/providers/index.d.ts +2 -2
- package/react/src/types/any.d.ts +2 -2
- package/react/src/types/index.d.ts +2 -2
- package/react/src/types/router.d.ts +2 -2
- package/telemetry/react.d.ts +2 -2
- package/telemetry/react.js +8 -4
- package/telemetry/react.js.map +2 -2
- package/telemetry/server.d.ts +2 -2
- package/telemetry/server.js +60 -5
- package/telemetry/server.js.map +22 -17
- package/telemetry/src/react/api.d.ts +2 -2
- package/telemetry/src/react/context.d.ts +2 -2
- package/telemetry/src/react/index.d.ts +2 -2
- package/telemetry/src/react/telemetry.d.ts +2 -2
- package/telemetry/src/server/context.d.ts +2 -2
- package/telemetry/src/server/headers/extractor.d.ts +2 -2
- package/telemetry/src/server/headers/index.d.ts +2 -2
- package/telemetry/src/server/headers/presets.d.ts +2 -2
- package/telemetry/src/server/index.d.ts +2 -2
- package/telemetry/src/server/instrumentation.d.ts +2 -2
- package/telemetry/src/server/plugin.d.ts +2 -2
- package/telemetry/src/server/sourcemap.d.ts +2 -2
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* reroute-js v0.
|
|
2
|
+
* reroute-js v0.46.0
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* @copyright 2026 stewones <hi@stewan.io>
|
|
6
|
-
* @see https://github.com/
|
|
6
|
+
* @see https://github.com/Intenseloop/reroute
|
|
7
7
|
*
|
|
8
8
|
* Built with Bun <3
|
|
9
9
|
*/
|
|
10
10
|
import type { Any } from '../types/any';
|
|
11
|
-
type RerouteGetEntry = (collection: string, name: string) => {
|
|
11
|
+
type RerouteGetEntry = (collection: string, name: string, locale?: string) => {
|
|
12
12
|
module?: string;
|
|
13
13
|
component?: Any;
|
|
14
14
|
meta?: Any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentRoute.d.ts","sourceRoot":"","sources":["../../../../../../packages/react/src/components/ContentRoute.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ContentRoute.d.ts","sourceRoot":"","sources":["../../../../../../packages/react/src/components/ContentRoute.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AA8BxC,KAAK,eAAe,GAAG,CACtB,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,MAAM,EACZ,MAAM,CAAC,EAAE,MAAM,KACX;IAAE,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,GAAG,CAAC;IAAC,IAAI,CAAC,EAAE,GAAG,CAAA;CAAE,GAAG,SAAS,CAAC;AASlE,iBAAS,YAAY,CAAC,EACrB,UAAU,EACV,IAAI,EACJ,QAAQ,GACR,EAAE;IACF,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,eAAe,CAAC;CAC3B,2CAsVA;AAED,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../../../../../packages/react/src/components/Link.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../../../../../packages/react/src/components/Link.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,UAAU,QAAQ;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,eAAe;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;CACb;AAED,KAAK,YAAY,GAAG,CACnB,IAAI,EAAE,MAAM,KACR;IAAE,KAAK,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,OAAO,CAAA;KAAE,CAAA;CAAE,GAAG,IAAI,CAAC;AAChD,KAAK,kBAAkB,GAAG,CAAC,UAAU,EAAE,MAAM,KAAK,OAAO,CAAC,GAAG,EAAE,GAAG,SAAS,CAAC,CAAC;AAE7E;;GAEG;AACH,wBAAgB,aAAa,CAAC,EAAE,EAAE,MAAM,GAAG,QAAQ,GAAG,IAAI,CAazD;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAI5D;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAU7E;AAED;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAKzD;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE;IACzC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CAChB,GAAG,IAAI,CAKP;AAED;;GAEG;AAEH,wBAAgB,oBAAoB,CACnC,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,GAAG,EACZ,MAAM,UAAQ,GACZ,IAAI,CAgCN;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAChC,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,eAAe,GAAG,SAAS,EACrC,UAAU,CAAC,EAAE,YAAY,GACvB,OAAO,CA4BT;AAED;;GAEG;AACH,wBAAsB,cAAc,CACnC,IAAI,EAAE,MAAM,EACZ,MAAM,CAAC,EAAE,WAAW,GAClB,OAAO,CAAC,GAAG,GAAG,IAAI,CAAC,CA8BrB;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,UAAQ,GAAG,IAAI,CAIpE;AAED;;GAEG;AACH,wBAAsB,4BAA4B,CACjD,IAAI,EAAE,MAAM,EACZ,SAAS,SAAM,GACb,OAAO,CAAC,IAAI,CAAC,CASf;AAED;;GAEG;AACH,wBAAsB,qBAAqB,CAC1C,QAAQ,EAAE,eAAe,EACzB,YAAY,EAAE,GAAG,EACjB,gBAAgB,EAAE,kBAAkB,GAClC,OAAO,CAAC,IAAI,CAAC,CAgBf;AAED;;;GAGG;AACH,iBAAS,IAAI,CAAC,EACb,EAAE,EACF,OAAO,EACP,KAAK,EACL,QAAe,EACf,QAAQ,EACR,OAAO,EACP,YAAY,EACZ,OAAO,EACP,SAAiB,EACjB,GAAG,KAAK,EACR,EAAE,SAAS,2CA8JX;AAED,OAAO,EAAE,IAAI,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useContent.d.ts","sourceRoot":"","sources":["../../../../../../packages/react/src/hooks/useContent.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useContent.d.ts","sourceRoot":"","s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;;;;;;;;;;;;;;GA6CG;AACH,wBAAgB,SAAS,CAAC,MAAM,EAAE,eAAe,GAAG,eAAe,CAyIlE"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* reroute-js v0.46.0
|
|
3
|
+
*
|
|
4
|
+
* @license MIT
|
|
5
|
+
* @copyright 2026 stewones <hi@stewan.io>
|
|
6
|
+
* @see https://github.com/Intenseloop/reroute
|
|
7
|
+
*
|
|
8
|
+
* Built with Bun <3
|
|
9
|
+
*/
|
|
10
|
+
import { type ReactNode } from 'react';
|
|
11
|
+
import { type MessageCatalog, type MessageValues } from './helpers';
|
|
12
|
+
type I18nHydration = {
|
|
13
|
+
enabled: boolean;
|
|
14
|
+
locale: string;
|
|
15
|
+
defaultLocale: string;
|
|
16
|
+
locales: string[];
|
|
17
|
+
cookie: string;
|
|
18
|
+
catalogs: Record<string, MessageCatalog>;
|
|
19
|
+
collections?: string[];
|
|
20
|
+
};
|
|
21
|
+
type LocaleContextValue = {
|
|
22
|
+
enabled: boolean;
|
|
23
|
+
locale: string;
|
|
24
|
+
defaultLocale: string;
|
|
25
|
+
locales: string[];
|
|
26
|
+
t: (key: string, values?: MessageValues) => string;
|
|
27
|
+
setLocale: (next: string) => void;
|
|
28
|
+
localizePath: (to: string) => string;
|
|
29
|
+
localizeContentPath: (collection: string, name: string) => string;
|
|
30
|
+
};
|
|
31
|
+
declare function LocaleProvider({ children, value, }: {
|
|
32
|
+
children?: ReactNode;
|
|
33
|
+
value?: Partial<I18nHydration>;
|
|
34
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
declare function useLocaleContext(): LocaleContextValue;
|
|
36
|
+
declare function useLocale(): {
|
|
37
|
+
locale: string;
|
|
38
|
+
locales: string[];
|
|
39
|
+
defaultLocale: string;
|
|
40
|
+
enabled: boolean;
|
|
41
|
+
setLocale: (next: string) => void;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Plain translator (not a hook). Reads the active locale from the i18n store.
|
|
45
|
+
* Locale switches via setLocale reload the document.
|
|
46
|
+
*/
|
|
47
|
+
declare function t(key: string, values?: MessageValues): string;
|
|
48
|
+
export { LocaleProvider, t, useLocale, useLocaleContext, type I18nHydration, type LocaleContextValue, };
|
|
49
|
+
//# sourceMappingURL=LocaleProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LocaleProvider.d.ts","sourceRoot":"","sources":["../../../../../../packages/react/src/i18n/LocaleProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEN,KAAK,SAAS,EAKd,MAAM,OAAO,CAAC;AACf,OAAO,EAIN,KAAK,cAAc,EACnB,KAAK,aAAa,EAElB,MAAM,WAAW,CAAC;AAEnB,KAAK,aAAa,GAAG;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IACzC,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;CACvB,CAAC;AAEF,KAAK,kBAAkB,GAAG;IACzB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,aAAa,KAAK,MAAM,CAAC;IACnD,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,MAAM,CAAC;IACrC,mBAAmB,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;CAClE,CAAC;AAuHF,iBAAS,cAAc,CAAC,EACvB,QAAQ,EACR,KAAK,GACL,EAAE;IACF,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;CAC/B,2CA4FA;AAED,iBAAS,gBAAgB,IAAI,kBAAkB,CAc9C;AAED,iBAAS,SAAS;;;;;sBA9OC,MAAM,KAAK,IAAI;EAkPjC;AAED;;;GAGG;AACH,iBAAS,CAAC,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,aAAa,GAAG,MAAM,CAQtD;AAED,OAAO,EACN,cAAc,EACd,CAAC,EACD,SAAS,EACT,gBAAgB,EAChB,KAAK,aAAa,EAClB,KAAK,kBAAkB,GACvB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* reroute-js v0.46.0
|
|
3
|
+
*
|
|
4
|
+
* @license MIT
|
|
5
|
+
* @copyright 2026 stewones <hi@stewan.io>
|
|
6
|
+
* @see https://github.com/Intenseloop/reroute
|
|
7
|
+
*
|
|
8
|
+
* Built with Bun <3
|
|
9
|
+
*/
|
|
10
|
+
type MessageCatalog = {
|
|
11
|
+
[key: string]: string | MessageCatalog;
|
|
12
|
+
};
|
|
13
|
+
type MessageValues = Record<string, string | number | boolean | Date | null | undefined>;
|
|
14
|
+
declare function createTranslator(catalogs: Record<string, MessageCatalog>, locale: string, defaultLocale: string): (key: string, values?: MessageValues) => string;
|
|
15
|
+
declare function parseContentPath(pathname: string, availableLocales?: string[], collections?: string[]): {
|
|
16
|
+
collection: string;
|
|
17
|
+
name: string;
|
|
18
|
+
locale?: string;
|
|
19
|
+
routingPathname: string;
|
|
20
|
+
} | undefined;
|
|
21
|
+
declare function localizeContentHref(collection: string, name: string, locale: string, defaultLocale: string): string;
|
|
22
|
+
declare function localizeHref(to: string, locale: string, defaultLocale: string, availableLocales?: string[], collections?: string[]): string;
|
|
23
|
+
export { createTranslator, localizeContentHref, localizeHref, parseContentPath, type MessageCatalog, type MessageValues, };
|
|
24
|
+
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../../packages/react/src/i18n/helpers.ts"],"names":[],"mappings":"AAEA,KAAK,cAAc,GAAG;IACrB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,cAAc,CAAC;CACvC,CAAC;AAEF,KAAK,aAAa,GAAG,MAAM,CAC1B,MAAM,EACN,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,IAAI,GAAG,SAAS,CACnD,CAAC;AA2DF,iBAAS,gBAAgB,CACxB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,EACxC,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,MAAM,GACnB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,aAAa,KAAK,MAAM,CAMjD;AAMD,iBAAS,gBAAgB,CACxB,QAAQ,EAAE,MAAM,EAChB,gBAAgB,GAAE,MAAM,EAAO,EAC/B,WAAW,CAAC,EAAE,MAAM,EAAE,GAEpB;IACA,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,MAAM,CAAC;CACvB,GACD,SAAS,CAqCX;AAED,iBAAS,mBAAmB,CAC3B,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,MAAM,GACnB,MAAM,CAKR;AAED,iBAAS,YAAY,CACpB,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,MAAM,EACrB,gBAAgB,GAAE,MAAM,EAAO,EAC/B,WAAW,CAAC,EAAE,MAAM,EAAE,GACpB,MAAM,CAmBR;AAED,OAAO,EACN,gBAAgB,EAChB,mBAAmB,EACnB,YAAY,EACZ,gBAAgB,EAChB,KAAK,cAAc,EACnB,KAAK,aAAa,GAClB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* reroute-js v0.46.0
|
|
3
|
+
*
|
|
4
|
+
* @license MIT
|
|
5
|
+
* @copyright 2026 stewones <hi@stewan.io>
|
|
6
|
+
* @see https://github.com/Intenseloop/reroute
|
|
7
|
+
*
|
|
8
|
+
* Built with Bun <3
|
|
9
|
+
*/
|
|
10
|
+
export type { MessageCatalog, MessageValues } from './helpers';
|
|
11
|
+
export { createTranslator, localizeContentHref, localizeHref, parseContentPath, } from './helpers';
|
|
12
|
+
export { type I18nHydration, type LocaleContextValue, LocaleProvider, t, useLocale, useLocaleContext, } from './LocaleProvider';
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/react/src/i18n/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC/D,OAAO,EACN,gBAAgB,EAChB,mBAAmB,EACnB,YAAY,EACZ,gBAAgB,GAChB,MAAM,WAAW,CAAC;AACnB,OAAO,EACN,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,cAAc,EACd,CAAC,EACD,SAAS,EACT,gBAAgB,GAChB,MAAM,kBAAkB,CAAC"}
|
package/react/src/index.d.ts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* reroute-js v0.
|
|
2
|
+
* reroute-js v0.46.0
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* @copyright 2026 stewones <hi@stewan.io>
|
|
6
|
-
* @see https://github.com/
|
|
6
|
+
* @see https://github.com/Intenseloop/reroute
|
|
7
7
|
*
|
|
8
8
|
* Built with Bun <3
|
|
9
9
|
*/
|
|
10
10
|
export * from './components';
|
|
11
11
|
export * from './hooks';
|
|
12
|
+
export * from './i18n';
|
|
12
13
|
export * from './lib';
|
|
13
14
|
export * from './providers';
|
|
14
15
|
export * from './types';
|
package/react/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC;AACtB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* reroute-js v0.
|
|
2
|
+
* reroute-js v0.46.0
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* @copyright 2026 stewones <hi@stewan.io>
|
|
6
|
-
* @see https://github.com/
|
|
6
|
+
* @see https://github.com/Intenseloop/reroute
|
|
7
7
|
*
|
|
8
8
|
* Built with Bun <3
|
|
9
9
|
*/
|
|
@@ -12,6 +12,7 @@ import type { Any } from '../types/any';
|
|
|
12
12
|
export declare function parseContentHref(href: string): {
|
|
13
13
|
collection: string;
|
|
14
14
|
name: string;
|
|
15
|
+
locale?: string;
|
|
15
16
|
} | undefined;
|
|
16
|
-
export declare function createResolverFromGetEntry(getEntry: (collection: string, name: string) => Any | undefined): ContentResolver;
|
|
17
|
+
export declare function createResolverFromGetEntry(getEntry: (collection: string, name: string, locale?: string) => Any | undefined): ContentResolver;
|
|
17
18
|
//# sourceMappingURL=content.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../../../../../packages/react/src/lib/content.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAc,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAChF,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../../../../../packages/react/src/lib/content.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAc,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAChF,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAMxC,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAC1C;IACA,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;CACf,GACD,SAAS,CAiBX;AAED,wBAAgB,0BAA0B,CACzC,QAAQ,EAAE,CACT,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,MAAM,EACZ,MAAM,CAAC,EAAE,MAAM,KACX,GAAG,GAAG,SAAS,GAClB,eAAe,CAiBjB"}
|
package/react/src/lib/head.d.ts
CHANGED
package/react/src/lib/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* reroute-js v0.
|
|
2
|
+
* reroute-js v0.46.0
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* @copyright 2026 stewones <hi@stewan.io>
|
|
6
|
-
* @see https://github.com/
|
|
6
|
+
* @see https://github.com/Intenseloop/reroute
|
|
7
7
|
*
|
|
8
8
|
* Built with Bun <3
|
|
9
9
|
*/
|
|
@@ -23,7 +23,7 @@ type ContentProviderProps = {
|
|
|
23
23
|
*/
|
|
24
24
|
resolveByHref?: ContentResolver;
|
|
25
25
|
/** Optional access to the app's content registry getter (e.g., .reroute/content#getContentEntry) */
|
|
26
|
-
getEntry?: (collection: string, name: string) => Any | undefined;
|
|
26
|
+
getEntry?: (collection: string, name: string, locale?: string) => Any | undefined;
|
|
27
27
|
/** Optional prebuilt byCollection index (e.g., from .reroute/content) */
|
|
28
28
|
byCollection?: Record<string, Any[]> | null;
|
|
29
29
|
/** Optional lazy loader that loads a single collection at a time */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentProvider.d.ts","sourceRoot":"","sources":["../../../../../../packages/react/src/providers/ContentProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEN,KAAK,SAAS,EAKd,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAExC,KAAK,UAAU,GACZ;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,GACrD,SAAS,CAAC;AAEb,KAAK,eAAe,GAAG,CAAC,IAAI,EAAE,MAAM,KAAK,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"ContentProvider.d.ts","sourceRoot":"","sources":["../../../../../../packages/react/src/providers/ContentProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEN,KAAK,SAAS,EAKd,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAExC,KAAK,UAAU,GACZ;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,GACrD,SAAS,CAAC;AAEb,KAAK,eAAe,GAAG,CAAC,IAAI,EAAE,MAAM,KAAK,UAAU,CAAC;AA6CpD,KAAK,oBAAoB,GAAG;IAC3B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;OAGG;IACH,aAAa,CAAC,EAAE,eAAe,CAAC;IAChC,oGAAoG;IACpG,QAAQ,CAAC,EAAE,CACV,UA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E,CAAC"}
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* reroute-js v0.
|
|
2
|
+
* reroute-js v0.46.0
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* @copyright 2026 stewones <hi@stewan.io>
|
|
6
|
-
* @see https://github.com/
|
|
6
|
+
* @see https://github.com/Intenseloop/reroute
|
|
7
7
|
*
|
|
8
8
|
* Built with Bun <3
|
|
9
9
|
*/
|
|
10
|
-
import type
|
|
10
|
+
import { type ReactNode } from 'react';
|
|
11
|
+
import { type I18nHydration } from '../i18n/LocaleProvider';
|
|
11
12
|
import type { Any } from '../types/any';
|
|
12
13
|
type RerouteProps = {
|
|
13
14
|
byCollection?: Record<string, Any[]> | null;
|
|
14
|
-
getContentEntry?: (collection: string, name: string) => Any | undefined;
|
|
15
|
+
getContentEntry?: (collection: string, name: string, locale?: string) => Any | undefined;
|
|
15
16
|
loadContent?: () => Promise<{
|
|
16
17
|
byCollection: Record<string, Any[]>;
|
|
17
|
-
getContentEntry: (collection: string, name: string) => Any | undefined;
|
|
18
|
+
getContentEntry: (collection: string, name: string, locale?: string) => Any | undefined;
|
|
18
19
|
}>;
|
|
19
20
|
contentBaseUrl?: string;
|
|
20
21
|
layouts?: readonly Any[];
|
|
@@ -26,9 +27,10 @@ type RerouteProps = {
|
|
|
26
27
|
viewTransitions?: boolean;
|
|
27
28
|
scrollRestoration?: boolean;
|
|
28
29
|
markdownComponents?: Any;
|
|
30
|
+
i18n?: Partial<I18nHydration>;
|
|
29
31
|
children?: ReactNode;
|
|
30
32
|
};
|
|
31
|
-
declare function RerouteProvider({ byCollection, getContentEntry, loadContent, contentBaseUrl, layouts, matchRoute, notFoundRoutes, notFound, pathname, searchParams, viewTransitions, scrollRestoration, markdownComponents, children, }: RerouteProps): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
declare function RerouteProvider({ byCollection, getContentEntry, loadContent, contentBaseUrl, layouts, matchRoute, notFoundRoutes, notFound, pathname, searchParams, viewTransitions, scrollRestoration, markdownComponents, i18n: i18nProp, children, }: RerouteProps): import("react/jsx-runtime").JSX.Element;
|
|
32
34
|
export { RerouteProvider };
|
|
33
35
|
export type { RerouteProps };
|
|
34
36
|
//# sourceMappingURL=RerouteProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RerouteProvider.d.ts","sourceRoot":"","sources":["../../../../../../packages/react/src/providers/RerouteProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"RerouteProvider.d.ts","sourceRoot":"","sources":["../../../../../../packages/react/src/providers/RerouteProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAwB,MAAM,OAAO,CAAC;AAE7D,OAAO,EAAE,KAAK,aAAa,EAAkB,MAAM,wBAAwB,CAAC;AAC5E,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAIxC,KAAK,YAAY,GAAG;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,GAAG,IAAI,CAAC;IAC5C,eAAe,CAAC,EAAE,CACjB,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,MAAM,EACZ,MAAM,CAAC,EAAE,MAAM,KACX,GAAG,GAAG,SAAS,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,OAAO,CAAC;QAC3B,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC;QACpC,eAAe,EAAE,CAChB,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,MAAM,EACZ,MAAM,CAAC,EAAE,MAAM,KACX,GAAG,GAAG,SAAS,CAAC;KACrB,CAAC,CAAC;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,SAAS,GAAG,EAAE,CAAC;IACzB,UAAU,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,GAAG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