kilatjs 0.1.0 → 0.1.2
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 +481 -260
- package/dist/adapters/react.d.ts +6 -1
- package/dist/cli.d.ts +6 -0
- package/dist/cli.js +1335 -0
- package/dist/core/router.d.ts +10 -7
- package/dist/core/types.d.ts +4 -1
- package/dist/core/vite-router.d.ts +34 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +425 -199
- package/dist/server/dev-server.d.ts +0 -0
- package/dist/server/live-reload.d.ts +27 -0
- package/dist/server/server.d.ts +11 -1
- package/dist/server/vite-dev.d.ts +38 -0
- package/dist/server/vite-server.d.ts +17 -0
- package/package.json +10 -4
package/dist/adapters/react.d.ts
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { PageProps, RouteMeta, KilatConfig } from "../core/types";
|
|
3
3
|
export declare class ReactAdapter {
|
|
4
|
+
/**
|
|
5
|
+
* Render React component to HTML string (pure static markup, no hydration)
|
|
6
|
+
*/
|
|
4
7
|
static renderToString(component: React.ComponentType<PageProps>, props: PageProps): Promise<string>;
|
|
5
|
-
static createDocument(html: string, meta?: RouteMeta, config?: KilatConfig
|
|
8
|
+
static createDocument(html: string, meta?: RouteMeta, config?: KilatConfig, options?: {
|
|
9
|
+
clientScript?: () => void;
|
|
10
|
+
}): string;
|
|
6
11
|
private static escapeHtml;
|
|
7
12
|
}
|