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.
@@ -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): string;
8
+ static createDocument(html: string, meta?: RouteMeta, config?: KilatConfig, options?: {
9
+ clientScript?: () => void;
10
+ }): string;
6
11
  private static escapeHtml;
7
12
  }
package/dist/cli.d.ts CHANGED
@@ -1,2 +1,8 @@
1
1
  #!/usr/bin/env bun
2
+ /**
3
+ * KilatJS CLI
4
+ *
5
+ * Uses `bun --hot` for module-level hot reloading in development.
6
+ * This provides fast reloads without full process restarts.
7
+ */
2
8
  export {};