gemi 0.4.10 → 0.4.11
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/bin/index.js +3 -2
- package/dist/client/ClientRouter.d.ts.map +1 -1
- package/dist/client/ClientRouterContext.d.ts +1 -0
- package/dist/client/ClientRouterContext.d.ts.map +1 -1
- package/dist/client/ComponentContext.d.ts +10 -0
- package/dist/client/ComponentContext.d.ts.map +1 -0
- package/dist/client/index.js +858 -134
- package/dist/server/index.js +3 -2
- package/package.json +1 -1
- package/dist/client/index-DiGoPyjN.mjs +0 -717
package/dist/bin/index.js
CHANGED
|
@@ -9106,8 +9106,9 @@ async function startDevServer() {
|
|
|
9106
9106
|
try {
|
|
9107
9107
|
return await handler(req);
|
|
9108
9108
|
} catch (err) {
|
|
9109
|
-
|
|
9110
|
-
|
|
9109
|
+
return new Response(renderErrorPage(err), {
|
|
9110
|
+
headers: { "Content-Type": "text/html" }
|
|
9111
|
+
});
|
|
9111
9112
|
}
|
|
9112
9113
|
}
|
|
9113
9114
|
await vite.listen(5174);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClientRouter.d.ts","sourceRoot":"","sources":["../../client/ClientRouter.tsx"],"names":[],"mappings":"AAAA,OAAO,EASL,KAAK,aAAa,EACnB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ClientRouter.d.ts","sourceRoot":"","sources":["../../client/ClientRouter.tsx"],"names":[],"mappings":"AAAA,OAAO,EASL,KAAK,aAAa,EACnB,MAAM,OAAO,CAAC;AAsEf,eAAO,MAAM,YAAY,UAAW;IAClC,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACpC,UAAU,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC;CAChC,4CAuBA,CAAC"}
|
|
@@ -9,6 +9,7 @@ interface ClientRouterContextValue {
|
|
|
9
9
|
locationSubject: Subject<Location>;
|
|
10
10
|
getScrollPosition: (path: string) => number;
|
|
11
11
|
params: Record<string, string>;
|
|
12
|
+
getViewPathsFromPathname: (pathname: string) => string[];
|
|
12
13
|
}
|
|
13
14
|
export declare const ClientRouterContext: import("react").Context<ClientRouterContextValue>;
|
|
14
15
|
interface ClientRouterProviderProps {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClientRouterContext.d.ts","sourceRoot":"","sources":["../../client/ClientRouterContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,EAAE,EACP,KAAK,QAAQ,EAEd,MAAM,SAAS,CAAC;AACjB,OAAO,EAOL,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACvB,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"ClientRouterContext.d.ts","sourceRoot":"","sources":["../../client/ClientRouterContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,EAAE,EACP,KAAK,QAAQ,EAEd,MAAM,SAAS,CAAC;AACjB,OAAO,EAOL,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACvB,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAI3C,UAAU,wBAAwB;IAChC,kBAAkB,EAAE,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IACtC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IACxB,cAAc,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,CAAC;IACxD,WAAW,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,GAAG,CAAC;IAClC,eAAe,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IACnC,iBAAiB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IAC5C,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,wBAAwB,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,EAAE,CAAC;CAC1D;AAED,eAAO,MAAM,mBAAmB,mDAE/B,CAAC;AAEF,UAAU,yBAAyB;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IACxC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,KAAK,EAAE,OAAO,CAAC;CAChB;AAED,eAAO,MAAM,oBAAoB,UACxB,iBAAiB,CAAC,yBAAyB,CAAC,4CA0GpD,CAAC;AAUF,wBAAgB,WAAW,aAU1B;AAED,wBAAgB,SAAS,2BAGxB;AAED,wBAAgB,WAAW,SAAK;AAEhC,wBAAgB,SAAS;eAKJ,EAAE,UAAU,GAAG;EAoCnC;AAED,eAAO,MAAM,IAAI,UACR,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,GAAG;IAAE,IAAI,EAAE,EAAE,CAAA;CAAE,4CA8BxD,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { lazy, type PropsWithChildren } from "react";
|
|
2
|
+
declare let viewImportMap: Record<string, ReturnType<typeof lazy>> | null;
|
|
3
|
+
export declare const ComponentsContext: import("react").Context<{
|
|
4
|
+
viewImportMap: Record<string, import("react").LazyExoticComponent<import("react").ComponentType<any>>>;
|
|
5
|
+
}>;
|
|
6
|
+
export declare const ComponentsProvider: (props: PropsWithChildren<{
|
|
7
|
+
viewImportMap: typeof viewImportMap;
|
|
8
|
+
}>) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=ComponentContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComponentContext.d.ts","sourceRoot":"","sources":["../../client/ComponentContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,IAAI,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAIpE,QAAA,IAAI,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,OAAO,IAAI,CAAC,CAAC,GAAG,IAAW,CAAC;AAWzE,eAAO,MAAM,iBAAiB;;EAAmC,CAAC;AAElE,eAAO,MAAM,kBAAkB,UACtB,iBAAiB,CAAC;IAAE,aAAa,EAAE,OAAO,aAAa,CAAA;CAAE,CAAC,4CASlE,CAAC"}
|