veryfront 0.0.72 → 0.0.74
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 +3 -0
- package/dist/ai/components.js +593 -52
- package/dist/ai/components.js.map +3 -3
- package/dist/ai/dev.js +121 -18
- package/dist/ai/dev.js.map +2 -2
- package/dist/ai/index.js +732 -236
- package/dist/ai/index.js.map +4 -4
- package/dist/ai/production.js +121 -18
- package/dist/ai/production.js.map +2 -2
- package/dist/ai/react.js +57 -37
- package/dist/ai/react.js.map +2 -2
- package/dist/ai/workflow.js +435 -63
- package/dist/ai/workflow.js.map +4 -4
- package/dist/components.js +3353 -206
- package/dist/components.js.map +4 -4
- package/dist/config.js +377 -40
- package/dist/config.js.map +3 -3
- package/dist/context.d.ts +44 -0
- package/dist/context.js +52 -0
- package/dist/context.js.map +7 -0
- package/dist/data.js +156 -37
- package/dist/data.js.map +3 -3
- package/dist/fonts.d.ts +24 -0
- package/dist/fonts.js +45 -0
- package/dist/fonts.js.map +7 -0
- package/dist/head.d.ts +21 -0
- package/dist/head.js +34 -0
- package/dist/head.js.map +7 -0
- package/dist/index.js +3463 -282
- package/dist/index.js.map +4 -4
- package/dist/oauth/handlers.js +1 -1
- package/dist/oauth/handlers.js.map +2 -2
- package/dist/oauth/index.js +1 -1
- package/dist/oauth/index.js.map +2 -2
- package/dist/oauth/providers.js +1 -1
- package/dist/oauth/providers.js.map +2 -2
- package/dist/router.d.ts +69 -0
- package/dist/router.js +61 -0
- package/dist/router.js.map +7 -0
- package/dist/templates/ai/app/api/chat/route.ts +106 -3
- package/package.json +19 -2
- package/dist/cli.js +0 -108105
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/_shims/deno-env.ts", "../../lib/GoogleFonts.tsx"],
|
|
4
|
+
"sourcesContent": ["/**\n * Shim for Deno.env in Node.js environment\n * This file is injected by esbuild to provide Deno.env compatibility\n */\n\n// @ts-ignore - Global Deno shim for Node.js\nglobalThis.Deno = globalThis.Deno || {\n env: {\n get(key: string): string | undefined {\n return process.env[key];\n },\n set(key: string, value: string): void {\n process.env[key] = value;\n },\n delete(key: string): void {\n delete process.env[key];\n },\n has(key: string): boolean {\n return key in process.env;\n },\n toObject(): Record<string, string> {\n return { ...process.env } as Record<string, string>;\n },\n },\n};\n", "import React from \"react\";\n\nexport interface GoogleFontsProps {\n fonts: string | string[];\n display?: \"auto\" | \"block\" | \"swap\" | \"fallback\" | \"optional\";\n}\n\n/**\n * SSR-compatible GoogleFonts component\n * Generates the appropriate link tags for loading Google Fonts\n */\nexport const GoogleFonts: React.FC<GoogleFontsProps> = ({\n fonts,\n display = \"swap\",\n}) => {\n const fontList = Array.isArray(fonts) ? fonts : [fonts];\n\n // Build the Google Fonts URL\n const fontParam = fontList\n .map((font) => {\n // Handle fonts with weights like \"Inter:wght@400;500;600\"\n const encoded = font.replace(/ /g, \"+\");\n return `family=${encoded}`;\n })\n .join(\"&\");\n\n const href = `https://fonts.googleapis.com/css2?${fontParam}&display=${display}`;\n\n // For SSR, we return a fragment that will be processed by the shell generator\n // The actual <link> injection happens in the HTML shell\n return (\n <>\n <link rel=\"preconnect\" href=\"https://fonts.googleapis.com\" />\n <link rel=\"preconnect\" href=\"https://fonts.gstatic.com\" crossOrigin=\"\" />\n <link rel=\"stylesheet\" href={href} />\n </>\n );\n};\n\nexport default GoogleFonts;\n"],
|
|
5
|
+
"mappings": ";AAMA,WAAW,OAAO,WAAW,QAAQ;AAAA,EACnC,KAAK;AAAA,IACH,IAAI,KAAiC;AACnC,aAAO,QAAQ,IAAI,GAAG;AAAA,IACxB;AAAA,IACA,IAAI,KAAa,OAAqB;AACpC,cAAQ,IAAI,GAAG,IAAI;AAAA,IACrB;AAAA,IACA,OAAO,KAAmB;AACxB,aAAO,QAAQ,IAAI,GAAG;AAAA,IACxB;AAAA,IACA,IAAI,KAAsB;AACxB,aAAO,OAAO,QAAQ;AAAA,IACxB;AAAA,IACA,WAAmC;AACjC,aAAO,EAAE,GAAG,QAAQ,IAAI;AAAA,IAC1B;AAAA,EACF;AACF;;;ACOI,mBACE,KADF;AApBG,IAAM,cAA0C,CAAC;AAAA,EACtD;AAAA,EACA,UAAU;AACZ,MAAM;AACJ,QAAM,WAAW,MAAM,QAAQ,KAAK,IAAI,QAAQ,CAAC,KAAK;AAGtD,QAAM,YAAY,SACf,IAAI,CAAC,SAAS;AAEb,UAAM,UAAU,KAAK,QAAQ,MAAM,GAAG;AACtC,WAAO,UAAU,OAAO;AAAA,EAC1B,CAAC,EACA,KAAK,GAAG;AAEX,QAAM,OAAO,qCAAqC,SAAS,YAAY,OAAO;AAI9E,SACE,iCACE;AAAA,wBAAC,UAAK,KAAI,cAAa,MAAK,gCAA+B;AAAA,IAC3D,oBAAC,UAAK,KAAI,cAAa,MAAK,6BAA4B,aAAY,IAAG;AAAA,IACvE,oBAAC,UAAK,KAAI,cAAa,MAAY;AAAA,KACrC;AAEJ;AAEA,IAAO,sBAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/dist/head.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// Head component type definitions
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
export interface HeadProps {
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* SSR-compatible Head component for managing document head elements.
|
|
10
|
+
* During SSR, collects head elements; during hydration, manages them client-side.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* import { Head } from 'veryfront/head';
|
|
14
|
+
*
|
|
15
|
+
* <Head>
|
|
16
|
+
* <title>My Page</title>
|
|
17
|
+
* <meta name="description" content="Page description" />
|
|
18
|
+
* </Head>
|
|
19
|
+
*/
|
|
20
|
+
export declare const Head: React.FC<HeadProps>;
|
|
21
|
+
export default Head;
|
package/dist/head.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// src/_shims/deno-env.ts
|
|
2
|
+
globalThis.Deno = globalThis.Deno || {
|
|
3
|
+
env: {
|
|
4
|
+
get(key) {
|
|
5
|
+
return process.env[key];
|
|
6
|
+
},
|
|
7
|
+
set(key, value) {
|
|
8
|
+
process.env[key] = value;
|
|
9
|
+
},
|
|
10
|
+
delete(key) {
|
|
11
|
+
delete process.env[key];
|
|
12
|
+
},
|
|
13
|
+
has(key) {
|
|
14
|
+
return key in process.env;
|
|
15
|
+
},
|
|
16
|
+
toObject() {
|
|
17
|
+
return { ...process.env };
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
// lib/Head.tsx
|
|
23
|
+
import { Fragment, jsx } from "react/jsx-runtime";
|
|
24
|
+
var Head = ({
|
|
25
|
+
children
|
|
26
|
+
}) => {
|
|
27
|
+
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
28
|
+
};
|
|
29
|
+
var Head_default = Head;
|
|
30
|
+
export {
|
|
31
|
+
Head,
|
|
32
|
+
Head_default as default
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=head.js.map
|
package/dist/head.js.map
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/_shims/deno-env.ts", "../../lib/Head.tsx"],
|
|
4
|
+
"sourcesContent": ["/**\n * Shim for Deno.env in Node.js environment\n * This file is injected by esbuild to provide Deno.env compatibility\n */\n\n// @ts-ignore - Global Deno shim for Node.js\nglobalThis.Deno = globalThis.Deno || {\n env: {\n get(key: string): string | undefined {\n return process.env[key];\n },\n set(key: string, value: string): void {\n process.env[key] = value;\n },\n delete(key: string): void {\n delete process.env[key];\n },\n has(key: string): boolean {\n return key in process.env;\n },\n toObject(): Record<string, string> {\n return { ...process.env } as Record<string, string>;\n },\n },\n};\n", "import React from \"react\";\n\n// SSR-compatible Head component\n// During SSR, this collects head elements; during hydration, react-helmet-async takes over\nexport const Head: React.FC<React.PropsWithChildren<Record<string, unknown>>> = ({\n children,\n}) => {\n // For SSR, we just render null - the actual head management is done by the shell generator\n // The children will be processed separately if needed\n return <>{children}</>;\n};\n\nexport default Head;\n"],
|
|
5
|
+
"mappings": ";AAMA,WAAW,OAAO,WAAW,QAAQ;AAAA,EACnC,KAAK;AAAA,IACH,IAAI,KAAiC;AACnC,aAAO,QAAQ,IAAI,GAAG;AAAA,IACxB;AAAA,IACA,IAAI,KAAa,OAAqB;AACpC,cAAQ,IAAI,GAAG,IAAI;AAAA,IACrB;AAAA,IACA,OAAO,KAAmB;AACxB,aAAO,QAAQ,IAAI,GAAG;AAAA,IACxB;AAAA,IACA,IAAI,KAAsB;AACxB,aAAO,OAAO,QAAQ;AAAA,IACxB;AAAA,IACA,WAAmC;AACjC,aAAO,EAAE,GAAG,QAAQ,IAAI;AAAA,IAC1B;AAAA,EACF;AACF;;;ACfS;AALF,IAAM,OAAmE,CAAC;AAAA,EAC/E;AACF,MAAM;AAGJ,SAAO,gCAAG,UAAS;AACrB;AAEA,IAAO,eAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|