@lolyjs/core 0.1.0-alpha.5 → 0.1.0-alpha.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lolyjs/core",
3
- "version": "0.1.0-alpha.5",
3
+ "version": "0.1.0-alpha.8",
4
4
  "main": "dist/index.cjs",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -95,7 +95,9 @@
95
95
  "tag": "alpha"
96
96
  },
97
97
  "scripts": {
98
- "build": "tsup",
98
+ "build": "tsup --config tsup.config.ts",
99
+ "build:server": "tsup --config tsup.config.ts --config-name serverConfig",
100
+ "build:client": "tsup --config tsup.config.ts --config-name clientRuntimeConfig",
99
101
  "dev": "node ./dev/dev-server.js"
100
102
  }
101
103
  }
@@ -1,50 +0,0 @@
1
- declare const WINDOW_DATA_KEY = "__FW_DATA__";
2
-
3
- type InitialData = {
4
- pathname: string;
5
- params: Record<string, string>;
6
- props: Record<string, any>;
7
- metadata?: {
8
- title?: string;
9
- description?: string;
10
- } | null;
11
- notFound?: boolean;
12
- error?: boolean;
13
- theme?: string;
14
- };
15
- declare global {
16
- interface Window {
17
- [WINDOW_DATA_KEY]?: InitialData;
18
- }
19
- }
20
- type ClientLoadedComponents = {
21
- Page: React.ComponentType<any>;
22
- layouts: React.ComponentType<any>[];
23
- };
24
- type ClientRouteLoaded = {
25
- pattern: string;
26
- paramNames: string[];
27
- load: () => Promise<ClientLoadedComponents>;
28
- };
29
- type ClientRouteMatch = {
30
- route: ClientRouteLoaded;
31
- params: Record<string, string>;
32
- };
33
- type RouteViewState = {
34
- url: string;
35
- route: ClientRouteLoaded | null;
36
- params: Record<string, string>;
37
- components: ClientLoadedComponents | null;
38
- props: Record<string, any>;
39
- };
40
-
41
- /**
42
- * Bootstraps the client-side application.
43
- *
44
- * @param routes - Array of client routes
45
- * @param notFoundRoute - Not-found route definition
46
- * @param errorRoute - Error route definition
47
- */
48
- declare function bootstrapClient(routes: ClientRouteLoaded[], notFoundRoute: ClientRouteLoaded | null, errorRoute?: ClientRouteLoaded | null): void;
49
-
50
- export { type ClientRouteLoaded as C, type InitialData as I, type RouteViewState as R, type ClientLoadedComponents as a, type ClientRouteMatch as b, bootstrapClient as c };
@@ -1,50 +0,0 @@
1
- declare const WINDOW_DATA_KEY = "__FW_DATA__";
2
-
3
- type InitialData = {
4
- pathname: string;
5
- params: Record<string, string>;
6
- props: Record<string, any>;
7
- metadata?: {
8
- title?: string;
9
- description?: string;
10
- } | null;
11
- notFound?: boolean;
12
- error?: boolean;
13
- theme?: string;
14
- };
15
- declare global {
16
- interface Window {
17
- [WINDOW_DATA_KEY]?: InitialData;
18
- }
19
- }
20
- type ClientLoadedComponents = {
21
- Page: React.ComponentType<any>;
22
- layouts: React.ComponentType<any>[];
23
- };
24
- type ClientRouteLoaded = {
25
- pattern: string;
26
- paramNames: string[];
27
- load: () => Promise<ClientLoadedComponents>;
28
- };
29
- type ClientRouteMatch = {
30
- route: ClientRouteLoaded;
31
- params: Record<string, string>;
32
- };
33
- type RouteViewState = {
34
- url: string;
35
- route: ClientRouteLoaded | null;
36
- params: Record<string, string>;
37
- components: ClientLoadedComponents | null;
38
- props: Record<string, any>;
39
- };
40
-
41
- /**
42
- * Bootstraps the client-side application.
43
- *
44
- * @param routes - Array of client routes
45
- * @param notFoundRoute - Not-found route definition
46
- * @param errorRoute - Error route definition
47
- */
48
- declare function bootstrapClient(routes: ClientRouteLoaded[], notFoundRoute: ClientRouteLoaded | null, errorRoute?: ClientRouteLoaded | null): void;
49
-
50
- export { type ClientRouteLoaded as C, type InitialData as I, type RouteViewState as R, type ClientLoadedComponents as a, type ClientRouteMatch as b, bootstrapClient as c };