rari 0.14.7 → 0.14.9
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/alias-resolver-BIWqeQml.mjs +1 -0
- package/dist/cli.mjs +1 -1
- package/dist/client.d.mts +4 -42
- package/dist/client.mjs +1 -2
- package/dist/feed-generator-CM9mK131.mjs +3 -0
- package/dist/index.d.mts +3 -3
- package/dist/{metadata-route-85WvBQcW.d.mts → metadata-route-_d5FkjlL.d.mts} +37 -1
- package/dist/props-extractor-C8FRV5vW.mjs +1 -0
- package/dist/{railway-s8_vD6IQ.mjs → railway--nFNI3h8.mjs} +1 -1
- package/dist/{render--U1cY-wT.mjs → render-EieI0V5b.mjs} +1 -1
- package/dist/resolve-R6nLL3qq.mjs +1 -0
- package/dist/robots-generator-CsTVq3Jp.mjs +2 -0
- package/dist/runtime/ErrorBoundaryWrapper.mjs +1 -1
- package/dist/runtime/entry-client.mjs +2 -7
- package/dist/runtime/rsc-client-runtime.mjs +2 -2
- package/dist/server-config-D7_4Hk9w.d.mts +107 -0
- package/dist/{sitemap-generator-BGu4N9qc.mjs → sitemap-generator-DWgqfKQu.mjs} +2 -2
- package/dist/{types-BWLVeCkK.d.mts → types-BwhW3M72.d.mts} +16 -1
- package/dist/{utils-BdLqcjvq-QFbF96eD.mjs → utils-DtilLmFs-CiitZqwE.mjs} +1 -0
- package/dist/vite.d.mts +50 -4
- package/dist/vite.mjs +30 -108
- package/package.json +17 -13
- package/dist/alias-resolver-BintHkb_.mjs +0 -1
- package/dist/robots-generator-l2O5neuR.mjs +0 -2
- package/dist/runtime-client-DHeO6y_7.mjs +0 -6
- package/dist/server-config-CwWYmtA0.d.mts +0 -237
- /package/dist/{timer-utils-Duul5JHq.mjs → timer-Duul5JHq.mjs} +0 -0
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
//#region src/router/props-extractor.d.ts
|
|
2
|
+
interface ServerSidePropsResult {
|
|
3
|
+
props: Record<string, any>;
|
|
4
|
+
revalidate?: number;
|
|
5
|
+
notFound?: boolean;
|
|
6
|
+
redirect?: string;
|
|
7
|
+
}
|
|
8
|
+
interface MetadataResult {
|
|
9
|
+
title?: string | {
|
|
10
|
+
default?: string;
|
|
11
|
+
template?: string;
|
|
12
|
+
absolute?: string;
|
|
13
|
+
};
|
|
14
|
+
description?: string;
|
|
15
|
+
keywords?: string[];
|
|
16
|
+
openGraph?: {
|
|
17
|
+
title?: string;
|
|
18
|
+
description?: string;
|
|
19
|
+
url?: string;
|
|
20
|
+
siteName?: string;
|
|
21
|
+
images?: Array<string | {
|
|
22
|
+
url: string;
|
|
23
|
+
width?: number;
|
|
24
|
+
height?: number;
|
|
25
|
+
alt?: string;
|
|
26
|
+
}>;
|
|
27
|
+
type?: string;
|
|
28
|
+
};
|
|
29
|
+
twitter?: {
|
|
30
|
+
card?: 'summary' | 'summary_large_image' | 'app' | 'player';
|
|
31
|
+
site?: string;
|
|
32
|
+
creator?: string;
|
|
33
|
+
title?: string;
|
|
34
|
+
description?: string;
|
|
35
|
+
images?: string[];
|
|
36
|
+
};
|
|
37
|
+
robots?: {
|
|
38
|
+
index?: boolean;
|
|
39
|
+
follow?: boolean;
|
|
40
|
+
nocache?: boolean;
|
|
41
|
+
};
|
|
42
|
+
icons?: {
|
|
43
|
+
icon?: Array<{
|
|
44
|
+
url: string;
|
|
45
|
+
type?: string;
|
|
46
|
+
sizes?: string;
|
|
47
|
+
rel?: string;
|
|
48
|
+
}> | string | string[];
|
|
49
|
+
apple?: Array<{
|
|
50
|
+
url: string;
|
|
51
|
+
sizes?: string;
|
|
52
|
+
rel?: string;
|
|
53
|
+
}> | string | string[];
|
|
54
|
+
other?: Array<{
|
|
55
|
+
url: string;
|
|
56
|
+
rel?: string;
|
|
57
|
+
type?: string;
|
|
58
|
+
sizes?: string;
|
|
59
|
+
color?: string;
|
|
60
|
+
}>;
|
|
61
|
+
};
|
|
62
|
+
manifest?: string;
|
|
63
|
+
themeColor?: string | Array<{
|
|
64
|
+
color: string;
|
|
65
|
+
media?: string;
|
|
66
|
+
}>;
|
|
67
|
+
appleWebApp?: {
|
|
68
|
+
title?: string;
|
|
69
|
+
statusBarStyle?: 'default' | 'black' | 'black-translucent';
|
|
70
|
+
capable?: boolean;
|
|
71
|
+
};
|
|
72
|
+
viewport?: string;
|
|
73
|
+
canonical?: string;
|
|
74
|
+
alternates?: {
|
|
75
|
+
canonical?: string;
|
|
76
|
+
languages?: Record<string, string>;
|
|
77
|
+
types?: Record<string, string>;
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
type StaticParamsResult = Array<Record<string, string | string[]>>;
|
|
81
|
+
declare function extractServerProps(componentPath: string, params: Record<string, string>, searchParams: Record<string, string>): Promise<ServerSidePropsResult>;
|
|
82
|
+
declare function extractMetadata(componentPath: string, params: Record<string, string>, searchParams: Record<string, string>): Promise<MetadataResult>;
|
|
83
|
+
declare function extractStaticParams(componentPath: string): Promise<StaticParamsResult>;
|
|
84
|
+
declare function hasServerSideDataFetching(componentPath: string): Promise<boolean>;
|
|
85
|
+
declare function extractServerPropsWithCache(componentPath: string, params: Record<string, string>, searchParams: Record<string, string>, cacheTime?: number): Promise<ServerSidePropsResult>;
|
|
86
|
+
declare function clearPropsCache(): void;
|
|
87
|
+
declare function clearPropsCacheForComponent(componentPath: string): void;
|
|
88
|
+
//#endregion
|
|
89
|
+
//#region src/types/server-config.d.ts
|
|
90
|
+
interface ServerCSPConfig {
|
|
91
|
+
scriptSrc?: string[];
|
|
92
|
+
styleSrc?: string[];
|
|
93
|
+
imgSrc?: string[];
|
|
94
|
+
fontSrc?: string[];
|
|
95
|
+
connectSrc?: string[];
|
|
96
|
+
defaultSrc?: string[];
|
|
97
|
+
workerSrc?: string[];
|
|
98
|
+
}
|
|
99
|
+
interface ServerCacheControlConfig {
|
|
100
|
+
routes: Record<string, string>;
|
|
101
|
+
}
|
|
102
|
+
interface ServerConfig {
|
|
103
|
+
csp?: ServerCSPConfig;
|
|
104
|
+
cacheControl?: ServerCacheControlConfig;
|
|
105
|
+
}
|
|
106
|
+
//#endregion
|
|
107
|
+
export { ServerSidePropsResult as a, clearPropsCacheForComponent as c, extractServerPropsWithCache as d, extractStaticParams as f, MetadataResult as i, extractMetadata as l, ServerCacheControlConfig as n, StaticParamsResult as o, hasServerSideDataFetching as p, ServerConfig as r, clearPropsCache as s, ServerCSPConfig as t, extractServerProps as u };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{C as e,E as t,S as n,T as r,w as i}from"./regex-constants-DQ2vkSU5.mjs";import{t as a}from"./alias-resolver-
|
|
1
|
+
import{C as e,E as t,S as n,T as r,w as i}from"./regex-constants-DQ2vkSU5.mjs";import{t as a}from"./alias-resolver-BIWqeQml.mjs";import{t as o}from"./resolve-R6nLL3qq.mjs";import{Buffer as s}from"node:buffer";import{promises as c}from"node:fs";import l from"node:path";const u=/[^\w-]/g,d=`\0virtual:sitemap`;function f(a){return a.replace(n,`&`).replace(r,`<`).replace(i,`>`).replace(t,`"`).replace(e,`'`)}function p(e){return(typeof e==`string`?new Date(e):e).toISOString()}function m(e){return[` <image:image>`,` <image:loc>${f(e)}</image:loc>`,` </image:image>`].join(`
|
|
2
2
|
`)}function h(e){let t=[` <image:image>`,` <image:loc>${f(e.loc)}</image:loc>`];return e.title&&t.push(` <image:title>${f(e.title)}</image:title>`),e.caption&&t.push(` <image:caption>${f(e.caption)}</image:caption>`),e.geoLocation&&t.push(` <image:geo_location>${f(e.geoLocation)}</image:geo_location>`),e.license&&t.push(` <image:license>${f(e.license)}</image:license>`),t.push(` </image:image>`),t.join(`
|
|
3
3
|
`)}function g(e){let t=[];for(let n of e)typeof n==`string`?t.push(m(n)):t.push(h(n));return t.join(`
|
|
4
4
|
`)}function _(e){let t=[];if(t.push(` <video:video>`),t.push(` <video:title>${f(e.title)}</video:title>`),t.push(` <video:thumbnail_loc>${f(e.thumbnail_loc)}</video:thumbnail_loc>`),t.push(` <video:description>${f(e.description)}</video:description>`),e.content_loc&&t.push(` <video:content_loc>${f(e.content_loc)}</video:content_loc>`),e.player_loc&&t.push(` <video:player_loc>${f(e.player_loc)}</video:player_loc>`),e.duration!==void 0&&t.push(` <video:duration>${e.duration}</video:duration>`),e.expiration_date&&t.push(` <video:expiration_date>${f(e.expiration_date)}</video:expiration_date>`),e.rating!==void 0&&t.push(` <video:rating>${e.rating}</video:rating>`),e.view_count!==void 0&&t.push(` <video:view_count>${e.view_count}</video:view_count>`),e.publication_date&&t.push(` <video:publication_date>${f(e.publication_date)}</video:publication_date>`),e.family_friendly!==void 0&&t.push(` <video:family_friendly>${e.family_friendly?`yes`:`no`}</video:family_friendly>`),e.requires_subscription!==void 0&&t.push(` <video:requires_subscription>${e.requires_subscription?`yes`:`no`}</video:requires_subscription>`),e.live!==void 0&&t.push(` <video:live>${e.live?`yes`:`no`}</video:live>`),e.restriction&&t.push(` <video:restriction relationship="${f(e.restriction.relationship)}">${f(e.restriction.content)}</video:restriction>`),e.platform&&t.push(` <video:platform relationship="${f(e.platform.relationship)}">${f(e.platform.content)}</video:platform>`),e.uploader){let n=e.uploader.info?` info="${f(e.uploader.info)}"`:``;t.push(` <video:uploader${n}>${f(e.uploader.name)}</video:uploader>`)}if(e.tag)for(let n of e.tag)t.push(` <video:tag>${f(n)}</video:tag>`);return t.push(` </video:video>`),t.join(`
|
|
5
5
|
`)}function v(e){return e.map(e=>_(e)).join(`
|
|
6
6
|
`)}function y(e){let t=e.some(e=>e.images&&e.images.length>0),n=e.some(e=>e.videos&&e.videos.length>0),r=e.some(e=>e.alternates?.languages),i=[`xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"`];return t&&i.push(`xmlns:image="http://www.google.com/schemas/sitemap-image/1.1"`),n&&i.push(`xmlns:video="http://www.google.com/schemas/sitemap-video/1.1"`),r&&i.push(`xmlns:xhtml="http://www.w3.org/1999/xhtml"`),i}function b(e,t){e.push(` <url>`),e.push(` <loc>${f(t.url)}</loc>`),t.lastModified&&e.push(` <lastmod>${p(t.lastModified)}</lastmod>`),t.changeFrequency&&e.push(` <changefreq>${t.changeFrequency}</changefreq>`),t.priority!==void 0&&e.push(` <priority>${t.priority}</priority>`)}function x(e,t){if(t.alternates?.languages)for(let[n,r]of Object.entries(t.alternates.languages))e.push(` <xhtml:link rel="alternate" hreflang="${f(n)}" href="${f(String(r))}" />`)}function S(e,t){t.images&&t.images.length>0&&e.push(g(t.images)),t.videos&&t.videos.length>0&&e.push(v(t.videos))}function C(e){let t=[`<?xml version="1.0" encoding="UTF-8"?>`,`<urlset ${y(e).join(` `)}>`];for(let n of e)b(t,n),x(t,n),S(t,n),t.push(` </url>`);return t.push(`</urlset>`),t.join(`
|
|
7
|
-
`)}async function w(e,t=[`.ts`,`.tsx`,`.js`,`.jsx`,`.mjs`,`.
|
|
7
|
+
`)}async function w(e,t=[`.ts`,`.tsx`,`.js`,`.jsx`,`.mjs`,`.json`]){let n=[],r=l.join(e,`sitemap.xml`);try{return await c.access(r),n.push({type:`static`,path:r}),n}catch{}for(let r of t){let t=l.join(e,`sitemap${r}`);try{return await c.access(t),n.push({type:`dynamic`,path:t}),n}catch{}}return n}function T(e){switch(e){case`ts`:return`ts`;case`tsx`:return`tsx`;case`js`:case`mjs`:return`js`;case`jsx`:return`jsx`;case`json`:return`json`;default:throw Error(`Unsupported sitemap file extension: ".${e}". Allowed extensions are: .ts, .tsx, .js, .jsx, .mjs, .json`)}}function E(e,t,n={},r){return{name:`virtual-sitemap`,resolveId(t,i){if(t===d)return t;if(Object.keys(n).length>0){let e=a(t,n,r);if(e)return o(e)||e}if(t.startsWith(`.`)){let n=!i||i.startsWith(`\0`)?e.path:i,r=l.resolve(l.dirname(n),t);return o(r)||r}return null},async load(n){if(n===d)return{code:t,moduleType:T(l.extname(e.path).slice(1))};if(n&&!n.startsWith(`\0`))try{return{code:await c.readFile(n,`utf-8`),moduleType:T(l.extname(n).slice(1))}}catch{return null}return null}}}function D(e){if(!e.output||e.output.length===0)throw Error(`Failed to build sitemap module`);let t=e.output.find(e=>e.type===`chunk`&&e.isEntry)||e.output.find(e=>e.type===`chunk`);if(!t||t.type!==`chunk`)throw Error(`No chunk output found in sitemap build result`);return t.code}async function O(e,t,n={},r){let{build:i}=await import(`rolldown`),a=D(await i({input:d,external:[`rari`],platform:`node`,write:!1,output:{format:`esm`,codeSplitting:!1},plugins:[E(e,t,n,r)]}));return await import(`data:text/javascript;base64,${s.from(a).toString(`base64`)}`)}async function k(e,t){let n=await e.generateSitemaps(),r=l.join(t,`sitemap`);await c.mkdir(r,{recursive:!0});let i=new Map;for(let{id:t}of n)try{let n=String(t).replace(u,`_`);(!n||n.length===0)&&(n=`_`);let a=i.get(n);if(a!==void 0)throw Error(`Duplicate sanitized sitemap ID "${n}": original IDs "${a}" and "${t}" collide`);i.set(n,String(t));let o=C(typeof e.default==`function`?await e.default({id:t}):e.default),s=l.join(r,`${n}.xml`);await c.writeFile(s,o)}catch(e){throw Error(`Failed to generate sitemap for id "${t}"`,{cause:e})}}async function A(e,t){let n=C(typeof e.default==`function`?await e.default():e.default),r=l.join(t,`sitemap.xml`);await c.writeFile(r,n)}async function j(e){let{appDir:t,extensions:n,outDir:r,aliases:i={}}=e,a=await w(t,n);if(a.length===0)return!1;await c.mkdir(r,{recursive:!0});let o=a[0];if(o.type===`static`){let e=l.join(r,`sitemap.xml`);return await c.copyFile(o.path,e),!0}try{let e=await O(o,await c.readFile(o.path,`utf-8`),i,l.dirname(l.dirname(t)));return typeof e.generateSitemaps==`function`?await k(e,r):await A(e,r),!0}catch(e){return console.error(`[rari] Failed to build/execute sitemap file:`,e),!1}}export{j as generateSitemapFiles};
|
|
@@ -63,12 +63,21 @@ interface ApiRouteEntry {
|
|
|
63
63
|
isDynamic: boolean;
|
|
64
64
|
methods: string[];
|
|
65
65
|
}
|
|
66
|
+
interface TemplateEntry {
|
|
67
|
+
path: string;
|
|
68
|
+
filePath: string;
|
|
69
|
+
css?: string[];
|
|
70
|
+
componentId?: string;
|
|
71
|
+
parentPath?: string;
|
|
72
|
+
additionalPaths?: string[];
|
|
73
|
+
}
|
|
66
74
|
interface AppRouteManifest {
|
|
67
75
|
routes: AppRouteEntry[];
|
|
68
76
|
layouts: LayoutEntry[];
|
|
69
77
|
loading: LoadingEntry[];
|
|
70
78
|
errors: ErrorEntry[];
|
|
71
79
|
notFound: NotFoundEntry[];
|
|
80
|
+
templates: TemplateEntry[];
|
|
72
81
|
apiRoutes: ApiRouteEntry[];
|
|
73
82
|
ogImages: OgImageEntry[];
|
|
74
83
|
generated: string;
|
|
@@ -146,6 +155,11 @@ interface RouteMetadata {
|
|
|
146
155
|
statusBarStyle?: 'default' | 'black' | 'black-translucent';
|
|
147
156
|
};
|
|
148
157
|
canonical?: string;
|
|
158
|
+
alternates?: {
|
|
159
|
+
canonical?: string;
|
|
160
|
+
languages?: Record<string, string>;
|
|
161
|
+
types?: Record<string, string>;
|
|
162
|
+
};
|
|
149
163
|
}
|
|
150
164
|
type Metadata = RouteMetadata;
|
|
151
165
|
type RouteParams = Record<string, string | string[]>;
|
|
@@ -170,6 +184,7 @@ interface AppRouteMatch {
|
|
|
170
184
|
layouts: LayoutEntry[];
|
|
171
185
|
loading?: LoadingEntry;
|
|
172
186
|
error?: ErrorEntry;
|
|
187
|
+
templates: TemplateEntry[];
|
|
173
188
|
pathname: string;
|
|
174
189
|
}
|
|
175
190
|
type GenerateMetadata<TParams extends RouteParams = RouteParams, TSearchParams extends SearchParams = SearchParams> = (props: {
|
|
@@ -178,4 +193,4 @@ type GenerateMetadata<TParams extends RouteParams = RouteParams, TSearchParams e
|
|
|
178
193
|
}) => RouteMetadata | Promise<RouteMetadata>;
|
|
179
194
|
type GenerateStaticParams<TParams extends RouteParams = RouteParams> = () => TParams[] | Promise<TParams[]>;
|
|
180
195
|
//#endregion
|
|
181
|
-
export { ErrorProps as a, LayoutEntry as c, Metadata as d, NotFoundEntry as f, RouteSegmentType as h, ErrorEntry as i, LayoutProps as l, RouteSegment as m, AppRouteManifest as n, GenerateMetadata as o, PageProps as p, AppRouteMatch as r, GenerateStaticParams as s, AppRouteEntry as t, LoadingEntry as u };
|
|
196
|
+
export { ErrorProps as a, LayoutEntry as c, Metadata as d, NotFoundEntry as f, TemplateEntry as g, RouteSegmentType as h, ErrorEntry as i, LayoutProps as l, RouteSegment as m, AppRouteManifest as n, GenerateMetadata as o, PageProps as p, AppRouteMatch as r, GenerateStaticParams as s, AppRouteEntry as t, LoadingEntry as u };
|
|
@@ -2,6 +2,7 @@ import{existsSync as e,readFileSync as t,writeFileSync as n}from"node:fs";import
|
|
|
2
2
|
`);if(e(c)){let e=t(c,`utf-8`),r=e.split(`
|
|
3
3
|
`).map(e=>e.trim());r.includes(`${o}/`)||r.includes(o)||(n(c,e+l),s(`Updated .gitignore with ${a} entries`))}else n(c,`# Dependencies
|
|
4
4
|
node_modules
|
|
5
|
+
.pnpm-store
|
|
5
6
|
|
|
6
7
|
# Build outputs
|
|
7
8
|
dist
|
package/dist/vite.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as ErrorProps, c as LayoutEntry, d as Metadata, f as NotFoundEntry, h as RouteSegmentType, i as ErrorEntry, l as LayoutProps, m as RouteSegment, n as AppRouteManifest, o as GenerateMetadata, p as PageProps, r as AppRouteMatch, s as GenerateStaticParams, t as AppRouteEntry, u as LoadingEntry } from "./types-
|
|
3
|
-
import { a as
|
|
1
|
+
import { a as ServerSidePropsResult, c as clearPropsCacheForComponent, d as extractServerPropsWithCache, f as extractStaticParams, i as MetadataResult, l as extractMetadata, n as ServerCacheControlConfig, o as StaticParamsResult, p as hasServerSideDataFetching, r as ServerConfig, s as clearPropsCache, t as ServerCSPConfig, u as extractServerProps } from "./server-config-D7_4Hk9w.mjs";
|
|
2
|
+
import { a as ErrorProps, c as LayoutEntry, d as Metadata, f as NotFoundEntry, g as TemplateEntry, h as RouteSegmentType, i as ErrorEntry, l as LayoutProps, m as RouteSegment, n as AppRouteManifest, o as GenerateMetadata, p as PageProps, r as AppRouteMatch, s as GenerateStaticParams, t as AppRouteEntry, u as LoadingEntry } from "./types-BwhW3M72.mjs";
|
|
3
|
+
import { a as Sitemap, c as SitemapVideo, i as RobotsRule, o as SitemapEntry, r as Robots, s as SitemapImage } from "./metadata-route-_d5FkjlL.mjs";
|
|
4
4
|
import { a as ProxyModule, c as RariURL, i as ProxyMatcher, l as RequestCookies, n as ProxyConfig, o as ProxyResult, r as ProxyFunction, s as RariFetchEvent, t as CookieOptions, u as ResponseCookies } from "./types-3dq9RGI5.mjs";
|
|
5
5
|
import { RariRequest } from "./proxy/RariRequest.mjs";
|
|
6
6
|
import { RariResponse } from "./proxy/RariResponse.mjs";
|
|
@@ -98,6 +98,52 @@ declare class ApiResponse extends Response {
|
|
|
98
98
|
static noContent(init?: ResponseInit): Response;
|
|
99
99
|
}
|
|
100
100
|
//#endregion
|
|
101
|
+
//#region src/http-runtime-client.d.ts
|
|
102
|
+
interface RuntimeClient {
|
|
103
|
+
initialize: () => Promise<void>;
|
|
104
|
+
registerComponent: (componentId: string, componentCode: string) => Promise<void>;
|
|
105
|
+
renderToStreamCallbacks: (componentId: string, props?: string) => Promise<any>;
|
|
106
|
+
registerClientComponent: (componentId: string, filePath: string, exportName: string) => void;
|
|
107
|
+
registerClientReference: (referenceId: string, filePath: string, exportName: string) => void;
|
|
108
|
+
listComponents: () => string[];
|
|
109
|
+
shutdown: () => Promise<void>;
|
|
110
|
+
}
|
|
111
|
+
interface HealthResponse {
|
|
112
|
+
status: string;
|
|
113
|
+
timestamp: string;
|
|
114
|
+
}
|
|
115
|
+
declare class HttpRuntimeClient implements RuntimeClient {
|
|
116
|
+
private baseUrl;
|
|
117
|
+
private timeout;
|
|
118
|
+
private components;
|
|
119
|
+
private initialized;
|
|
120
|
+
constructor(options?: {
|
|
121
|
+
host?: string;
|
|
122
|
+
port?: number;
|
|
123
|
+
timeout?: number;
|
|
124
|
+
ssl?: boolean;
|
|
125
|
+
});
|
|
126
|
+
private assertInitialized;
|
|
127
|
+
private request;
|
|
128
|
+
initialize(): Promise<void>;
|
|
129
|
+
registerComponent(componentId: string, componentCode: string): Promise<void>;
|
|
130
|
+
renderToStreamCallbacks(componentId: string, props?: string): Promise<any>;
|
|
131
|
+
registerClientComponent(componentId: string, filePath: string, exportName: string): void;
|
|
132
|
+
private queueClientComponentRegistration;
|
|
133
|
+
registerClientReference(referenceId: string, filePath: string, exportName: string): void;
|
|
134
|
+
listComponents(): string[];
|
|
135
|
+
shutdown(): Promise<void>;
|
|
136
|
+
checkHealth(): Promise<HealthResponse>;
|
|
137
|
+
isInitialized(): boolean;
|
|
138
|
+
getBaseUrl(): string;
|
|
139
|
+
}
|
|
140
|
+
declare function createHttpRuntimeClient(options?: {
|
|
141
|
+
host?: string;
|
|
142
|
+
port?: number;
|
|
143
|
+
timeout?: number;
|
|
144
|
+
ssl?: boolean;
|
|
145
|
+
}): RuntimeClient;
|
|
146
|
+
//#endregion
|
|
101
147
|
//#region src/router/routes.d.ts
|
|
102
148
|
interface AppRouteGeneratorOptions {
|
|
103
149
|
appDir: string;
|
|
@@ -119,4 +165,4 @@ type Request$1 = globalThis.Request;
|
|
|
119
165
|
type Response$1 = globalThis.Response;
|
|
120
166
|
declare function rari(options?: Parameters<typeof rari$1>[0]): any[];
|
|
121
167
|
//#endregion
|
|
122
|
-
export { ApiResponse, type ApiRouteHandlers, type AppRouteEntry, type AppRouteManifest, type AppRouteMatch, type CookieOptions, type ErrorEntry, type ErrorProps, type GenerateMetadata, type GenerateStaticParams, HttpRuntimeClient, type LayoutEntry, type LayoutProps, type LoadingEntry, type Metadata, type MetadataResult, type NotFoundEntry, type PageProps, type ProxyConfig, type ProxyFunction, type ProxyMatcher, type ProxyModule, type ProxyPluginOptions, type ProxyResult, type RariFetchEvent, RariRequest, RariResponse, type RariURL, Request$1 as Request, type RequestCookies, Response$1 as Response, type ResponseCookies, type Robots, type RobotsRule, type RouteContext, type RouteHandler, type RouteSegment, type RouteSegmentType, type RuntimeClient, type ServerCSPConfig, type ServerConfig, type ServerSidePropsResult, type Sitemap, type SitemapEntry, type SitemapImage, type SitemapVideo, type StaticParamsResult, clearPropsCache, clearPropsCacheForComponent, createHttpRuntimeClient, defineRariConfig, defineRariOptions, extractMetadata, extractServerProps, extractServerPropsWithCache, extractStaticParams, generateAppRouteManifest, hasServerSideDataFetching, rari, rariProxy, rariRouter };
|
|
168
|
+
export { ApiResponse, type ApiRouteHandlers, type AppRouteEntry, type AppRouteManifest, type AppRouteMatch, type CookieOptions, type ErrorEntry, type ErrorProps, type GenerateMetadata, type GenerateStaticParams, HttpRuntimeClient, type LayoutEntry, type LayoutProps, type LoadingEntry, type Metadata, type MetadataResult, type NotFoundEntry, type PageProps, type ProxyConfig, type ProxyFunction, type ProxyMatcher, type ProxyModule, type ProxyPluginOptions, type ProxyResult, type RariFetchEvent, RariRequest, RariResponse, type RariURL, Request$1 as Request, type RequestCookies, Response$1 as Response, type ResponseCookies, type Robots, type RobotsRule, type RouteContext, type RouteHandler, type RouteSegment, type RouteSegmentType, type RuntimeClient, type ServerCSPConfig, type ServerConfig, type ServerSidePropsResult, type Sitemap, type SitemapEntry, type SitemapImage, type SitemapVideo, type StaticParamsResult, type TemplateEntry, clearPropsCache, clearPropsCacheForComponent, createHttpRuntimeClient, defineRariConfig, defineRariOptions, extractMetadata, extractServerProps, extractServerPropsWithCache, extractStaticParams, generateAppRouteManifest, hasServerSideDataFetching, rari, rariProxy, rariRouter };
|