@vercel/geistdocs 1.19.0 → 1.19.1
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/assets/logos/logo-ai-sdk.d.ts.map +1 -1
- package/dist/assets/logos/logo-ai-sdk.js +2 -2
- package/dist/assets/logos/logo-chat-sdk.d.ts.map +1 -1
- package/dist/assets/logos/logo-chat-sdk.js +3 -3
- package/dist/assets/logos/logo-eve.js +1 -1
- package/dist/assets/logos/logo-flags-sdk.d.ts.map +1 -1
- package/dist/assets/logos/logo-flags-sdk.js +3 -3
- package/dist/assets/logos/logo-turborepo.js +1 -1
- package/dist/assets/logos/logo-workflow-sdk.d.ts.map +1 -1
- package/dist/assets/logos/logo-workflow-sdk.js +3 -3
- package/dist/cli/index.js +1 -1
- package/dist/components/copy-prompt.js +1 -1
- package/dist/internal/navbar/navbar-logo.d.ts.map +1 -1
- package/dist/internal/navbar/navbar-logo.js +4 -2
- package/dist/internal/ui/button.js +1 -1
- package/dist/internal/ui/dropdown-menu.js +2 -2
- package/dist/internal/ui/popover.js +1 -1
- package/docs/agents.md +1 -1
- package/docs/llms.txt +1 -1
- package/docs/manifest.json +1 -1
- package/package.json +1 -1
- package/template/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logo-ai-sdk.d.ts","sourceRoot":"","sources":["../../../src/assets/logos/logo-ai-sdk.tsx"],"names":[],"mappings":"AAAA,wBAAgB,SAAS,CAAC,EACxB,
|
|
1
|
+
{"version":3,"file":"logo-ai-sdk.d.ts","sourceRoot":"","sources":["../../../src/assets/logos/logo-ai-sdk.tsx"],"names":[],"mappings":"AAAA,wBAAgB,SAAS,CAAC,EACxB,MAAW,EACX,SAAS,GACV,EAAE;IACD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,2CAmBA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
export function LogoAiSdk({ height =
|
|
2
|
+
export function LogoAiSdk({ height = 18, className, }) {
|
|
3
3
|
const width = (146 / 40) * height;
|
|
4
|
-
return (_jsx("svg", { "aria-hidden": "true", className: className, fill: "none", height: height, role: "img", viewBox: "0 0 146 40", width: width, xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M37.
|
|
4
|
+
return (_jsx("svg", { "aria-hidden": "true", className: className, fill: "none", height: height, role: "img", viewBox: "0 0 146 40", width: width, xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M37.8037 40H30.1416L26.8174 30.5361H10.9863L7.66211 40H0L14.4229 0H23.3809L37.8037 40ZM61.5654 6.36621H55.1426V33.6338H61.9033V40H41.002V33.6338H47.8184V6.36621H41.3398V0H61.5654V6.36621ZM125.706 0C136.751 0.000239135 145.706 8.95466 145.706 20C145.706 31.0456 136.752 39.9998 125.706 40H88.5625C77.5169 39.9999 68.5625 31.0456 68.5625 20C68.5627 8.95458 77.5171 0.000120607 88.5625 0H125.706ZM88.5625 4.28613C79.884 4.28625 72.8489 11.3215 72.8486 20C72.8486 28.6787 79.8838 35.7147 88.5625 35.7148H125.706C134.385 35.7146 141.42 28.6786 141.42 20C141.42 11.3216 134.384 4.28637 125.706 4.28613H88.5625ZM89.0977 9.99707C93.3792 9.99726 96.3059 12.6258 96.7666 16.501L92.6475 16.7178C92.4306 14.6855 91.0215 13.4123 88.9893 13.4121C87.2007 13.4121 85.9266 14.333 86.0078 15.7422C86.062 17.3682 87.959 17.9099 90.0186 18.4248C94.3275 19.3733 97.0645 21.217 97.0645 24.2793C97.0642 27.9376 93.8395 29.9971 89.6934 29.9971C85.005 29.9971 81.6987 27.3951 81.4277 23.3301L85.5742 23.1406C85.9265 25.2002 87.3899 26.5557 89.8018 26.5557C91.6446 26.5557 92.8914 25.8233 92.8643 24.4141C92.837 23.0051 91.6445 22.1916 88.6367 21.46C84.4635 20.4573 81.7805 18.7777 81.7803 15.6885C81.7803 12.1925 84.7074 9.99707 89.0977 9.99707ZM105.984 10.4307C112.217 10.4307 115.714 13.8994 115.714 20.0781C115.714 26.2298 112.272 29.6717 106.147 29.6719H99.3447V10.4307H105.984ZM122.062 18.832L129.055 10.4307H133.852L126.778 18.9131L134.285 29.6719H129.597L124.068 21.6768L122.062 24.0078V29.6719H117.757V10.4307H122.062V18.832ZM103.464 26.2031H105.984C109.724 26.2031 111.513 24.2242 111.513 20.0508C111.513 15.8776 109.724 13.8994 105.984 13.8994H103.464V26.2031ZM13.127 24.2822H24.6768L18.9297 7.38086L13.127 24.2822Z", fill: "currentColor" }) }));
|
|
5
5
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logo-chat-sdk.d.ts","sourceRoot":"","sources":["../../../src/assets/logos/logo-chat-sdk.tsx"],"names":[],"mappings":"AAAA,wBAAgB,WAAW,CAAC,EAC1B,
|
|
1
|
+
{"version":3,"file":"logo-chat-sdk.d.ts","sourceRoot":"","sources":["../../../src/assets/logos/logo-chat-sdk.tsx"],"names":[],"mappings":"AAAA,wBAAgB,WAAW,CAAC,EAC1B,MAAW,EACX,SAAS,GACV,EAAE;IACD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,2CAmBA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
export function LogoChatSdk({ height =
|
|
3
|
-
const width = (
|
|
4
|
-
return (_jsx("svg", { "aria-hidden": "true", className: className, fill: "none", height: height, role: "img", viewBox: "0 0
|
|
2
|
+
export function LogoChatSdk({ height = 18, className, }) {
|
|
3
|
+
const width = (204 / 42) * height;
|
|
4
|
+
return (_jsx("svg", { "aria-hidden": "true", className: className, fill: "none", height: height, role: "img", viewBox: "0 0 204 42", width: width, xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M18.6572 0C28.8897 0.000107962 34.3734 5.37076 36.126 14.4727L28.4375 14.8682C27.4198 9.61074 24.1973 6.38879 18.6572 6.38867C11.8165 6.38867 7.57617 12.0988 7.57617 21.0312C7.57631 30.0765 11.9296 35.5605 18.6006 35.5605C24.5931 35.5605 27.7585 32.1112 28.6631 26.3447L36.3525 26.7412C34.7695 36.1822 28.72 41.9482 18.6006 41.9482C7.63299 41.9482 0.00017215 34.147 0 21.0312C0 8.14135 7.40683 0 18.6572 0ZM84.2178 10.1758C92.8109 10.1758 97.2772 14.6988 97.2773 22.7266V33.6943C97.2773 35.3338 97.843 35.7861 98.9736 35.7861H99.9346V41.0439C99.4257 41.157 98.2949 41.2705 97.2773 41.2705C93.9985 41.2704 91.5673 40.0829 91.002 36.4082C89.4755 39.6306 85.6314 41.7227 80.7129 41.7227C74.3812 41.7226 70.1974 38.7263 70.1973 33.4688C70.1973 28.2676 73.4198 25.4966 80.0342 24.1963L90.041 22.2178C90.0409 17.9778 88.062 15.7734 84.2178 15.7734C80.7128 15.7735 78.7341 17.413 78.0557 20.4658L70.7061 20.126C71.8933 13.7943 76.7555 10.1759 84.2178 10.1758ZM182.979 0.924805C194.06 0.92489 203.043 9.90789 203.043 20.9893C203.043 32.0705 194.06 41.0536 182.979 41.0537H145.716C134.634 41.0537 125.65 32.0706 125.65 20.9893C125.65 9.90784 134.634 0.924805 145.716 0.924805H182.979ZM47.5908 14.8682C49.2303 11.7023 52.4533 10.1758 56.1846 10.1758C62.8555 10.1758 66.4169 14.9249 66.417 21.6523V41.0439H59.1807V23.4053C59.1807 18.4868 57.5413 16.0557 54.0361 16.0557C50.0787 16.0557 47.5908 18.6567 47.5908 23.5752V41.0439H40.3545V0.904297H47.5908V14.8682ZM111.025 10.8545H118.997V16.4512H111.025V31.7158C111.025 34.5425 112.213 35.4472 114.757 35.4473H118.997V41.0439H112.552C106.559 41.0438 103.789 38.3869 103.789 32.3945V16.4512H99.04V10.8545H103.789V3.78809H111.025V10.8545ZM145.716 5.22363C137.009 5.22363 129.95 12.2824 129.95 20.9893C129.95 29.696 137.009 36.7539 145.716 36.7539H182.979C191.685 36.7538 198.743 29.696 198.743 20.9893C198.743 12.2825 191.685 5.22372 182.979 5.22363H145.716ZM82.2393 28.7197C79.0169 29.3416 77.7168 30.6983 77.7168 32.79C77.7168 35.1644 79.2995 36.4648 82.1826 36.4648C86.9879 36.4648 90.0408 33.4121 90.041 28.833V27.1367L82.2393 28.7197ZM146.249 10.9561C150.545 10.9561 153.481 13.5929 153.943 17.4805L149.812 17.6982C149.594 15.6592 148.18 14.3818 146.141 14.3818C144.346 14.3819 143.069 15.306 143.15 16.7197C143.205 18.3509 145.108 18.8946 147.174 19.4111C151.497 20.3627 154.243 22.2119 154.243 25.2842C154.243 28.9543 151.007 31.0205 146.848 31.0205C142.144 31.0205 138.828 28.4102 138.556 24.332L142.715 24.1416C143.068 26.2078 144.537 27.5673 146.956 27.5674C148.805 27.5674 150.055 26.8336 150.028 25.4199C150.001 24.0062 148.805 23.1901 145.787 22.4561C141.6 21.4501 138.909 19.7644 138.909 16.665C138.909 13.1581 141.845 10.9562 146.249 10.9561ZM163.191 11.3906C169.444 11.3906 172.952 14.8707 172.952 21.0693C172.952 27.241 169.499 30.6943 163.354 30.6943H156.53V11.3906H163.191ZM179.321 19.8193L186.336 11.3906H191.148L184.053 19.9004L191.583 30.6943H186.88L181.334 22.6738L179.321 25.0117V30.6943H175.002V11.3906H179.321V19.8193ZM160.663 27.2139H163.191C166.943 27.2139 168.737 25.2296 168.737 21.043C168.737 16.856 166.943 14.8711 163.191 14.8711H160.663V27.2139Z", fill: "currentColor" }) }));
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
export function LogoEve({ height =
|
|
2
|
+
export function LogoEve({ height = 18, className, }) {
|
|
3
3
|
const width = (169 / 53) * height;
|
|
4
4
|
return (_jsxs("svg", { "aria-hidden": "true", className: className, fill: "none", height: height, role: "img", viewBox: "0 0 169 53", width: width, xmlns: "http://www.w3.org/2000/svg", children: [_jsx("path", { d: "M169 8.47h-51.39L81.73 53H70.36L113 0H169zM169 44.51v8.47h-45.87V44.5zM45.87 52.98H0V44.5h45.87zM38.66 30.55H0v-8.47h38.66z", fill: "currentColor" }), _jsx("path", { d: "M169 30.55h-38.66v-8.47H169zM75.52 8.47H0V0h75.52z", fill: "currentColor" })] }));
|
|
5
5
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logo-flags-sdk.d.ts","sourceRoot":"","sources":["../../../src/assets/logos/logo-flags-sdk.tsx"],"names":[],"mappings":"AAAA,wBAAgB,YAAY,CAAC,EAC3B,
|
|
1
|
+
{"version":3,"file":"logo-flags-sdk.d.ts","sourceRoot":"","sources":["../../../src/assets/logos/logo-flags-sdk.tsx"],"names":[],"mappings":"AAAA,wBAAgB,YAAY,CAAC,EAC3B,MAAW,EACX,SAAS,GACV,EAAE;IACD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,2CA2BA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
export function LogoFlagsSdk({ height =
|
|
3
|
-
const width = (
|
|
4
|
-
return (_jsxs("svg", { "aria-hidden": "true", className: className, fill: "none", height: height, role: "img", viewBox: "0 0
|
|
2
|
+
export function LogoFlagsSdk({ height = 20, className, }) {
|
|
3
|
+
const width = (214 / 47) * height;
|
|
4
|
+
return (_jsxs("svg", { "aria-hidden": "true", className: className, fill: "none", height: height, role: "img", viewBox: "0 0 214 47", width: width, xmlns: "http://www.w3.org/2000/svg", children: [_jsx("path", { d: "M83.0732 8.83984C85.1574 8.83984 86.9547 9.30695 88.4639 10.2412C89.9728 11.1754 91.0683 12.4151 91.751 13.96V9.48633H98.4893V35.7354C98.4893 38.1788 97.9135 40.2457 96.7637 41.9346C95.6498 43.6233 94.0686 44.8806 92.0205 45.707C90.0083 46.5694 87.637 47.001 84.9062 47.001C82.3911 47.001 80.2351 46.6592 78.4385 45.9766C76.6419 45.2939 75.1862 44.324 74.0723 43.0664C72.9943 41.8447 72.2398 40.4246 71.8086 38.8076L78.9229 38.3232C79.2822 39.4012 79.8935 40.2456 80.7559 40.8564C81.6542 41.4672 83.0378 41.7725 84.9062 41.7725C87.026 41.7724 88.6607 41.2874 89.8105 40.3174C90.9604 39.3831 91.5361 37.9097 91.5361 35.8975V32.2324C90.8534 33.6338 89.7571 34.7655 88.248 35.6279C86.739 36.4543 85.05 36.8681 83.1816 36.8682C80.8101 36.8682 78.6898 36.2924 76.8213 35.1426C74.9887 33.9568 73.5508 32.3224 72.5088 30.2383C71.4667 28.1182 70.9463 25.6741 70.9463 22.9072C70.9463 20.1406 71.449 17.7149 72.4551 15.6309C73.4971 13.5109 74.9351 11.8586 76.7676 10.6729C78.6001 9.4512 80.7018 8.83988 83.0732 8.83984ZM55.085 8.83984C59.1811 8.83984 62.2714 9.88193 64.3555 11.9658C66.4755 14.014 67.5361 16.9608 67.5361 20.8057V31.2617C67.5361 32.0162 67.6616 32.5377 67.9131 32.8252C68.2006 33.1127 68.6143 33.2568 69.1533 33.2568H70.0693V38.2695C69.8537 38.3414 69.4942 38.3947 68.9912 38.4307C68.5241 38.4666 68.0391 38.4844 67.5361 38.4844C66.3503 38.4844 65.2897 38.3046 64.3555 37.9453C63.4215 37.55 62.7032 36.8853 62.2002 35.9512C61.8965 35.3654 61.6858 34.655 61.5654 33.8203C61.2261 34.5433 60.7547 35.218 60.1514 35.8438C59.2172 36.8137 58.0318 37.5685 56.5947 38.1074C55.1574 38.6464 53.5398 38.916 51.7432 38.916C48.725 38.916 46.2993 38.2335 44.4668 36.8682C42.6343 35.4668 41.7179 33.5261 41.7178 31.0469C41.7178 28.5675 42.491 26.627 44.0361 25.2256C45.5813 23.8242 47.9346 22.8179 51.0967 22.207L60.6367 20.3203C60.6367 18.2723 60.1695 16.7454 59.2354 15.7393C58.3011 14.6972 56.9176 14.1758 55.085 14.1758C53.4322 14.1758 52.1205 14.5709 51.1504 15.3613C50.2162 16.1159 49.5693 17.2122 49.21 18.6494L42.2031 18.3262C42.778 15.2719 44.1794 12.9363 46.4072 11.3193C48.635 9.66645 51.5277 8.83988 55.085 8.83984ZM115.108 8.83984C117.696 8.83984 119.87 9.27139 121.631 10.1338C123.391 10.9602 124.757 12.1098 125.728 13.583C126.734 15.0203 127.362 16.6736 127.613 18.542L120.66 18.8652C120.48 17.8951 120.158 17.0507 119.69 16.332C119.223 15.6134 118.594 15.0742 117.804 14.7148C117.013 14.3196 116.079 14.1221 115.001 14.1221C113.384 14.1221 112.162 14.4451 111.336 15.0918C110.509 15.7386 110.096 16.6017 110.096 17.6797C110.096 18.4339 110.276 19.0625 110.635 19.5654C111.03 20.0685 111.659 20.4823 112.521 20.8057C113.384 21.0931 114.534 21.3627 115.972 21.6143C118.99 22.0814 121.361 22.6918 123.086 23.4463C124.846 24.1649 126.086 25.0994 126.805 26.249C127.559 27.363 127.937 28.7109 127.937 30.292C127.937 32.1246 127.416 33.6879 126.374 34.9814C125.368 36.275 123.93 37.2626 122.062 37.9453C120.229 38.5921 118.073 38.916 115.594 38.916C112.755 38.916 110.365 38.5022 108.425 37.6758C106.521 36.8494 105.048 35.6996 104.006 34.2266C102.964 32.7533 102.37 31.0824 102.227 29.2139L109.288 28.8906C109.54 30.3995 110.168 31.5671 111.174 32.3936C112.18 33.22 113.671 33.6337 115.647 33.6338C117.264 33.6338 118.523 33.382 119.421 32.8789C120.355 32.3399 120.822 31.5133 120.822 30.3994C120.822 29.7529 120.66 29.2143 120.337 28.7832C120.014 28.352 119.403 27.9738 118.505 27.6504C117.607 27.327 116.276 27.0041 114.516 26.6807C111.569 26.1776 109.251 25.5663 107.562 24.8477C105.874 24.0931 104.67 23.1587 103.951 22.0449C103.269 20.9311 102.928 19.5472 102.928 17.8945C102.928 15.1998 103.952 13.0259 106 11.373C108.084 9.68435 111.12 8.8399 115.108 8.83984ZM25.6025 6.09082H7.00684V16.5479H24.6318V22.584H7.00684V38.2695H0V0H25.6025V6.09082ZM36.0088 30.7773C36.0088 31.4957 36.1888 32.0343 36.5479 32.3936C36.9431 32.7529 37.4823 32.9326 38.165 32.9326H40.2666V38.2695H36.0088C33.9247 38.2695 32.2537 37.7303 30.9961 36.6523C29.7384 35.5743 29.1094 33.8491 29.1094 31.4775V0H36.0088V30.7773ZM53.1982 26.5186C51.6533 26.842 50.5391 27.3279 49.8564 27.9746C49.21 28.5854 48.8868 29.3937 48.8867 30.3994C48.8867 31.5133 49.2462 32.3764 49.9648 32.9873C50.7194 33.598 51.7794 33.9033 53.1445 33.9033C54.6897 33.9033 56.0199 33.5982 57.1338 32.9873C58.2475 32.3765 59.1099 31.5319 59.7207 30.4541C60.3315 29.3762 60.6367 28.1001 60.6367 26.627V25.0098L53.1982 26.5186ZM84.7979 14.2295C82.678 14.2296 81.0256 15.0207 79.8398 16.6016C78.69 18.1466 78.1143 20.2305 78.1143 22.8535C78.1143 25.4766 78.7078 27.5791 79.8936 29.1602C81.1152 30.7051 82.7499 31.4774 84.7979 31.4775C86.846 31.4775 88.4814 30.7231 89.7031 29.2139C90.9248 27.6687 91.5539 25.5485 91.5898 22.8535C91.6235 21.1695 91.3888 19.7222 90.8857 18.5117L90.6768 18.0332C90.142 16.8564 89.386 15.9476 88.4092 15.3076C87.4031 14.5891 86.1991 14.2295 84.7979 14.2295Z", fill: "currentColor" }), _jsx("path", { d: "M209.473 23.5005C209.473 14.5719 202.235 7.334 193.306 7.33398H155.181C146.253 7.33402 139.015 14.5719 139.015 23.5005C139.015 32.4292 146.253 39.6675 155.181 39.6675H193.306C202.235 39.6675 209.473 32.4292 209.473 23.5005ZM213.334 23.5005C213.334 34.5614 204.367 43.5282 193.306 43.5282H155.181C144.121 43.5282 135.154 34.5614 135.154 23.5005C135.154 12.4397 144.121 3.47286 155.181 3.47282H193.306C204.367 3.47284 213.334 12.4396 213.334 23.5005Z", fill: "currentColor" }), _jsx("path", { d: "M151.85 26.8063C152.236 29.0359 153.819 30.5029 156.43 30.5029C158.423 30.5029 159.775 29.7115 159.746 28.1865C159.717 26.6567 158.423 25.7735 155.166 24.9869C150.649 23.9011 147.744 22.0817 147.744 18.7374C147.744 14.949 150.914 12.5747 155.668 12.5747C160.301 12.5747 163.471 15.422 163.968 19.6205L159.509 19.8521C159.277 17.6515 157.748 16.2713 155.552 16.2713C153.612 16.2713 152.232 17.2703 152.319 18.7953C152.381 20.5567 154.432 21.1407 156.662 21.7005C161.328 22.7284 164.292 24.7215 164.292 28.0369C164.292 31.9941 160.802 34.2285 156.314 34.2285C151.238 34.2285 147.657 31.4102 147.362 27.009L151.85 26.8063ZM172.684 13.0428C179.435 13.0428 183.219 16.7973 183.219 23.4909C183.219 30.1506 179.493 33.8762 172.862 33.8762H165.498V13.0428H172.689H172.684ZM169.957 30.1217H172.684C176.738 30.1217 178.668 27.979 178.668 23.4619C178.668 18.9401 176.738 16.8022 172.684 16.8022H169.957V30.1217ZM184.102 13.0428H188.561V22.1396L196.133 13.0428H201.326L193.667 22.2265L201.799 33.8762H196.727L190.742 25.2186L188.571 27.7425V33.8762H184.107V13.0428H184.102Z", fill: "currentColor" })] }));
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
export function LogoTurborepo({ height =
|
|
2
|
+
export function LogoTurborepo({ height = 22, className, }) {
|
|
3
3
|
const width = (465.319 / 62.753) * height;
|
|
4
4
|
return (_jsxs("svg", { "aria-hidden": "true", className: className, fill: "none", height: height, role: "img", viewBox: "7.125 7.125 465.319 62.753", width: width, xmlns: "http://www.w3.org/2000/svg", children: [_jsx("path", { d: "M130.998 30.6566V22.3773H91.0977V30.6566H106.16V58.1876H115.935V30.6566H130.998Z", fill: "currentColor" }), _jsx("path", { d: "M153.542 58.7362C165.811 58.7362 172.544 52.5018 172.544 42.2276V22.3773H162.768V41.2799C162.768 47.0156 159.776 50.2574 153.542 50.2574C147.307 50.2574 144.315 47.0156 144.315 41.2799V22.3773H134.539V42.2276C134.539 52.5018 141.272 58.7362 153.542 58.7362Z", fill: "currentColor" }), _jsx("path", { d: "M187.508 46.3173H197.234L204.914 58.1876H216.136L207.458 45.2699C212.346 43.5243 215.338 39.6341 215.338 34.3473C215.338 26.6666 209.603 22.3773 200.874 22.3773H177.732V58.1876H187.508V46.3173ZM187.508 38.5867V30.5568H200.376C203.817 30.5568 205.712 32.0531 205.712 34.5967C205.712 36.9907 203.817 38.5867 200.376 38.5867H187.508Z", fill: "currentColor" }), _jsx("path", { d: "M219.887 58.1876H245.472C253.452 58.1876 258.041 54.3971 258.041 48.0629C258.041 43.8236 255.348 40.9308 252.156 39.6341C254.35 38.5867 257.043 36.0929 257.043 32.1528C257.043 25.8187 252.555 22.3773 244.625 22.3773H219.887V58.1876ZM229.263 36.3922V30.3074H243.627C246.32 30.3074 247.817 31.3548 247.817 33.3498C247.817 35.3448 246.32 36.3922 243.627 36.3922H229.263ZM229.263 43.7238H244.525C247.168 43.7238 248.615 45.0206 248.615 46.9657C248.615 48.9108 247.168 50.2076 244.525 50.2076H229.263V43.7238Z", fill: "currentColor" }), _jsx("path", { d: "M281.942 21.7788C269.423 21.7788 260.396 29.6092 260.396 40.2824C260.396 50.9557 269.423 58.7861 281.942 58.7861C294.461 58.7861 303.438 50.9557 303.438 40.2824C303.438 29.6092 294.461 21.7788 281.942 21.7788ZM281.942 30.2576C288.525 30.2576 293.463 34.1478 293.463 40.2824C293.463 46.4171 288.525 50.3073 281.942 50.3073C275.359 50.3073 270.421 46.4171 270.421 40.2824C270.421 34.1478 275.359 30.2576 281.942 30.2576Z", fill: "currentColor" }), _jsx("path", { d: "M317.526 46.3173H327.251L334.932 58.1876H346.154L337.476 45.2699C342.364 43.5243 345.356 39.6341 345.356 34.3473C345.356 26.6666 339.62 22.3773 330.892 22.3773H307.75V58.1876H317.526V46.3173ZM317.526 38.5867V30.5568H330.394C333.835 30.5568 335.73 32.0531 335.73 34.5967C335.73 36.9907 333.835 38.5867 330.394 38.5867H317.526Z", fill: "currentColor" }), _jsx("path", { d: "M349.904 22.3773V58.1876H384.717V49.9083H359.48V44.0729H381.874V35.9932H359.48V30.6566H384.717V22.3773H349.904Z", fill: "currentColor" }), _jsx("path", { d: "M399.204 46.7662H412.221C420.95 46.7662 426.685 42.5767 426.685 34.5967C426.685 26.5668 420.95 22.3773 412.221 22.3773H389.428V58.1876H399.204V46.7662ZM399.204 38.6366V30.5568H411.673C415.164 30.5568 417.059 32.0531 417.059 34.5967C417.059 37.0904 415.164 38.6366 411.673 38.6366H399.204Z", fill: "currentColor" }), _jsx("path", { d: "M450.948 21.7788C438.43 21.7788 429.402 29.6092 429.402 40.2824C429.402 50.9557 438.43 58.7861 450.948 58.7861C463.467 58.7861 472.444 50.9557 472.444 40.2824C472.444 29.6092 463.467 21.7788 450.948 21.7788ZM450.948 30.2576C457.532 30.2576 462.469 34.1478 462.469 40.2824C462.469 46.4171 457.532 50.3073 450.948 50.3073C444.365 50.3073 439.427 46.4171 439.427 40.2824C439.427 34.1478 444.365 30.2576 450.948 30.2576Z", fill: "currentColor" }), _jsx("path", { d: "M38.5017 18.0956C27.2499 18.0956 18.0957 27.2498 18.0957 38.5016C18.0957 49.7534 27.2499 58.9076 38.5017 58.9076C49.7535 58.9076 58.9077 49.7534 58.9077 38.5016C58.9077 27.2498 49.7535 18.0956 38.5017 18.0956ZM38.5017 49.0618C32.6687 49.0618 27.9415 44.3346 27.9415 38.5016C27.9415 32.6686 32.6687 27.9414 38.5017 27.9414C44.3347 27.9414 49.0619 32.6686 49.0619 38.5016C49.0619 44.3346 44.3347 49.0618 38.5017 49.0618Z", fill: "currentColor" }), _jsx("path", { clipRule: "evenodd", d: "M40.2115 14.744V7.125C56.7719 8.0104 69.9275 21.7208 69.9275 38.5016C69.9275 55.2824 56.7719 68.989 40.2115 69.8782V62.2592C52.5539 61.3776 62.3275 51.0644 62.3275 38.5016C62.3275 25.9388 52.5539 15.6256 40.2115 14.744ZM20.5048 54.0815C17.233 50.3043 15.124 45.4935 14.7478 40.2115H7.125C7.5202 47.6025 10.4766 54.3095 15.1088 59.4737L20.501 54.0815H20.5048ZM36.7916 69.8782V62.2592C31.5058 61.883 26.695 59.7778 22.9178 56.5022L17.5256 61.8944C22.6936 66.5304 29.4006 69.483 36.7878 69.8782H36.7916Z", fill: "currentColor", fillRule: "evenodd" })] }));
|
|
5
5
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logo-workflow-sdk.d.ts","sourceRoot":"","sources":["../../../src/assets/logos/logo-workflow-sdk.tsx"],"names":[],"mappings":"AAAA,wBAAgB,eAAe,CAAC,EAC9B,
|
|
1
|
+
{"version":3,"file":"logo-workflow-sdk.d.ts","sourceRoot":"","sources":["../../../src/assets/logos/logo-workflow-sdk.tsx"],"names":[],"mappings":"AAAA,wBAAgB,eAAe,CAAC,EAC9B,MAAW,EACX,SAAS,GACV,EAAE;IACD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,2CA+DA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
export function LogoWorkflowSdk({ height =
|
|
3
|
-
const width = (
|
|
4
|
-
return (_jsxs("svg", { "aria-hidden": "true", className: className, fill: "none", height: height, role: "img", viewBox: "0 0
|
|
2
|
+
export function LogoWorkflowSdk({ height = 18, className, }) {
|
|
3
|
+
const width = (317 / 42) * height;
|
|
4
|
+
return (_jsxs("svg", { "aria-hidden": "true", className: className, fill: "none", height: height, role: "img", viewBox: "0 0 317 42", width: width, xmlns: "http://www.w3.org/2000/svg", children: [_jsx("path", { clipRule: "evenodd", d: "M132.379 9.52223C141.371 9.52247 147.29 15.8006 147.29 25.4456C147.29 35.0901 141.371 41.3688 132.379 41.3691C123.331 41.3691 117.414 35.0903 117.413 25.4456C117.413 15.8004 123.331 9.52223 132.379 9.52223ZM132.379 15.4579C127.656 15.4579 124.98 19.1677 124.98 25.4456C124.98 31.7801 127.656 35.4333 132.379 35.4333C137.045 35.433 139.721 31.7798 139.721 25.4456C139.721 19.168 137.046 15.4583 132.379 15.4579Z", fill: "currentColor", fillRule: "evenodd" }), _jsx("path", { clipRule: "evenodd", d: "M255.604 9.52223C264.595 9.52247 270.515 15.8006 270.515 25.4456C270.514 35.0901 264.595 41.3689 255.604 41.3691C246.556 41.3691 240.638 35.0903 240.638 25.4456C240.638 15.8004 246.555 9.52223 255.604 9.52223ZM255.604 15.4579C250.88 15.4579 248.204 19.1677 248.204 25.4456C248.204 31.7801 250.881 35.4333 255.604 35.4333C260.27 35.4331 262.945 31.7798 262.945 25.4456C262.945 19.1679 260.27 15.4583 255.604 15.4579Z", fill: "currentColor", fillRule: "evenodd" }), _jsx("path", { d: "M10.4565 28.7551C11.2812 28.7551 11.951 29.4275 11.9515 30.2545V39.2417C11.9515 40.069 11.2815 40.7409 10.4565 40.7409H1.49497C0.669969 40.7409 0 40.069 0 39.2417V30.2545C0.000422957 29.4275 0.67023 28.7551 1.49497 28.7551H10.4565Z", fill: "currentColor" }), _jsx("path", { d: "M20.4174 14.7722C21.2419 14.7722 21.9116 15.442 21.9124 16.2688V26.3205C21.9464 27.6651 23.0408 28.7462 24.3883 28.7533H30.3764C31.2012 28.7533 31.871 29.4256 31.8715 30.2526V39.2398C31.8715 40.0672 31.2014 40.7391 30.3764 40.7391H21.415C20.5898 40.7391 19.92 40.0672 19.92 39.2398V29.1881C19.8856 27.861 18.8175 26.7918 17.4942 26.758L17.4302 26.7552H11.4559C10.6311 26.7552 9.96125 26.0858 9.96094 25.2588V16.2688C9.96173 15.442 10.6314 14.7722 11.4559 14.7722H20.4174Z", fill: "currentColor" }), _jsx("path", { d: "M30.3734 0.788925C31.1982 0.788928 31.868 1.46114 31.8684 2.28819V12.3399C31.9028 13.6888 33.0048 14.7728 34.3582 14.7728H40.3325C41.157 14.7728 41.8266 15.4425 41.8274 16.2693V26.321C41.8615 27.6657 42.956 28.7467 44.3034 28.7539H50.2915C51.1163 28.7539 51.7861 29.4262 51.7865 30.2532V39.2404C51.7865 40.0677 51.1166 40.7396 50.2915 40.7396H41.3301C40.5049 40.7396 39.8351 40.0677 39.8351 39.2404V29.1886C39.8007 27.8615 38.7327 26.7924 37.4093 26.7585L37.3453 26.7558H31.371C30.5461 26.7558 29.8764 26.0864 29.8761 25.2593V15.2075C29.8426 13.8797 28.7742 12.8084 27.4502 12.7747H21.412C20.5868 12.7747 19.917 12.1028 19.917 11.2754V2.28819C19.9174 1.46114 20.5871 0.788928 21.412 0.788925H30.3734Z", fill: "currentColor" }), _jsx("path", { d: "M78.3632 30.4101L85.8189 0.162827H92.7045L100.16 30.4101L107.501 0.162827H115.354L104.542 40.6848H96.3474L89.2891 12.9484L82.2339 40.6848H73.9811L63.1689 0.162827H70.9661L78.3632 30.4101Z", fill: "currentColor" }), _jsx("path", { d: "M158.197 16.1421C159.392 12.0334 161.727 10.2063 165.482 10.2063H168.269V16.4848H165.424C160.758 16.485 158.483 18.4264 158.483 23.1061V40.6849H151.197V10.2063H158.027L158.197 16.1421Z", fill: "currentColor" }), _jsx("path", { d: "M179.485 23.9616L191.95 10.2062H200.939L189.046 22.8775L201.339 40.6848H193.145L184.266 27.2165L179.485 32.2939V40.6848H172.201V0.162827H179.485V23.9616Z", fill: "currentColor" }), _jsx("path", { d: "M224.158 5.81434H219.603C217.214 5.81477 216.191 7.06966 216.191 9.40925V10.2062H223.758V15.8578H216.191V40.6848H208.905V15.8578H204.582V10.2062H208.905V9.00796C208.906 3.52964 211.809 0.162827 218.239 0.162827H224.158V5.81434Z", fill: "currentColor" }), _jsx("path", { d: "M235.068 32.751C235.068 34.3488 235.865 35.0331 237.344 35.0333H239.564V40.6848H235.068C230.63 40.6848 227.785 38.5717 227.785 33.4923V0.162827H235.068V32.751Z", fill: "currentColor" }), _jsx("path", { d: "M285.003 32.4083L291.091 10.2063H297.466L303.609 32.4083L309.528 10.2063H316.984L307.822 40.6849H300.311L294.278 20.2525L288.302 40.6849H280.79L271.628 10.2063H279.084L285.003 32.4083Z", fill: "currentColor" })] }));
|
|
5
5
|
}
|
package/dist/cli/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import{program as T}from"commander";import{access as ce,copyFile as le}from"fs/promises";import{join as pe}from"path";import{cancel as de,intro as ge,isCancel as ue,log as fe,outro as me,spinner as he,text as we}from"@clack/prompts";import{spawn as te}from"child_process";import{readFileSync as se}from"fs";import{cp as ne,readFile as ae,rename as re,writeFile as ie}from"fs/promises";import{join as $}from"path";import{fileURLToPath as oe}from"url";var g="@vercel/geistdocs",m=(e,t=[],s={})=>new Promise((n,a)=>{let r=te(e,t,{stdio:"inherit",...s});r.on("error",a),r.on("close",i=>{if(i===0){n();return}a(new Error(`Command failed with exit code ${i}: ${[e,...t].join(" ")}`))})}),A=["dependencies","devDependencies","optionalDependencies","peerDependencies"],_=()=>JSON.parse(se(new URL("../../package.json",import.meta.url),"utf8")).version,P=async e=>{let t=$(e,"package.json"),s=await ae(t,"utf8");return JSON.parse(s)},x=async(e,t)=>{let s=$(e,"package.json");await ie(s,`${JSON.stringify(t,null,2)}
|
|
3
|
-
`,"utf8")},R=(e,t)=>{for(let s of A){let n=e[s];if(n&&t in n)return n[t]}},V=(e,t)=>!!R(e,t),b=(e,t,s)=>{let n=!1;for(let a of A){let r=e[a];r&&t in r&&(r[t]=s,n=!0)}return n},j=()=>oe(new URL("../../template",import.meta.url)),F=async e=>{await ne(j(),e,{recursive:!0});let t=$(e,".gitignore"),s=$(e,"_gitignore");try{await re(s,t)}catch{}};var ye=async e=>{await F(e)},Pe=async e=>{try{return await ce(e),!0}catch{return!1}},ve=async()=>{await Pe(".env.example")&&await le(".env.example",".env.local")},Te=async e=>{let t=await P(e),s=_();return b(t,g,s)?(await x(e,t),!0):!1},ke=async e=>{await m("pnpm",["install"],{cwd:e,env:process.env,stdio:"inherit"})},$e=async e=>{await m("git",["init"],{cwd:e,env:process.env,stdio:"inherit"}),await m("git",["add","."],{cwd:e,env:process.env,stdio:"inherit"}),await m("git",["commit","-m","\u2728 Initial commit"],{cwd:e,env:process.env,stdio:"inherit"})},xe=async()=>{let e=await we({message:"What is your project named?",placeholder:"my-app",validate(t){if(t.length===0)return"Please enter a project name."}});return ue(e)&&(de("Operation cancelled."),process.exit(0)),e.toString()},G=async e=>{try{ge("Let's start a Geistdocs project!");let t=process.cwd(),s=e.name||await xe(),n=he(),a=pe(t,s);n.start("Copying bundled template..."),await ye(s),n.message("Setting up environment variables..."),process.chdir(a),await ve(),n.message("Rewriting package dependency versions..."),await Te(a),n.message("Installing dependencies..."),await ke(a),e.disableGit||(n.message("Initializing Git repository..."),await $e(a)),n.stop("Project initialized successfully!"),me("Run `pnpm dev` to start the development server.")}catch(t){let s=t instanceof Error?t.message:`Failed to initialize project: ${t}`;fe.error(s),process.exit(1)}};import{readFileSync as be,writeFileSync as Fe}from"fs";import{mkdir as De,readFile as N,writeFile as Se}from"fs/promises";import{dirname as Ce,extname as Re,relative as M,resolve as S}from"path";import{intro as je,isCancel as Ee,log as h,multiselect as Ne,outro as D,spinner as Ue}from"@clack/prompts";import{glob as Oe}from"glob";import{Node as v,Project as Ie,SyntaxKind as Je}from"ts-morph";var Le="geistdocs.tsx",Ae="content/docs/**/*.mdx",U=".translation-cache.json",E=8,B=()=>({version:1,entries:{}}),_e=async e=>{let t=await N(e),{createHash:s}=await import("crypto");return s("sha256").update(t).digest("hex")},Ve=e=>{let t=S(process.cwd(),e);return be(t,"utf8")},z=e=>v.isObjectLiteralExpression(e)?e.getProperties().flatMap(t=>{if(v.isPropertyAssignment(t)){let s=t.getNameNode();if(v.isIdentifier(s)||v.isStringLiteral(s))return[s.getText().replaceAll(/['"]/g,"")]}return[]}).filter(Boolean):[],Ge=e=>{try{let t=new Ie({compilerOptions:{allowJs:!0,jsx:4,module:99,target:10},skipAddingFilesFromTsConfig:!0,useInMemoryFileSystem:!0}),s=Ve(e),r=t.createSourceFile(e,s,{overwrite:!0}).getVariableDeclarations().find(l=>l.getName()==="translations")?.getInitializer();if(!r)return[];if(v.isObjectLiteralExpression(r))return z(r);let i=r.getFirstDescendantByKind(Je.ObjectLiteralExpression);return i?z(i):[]}catch(t){let s=t instanceof Error?t.message:`${t}`;return h.warn(`Failed to read locales from ${e}: ${s}`),[]}},Be=async()=>{let e=await Ne({message:"Which locales should be translated?",options:[{value:"cn",label:"Chinese (cn)"},{value:"jp",label:"Japanese (jp)"},{value:"es",label:"Spanish (es)"},{value:"fr",label:"French (fr)"},{value:"de",label:"German (de)"}],required:!0});return Ee(e)&&(D("Translation cancelled"),process.exit(0)),e},ze=async e=>(await Oe(e,{cwd:process.cwd(),absolute:!0,nodir:!0})).sort(),He=async()=>{let e=S(process.cwd(),U);try{let t=await N(e,"utf8"),s=JSON.parse(t);return s.version!==1||!s.entries?B():{version:1,entries:s.entries}}catch{return B()}},H=e=>{let t=S(process.cwd(),U),s=JSON.stringify(e,null,2);Fe(t,s,"utf8")},Me=async e=>{let t=await Promise.all(e.map(async s=>[s,await _e(s)]));return Object.fromEntries(t)},Ke=(e,t)=>{let s=Re(e);return`${e.slice(0,-s.length)}.${t}${s}`},K=(e,t)=>`${M(process.cwd(),e)}::${t}`,qe=(e,t,s,n,a=!1)=>{let r=[],i=0;for(let l of t){let c=s[l];for(let o of e){let d=Ke(l,o),u=K(l,o),f=n.entries[u];if(!a&&f?.hash===c){i+=1;continue}r.push({locale:o,sourceFile:l,sourceHash:c,targetFile:d})}}return{tasks:r,skippedCount:i}},Xe=async e=>{await De(Ce(e),{recursive:!0})},We=async(e,t,s)=>{let n=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:t,locale:s})});if(!n.ok){let r=await n.text();throw new Error(`API request failed (${n.status}): ${r}`)}let a=await n.json();if(!a.translation)throw new Error("API response did not include a translation");return a.translation},Ye=async(e,t,s)=>{let n=await N(e.sourceFile,"utf8"),a=await We(t,n,e.locale);await Xe(e.targetFile),await Se(e.targetFile,a,"utf8"),s.entries[K(e.sourceFile,e.locale)]={hash:e.sourceHash,updatedAt:new Date().toISOString()}},q=async(e,t)=>{je("Translate MDX content");let s=e??Ae,n=t.url||process.env.GEISTDOCS_TRANSLATE_URL||"https://geistdocs.com/translate",a=Ge(t.config??Le),r=await ze(s);r.length===0&&(h.error(`No MDX files found matching pattern: ${s}`),D("Translation cancelled"),process.exit(1)),h.info(`Found ${r.length} MDX file(s) matching pattern`),a.length===0&&(a=await Be());let i=S(process.cwd(),U),l=await He();await H(l),h.info(`Using cache: ${i}`);let c=await Me(r),{tasks:o,skippedCount:d}=qe(a,r,c,l,t.force);if(o.length===0){h.success("All translations are up to date!"),D(`Skipped ${d} file(s) (unchanged)`);return}let u=[];for(let y=0;y<o.length;y+=E)u.push(o.slice(y,y+E));h.info(`Processing ${o.length} translation(s) in ${u.length} batch(es) of up to ${E}`),d>0&&h.info(`Skipped ${d} translation(s) (unchanged)`);let f=Ue();f.start("Translating content...");let k=0;for(let y of u)await Promise.all(y.map(async L=>{await Ye(L,n,l),k+=1,f.message(`Translated ${k}/${o.length}: ${M(process.cwd(),L.targetFile)}`)})),await H(l);f.stop("Translation complete!"),D(`Created/updated ${o.length} file(s)`)};import{access as Ze,copyFile as Qe,mkdir as Z,rm as J}from"fs/promises";import{dirname as et,join as w}from"path";import{intro as tt,log as p,outro as C,spinner as Q}from"@clack/prompts";import{glob as st}from"glob";var nt=["**/*"],at=["content/docs/**"],O=".geistdocs-tmp",rt=async(e,t)=>{let s=w(e,t);await J(s,{recursive:!0,force:!0}),await Z(s,{recursive:!0})},I=async e=>await J(e,{recursive:!0,force:!0}),X=async(e,t,s)=>(await st(e,{cwd:s,nodir:!0,dot:!0,ignore:[".git/**",...t]})).sort(),it=async e=>{try{return await Ze(e),!0}catch{return!1}},ot=async(e,t,s)=>{let n=w(t,e),a=w(s,e);return await it(n)?(await Qe(n,a),{success:!0}):{success:!1,error:`Source file not found: ${n}`}},ct=async(e,t)=>{let s=w(t,e);return await J(s,{force:!0}),{success:!0}},W=20,Y=async(e,t,s)=>{let n=[];for(let a=0;a<e.length;a+=s){let r=e.slice(a,a+s),i=await Promise.all(r.map(t));n.push(...i)}return n},lt=async(e,t,s,n,a)=>{let r={success:[],deleted:[],failed:[]},i=[...new Set(e.map(c=>et(w(n,c))))];a.message(`Creating ${i.length} directories...`),await Promise.all(i.map(c=>Z(c,{recursive:!0}))),a.message(`Updating ${e.length} files...`);let l=await Y(e,async c=>{let o=await ot(c,s,n);return{file:c,...o}},W);for(let{file:c,success:o,error:d}of l)o?r.success.push(c):r.failed.push({file:c,error:d??"Unknown error"});if(t.length>0){a.message(`Deleting ${t.length} files...`);let c=await Y(t,async o=>{try{return await ct(o,n),{file:o,success:!0}}catch(d){let u=d instanceof Error?d.message:`${d}`;return{file:o,success:!1,error:u}}},W);for(let o of c)o.success?r.deleted.push(o.file):r.failed.push({file:o.file,error:o.error})}return r},pt=e=>{if(e.success.length>0){p.success(`Successfully updated ${e.success.length} files:`);for(let t of e.success)p.info(` \u2713 ${t}`)}if(e.deleted.length>0){p.success(`Deleted ${e.deleted.length} files:`);for(let t of e.deleted)p.info(` \u{1F5D1} ${t}`)}if(e.failed.length>0){p.warn(`Failed to update ${e.failed.length} files:`);for(let{file:t,error:s}of e.failed)p.error(` \u2717 ${t}: ${s}`)}},dt=e=>e.includes("canary")?"canary":"latest",gt=async e=>{let t=await fetch(`https://registry.npmjs.org/${encodeURIComponent(g)}`);if(!t.ok)throw new Error(`Failed to resolve ${g}@${e}`);let n=(await t.json())["dist-tags"]?.[e];if(!n)throw new Error(`Could not find dist-tag ${e} for ${g}`);return n},ut=async e=>{let t=await P(e),s=R(t,g);if(!s)return{currentVersion:s,nextVersion:void 0,updated:!1};let n=dt(s),a=await gt(n);return s===a?{currentVersion:s,nextVersion:a,updateTag:n,updated:!1}:(b(t,g,a),await x(e,t),{currentVersion:s,nextVersion:a,updateTag:n,updated:!0})},ft=async(e,t,s)=>{let n=await P(e);if(!V(n,g))return!1;t&&t.length>0&&p.warn("Ignoring file patterns for a package-based site. This update will bump the package version instead."),s?.sync&&p.warn("Ignoring --sync for a package-based site. Runtime updates now come from the package version.");let{currentVersion:a,nextVersion:r,updateTag:i,updated:l}=await ut(e);if(!l)return p.success(a?`@vercel/geistdocs is already at ${r} (${i}).`:"No package version update was needed."),C("Package-based site is already up to date."),!0;p.info(`Bumping ${g} from ${a} to ${r} (${i})`);let c=Q();return c.start("Installing updated package version..."),await m("pnpm",["install"],{cwd:e}),c.stop("Package update complete!"),C("Please review and test the upgraded package version."),!0},mt=async(e,t,s,n,a)=>{let r=w(e,O),i=Q(),l=a?.sync?r:t;i.start("Preparing template snapshot..."),a?.sync&&(await rt(e,O),await F(r)),i.message("Scanning for files...");let c=await X(s,n,l),o=[];if(a?.sync){i.message("Comparing with local files...");let u=await X(s,n,e),f=new Set(c);o=u.filter(k=>!f.has(k))}if(i.stop(`Found ${c.length} files to update`),c.length===0&&o.length===0){p.warn("No files matched the patterns. Nothing to update."),a?.sync&&await I(r),C("Update cancelled.");return}p.info(`Patterns: ${s.length}`),p.info(`Files to update: ${c.length}`),a?.sync&&p.info(`Files to delete: ${o.length}`),i.start("Updating files...");let d=await lt(c,o,l,e,i);a?.sync&&(i.message("Cleaning up..."),await I(r)),i.stop("Update complete!"),pt(d),C("Please review and test the changes carefully.")},ee=async(e,t)=>{let s=process.cwd(),n=j(),a=e&&e.length>0?e:nt,r=e&&e.length>0?[]:at;try{if(tt("Let's update your Geistdocs project!"),await ft(s,e,t))return;p.info("Template source: bundled package snapshot"),e&&e.length>0&&p.info(`Updating specific files: ${e.join(", ")}`),t?.sync&&p.info("Sync mode enabled: will delete files removed from template"),await mt(s,n,a,r,t)}catch(i){let l=i instanceof Error?i.message:`${i}`;try{await I(w(s,O))}catch{}p.error(`Failed to update project: ${l}`),process.exit(1)}};T.name("geistdocs").description("CLI for Geistdocs projects").version("1.19.0","-v, --version","Output the current version");T.command("init").description("Initialize a new Geistdocs project").option("--name <name>","Name of the project").option("--disable-git","Disable git initialization").action(G);T.command("update [files...]").description("Update a Geistdocs project (optionally specify files/patterns to update)").option("--sync","Delete local files that no longer exist in the template").action(ee);T.command("translate [pattern]").description("Translate MDX file(s) to one or more locales (default: content/docs/**/*.mdx)").option("--config <path>","Path to config file to load locales from (defaults to geistdocs.tsx)").option("--url <url>","Custom translation API URL (defaults to GEISTDOCS_TRANSLATE_URL or https://geistdocs.com/translate)").option("--force","Force re-translation of all files, ignoring cache").action(q);T.parse(process.argv);
|
|
3
|
+
`,"utf8")},R=(e,t)=>{for(let s of A){let n=e[s];if(n&&t in n)return n[t]}},V=(e,t)=>!!R(e,t),b=(e,t,s)=>{let n=!1;for(let a of A){let r=e[a];r&&t in r&&(r[t]=s,n=!0)}return n},j=()=>oe(new URL("../../template",import.meta.url)),F=async e=>{await ne(j(),e,{recursive:!0});let t=$(e,".gitignore"),s=$(e,"_gitignore");try{await re(s,t)}catch{}};var ye=async e=>{await F(e)},Pe=async e=>{try{return await ce(e),!0}catch{return!1}},ve=async()=>{await Pe(".env.example")&&await le(".env.example",".env.local")},Te=async e=>{let t=await P(e),s=_();return b(t,g,s)?(await x(e,t),!0):!1},ke=async e=>{await m("pnpm",["install"],{cwd:e,env:process.env,stdio:"inherit"})},$e=async e=>{await m("git",["init"],{cwd:e,env:process.env,stdio:"inherit"}),await m("git",["add","."],{cwd:e,env:process.env,stdio:"inherit"}),await m("git",["commit","-m","\u2728 Initial commit"],{cwd:e,env:process.env,stdio:"inherit"})},xe=async()=>{let e=await we({message:"What is your project named?",placeholder:"my-app",validate(t){if(t.length===0)return"Please enter a project name."}});return ue(e)&&(de("Operation cancelled."),process.exit(0)),e.toString()},G=async e=>{try{ge("Let's start a Geistdocs project!");let t=process.cwd(),s=e.name||await xe(),n=he(),a=pe(t,s);n.start("Copying bundled template..."),await ye(s),n.message("Setting up environment variables..."),process.chdir(a),await ve(),n.message("Rewriting package dependency versions..."),await Te(a),n.message("Installing dependencies..."),await ke(a),e.disableGit||(n.message("Initializing Git repository..."),await $e(a)),n.stop("Project initialized successfully!"),me("Run `pnpm dev` to start the development server.")}catch(t){let s=t instanceof Error?t.message:`Failed to initialize project: ${t}`;fe.error(s),process.exit(1)}};import{readFileSync as be,writeFileSync as Fe}from"fs";import{mkdir as De,readFile as N,writeFile as Se}from"fs/promises";import{dirname as Ce,extname as Re,relative as M,resolve as S}from"path";import{intro as je,isCancel as Ee,log as h,multiselect as Ne,outro as D,spinner as Ue}from"@clack/prompts";import{glob as Oe}from"glob";import{Node as v,Project as Ie,SyntaxKind as Je}from"ts-morph";var Le="geistdocs.tsx",Ae="content/docs/**/*.mdx",U=".translation-cache.json",E=8,B=()=>({version:1,entries:{}}),_e=async e=>{let t=await N(e),{createHash:s}=await import("crypto");return s("sha256").update(t).digest("hex")},Ve=e=>{let t=S(process.cwd(),e);return be(t,"utf8")},z=e=>v.isObjectLiteralExpression(e)?e.getProperties().flatMap(t=>{if(v.isPropertyAssignment(t)){let s=t.getNameNode();if(v.isIdentifier(s)||v.isStringLiteral(s))return[s.getText().replaceAll(/['"]/g,"")]}return[]}).filter(Boolean):[],Ge=e=>{try{let t=new Ie({compilerOptions:{allowJs:!0,jsx:4,module:99,target:10},skipAddingFilesFromTsConfig:!0,useInMemoryFileSystem:!0}),s=Ve(e),r=t.createSourceFile(e,s,{overwrite:!0}).getVariableDeclarations().find(l=>l.getName()==="translations")?.getInitializer();if(!r)return[];if(v.isObjectLiteralExpression(r))return z(r);let i=r.getFirstDescendantByKind(Je.ObjectLiteralExpression);return i?z(i):[]}catch(t){let s=t instanceof Error?t.message:`${t}`;return h.warn(`Failed to read locales from ${e}: ${s}`),[]}},Be=async()=>{let e=await Ne({message:"Which locales should be translated?",options:[{value:"cn",label:"Chinese (cn)"},{value:"jp",label:"Japanese (jp)"},{value:"es",label:"Spanish (es)"},{value:"fr",label:"French (fr)"},{value:"de",label:"German (de)"}],required:!0});return Ee(e)&&(D("Translation cancelled"),process.exit(0)),e},ze=async e=>(await Oe(e,{cwd:process.cwd(),absolute:!0,nodir:!0})).sort(),He=async()=>{let e=S(process.cwd(),U);try{let t=await N(e,"utf8"),s=JSON.parse(t);return s.version!==1||!s.entries?B():{version:1,entries:s.entries}}catch{return B()}},H=e=>{let t=S(process.cwd(),U),s=JSON.stringify(e,null,2);Fe(t,s,"utf8")},Me=async e=>{let t=await Promise.all(e.map(async s=>[s,await _e(s)]));return Object.fromEntries(t)},Ke=(e,t)=>{let s=Re(e);return`${e.slice(0,-s.length)}.${t}${s}`},K=(e,t)=>`${M(process.cwd(),e)}::${t}`,qe=(e,t,s,n,a=!1)=>{let r=[],i=0;for(let l of t){let c=s[l];for(let o of e){let d=Ke(l,o),u=K(l,o),f=n.entries[u];if(!a&&f?.hash===c){i+=1;continue}r.push({locale:o,sourceFile:l,sourceHash:c,targetFile:d})}}return{tasks:r,skippedCount:i}},Xe=async e=>{await De(Ce(e),{recursive:!0})},We=async(e,t,s)=>{let n=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:t,locale:s})});if(!n.ok){let r=await n.text();throw new Error(`API request failed (${n.status}): ${r}`)}let a=await n.json();if(!a.translation)throw new Error("API response did not include a translation");return a.translation},Ye=async(e,t,s)=>{let n=await N(e.sourceFile,"utf8"),a=await We(t,n,e.locale);await Xe(e.targetFile),await Se(e.targetFile,a,"utf8"),s.entries[K(e.sourceFile,e.locale)]={hash:e.sourceHash,updatedAt:new Date().toISOString()}},q=async(e,t)=>{je("Translate MDX content");let s=e??Ae,n=t.url||process.env.GEISTDOCS_TRANSLATE_URL||"https://geistdocs.com/translate",a=Ge(t.config??Le),r=await ze(s);r.length===0&&(h.error(`No MDX files found matching pattern: ${s}`),D("Translation cancelled"),process.exit(1)),h.info(`Found ${r.length} MDX file(s) matching pattern`),a.length===0&&(a=await Be());let i=S(process.cwd(),U),l=await He();await H(l),h.info(`Using cache: ${i}`);let c=await Me(r),{tasks:o,skippedCount:d}=qe(a,r,c,l,t.force);if(o.length===0){h.success("All translations are up to date!"),D(`Skipped ${d} file(s) (unchanged)`);return}let u=[];for(let y=0;y<o.length;y+=E)u.push(o.slice(y,y+E));h.info(`Processing ${o.length} translation(s) in ${u.length} batch(es) of up to ${E}`),d>0&&h.info(`Skipped ${d} translation(s) (unchanged)`);let f=Ue();f.start("Translating content...");let k=0;for(let y of u)await Promise.all(y.map(async L=>{await Ye(L,n,l),k+=1,f.message(`Translated ${k}/${o.length}: ${M(process.cwd(),L.targetFile)}`)})),await H(l);f.stop("Translation complete!"),D(`Created/updated ${o.length} file(s)`)};import{access as Ze,copyFile as Qe,mkdir as Z,rm as J}from"fs/promises";import{dirname as et,join as w}from"path";import{intro as tt,log as p,outro as C,spinner as Q}from"@clack/prompts";import{glob as st}from"glob";var nt=["**/*"],at=["content/docs/**"],O=".geistdocs-tmp",rt=async(e,t)=>{let s=w(e,t);await J(s,{recursive:!0,force:!0}),await Z(s,{recursive:!0})},I=async e=>await J(e,{recursive:!0,force:!0}),X=async(e,t,s)=>(await st(e,{cwd:s,nodir:!0,dot:!0,ignore:[".git/**",...t]})).sort(),it=async e=>{try{return await Ze(e),!0}catch{return!1}},ot=async(e,t,s)=>{let n=w(t,e),a=w(s,e);return await it(n)?(await Qe(n,a),{success:!0}):{success:!1,error:`Source file not found: ${n}`}},ct=async(e,t)=>{let s=w(t,e);return await J(s,{force:!0}),{success:!0}},W=20,Y=async(e,t,s)=>{let n=[];for(let a=0;a<e.length;a+=s){let r=e.slice(a,a+s),i=await Promise.all(r.map(t));n.push(...i)}return n},lt=async(e,t,s,n,a)=>{let r={success:[],deleted:[],failed:[]},i=[...new Set(e.map(c=>et(w(n,c))))];a.message(`Creating ${i.length} directories...`),await Promise.all(i.map(c=>Z(c,{recursive:!0}))),a.message(`Updating ${e.length} files...`);let l=await Y(e,async c=>{let o=await ot(c,s,n);return{file:c,...o}},W);for(let{file:c,success:o,error:d}of l)o?r.success.push(c):r.failed.push({file:c,error:d??"Unknown error"});if(t.length>0){a.message(`Deleting ${t.length} files...`);let c=await Y(t,async o=>{try{return await ct(o,n),{file:o,success:!0}}catch(d){let u=d instanceof Error?d.message:`${d}`;return{file:o,success:!1,error:u}}},W);for(let o of c)o.success?r.deleted.push(o.file):r.failed.push({file:o.file,error:o.error})}return r},pt=e=>{if(e.success.length>0){p.success(`Successfully updated ${e.success.length} files:`);for(let t of e.success)p.info(` \u2713 ${t}`)}if(e.deleted.length>0){p.success(`Deleted ${e.deleted.length} files:`);for(let t of e.deleted)p.info(` \u{1F5D1} ${t}`)}if(e.failed.length>0){p.warn(`Failed to update ${e.failed.length} files:`);for(let{file:t,error:s}of e.failed)p.error(` \u2717 ${t}: ${s}`)}},dt=e=>e.includes("canary")?"canary":"latest",gt=async e=>{let t=await fetch(`https://registry.npmjs.org/${encodeURIComponent(g)}`);if(!t.ok)throw new Error(`Failed to resolve ${g}@${e}`);let n=(await t.json())["dist-tags"]?.[e];if(!n)throw new Error(`Could not find dist-tag ${e} for ${g}`);return n},ut=async e=>{let t=await P(e),s=R(t,g);if(!s)return{currentVersion:s,nextVersion:void 0,updated:!1};let n=dt(s),a=await gt(n);return s===a?{currentVersion:s,nextVersion:a,updateTag:n,updated:!1}:(b(t,g,a),await x(e,t),{currentVersion:s,nextVersion:a,updateTag:n,updated:!0})},ft=async(e,t,s)=>{let n=await P(e);if(!V(n,g))return!1;t&&t.length>0&&p.warn("Ignoring file patterns for a package-based site. This update will bump the package version instead."),s?.sync&&p.warn("Ignoring --sync for a package-based site. Runtime updates now come from the package version.");let{currentVersion:a,nextVersion:r,updateTag:i,updated:l}=await ut(e);if(!l)return p.success(a?`@vercel/geistdocs is already at ${r} (${i}).`:"No package version update was needed."),C("Package-based site is already up to date."),!0;p.info(`Bumping ${g} from ${a} to ${r} (${i})`);let c=Q();return c.start("Installing updated package version..."),await m("pnpm",["install"],{cwd:e}),c.stop("Package update complete!"),C("Please review and test the upgraded package version."),!0},mt=async(e,t,s,n,a)=>{let r=w(e,O),i=Q(),l=a?.sync?r:t;i.start("Preparing template snapshot..."),a?.sync&&(await rt(e,O),await F(r)),i.message("Scanning for files...");let c=await X(s,n,l),o=[];if(a?.sync){i.message("Comparing with local files...");let u=await X(s,n,e),f=new Set(c);o=u.filter(k=>!f.has(k))}if(i.stop(`Found ${c.length} files to update`),c.length===0&&o.length===0){p.warn("No files matched the patterns. Nothing to update."),a?.sync&&await I(r),C("Update cancelled.");return}p.info(`Patterns: ${s.length}`),p.info(`Files to update: ${c.length}`),a?.sync&&p.info(`Files to delete: ${o.length}`),i.start("Updating files...");let d=await lt(c,o,l,e,i);a?.sync&&(i.message("Cleaning up..."),await I(r)),i.stop("Update complete!"),pt(d),C("Please review and test the changes carefully.")},ee=async(e,t)=>{let s=process.cwd(),n=j(),a=e&&e.length>0?e:nt,r=e&&e.length>0?[]:at;try{if(tt("Let's update your Geistdocs project!"),await ft(s,e,t))return;p.info("Template source: bundled package snapshot"),e&&e.length>0&&p.info(`Updating specific files: ${e.join(", ")}`),t?.sync&&p.info("Sync mode enabled: will delete files removed from template"),await mt(s,n,a,r,t)}catch(i){let l=i instanceof Error?i.message:`${i}`;try{await I(w(s,O))}catch{}p.error(`Failed to update project: ${l}`),process.exit(1)}};T.name("geistdocs").description("CLI for Geistdocs projects").version("1.19.1","-v, --version","Output the current version");T.command("init").description("Initialize a new Geistdocs project").option("--name <name>","Name of the project").option("--disable-git","Disable git initialization").action(G);T.command("update [files...]").description("Update a Geistdocs project (optionally specify files/patterns to update)").option("--sync","Delete local files that no longer exist in the template").action(ee);T.command("translate [pattern]").description("Translate MDX file(s) to one or more locales (default: content/docs/**/*.mdx)").option("--config <path>","Path to config file to load locales from (defaults to geistdocs.tsx)").option("--url <url>","Custom translation API URL (defaults to GEISTDOCS_TRANSLATE_URL or https://geistdocs.com/translate)").option("--force","Force re-translation of all files, ignoring cache").action(q);T.parse(process.argv);
|
|
@@ -49,7 +49,7 @@ export const CopyPrompt = ({ children, className, projectOnly = false, text, tit
|
|
|
49
49
|
]),
|
|
50
50
|
{ icon: _jsx(CursorLogo, {}), label: "Open in Cursor", platform: "Cursor" },
|
|
51
51
|
];
|
|
52
|
-
return (_jsx("div", { className: cn("not-prose my-4 mb-10 hidden w-full md:block", className), children: _jsxs("div", { className: "rounded-md border border-gray-400 bg-background-100", children: [_jsx("div", { className: "min-h-12 rounded-t-md border-gray-400 border-b bg-background-200 py-2 pr-2 pl-4", children: _jsxs("div", { className: "flex items-center justify-between gap-4", children: [_jsx("div", { className: "flex items-center gap-2 text-gray-900 text-label-13", children: title }), _jsxs("div", { className: "inline-flex shrink-0 overflow-hidden rounded-md border bg-background-100
|
|
52
|
+
return (_jsx("div", { className: cn("not-prose my-4 mb-10 hidden w-full md:block", className), children: _jsxs("div", { className: "rounded-md border border-gray-400 bg-background-100", children: [_jsx("div", { className: "min-h-12 rounded-t-md border-gray-400 border-b bg-background-200 py-2 pr-2 pl-4", children: _jsxs("div", { className: "flex items-center justify-between gap-4", children: [_jsx("div", { className: "flex items-center gap-2 text-gray-900 text-label-13", children: title }), _jsxs("div", { className: "inline-flex shrink-0 overflow-hidden rounded-md border bg-background-100", children: [_jsxs("button", { className: "inline-flex h-8 items-center gap-1.5 px-3 font-medium text-sm transition-colors hover:bg-gray-100 hover:text-gray-1000 focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-gray-600/50", onClick: copy, type: "button", children: [_jsxs("span", { className: "relative size-4", children: [_jsx(CopyPromptIcon, { className: cn("absolute inset-0 transition-all duration-200", isCopied ? "scale-75 opacity-0" : "scale-100 opacity-100") }), _jsx(CheckIcon, { className: cn("absolute inset-0 size-4 transition-all duration-200", isCopied ? "scale-100 opacity-100" : "scale-75 opacity-0") })] }), _jsx("span", { children: "Copy" })] }), _jsxs(DropdownMenu, { children: [_jsx(DropdownMenuTrigger, { asChild: true, children: _jsx("button", { "aria-label": "Copy prompt actions", className: "inline-flex h-8 w-8 items-center justify-center border-l transition-colors hover:bg-gray-100 hover:text-gray-1000 focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-gray-600/50", type: "button", children: _jsx(ChevronDownIcon, { className: "size-4" }) }) }), _jsx(DropdownMenuContent, { align: "end", className: "w-60", children: menuItems.map((item, index) => (_jsxs("div", { children: [index === 1 ? _jsx(DropdownMenuSeparator, {}) : null, _jsxs(DropdownMenuItem, { onClick: () => openPlatform(item.platform), children: [item.icon, _jsx("span", { className: "flex-1", children: item.label }), _jsx(ExternalLinkIcon, { className: "size-4" })] })] }, item.platform))) })] })] })] }) }), _jsxs("div", { className: "relative isolate rounded-b-md bg-background-100 p-4 pb-5", children: [_jsxs("div", { className: "relative overflow-hidden", children: [_jsx("div", { className: cn("break-words text-gray-900 text-sm leading-relaxed [&_a]:font-normal [&_a]:text-gray-1000 [&_a]:no-underline hover:[&_a]:underline [&_code]:rounded [&_code]:bg-gray-100 [&_code]:px-1 [&_code]:py-0.5 [&_code]:font-mono [&_code]:text-[0.9em]", isExpanded ? "" : "line-clamp-2", isExpanded ? "whitespace-pre-wrap" : ""), children: children ?? text }), isExpanded ? null : (_jsx("div", { className: "pointer-events-none absolute inset-0 bg-linear-to-b from-transparent via-transparent to-background-100" }))] }), _jsx("div", { className: "absolute left-1/2 -translate-x-1/2 translate-y-1/5", children: _jsxs(Button, { className: "mt-0 h-7 rounded-full bg-background-100 px-2 text-gray-800 text-xs shadow-(--ds-shadow-border-medium) hover:text-gray-1000", onClick: () => setIsExpanded((current) => !current), size: "sm", type: "button", variant: "secondary", children: [isExpanded ? (_jsx(ChevronUpIcon, { className: "size-3.5" })) : (_jsx(ChevronDownIcon, { className: "size-3.5" })), isExpanded ? "Show less" : "Show more"] }) })] })] }) }));
|
|
53
53
|
};
|
|
54
54
|
const CopyPromptIcon = ({ className }) => (_jsxs("svg", { "aria-hidden": true, className: className, fill: "none", height: "16", viewBox: "0 0 16 16", width: "16", children: [_jsx("title", { children: "Copy prompt" }), _jsx("path", { d: "M6.75 14a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m3.75 0a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m3.75 0a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-7.5-3.25a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m7.5 0a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5M8.25.5C9.22.5 10 1.28 10 2.25V3H8.5v-.75A.25.25 0 0 0 8.25 2h-5.5a.25.25 0 0 0-.25.25v7.5c0 .14.11.25.25.25H4.5v1.5H2.75C1.78 11.5 1 10.72 1 9.75v-7.5C1 1.28 1.78.5 2.75.5zm-1.5 7.25a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m7.5 0a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5M6.75 4.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m3.75 0a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m3.75 0a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5", fill: "currentColor" })] }));
|
|
55
55
|
const V0Logo = () => (_jsxs("svg", { "aria-hidden": true, className: "size-4", fill: "none", viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("title", { children: "v0" }), _jsx("path", { d: "M6.1 9.46V5.52h1.52v5.03c0 .59-.48 1.07-1.07 1.07-.28 0-.56-.11-.76-.31L0 5.52h2.15zM16 10.1h-1.52V6.6l-3.5 3.5h3.5v1.52h-3.96a2.14 2.14 0 0 1-2.14-2.14V5.52H9.9v3.5l3.5-3.5H9.9V4h3.96C15.04 4 16 4.96 16 6.14z", fill: "currentColor" })] }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navbar-logo.d.ts","sourceRoot":"","sources":["../../../src/internal/navbar/navbar-logo.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,SAAS,EAAuB,MAAM,OAAO,CAAC;AAK5D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAC;AAY9D,eAAO,MAAM,mBAAmB,gBAAgB,CAAC;AAEjD,eAAO,MAAM,oBAAoB,EAAE,yBAAyB,EAiF3D,CAAC;AAgGF;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,yBAAyB,EAAE,GAAG,SAAS,EACjD,aAAa,EAAE,MAAM,GAAG,SAAS,GAChC,yBAAyB,EAAE,CAI7B;AAED,KAAK,eAAe,GAAG;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,GAAG,CACA;IACE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,KAAK,CAAC;IACf,IAAI,EAAE,SAAS,CAAC;IAChB,WAAW,CAAC,EAAE,yBAAyB,EAAE,CAAC;CAC3C,GACD;IACE,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,IAAI,EAAE,SAAS,CAAC;CACjB,CACJ,CAAC;AAEF,wBAAgB,UAAU,CAAC,EACzB,SAAS,EACT,IAAU,EACV,GAAG,KAAK,EACT,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"navbar-logo.d.ts","sourceRoot":"","sources":["../../../src/internal/navbar/navbar-logo.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,SAAS,EAAuB,MAAM,OAAO,CAAC;AAK5D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAC;AAY9D,eAAO,MAAM,mBAAmB,gBAAgB,CAAC;AAEjD,eAAO,MAAM,oBAAoB,EAAE,yBAAyB,EAiF3D,CAAC;AAgGF;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,yBAAyB,EAAE,GAAG,SAAS,EACjD,aAAa,EAAE,MAAM,GAAG,SAAS,GAChC,yBAAyB,EAAE,CAI7B;AAED,KAAK,eAAe,GAAG;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,GAAG,CACA;IACE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,KAAK,CAAC;IACf,IAAI,EAAE,SAAS,CAAC;IAChB,WAAW,CAAC,EAAE,yBAAyB,EAAE,CAAC;CAC3C,GACD;IACE,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,IAAI,EAAE,SAAS,CAAC;CACjB,CACJ,CAAC;AAEF,wBAAgB,UAAU,CAAC,EACzB,SAAS,EACT,IAAU,EACV,GAAG,KAAK,EACT,EAAE,eAAe,2CAuIjB"}
|
|
@@ -20,7 +20,7 @@ export const DEFAULT_OSS_PRODUCTS = [
|
|
|
20
20
|
href: "https://eve.dev/",
|
|
21
21
|
id: "eve",
|
|
22
22
|
label: "eve",
|
|
23
|
-
logo: _jsx(LogoEve, {
|
|
23
|
+
logo: _jsx(LogoEve, {}),
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
href: "https://nextjs.org/",
|
|
@@ -143,7 +143,9 @@ export function NavbarLogo({ className, href = "/", ...props }) {
|
|
|
143
143
|
router.prefetch(href);
|
|
144
144
|
}
|
|
145
145
|
}, [isOss, router, href]);
|
|
146
|
-
return (_jsxs("span", { className: cn("flex items-center gap-2.5", className), children: [_jsx(Link, { className: "-mx-2 flex items-center rounded-md p-2 text-gray-1000 outline-none focus-visible:ring-2 focus-visible:ring-blue-700 focus-visible:ring-inset", href: isOss ? "https://vercel.com/oss" : "https://vercel.com/", rel: "noopener", target: "_blank", children: isOss ? (_jsxs(_Fragment, { children: [_jsx(LogoIconVercel, { className: "@min-[640px]:hidden", size: 18 }), _jsx(LogoVercelOss, { className: "@min-[640px]:block hidden shrink-0",
|
|
146
|
+
return (_jsxs("span", { className: cn("flex items-center gap-2.5", className), children: [_jsx(Link, { className: "-mx-2 flex items-center rounded-md p-2 text-gray-1000 outline-none focus-visible:ring-2 focus-visible:ring-blue-700 focus-visible:ring-inset", href: isOss ? "https://vercel.com/oss" : "https://vercel.com/", rel: "noopener", target: "_blank", children: isOss ? (_jsxs(_Fragment, { children: [_jsx(LogoIconVercel, { className: "@min-[640px]:hidden", size: 18 }), _jsx(LogoVercelOss, { className: "@min-[640px]:block hidden shrink-0",
|
|
147
|
+
// to exactly match vercel.com's triangle
|
|
148
|
+
size: (18 * 45) / 43.391_652 })] })) : (_jsx(LogoIconVercel, { size: 18 })) }), _jsx("div", { className: "w-4 text-center text-gray-alpha-400 text-lg dark:text-gray-600", children: _jsx(IconSlashForward, {}) }), isOss ? (_jsxs(_Fragment, { children: [_jsx(Link, { className: "flex @min-[1024px]:hidden items-center text-gray-1000", href: href, children: props.logo }), _jsxs("div", { className: "@min-[1024px]:contents hidden", children: [_jsx(NavigationMenu, { delayDuration: 0, onValueChange: (value) => setNavOpen(Boolean(value)), skipDelayDuration: 0, viewport: false, children: _jsx(NavigationMenuList, { className: "h-16 items-stretch", children: _jsxs(NavigationMenuItem, { className: "flex h-full items-center", children: [_jsx(NavigationMenuTrigger, { className: "relative -mx-3 flex h-full items-center gap-1.5 px-3 text-gray-1000 outline-none before:absolute before:inset-x-0 before:top-1/2 before:h-9 before:-translate-y-1/2 before:rounded-md before:content-[''] focus-visible:before:ring-2 focus-visible:before:ring-blue-700 focus-visible:before:ring-inset", onClick: (e) => {
|
|
147
149
|
if (e.detail !== 0) {
|
|
148
150
|
router.push(href);
|
|
149
151
|
}
|
|
@@ -7,7 +7,7 @@ const buttonVariants = cva("inline-flex shrink-0 touch-manipulation items-center
|
|
|
7
7
|
variant: {
|
|
8
8
|
default: "bg-gray-1000 text-background-100 hover:bg-gray-1000/90",
|
|
9
9
|
destructive: "bg-red-800 text-white hover:bg-red-800/90 focus-visible:ring-red-800/20 dark:bg-red-800/60 dark:focus-visible:ring-red-800/40",
|
|
10
|
-
outline: "border bg-background-100
|
|
10
|
+
outline: "border bg-background-100 hover:bg-gray-100 hover:text-gray-1000 active:border-gray-alpha-600 active:bg-gray-200 dark:border-gray-alpha-400 dark:bg-gray-alpha-400/30 dark:hover:bg-gray-alpha-400/50",
|
|
11
11
|
secondary: "bg-gray-100 text-gray-1000 hover:bg-gray-200 active:bg-gray-300",
|
|
12
12
|
ghost: "hover:bg-gray-100 hover:text-gray-1000 active:bg-gray-200 dark:hover:bg-gray-100/50",
|
|
13
13
|
link: "text-gray-1000 underline-offset-4 hover:underline",
|
|
@@ -10,7 +10,7 @@ export function DropdownMenuTrigger(props) {
|
|
|
10
10
|
return (_jsx(DropdownMenuPrimitive.Trigger, { "data-slot": "dropdown-menu-trigger", ...props }));
|
|
11
11
|
}
|
|
12
12
|
export function DropdownMenuContent({ className, sideOffset = 4, ...props }) {
|
|
13
|
-
return (_jsx(DropdownMenuPrimitive.Portal, { children: _jsx(DropdownMenuPrimitive.Content, { className: cn("data-[state=closed]:fade-out-0 data-[state=
|
|
13
|
+
return (_jsx(DropdownMenuPrimitive.Portal, { children: _jsx(DropdownMenuPrimitive.Content, { className: cn("data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 material-menu z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-y-auto overflow-x-hidden overscroll-contain p-1 text-gray-1000 data-[state=closed]:animate-out motion-reduce:animate-none", className), "data-slot": "dropdown-menu-content", sideOffset: sideOffset, ...props }) }));
|
|
14
14
|
}
|
|
15
15
|
export function DropdownMenuItem({ className, inset, variant = "default", ...props }) {
|
|
16
16
|
return (_jsx(DropdownMenuPrimitive.Item, { className: cn("data-[variant=destructive]:*:[svg]:!text-red-800 relative flex cursor-default touch-manipulation select-none items-center gap-2 rounded-sm px-2 py-1.5 text-label-14 outline-hidden focus:bg-gray-100 focus:text-gray-1000 data-[disabled]:pointer-events-none data-[inset]:pl-8 data-[variant=destructive]:text-red-800 data-[disabled]:opacity-50 data-[variant=destructive]:focus:bg-red-800/10 data-[variant=destructive]:focus:text-red-800 dark:data-[variant=destructive]:focus:bg-red-800/20 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-gray-900 [&_svg]:pointer-events-none [&_svg]:shrink-0", className), "data-inset": inset, "data-slot": "dropdown-menu-item", "data-variant": variant, ...props }));
|
|
@@ -37,5 +37,5 @@ export function DropdownMenuSubTrigger({ className, inset, children, ...props })
|
|
|
37
37
|
return (_jsxs(DropdownMenuPrimitive.SubTrigger, { className: cn("flex cursor-default touch-manipulation select-none items-center gap-2 rounded-sm px-2 py-1.5 text-label-14 outline-hidden focus:bg-gray-100 focus:text-gray-1000 data-[state=open]:bg-gray-100 data-[inset]:pl-8 data-[state=open]:text-gray-1000 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-gray-900 [&_svg]:pointer-events-none [&_svg]:shrink-0", className), "data-inset": inset, "data-slot": "dropdown-menu-sub-trigger", ...props, children: [children, _jsx(ChevronRightIcon, { className: "ml-auto size-4" })] }));
|
|
38
38
|
}
|
|
39
39
|
export function DropdownMenuSubContent({ className, ...props }) {
|
|
40
|
-
return (_jsx(DropdownMenuPrimitive.SubContent, { className: cn("data-[state=closed]:fade-out-0 data-[state=
|
|
40
|
+
return (_jsx(DropdownMenuPrimitive.SubContent, { className: cn("data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 material-menu z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden overscroll-contain p-1 text-gray-1000 data-[state=closed]:animate-out motion-reduce:animate-none", className), "data-slot": "dropdown-menu-sub-content", ...props }));
|
|
41
41
|
}
|
|
@@ -9,5 +9,5 @@ export function PopoverTrigger(props) {
|
|
|
9
9
|
return _jsx(PopoverPrimitive.Trigger, { "data-slot": "popover-trigger", ...props });
|
|
10
10
|
}
|
|
11
11
|
export function PopoverContent({ className, align = "center", sideOffset = 4, ...props }) {
|
|
12
|
-
return (_jsx(PopoverPrimitive.Portal, { children: _jsx(PopoverPrimitive.Content, { align: align, className: cn("data-[state=closed]:fade-out-0 data-[state=
|
|
12
|
+
return (_jsx(PopoverPrimitive.Portal, { children: _jsx(PopoverPrimitive.Content, { align: align, className: cn("data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 material-menu z-50 w-72 origin-(--radix-popover-content-transform-origin) overscroll-contain p-4 text-gray-1000 outline-hidden data-[state=closed]:animate-out motion-reduce:animate-none", className), "data-slot": "popover-content", sideOffset: sideOffset, ...props }) }));
|
|
13
13
|
}
|
package/docs/agents.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Geistdocs Package Docs
|
|
2
2
|
|
|
3
|
-
These docs are bundled with `@vercel/geistdocs` 1.19.
|
|
3
|
+
These docs are bundled with `@vercel/geistdocs` 1.19.1 so agents can understand the installed package without web access.
|
|
4
4
|
They are generated from `apps/template/content/docs` during the package build.
|
|
5
5
|
|
|
6
6
|
## How to use these files
|
package/docs/llms.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Geistdocs Package Documentation
|
|
2
2
|
|
|
3
|
-
These docs are bundled with `@vercel/geistdocs` 1.19.
|
|
3
|
+
These docs are bundled with `@vercel/geistdocs` 1.19.1.
|
|
4
4
|
They describe how to build package-backed Geistdocs sites and how to use the package APIs from generated project adapters.
|
|
5
5
|
|
|
6
6
|
## Documentation Index
|
package/docs/manifest.json
CHANGED
package/package.json
CHANGED
package/template/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"@streamdown/code": "^1.0.1",
|
|
19
19
|
"@vercel/agent-readability": "^0.2.1",
|
|
20
20
|
"@vercel/analytics": "^1.6.1",
|
|
21
|
-
"@vercel/geistdocs": "1.19.
|
|
21
|
+
"@vercel/geistdocs": "1.19.1",
|
|
22
22
|
"@vercel/speed-insights": "^1.3.1",
|
|
23
23
|
"ai": "^6.0.132",
|
|
24
24
|
"class-variance-authority": "^0.7.1",
|