docs-i18n 0.7.4 → 0.7.5

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.
@@ -10,4 +10,17 @@ export default defineConfig({
10
10
  }),
11
11
  react(),
12
12
  ],
13
+ // Bundle all deps into server build so it can run without node_modules
14
+ environments: {
15
+ ssr: {
16
+ build: {
17
+ rollupOptions: {
18
+ external: ['node:*'],
19
+ },
20
+ },
21
+ resolve: {
22
+ noExternal: true,
23
+ },
24
+ },
25
+ },
13
26
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docs-i18n",
3
- "version": "0.7.4",
3
+ "version": "0.7.5",
4
4
  "description": "Universal documentation translation engine — parse, translate, cache, assemble, manage.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,67 +0,0 @@
1
- import { t as Route$1 } from "./routes-C2UFxDWZ.js";
2
- import "react";
3
- import { HeadContent, Outlet, Scripts, createRootRouteWithContext, createRouter } from "@tanstack/react-router";
4
- import { jsx, jsxs } from "react/jsx-runtime";
5
- import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
6
- //#region app/styles.css?url
7
- var styles_default = "/assets/styles-DJ6QEJmN.css";
8
- //#endregion
9
- //#region app/routes/__root.tsx
10
- var Route = createRootRouteWithContext()({
11
- head: () => ({
12
- meta: [{ charSet: "utf-8" }, {
13
- name: "viewport",
14
- content: "width=device-width, initial-scale=1"
15
- }],
16
- links: [{
17
- rel: "stylesheet",
18
- href: styles_default
19
- }]
20
- }),
21
- component: RootComponent,
22
- notFoundComponent: () => /* @__PURE__ */ jsx("div", {
23
- style: { padding: 20 },
24
- children: "Page not found"
25
- })
26
- });
27
- function RootComponent() {
28
- const { queryClient } = Route.useRouteContext();
29
- return /* @__PURE__ */ jsx(RootDocument, { children: /* @__PURE__ */ jsx(QueryClientProvider, {
30
- client: queryClient,
31
- children: /* @__PURE__ */ jsx(Outlet, {})
32
- }) });
33
- }
34
- function RootDocument({ children }) {
35
- return /* @__PURE__ */ jsxs("html", {
36
- lang: "en",
37
- "data-theme": "dark",
38
- suppressHydrationWarning: true,
39
- children: [/* @__PURE__ */ jsx("head", { children: /* @__PURE__ */ jsx(HeadContent, {}) }), /* @__PURE__ */ jsxs("body", { children: [
40
- /* @__PURE__ */ jsx("script", { dangerouslySetInnerHTML: { __html: `document.documentElement.dataset.theme=localStorage.getItem('theme')||'dark'` } }),
41
- children,
42
- /* @__PURE__ */ jsx(Scripts, {})
43
- ] })]
44
- });
45
- }
46
- //#endregion
47
- //#region app/routeTree.gen.ts
48
- var rootRouteChildren = { IndexRoute: Route$1.update({
49
- id: "/",
50
- path: "/",
51
- getParentRoute: () => Route
52
- }) };
53
- var routeTree = Route._addFileChildren(rootRouteChildren)._addFileTypes();
54
- //#endregion
55
- //#region app/router.tsx
56
- function getRouter() {
57
- return createRouter({
58
- routeTree,
59
- context: { queryClient: new QueryClient({ defaultOptions: { queries: {
60
- refetchOnWindowFocus: false,
61
- retry: 1
62
- } } }) },
63
- scrollRestoration: true
64
- });
65
- }
66
- //#endregion
67
- export { getRouter };
@@ -1,24 +0,0 @@
1
- import { createFileRoute, lazyRouteComponent } from "@tanstack/react-router";
2
- //#region app/routes/index.tsx
3
- var $$splitComponentImporter = () => import("./routes-vEKXnl0r.js");
4
- /**
5
- * Parse version keys into project/version structure.
6
- * Multi-project keys look like "query/v5", single-project keys look like "v5".
7
- */
8
- var Route = createFileRoute("/")({
9
- validateSearch: (search) => ({
10
- project: search.project || void 0,
11
- v: search.v || void 0,
12
- lang: search.lang || void 0,
13
- file: search.file || void 0,
14
- files: search.files || void 0,
15
- view: search.view || void 0,
16
- toc: search.toc || void 0,
17
- nodes: search.nodes || void 0,
18
- status: search.status || void 0,
19
- section: search.section || void 0
20
- }),
21
- component: lazyRouteComponent($$splitComponentImporter, "component")
22
- });
23
- //#endregion
24
- export { Route as t };