@stratal/inertia 0.0.18 → 0.0.20
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/index.d.mts +472 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +1171 -0
- package/dist/index.mjs.map +1 -0
- package/dist/react.d.mts +90 -0
- package/dist/react.d.mts.map +1 -0
- package/dist/react.mjs +222 -0
- package/dist/react.mjs.map +1 -0
- package/dist/testing.d.mts +36 -0
- package/dist/testing.d.mts.map +1 -0
- package/dist/testing.mjs +78 -0
- package/dist/testing.mjs.map +1 -0
- package/dist/type-generator-C5JljyzK.mjs +391 -0
- package/dist/type-generator-C5JljyzK.mjs.map +1 -0
- package/dist/vite.d.mts +21 -0
- package/dist/vite.d.mts.map +1 -0
- package/dist/vite.mjs +156 -0
- package/dist/vite.mjs.map +1 -0
- package/package.json +30 -30
package/dist/vite.mjs
ADDED
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import { n as runTypeGeneration, t as findPagesDir } from "./type-generator-C5JljyzK.mjs";
|
|
2
|
+
import { existsSync, readFileSync } from "node:fs";
|
|
3
|
+
import { join, relative } from "node:path";
|
|
4
|
+
//#region src/vite/inertia-dev-css-plugin.ts
|
|
5
|
+
const CSS_LANGS_RE = /\.(css|scss|sass|less|styl|stylus|pcss|postcss)(?:$|\?)/;
|
|
6
|
+
const VIRTUAL_MODULE_ID = "virtual:inertia-ssr.css";
|
|
7
|
+
const RESOLVED_VIRTUAL_MODULE_ID = "\0" + VIRTUAL_MODULE_ID;
|
|
8
|
+
function collectStyleUrls(server, entries) {
|
|
9
|
+
const urls = [];
|
|
10
|
+
const visited = /* @__PURE__ */ new Set();
|
|
11
|
+
function traverse(mod) {
|
|
12
|
+
if (visited.has(mod.url)) return;
|
|
13
|
+
visited.add(mod.url);
|
|
14
|
+
if (CSS_LANGS_RE.test(mod.url)) urls.push(mod.url);
|
|
15
|
+
for (const imported of mod.importedModules) traverse(imported);
|
|
16
|
+
}
|
|
17
|
+
for (const entry of entries) {
|
|
18
|
+
const mod = server.moduleGraph.getModulesByFile(entry.startsWith("/") ? entry.slice(1) : entry);
|
|
19
|
+
if (mod) for (const m of mod) traverse(m);
|
|
20
|
+
const urlMod = server.moduleGraph.urlToModuleMap.get(entry);
|
|
21
|
+
if (urlMod) traverse(urlMod);
|
|
22
|
+
}
|
|
23
|
+
return urls;
|
|
24
|
+
}
|
|
25
|
+
async function collectStyle(server, entries) {
|
|
26
|
+
for (const entry of entries) try {
|
|
27
|
+
await server.transformRequest(entry);
|
|
28
|
+
} catch {}
|
|
29
|
+
const urls = collectStyleUrls(server, entries);
|
|
30
|
+
const styles = [];
|
|
31
|
+
for (const url of urls) try {
|
|
32
|
+
const separator = url.includes("?") ? "&" : "?";
|
|
33
|
+
const result = await server.transformRequest(url + separator + "direct");
|
|
34
|
+
if (result?.code) styles.push(result.code);
|
|
35
|
+
} catch {}
|
|
36
|
+
return styles.join("\n");
|
|
37
|
+
}
|
|
38
|
+
function stratalInertiaDevCss(options) {
|
|
39
|
+
let server;
|
|
40
|
+
return {
|
|
41
|
+
name: "stratal:inertia-dev-css",
|
|
42
|
+
apply: "serve",
|
|
43
|
+
resolveId(id) {
|
|
44
|
+
if (id === VIRTUAL_MODULE_ID) return RESOLVED_VIRTUAL_MODULE_ID;
|
|
45
|
+
},
|
|
46
|
+
async load(id) {
|
|
47
|
+
if (id === RESOLVED_VIRTUAL_MODULE_ID) return await collectStyle(server, options.entries);
|
|
48
|
+
},
|
|
49
|
+
configureServer(devServer) {
|
|
50
|
+
server = devServer;
|
|
51
|
+
server.middlewares.use((req, res, next) => {
|
|
52
|
+
if (new URL(req.url ?? "", "http://localhost").pathname !== "/__inertia/ssr-css") {
|
|
53
|
+
next();
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
collectStyle(server, options.entries).then((css) => {
|
|
57
|
+
res.setHeader("Content-Type", "text/css");
|
|
58
|
+
res.setHeader("Cache-Control", "no-store");
|
|
59
|
+
res.end(css);
|
|
60
|
+
}).catch(() => {
|
|
61
|
+
res.statusCode = 500;
|
|
62
|
+
res.end("");
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
//#endregion
|
|
69
|
+
//#region src/vite/inertia-types-plugin.ts
|
|
70
|
+
const INERTIA_CALL_PATTERN = /ctx\.inertia\(|\.share\(|ctx\.flash\(|ctx\.defer\(|ctx\.optional\(|ctx\.merge\(|ctx\.once\(|ctx\.always\(/;
|
|
71
|
+
function stratalInertiaTypes() {
|
|
72
|
+
let cwd;
|
|
73
|
+
let pagesDir;
|
|
74
|
+
let srcDir;
|
|
75
|
+
return {
|
|
76
|
+
name: "stratal:inertia-types",
|
|
77
|
+
configResolved(config) {
|
|
78
|
+
cwd = config.root;
|
|
79
|
+
pagesDir = findPagesDir(cwd) + "/";
|
|
80
|
+
srcDir = join(cwd, "src") + "/";
|
|
81
|
+
},
|
|
82
|
+
async buildStart() {
|
|
83
|
+
if (!existsSync(pagesDir)) return;
|
|
84
|
+
try {
|
|
85
|
+
await runTypeGeneration(cwd);
|
|
86
|
+
} catch (error) {
|
|
87
|
+
console.warn("[stratal:inertia-types] Type generation failed during build:", error);
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
async handleHotUpdate({ file }) {
|
|
91
|
+
if (!/\.(tsx|ts)$/.test(file)) return;
|
|
92
|
+
if (!!relative(srcDir, file).startsWith("..")) return;
|
|
93
|
+
if (!!relative(pagesDir, file).startsWith("..")) try {
|
|
94
|
+
const content = readFileSync(file, "utf-8");
|
|
95
|
+
if (!INERTIA_CALL_PATTERN.test(content)) return;
|
|
96
|
+
} catch {
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
try {
|
|
100
|
+
await runTypeGeneration(cwd);
|
|
101
|
+
} catch (error) {
|
|
102
|
+
console.warn("[stratal:inertia-types] Type generation failed during HMR:", error);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
//#endregion
|
|
108
|
+
//#region src/vite.ts
|
|
109
|
+
function stratalInertia(options) {
|
|
110
|
+
const entries = options?.entries ?? ["/src/inertia/app.tsx"];
|
|
111
|
+
const optimizeDepsExclude = [
|
|
112
|
+
"@cloudflare/vite-plugin",
|
|
113
|
+
"wrangler",
|
|
114
|
+
"blake3-wasm",
|
|
115
|
+
"@stratal/inertia",
|
|
116
|
+
"stratal",
|
|
117
|
+
"hono",
|
|
118
|
+
"@hono/zod-openapi",
|
|
119
|
+
"@hono/swagger-ui"
|
|
120
|
+
];
|
|
121
|
+
const optimizeDepsInclude = [
|
|
122
|
+
"buffer",
|
|
123
|
+
"buffer/",
|
|
124
|
+
"base64-js",
|
|
125
|
+
"ieee754"
|
|
126
|
+
];
|
|
127
|
+
const devOnlyExternals = ["ts-morph"];
|
|
128
|
+
return [
|
|
129
|
+
stratalInertiaDevCss({ entries }),
|
|
130
|
+
stratalInertiaTypes(),
|
|
131
|
+
{
|
|
132
|
+
name: "stratal:optimize-deps-fix",
|
|
133
|
+
configEnvironment(_name, env) {
|
|
134
|
+
const existing = env.optimizeDeps?.exclude ?? [];
|
|
135
|
+
const existingInclude = env.optimizeDeps?.include ?? [];
|
|
136
|
+
env.optimizeDeps = {
|
|
137
|
+
...env.optimizeDeps,
|
|
138
|
+
exclude: [...existing, ...optimizeDepsExclude],
|
|
139
|
+
include: [...existingInclude, ...optimizeDepsInclude]
|
|
140
|
+
};
|
|
141
|
+
const existingExternal = env.build?.rolldownOptions?.external ?? [];
|
|
142
|
+
env.build = {
|
|
143
|
+
...env.build,
|
|
144
|
+
rolldownOptions: {
|
|
145
|
+
...env.build?.rolldownOptions,
|
|
146
|
+
external: [...existingExternal, ...devOnlyExternals]
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
];
|
|
152
|
+
}
|
|
153
|
+
//#endregion
|
|
154
|
+
export { stratalInertia, stratalInertiaDevCss, stratalInertiaTypes };
|
|
155
|
+
|
|
156
|
+
//# sourceMappingURL=vite.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vite.mjs","names":[],"sources":["../src/vite/inertia-dev-css-plugin.ts","../src/vite/inertia-types-plugin.ts","../src/vite.ts"],"sourcesContent":["import type { ModuleNode, Plugin, ViteDevServer } from 'vite'\n\nconst CSS_LANGS_RE = /\\.(css|scss|sass|less|styl|stylus|pcss|postcss)(?:$|\\?)/\nconst VIRTUAL_MODULE_ID = 'virtual:inertia-ssr.css'\nconst RESOLVED_VIRTUAL_MODULE_ID = '\\0' + VIRTUAL_MODULE_ID\n\nexport interface InertiaDevCssOptions {\n entries: string[]\n}\n\nfunction collectStyleUrls(server: ViteDevServer, entries: string[]): string[] {\n const urls: string[] = []\n const visited = new Set<string>()\n\n function traverse(mod: ModuleNode) {\n if (visited.has(mod.url)) return\n visited.add(mod.url)\n\n if (CSS_LANGS_RE.test(mod.url)) {\n urls.push(mod.url)\n }\n\n for (const imported of mod.importedModules) {\n traverse(imported)\n }\n }\n\n for (const entry of entries) {\n const mod = server.moduleGraph.getModulesByFile(\n entry.startsWith('/') ? entry.slice(1) : entry,\n )\n\n if (mod) {\n for (const m of mod) {\n traverse(m)\n }\n }\n\n const urlMod = server.moduleGraph.urlToModuleMap.get(entry)\n if (urlMod) {\n traverse(urlMod)\n }\n }\n\n return urls\n}\n\nasync function collectStyle(server: ViteDevServer, entries: string[]): Promise<string> {\n for (const entry of entries) {\n try {\n await server.transformRequest(entry)\n }\n catch {\n //\n }\n }\n\n const urls = collectStyleUrls(server, entries)\n const styles: string[] = []\n\n for (const url of urls) {\n try {\n const separator = url.includes('?') ? '&' : '?'\n const result = await server.transformRequest(url + separator + 'direct')\n if (result?.code) {\n styles.push(result.code)\n }\n }\n catch {\n //\n }\n }\n\n return styles.join('\\n')\n}\n\nexport function stratalInertiaDevCss(options: InertiaDevCssOptions): Plugin {\n let server: ViteDevServer\n\n return {\n name: 'stratal:inertia-dev-css',\n apply: 'serve',\n\n resolveId(id) {\n if (id === VIRTUAL_MODULE_ID) {\n return RESOLVED_VIRTUAL_MODULE_ID\n }\n },\n\n async load(id) {\n if (id === RESOLVED_VIRTUAL_MODULE_ID) {\n return await collectStyle(server, options.entries)\n }\n },\n\n configureServer(devServer) {\n server = devServer\n\n server.middlewares.use((req, res, next) => {\n const pathname = new URL(req.url ?? '', 'http://localhost').pathname\n if (pathname !== '/__inertia/ssr-css') { next(); return; }\n\n collectStyle(server, options.entries).then((css) => {\n res.setHeader('Content-Type', 'text/css')\n res.setHeader('Cache-Control', 'no-store')\n res.end(css)\n }).catch(() => {\n res.statusCode = 500\n res.end('')\n })\n })\n },\n }\n}\n","import { existsSync, readFileSync } from 'node:fs'\nimport { join, relative } from 'node:path'\nimport type { Plugin } from 'vite'\nimport { findPagesDir, runTypeGeneration } from '../generator/type-generator'\n\nconst INERTIA_CALL_PATTERN = /ctx\\.inertia\\(|\\.share\\(|ctx\\.flash\\(|ctx\\.defer\\(|ctx\\.optional\\(|ctx\\.merge\\(|ctx\\.once\\(|ctx\\.always\\(/\n\nexport function stratalInertiaTypes(): Plugin {\n let cwd: string\n let pagesDir: string\n let srcDir: string\n\n return {\n name: 'stratal:inertia-types',\n\n configResolved(config) {\n cwd = config.root\n pagesDir = findPagesDir(cwd) + '/'\n srcDir = join(cwd, 'src') + '/'\n },\n\n async buildStart() {\n if (!existsSync(pagesDir)) return\n try {\n await runTypeGeneration(cwd)\n } catch (error) {\n console.warn('[stratal:inertia-types] Type generation failed during build:', error)\n }\n },\n\n async handleHotUpdate({ file }) {\n if (!/\\.(tsx|ts)$/.test(file)) return\n\n const relToSrc = relative(srcDir, file)\n const isInSrc = !relToSrc.startsWith('..')\n\n if (!isInSrc) return\n\n // Page files always trigger regeneration\n const relToPages = relative(pagesDir, file)\n const isPageFile = !relToPages.startsWith('..')\n\n if (!isPageFile) {\n // For non-page files, only regenerate if they contain inertia-related calls\n try {\n const content = readFileSync(file, 'utf-8')\n if (!INERTIA_CALL_PATTERN.test(content)) return\n } catch {\n return\n }\n }\n\n try {\n await runTypeGeneration(cwd)\n } catch (error) {\n console.warn('[stratal:inertia-types] Type generation failed during HMR:', error)\n }\n },\n }\n}\n","import type { EnvironmentOptions, Plugin } from 'vite'\nimport { stratalInertiaDevCss } from './vite/inertia-dev-css-plugin'\nimport { stratalInertiaTypes } from './vite/inertia-types-plugin'\n\nexport { stratalInertiaDevCss, stratalInertiaTypes }\n\nexport interface StratalInertiaPluginOptions {\n /** Client entry path(s) for CSS collection (default: ['/src/inertia/app.tsx']) */\n entries?: string[]\n}\n\nexport function stratalInertia(options?: StratalInertiaPluginOptions): Plugin[] {\n const entries = options?.entries ?? ['/src/inertia/app.tsx']\n\n // Hono and stratal must NOT be pre-bundled by Vite's optimizeDeps. When they are,\n // a duplicate copy ends up in `.vite/deps_<env>/` while the worker bundle imports\n // another copy from node_modules — Response objects from one instance flow into\n // a Context class from the other, and Hono's `set res` setter crashes inside\n // `this.#res.headers.entries()` because the prototype chain doesn't match.\n const optimizeDepsExclude = [\n '@cloudflare/vite-plugin',\n 'wrangler',\n 'blake3-wasm',\n '@stratal/inertia',\n 'stratal',\n 'hono',\n '@hono/zod-openapi',\n '@hono/swagger-ui',\n ]\n const optimizeDepsInclude = ['buffer', 'buffer/', 'base64-js', 'ieee754']\n const devOnlyExternals = ['ts-morph']\n\n return [\n stratalInertiaDevCss({ entries }),\n stratalInertiaTypes(),\n {\n name: 'stratal:optimize-deps-fix',\n configEnvironment(_name: string, env: EnvironmentOptions) {\n const existing = env.optimizeDeps?.exclude ?? []\n const existingInclude = env.optimizeDeps?.include ?? []\n env.optimizeDeps = {\n ...env.optimizeDeps,\n exclude: [...existing, ...optimizeDepsExclude],\n include: [...existingInclude, ...optimizeDepsInclude],\n }\n\n const existingExternal = (env.build?.rolldownOptions?.external as string[]) ?? []\n env.build = {\n ...env.build,\n rolldownOptions: {\n ...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YAAQ,KAAK,8DAA8D,MAAM;;;EAGtF;;;;AC/CH,SAAgB,eAAe,SAAiD;CAC9E,MAAM,UAAU,SAAS,WAAW,CAAC,uBAAuB;CAO5D,MAAM,sBAAsB;EAC1B;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD;CACD,MAAM,sBAAsB;EAAC;EAAU;EAAW;EAAa;EAAU;CACzE,MAAM,mBAAmB,CAAC,WAAW;AAErC,QAAO;EACL,qBAAqB,EAAE,SAAS,CAAC;EACjC,qBAAqB;EACrB;GACE,MAAM;GACN,kBAAkB,OAAe,KAAyB;IACxD,MAAM,WAAW,IAAI,cAAc,WAAW,EAAE;IAChD,MAAM,kBAAkB,IAAI,cAAc,WAAW,EAAE;AACvD,QAAI,eAAe;KACjB,GAAG,IAAI;KACP,SAAS,CAAC,GAAG,UAAU,GAAG,oBAAoB;KAC9C,SAAS,CAAC,GAAG,iBAAiB,GAAG,oBAAoB;KACtD;IAED,MAAM,mBAAoB,IAAI,OAAO,iBAAiB,YAAyB,EAAE;AACjF,QAAI,QAAQ;KACV,GAAG,IAAI;KACP,iBAAiB;MACf,GAAG,IAAI,OAAO;MACd,UAAU,CAAC,GAAG,kBAAkB,GAAG,iBAAiB;MACrD;KACF;;GAEJ;EACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stratal/inertia",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.20",
|
|
4
4
|
"description": "Inertia.js v3 server adapter for Stratal framework — server-driven React SPAs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -63,22 +63,22 @@
|
|
|
63
63
|
"lint:fix": "npx oxlint --fix ."
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"ts-morph": "^
|
|
66
|
+
"ts-morph": "^28.0.0"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
69
|
"@cloudflare/vite-plugin": ">=1.0.0",
|
|
70
|
-
"@inertiajs/core": "
|
|
71
|
-
"@inertiajs/react": "
|
|
72
|
-
"@inertiajs/vite": "
|
|
73
|
-
"@intlify/core-base": ">=11
|
|
74
|
-
"@stratal/testing": ">=0.0.
|
|
75
|
-
"hono": "
|
|
76
|
-
"react": "
|
|
77
|
-
"react-dom": "
|
|
78
|
-
"reflect-metadata": "
|
|
79
|
-
"stratal": "
|
|
80
|
-
"vite": "
|
|
81
|
-
"vitest": "
|
|
70
|
+
"@inertiajs/core": ">=3",
|
|
71
|
+
"@inertiajs/react": ">=3",
|
|
72
|
+
"@inertiajs/vite": ">=3",
|
|
73
|
+
"@intlify/core-base": ">=11",
|
|
74
|
+
"@stratal/testing": ">=0.0.20",
|
|
75
|
+
"hono": ">=4",
|
|
76
|
+
"react": ">=19",
|
|
77
|
+
"react-dom": ">=19",
|
|
78
|
+
"reflect-metadata": ">=0.2",
|
|
79
|
+
"stratal": ">=0.0.20",
|
|
80
|
+
"vite": ">=8",
|
|
81
|
+
"vitest": ">=4"
|
|
82
82
|
},
|
|
83
83
|
"peerDependenciesMeta": {
|
|
84
84
|
"@cloudflare/vite-plugin": {
|
|
@@ -110,26 +110,26 @@
|
|
|
110
110
|
}
|
|
111
111
|
},
|
|
112
112
|
"devDependencies": {
|
|
113
|
-
"@cloudflare/vite-plugin": "^1.
|
|
114
|
-
"@cloudflare/workers-types": "4.
|
|
115
|
-
"@inertiajs/core": "^3.0.
|
|
116
|
-
"@inertiajs/react": "^3.0.
|
|
117
|
-
"@inertiajs/vite": "^3.0.
|
|
118
|
-
"@intlify/core-base": "^11.
|
|
113
|
+
"@cloudflare/vite-plugin": "^1.35.0",
|
|
114
|
+
"@cloudflare/workers-types": "4.20260502.1",
|
|
115
|
+
"@inertiajs/core": "^3.0.3",
|
|
116
|
+
"@inertiajs/react": "^3.0.3",
|
|
117
|
+
"@inertiajs/vite": "^3.0.3",
|
|
118
|
+
"@intlify/core-base": "^11.4.0",
|
|
119
119
|
"@stratal/testing": "workspace:*",
|
|
120
|
-
"@types/node": "^25.
|
|
120
|
+
"@types/node": "^25.6.0",
|
|
121
121
|
"@types/react": "^19.2.14",
|
|
122
122
|
"@types/react-dom": "^19.2.3",
|
|
123
|
-
"@vitest/runner": "~4.1.
|
|
124
|
-
"@vitest/snapshot": "~4.1.
|
|
125
|
-
"hono": "^4.12.
|
|
126
|
-
"react": "^19.2.
|
|
127
|
-
"react-dom": "^19.2.
|
|
123
|
+
"@vitest/runner": "~4.1.5",
|
|
124
|
+
"@vitest/snapshot": "~4.1.5",
|
|
125
|
+
"hono": "^4.12.16",
|
|
126
|
+
"react": "^19.2.5",
|
|
127
|
+
"react-dom": "^19.2.5",
|
|
128
128
|
"reflect-metadata": "^0.2.2",
|
|
129
129
|
"stratal": "workspace:*",
|
|
130
|
-
"tsdown": "^0.21.
|
|
131
|
-
"typescript": "^6.0.
|
|
132
|
-
"vite": "^8.0.
|
|
133
|
-
"vitest": "~4.1.
|
|
130
|
+
"tsdown": "^0.21.10",
|
|
131
|
+
"typescript": "^6.0.3",
|
|
132
|
+
"vite": "^8.0.10",
|
|
133
|
+
"vitest": "~4.1.5"
|
|
134
134
|
}
|
|
135
135
|
}
|