Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

feat: Docs to TypeScript (initial) (#84)

Pavel 'Strajk' Dolecekddcaa4b9108a
diff --git a/apps/docs/package-lock.json b/apps/docs/package-lock.json
index 4672bc960..20e37bdbe 100644
--- a/apps/docs/package-lock.json
+++ b/apps/docs/package-lock.json
@@ -50,6 +50,7 @@
"zustand": "^4.3.2"
},
"devDependencies": {
+ "@e2b/sdk": "^0.1.0",
"@nodelib/fs.walk": "^2.0.0",
"eslint": "8.45.0",
"eslint-config-next": "13.4.12",
@@ -247,6 +248,18 @@
"node": ">=6.9.0"
}
},
+ "node_modules/@e2b/sdk": {
+ "version": "0.1.0",
+ "resolved": "https://registry.npmjs.org/@e2b/sdk/-/sdk-0.1.0.tgz",
+ "integrity": "sha512-FtJ3s2uzIfXAxn81WJCM7/3paN3I7jGubwaiTQxED4eYNLEnhY+pCe6AGoAmdfGoZHahsX2ZcIRRxQXCAExrJg==",
+ "dev": true,
+ "dependencies": {
+ "cross-fetch": "^3.1.5",
+ "normalize-path": "^3.0.0",
+ "openapi-typescript-fetch": "^1.1.3",
+ "rpc-websocket-client": "^1.1.4"
+ }
+ },
"node_modules/@emotion/is-prop-valid": {
"version": "0.8.8",
"resolved": "https://registry.npmjs.org/@emotion/is-prop-valid/-/is-prop-valid-0.8.8.tgz",
@@ -4415,6 +4428,15 @@
"resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
"integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw=="
},
+ "node_modules/isomorphic-ws": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/isomorphic-ws/-/isomorphic-ws-4.0.1.tgz",
+ "integrity": "sha512-BhBvN2MBpWTaSHdWRb/bwdZJ1WaehQ2L1KngkCkfLUGF0mAWAT1sQUQacEmQ0jXkFw/czDXPNQSL5u2/Krsz1w==",
+ "dev": true,
+ "peerDependencies": {
+ "ws": "*"
+ }
+ },
"node_modules/jest-worker": {
"version": "27.5.1",
"resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz",
@@ -6161,6 +6183,16 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
+ "node_modules/openapi-typescript-fetch": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/openapi-typescript-fetch/-/openapi-typescript-fetch-1.1.3.tgz",
+ "integrity": "sha512-smLZPck4OkKMNExcw8jMgrMOGgVGx2N/s6DbKL2ftNl77g5HfoGpZGFy79RBzU/EkaO0OZpwBnslfdBfh7ZcWg==",
+ "dev": true,
+ "engines": {
+ "node": ">= 12.0.0",
+ "npm": ">= 7.0.0"
+ }
+ },
"node_modules/optionator": {
"version": "0.9.3",
"resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz",
@@ -6856,6 +6888,20 @@
"fsevents": "~2.3.2"
}
},
+ "node_modules/rpc-websocket-client": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/rpc-websocket-client/-/rpc-websocket-client-1.1.4.tgz",
+ "integrity": "sha512-UDMVcsNDJ3WET+0EFdmseYX+60MOCA3BpgpZ5dbtiGsqHo+9uWfgNbPZ4iGDtNcX+EUhCt/Y7C0fTmUU3CkkWA==",
+ "dev": true,
+ "dependencies": {
+ "isomorphic-ws": "^4.0.1",
+ "uuid": "^3.3.3",
+ "ws": "^7.1.2"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
"node_modules/run-applescript": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/run-applescript/-/run-applescript-5.0.0.tgz",
@@ -8046,6 +8092,16 @@
"resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
"integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw=="
},
+ "node_modules/uuid": {
+ "version": "3.4.0",
+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz",
+ "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==",
+ "deprecated": "Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.",
+ "dev": true,
+ "bin": {
+ "uuid": "bin/uuid"
+ }
+ },
"node_modules/uvu": {
"version": "0.5.6",
"resolved": "https://registry.npmjs.org/uvu/-/uvu-0.5.6.tgz",
@@ -8287,6 +8343,27 @@
"resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
"integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ=="
},
+ "node_modules/ws": {
+ "version": "7.5.9",
+ "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz",
+ "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==",
+ "dev": true,
+ "engines": {
+ "node": ">=8.3.0"
+ },
+ "peerDependencies": {
+ "bufferutil": "^4.0.1",
+ "utf-8-validate": "^5.0.2"
+ },
+ "peerDependenciesMeta": {
+ "bufferutil": {
+ "optional": true
+ },
+ "utf-8-validate": {
+ "optional": true
+ }
+ }
+ },
"node_modules/yaeti": {
"version": "0.0.6",
"resolved": "https://registry.npmjs.org/yaeti/-/yaeti-0.0.6.tgz",
@@ -8535,6 +8612,18 @@
"regenerator-runtime": "^0.13.11"
}
},
+ "@e2b/sdk": {
+ "version": "0.1.0",
+ "resolved": "https://registry.npmjs.org/@e2b/sdk/-/sdk-0.1.0.tgz",
+ "integrity": "sha512-FtJ3s2uzIfXAxn81WJCM7/3paN3I7jGubwaiTQxED4eYNLEnhY+pCe6AGoAmdfGoZHahsX2ZcIRRxQXCAExrJg==",
+ "dev": true,
+ "requires": {
+ "cross-fetch": "^3.1.5",
+ "normalize-path": "^3.0.0",
+ "openapi-typescript-fetch": "^1.1.3",
+ "rpc-websocket-client": "^1.1.4"
+ }
+ },
"@emotion/is-prop-valid": {
"version": "0.8.8",
"resolved": "https://registry.npmjs.org/@emotion/is-prop-valid/-/is-prop-valid-0.8.8.tgz",
@@ -11600,6 +11689,13 @@
"resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
"integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw=="
},
+ "isomorphic-ws": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/isomorphic-ws/-/isomorphic-ws-4.0.1.tgz",
+ "integrity": "sha512-BhBvN2MBpWTaSHdWRb/bwdZJ1WaehQ2L1KngkCkfLUGF0mAWAT1sQUQacEmQ0jXkFw/czDXPNQSL5u2/Krsz1w==",
+ "dev": true,
+ "requires": {}
+ },
"jest-worker": {
"version": "27.5.1",
"resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz",
@@ -12759,6 +12855,12 @@
"is-wsl": "^2.2.0"
}
},
+ "openapi-typescript-fetch": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/openapi-typescript-fetch/-/openapi-typescript-fetch-1.1.3.tgz",
+ "integrity": "sha512-smLZPck4OkKMNExcw8jMgrMOGgVGx2N/s6DbKL2ftNl77g5HfoGpZGFy79RBzU/EkaO0OZpwBnslfdBfh7ZcWg==",
+ "dev": true
+ },
"optionator": {
"version": "0.9.3",
"resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz",
@@ -13174,6 +13276,17 @@
"fsevents": "~2.3.2"
}
},
+ "rpc-websocket-client": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/rpc-websocket-client/-/rpc-websocket-client-1.1.4.tgz",
+ "integrity": "sha512-UDMVcsNDJ3WET+0EFdmseYX+60MOCA3BpgpZ5dbtiGsqHo+9uWfgNbPZ4iGDtNcX+EUhCt/Y7C0fTmUU3CkkWA==",
+ "dev": true,
+ "requires": {
+ "isomorphic-ws": "^4.0.1",
+ "uuid": "^3.3.3",
+ "ws": "^7.1.2"
+ }
+ },
"run-applescript": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/run-applescript/-/run-applescript-5.0.0.tgz",
@@ -13998,6 +14111,12 @@
"resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
"integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw=="
},
+ "uuid": {
+ "version": "3.4.0",
+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz",
+ "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==",
+ "dev": true
+ },
"uvu": {
"version": "0.5.6",
"resolved": "https://registry.npmjs.org/uvu/-/uvu-0.5.6.tgz",
@@ -14184,6 +14303,13 @@
"resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
"integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ=="
},
+ "ws": {
+ "version": "7.5.9",
+ "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz",
+ "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==",
+ "dev": true,
+ "requires": {}
+ },
"yaeti": {
"version": "0.0.6",
"resolved": "https://registry.npmjs.org/yaeti/-/yaeti-0.0.6.tgz",
diff --git a/apps/docs/package.json b/apps/docs/package.json
index f9c589df5..d9dbd276a 100644
--- a/apps/docs/package.json
+++ b/apps/docs/package.json
@@ -52,6 +52,7 @@
"zustand": "^4.3.2"
},
"devDependencies": {
+ "@e2b/sdk": "^0.1.0",
"@nodelib/fs.walk": "^2.0.0",
"eslint": "8.45.0",
"eslint-config-next": "13.4.12",
diff --git a/apps/docs/src/app/layout.jsx b/apps/docs/src/app/layout.tsx
similarity index 100%
rename from apps/docs/src/app/layout.jsx
rename to apps/docs/src/app/layout.tsx
diff --git a/apps/docs/src/app/not-found.jsx b/apps/docs/src/app/not-found.tsx
similarity index 100%
rename from apps/docs/src/app/not-found.jsx
rename to apps/docs/src/app/not-found.tsx
diff --git a/apps/docs/src/app/providers.jsx b/apps/docs/src/app/providers.tsx
similarity index 100%
rename from apps/docs/src/app/providers.jsx
rename to apps/docs/src/app/providers.tsx
diff --git a/apps/docs/src/components/Auth.jsx b/apps/docs/src/components/Auth.tsx
similarity index 96%
rename from apps/docs/src/components/Auth.jsx
rename to apps/docs/src/components/Auth.tsx
index 6c0cea18b..5f0908254 100644
--- a/apps/docs/src/components/Auth.jsx
+++ b/apps/docs/src/components/Auth.tsx
@@ -36,6 +36,7 @@ export const Auth = function () {
<span className="text-red-500 text-sm" title={error?.message}>
Something went wrong
</span>
+ {/* @ts-ignore */}
<Button onClick={() => signInWithGitHub()}>Login</Button>
</div>
@@ -80,6 +81,7 @@ export const Auth = function () {
{user.email}
{/* TODO: Add dropdown with more options: Dashboard, API keys, ... */}
</div>
+ {/* @ts-ignore */}
<Button
variant="textSubtle"
title="Sign out"
@@ -91,7 +93,9 @@ export const Auth = function () {
</div>
) : (
<div className="flex items-center gap-3">
+ {/* @ts-ignore */}
<Button onClick={() => signInWithGitHub()} variant="textTernary" className="text-xs">Login to get your API key</Button>
+ {/* @ts-ignore */}
<Button onClick={() => signInWithGitHub()}>Login</Button>
</div>
)}
diff --git a/apps/docs/src/components/Button.jsx b/apps/docs/src/components/Button.tsx
similarity index 99%
rename from apps/docs/src/components/Button.jsx
rename to apps/docs/src/components/Button.tsx
index 082f938c2..68dc8834f 100644
--- a/apps/docs/src/components/Button.jsx
+++ b/apps/docs/src/components/Button.tsx
@@ -54,6 +54,7 @@ export function Button({
)
return (
+ // @ts-ignore
<Component className={className} {...props}>
{arrow === 'left' && arrowIcon}
{children}
diff --git a/apps/docs/src/components/ButtonLoginToken.jsx b/apps/docs/src/components/ButtonLoginToken.tsx
similarity index 98%
rename from apps/docs/src/components/ButtonLoginToken.jsx
rename to apps/docs/src/components/ButtonLoginToken.tsx
index 5a50d94c0..072aa980e 100644
--- a/apps/docs/src/components/ButtonLoginToken.jsx
+++ b/apps/docs/src/components/ButtonLoginToken.tsx
@@ -21,7 +21,8 @@ export function ButtonLoginToken() {
let extraClassName = 'duration-300'
if (isLoading) extraClassName += ' opacity-0 pointer-events-none'
if (user) return null
-
+
+ // @ts-ignore
return <Button
onClick={() => signInWithGitHub()}
variant="textTernary"
diff --git a/apps/docs/src/components/Code.jsx b/apps/docs/src/components/Code.tsx
similarity index 97%
rename from apps/docs/src/components/Code.jsx
rename to apps/docs/src/components/Code.tsx
index fe5662cce..d833aa9a2 100644
--- a/apps/docs/src/components/Code.jsx
+++ b/apps/docs/src/components/Code.tsx
@@ -105,6 +105,7 @@ function CodeGroupPanels({ children, ...props }) {
<Tab.Panels>
{Children.map(children, (child) => (
<Tab.Panel>
+ {/* @ts-ignore */}
<CodePanel {...props}>{child}</CodePanel>
</Tab.Panel>
))}
@@ -112,6 +113,7 @@ function CodeGroupPanels({ children, ...props }) {
)
}
+ // @ts-ignore
return <CodePanel {...props}>{children}</CodePanel>
}
@@ -128,11 +130,14 @@ function usePreventLayoutShift() {
return {
positionRef,
preventLayoutShift(callback) {
+ // @ts-ignore
let initialTop = positionRef.current.getBoundingClientRect().top
callback()
+ // @ts-ignore
rafRef.current = window.requestAnimationFrame(() => {
+ // @ts-ignore
let newTop = positionRef.current.getBoundingClientRect().top
window.scrollBy(0, newTop - initialTop)
})
@@ -154,6 +159,7 @@ const usePreferredLanguageStore = create((set) => ({
}))
function useTabGroupProps(availableLanguages) {
+ // @ts-ignore
let { preferredLanguages, addPreferredLanguage } = usePreferredLanguageStore()
let [selectedIndex, setSelectedIndex] = useState(0)
let activeLanguage = [...availableLanguages].sort(
@@ -195,8 +201,10 @@ export function CodeGroup({ children, title, ...props }) {
<CodeGroupContext.Provider value={true}>
<Container
{...containerProps}
+ // @ts-ignore
className="not-prose my-6 overflow-hidden rounded-2xl bg-zinc-900 shadow-md dark:ring-1 dark:ring-white/10"
>
+ {/* @ts-ignore */}
<CodeGroupHeader title={title} {...headerProps}>
{children}
</CodeGroupHeader>
@@ -228,5 +236,6 @@ export function Pre({ children, ...props }) {
return children
}
+ // @ts-ignore
return <CodeGroup {...props}>{children}</CodeGroup>
}
diff --git a/apps/docs/src/components/CopyButton.jsx b/apps/docs/src/components/CopyButton.tsx
similarity index 99%
rename from apps/docs/src/components/CopyButton.jsx
rename to apps/docs/src/components/CopyButton.tsx
index ee75045b6..db303de7f 100644
--- a/apps/docs/src/components/CopyButton.jsx
+++ b/apps/docs/src/components/CopyButton.tsx
@@ -30,6 +30,7 @@ export function CopyButton({
if (copyCount > 0) {
let timeout = setTimeout(() => {
setCopyCount(0);
+ // @ts-ignore
buttonRef.current?.blur()
}, 1000)
return () => {
diff --git a/apps/docs/src/components/DialogAnimated.jsx b/apps/docs/src/components/DialogAnimated.tsx
similarity index 100%
rename from apps/docs/src/components/DialogAnimated.jsx
rename to apps/docs/src/components/DialogAnimated.tsx
diff --git a/apps/docs/src/components/Feedback/FeedbackButton.jsx b/apps/docs/src/components/Feedback/FeedbackButton.tsx
similarity index 97%
rename from apps/docs/src/components/Feedback/FeedbackButton.jsx
rename to apps/docs/src/components/Feedback/FeedbackButton.tsx
index f1f82481e..2b8536d1c 100644
--- a/apps/docs/src/components/Feedback/FeedbackButton.jsx
+++ b/apps/docs/src/components/Feedback/FeedbackButton.tsx
@@ -18,6 +18,7 @@ function FeedbackButton({
className,
}) {
return (
+ // @ts-ignore
<Button
onMouseDown={onClick}
variant={variant}
diff --git a/apps/docs/src/components/Feedback/FeedbackModal.jsx b/apps/docs/src/components/Feedback/FeedbackModal.tsx
similarity index 97%
rename from apps/docs/src/components/Feedback/FeedbackModal.jsx
rename to apps/docs/src/components/Feedback/FeedbackModal.tsx
index a32befa76..56af7b7f4 100644
--- a/apps/docs/src/components/Feedback/FeedbackModal.jsx
+++ b/apps/docs/src/components/Feedback/FeedbackModal.tsx
@@ -16,7 +16,6 @@ function FeedbackModal({ open, setOpen, onSend }) {
const pathname = usePathname();
const [feedback, setFeedback] = useState('')
const [isSavingFeedback, setIsSavingFeedback] = useState(false)
- const { user } = useUser()
const posthog = usePostHog()
const ref = useRef(null)
@@ -64,8 +63,10 @@ function FeedbackModal({ open, setOpen, onSend }) {
value={feedback}
placeholder="What should we improve?"
onChange={e => setFeedback(e.target.value)}
+ // @ts-ignore
open={open}
/>
+ {/* @ts-ignore */}
<Button
onClick={saveFeedback}
type="submit"
@@ -73,6 +74,7 @@ function FeedbackModal({ open, setOpen, onSend }) {
className="flex items-center gap-2 cursor-pointer"
>
{isSavingFeedback
+ // @ts-ignore
? <SpinnerIcon />
: <Send size="14px" />
}
diff --git a/apps/docs/src/components/Feedback/index.jsx b/apps/docs/src/components/Feedback/index.tsx
similarity index 88%
rename from apps/docs/src/components/Feedback/index.jsx
rename to apps/docs/src/components/Feedback/index.tsx
index 7295cc266..7def9af23 100644
--- a/apps/docs/src/components/Feedback/index.jsx
+++ b/apps/docs/src/components/Feedback/index.tsx
@@ -6,7 +6,7 @@ import FeedbackButton from './FeedbackButton'
import FeedbackModal from './FeedbackModal'
import useExpiringState from '@/utils/useExpiringState';
-export function Feedback({ className, variant }) {
+export function Feedback({ className, variant }: { className?: string, variant?: string }) {
const [open, setOpen] = useState(false)
const [isFinished, setIsFinished] = useExpiringState({ defaultValue: false, timeout: 4000 })
diff --git a/apps/docs/src/components/FeedbackQuick.jsx b/apps/docs/src/components/FeedbackQuick.tsx
similarity index 97%
rename from apps/docs/src/components/FeedbackQuick.jsx
rename to apps/docs/src/components/FeedbackQuick.tsx
index 3236478ef..ee1a695cb 100644
--- a/apps/docs/src/components/FeedbackQuick.jsx
+++ b/apps/docs/src/components/FeedbackQuick.tsx
@@ -28,9 +28,11 @@ function FeedbackButton(props) {
)
}
+// @ts-ignore
const FeedbackForm = forwardRef(function FeedbackForm({ onSubmit }, ref) {
return (
<form
+ // @ts-ignore
ref={ref}
onSubmit={onSubmit}
className="absolute inset-0 flex items-center justify-center gap-6 md:justify-start"
@@ -50,6 +52,7 @@ const FeedbackForm = forwardRef(function FeedbackForm({ onSubmit }, ref) {
const FeedbackThanks = forwardRef(function FeedbackThanks(_props, ref) {
return (
<div
+ // @ts-ignore
ref={ref}
className="absolute inset-0 flex justify-center md:justify-start"
>
@@ -82,6 +85,7 @@ export function FeedbackQuick() {
leaveTo="opacity-0"
leave="pointer-events-none duration-300"
>
+ {/* @ts-ignore */}
<FeedbackForm onSubmit={onSubmit} />
</Transition>
<Transition
diff --git a/apps/docs/src/components/Footer.jsx b/apps/docs/src/components/Footer.tsx
similarity index 99%
rename from apps/docs/src/components/Footer.jsx
rename to apps/docs/src/components/Footer.tsx
index 9484094be..5458b15d6 100644
--- a/apps/docs/src/components/Footer.jsx
+++ b/apps/docs/src/components/Footer.tsx
@@ -12,6 +12,7 @@ import { DiscordIcon } from '@/components/icons/DiscordIcon';
function PageLink({ label, page, previous = false }) {
return (
<>
+ {/* @ts-ignore */}
<Button
href={page.href}
aria-label={`${label}: ${page.title}`}
diff --git a/apps/docs/src/components/GridPattern.jsx b/apps/docs/src/components/GridPattern.tsx
similarity index 100%
rename from apps/docs/src/components/GridPattern.jsx
rename to apps/docs/src/components/GridPattern.tsx
diff --git a/apps/docs/src/components/Guides.jsx b/apps/docs/src/components/Guides.tsx
similarity index 96%
rename from apps/docs/src/components/Guides.jsx
rename to apps/docs/src/components/Guides.tsx
index 395003903..187cf34ee 100644
--- a/apps/docs/src/components/Guides.jsx
+++ b/apps/docs/src/components/Guides.tsx
@@ -29,6 +29,7 @@ const guides = [
export function Guides() {
return (
<div className="my-16 xl:max-w-none">
+ {/* @ts-ignore */}
<Heading level={2} id="guides">
Guides
</Heading>
@@ -42,6 +43,7 @@ export function Guides() {
{guide.description}
</p>
<p className="mt-4">
+ {/* @ts-ignore */}
<Button href={guide.href} variant="text" arrow="right">
Read more
</Button>
diff --git a/apps/docs/src/components/Header.jsx b/apps/docs/src/components/Header.tsx
similarity index 97%
rename from apps/docs/src/components/Header.jsx
rename to apps/docs/src/components/Header.tsx
index 3d2c50a5b..d83bd2a3a 100644
--- a/apps/docs/src/components/Header.jsx
+++ b/apps/docs/src/components/Header.tsx
@@ -23,7 +23,9 @@ function TopLevelNavItem({ href, children }) {
)
}
+// @ts-ignore
export const Header = forwardRef(function Header({ className }, ref) {
+ // @ts-ignore
let { isOpen: mobileNavIsOpen } = useMobileNavigationStore()
let isInsideMobileNavigation = useIsInsideMobileNavigation()
@@ -33,6 +35,7 @@ export const Header = forwardRef(function Header({ className }, ref) {
return (
<motion.div
+ // @ts-ignore
ref={ref}
className={clsx(
className,
@@ -44,6 +47,7 @@ export const Header = forwardRef(function Header({ className }, ref) {
: 'bg-white/[var(--bg-opacity-light)] dark:bg-zinc-900/[var(--bg-opacity-dark)]'
)}
style={{
+ // @ts-ignore
'--bg-opacity-light': bgOpacityLight,
'--bg-opacity-dark': bgOpacityDark,
}}
diff --git a/apps/docs/src/components/HeaderUtils.jsx b/apps/docs/src/components/HeaderUtils.tsx
similarity index 100%
rename from apps/docs/src/components/HeaderUtils.jsx
rename to apps/docs/src/components/HeaderUtils.tsx
diff --git a/apps/docs/src/components/Heading.jsx b/apps/docs/src/components/Heading.tsx
similarity index 98%
rename from apps/docs/src/components/Heading.jsx
rename to apps/docs/src/components/Heading.tsx
index 00709dd3f..f0c54de40 100644
--- a/apps/docs/src/components/Heading.jsx
+++ b/apps/docs/src/components/Heading.tsx
@@ -78,6 +78,7 @@ export function Heading({
useEffect(() => {
if (level === 2) {
+ // @ts-ignore
registerHeading({ id, ref, offsetRem: tag || label ? 8 : 6 })
}
})
@@ -85,6 +86,7 @@ export function Heading({
return (
<>
<Eyebrow tag={tag} label={label} />
+ {/* @ts-ignore */}
<Component
ref={ref}
id={anchor ? id : undefined}
diff --git a/apps/docs/src/components/HeroPattern.jsx b/apps/docs/src/components/HeroPattern.tsx
similarity index 100%
rename from apps/docs/src/components/HeroPattern.jsx
rename to apps/docs/src/components/HeroPattern.tsx
diff --git a/apps/docs/src/components/Layout.jsx b/apps/docs/src/components/Layout.tsx
similarity index 100%
rename from apps/docs/src/components/Layout.jsx
rename to apps/docs/src/components/Layout.tsx
diff --git a/apps/docs/src/components/Libraries.jsx b/apps/docs/src/components/Libraries.tsx
similarity index 97%
rename from apps/docs/src/components/Libraries.jsx
rename to apps/docs/src/components/Libraries.tsx
index c3b452c66..ad15ae556 100644
--- a/apps/docs/src/components/Libraries.jsx
+++ b/apps/docs/src/components/Libraries.tsx
@@ -49,6 +49,7 @@ const libraries = [
export function Libraries() {
return (
<div className="my-16 xl:max-w-none">
+ {/* @ts-ignore */}
<Heading level={2} id="official-libraries">
Official libraries
</Heading>
@@ -63,6 +64,7 @@ export function Libraries() {
{library.description}
</p>
<p className="mt-4">
+ {/* @ts-ignore */}
<Button href={library.href} variant="text" arrow="right">
Read more
</Button>
diff --git a/apps/docs/src/components/Logo.jsx b/apps/docs/src/components/Logo.tsx
similarity index 100%
rename from apps/docs/src/components/Logo.jsx
rename to apps/docs/src/components/Logo.tsx
diff --git a/apps/docs/src/components/MobileNavigation.jsx b/apps/docs/src/components/MobileNavigation.tsx
similarity index 99%
rename from apps/docs/src/components/MobileNavigation.jsx
rename to apps/docs/src/components/MobileNavigation.tsx
index dbde4f36d..03f0d18d3 100644
--- a/apps/docs/src/components/MobileNavigation.jsx
+++ b/apps/docs/src/components/MobileNavigation.tsx
@@ -52,6 +52,7 @@ export const useMobileNavigationStore = create((set) => ({
export function MobileNavigation() {
let isInsideMobileNavigation = useIsInsideMobileNavigation()
+ // @ts-ignore
let { isOpen, toggle, close } = useMobileNavigationStore()
let ToggleIcon = isOpen ? XIcon : MenuIcon
let pathname = usePathname()
diff --git a/apps/docs/src/components/Navigation.jsx b/apps/docs/src/components/Navigation.tsx
similarity index 99%
rename from apps/docs/src/components/Navigation.jsx
rename to apps/docs/src/components/Navigation.tsx
index 71f19451e..eba74daee 100644
--- a/apps/docs/src/components/Navigation.jsx
+++ b/apps/docs/src/components/Navigation.tsx
@@ -149,6 +149,7 @@ function NavigationGroup({ group, className }) {
<ul role="list" className="border-l border-transparent">
{group.links.map((link) => (
<motion.li key={link.href} layout="position" className="relative">
+ {/* @ts-ignore */}
<NavLink href={link.href} active={`/docs${link.href}` === pathname} isFontMono={link.isFontMono}>
{link.title}
</NavLink>
@@ -168,6 +169,7 @@ function NavigationGroup({ group, className }) {
>
{sections.map((section) => (
<li key={section.id}>
+ {/* @ts-ignore */}
<NavLink
href={`${link.href}#${section.id}`}
tag={section.tag}
diff --git a/apps/docs/src/components/Prose.jsx b/apps/docs/src/components/Prose.tsx
similarity index 91%
rename from apps/docs/src/components/Prose.jsx
rename to apps/docs/src/components/Prose.tsx
index 9fff2b391..8161466d0 100644
--- a/apps/docs/src/components/Prose.jsx
+++ b/apps/docs/src/components/Prose.tsx
@@ -3,6 +3,7 @@ import clsx from 'clsx'
export function Prose({ as: Component = 'div', className, ...props }) {
return (
<Component
+ // @ts-ignore
className={clsx(className, 'prose dark:prose-invert')}
{...props}
/>
diff --git a/apps/docs/src/components/Search.jsx b/apps/docs/src/components/Search.tsx
similarity index 97%
rename from apps/docs/src/components/Search.jsx
rename to apps/docs/src/components/Search.tsx
index 1b996c587..9a453af79 100644
--- a/apps/docs/src/components/Search.jsx
+++ b/apps/docs/src/components/Search.tsx
@@ -47,7 +47,9 @@ function useAutocomplete({ close }) {
navigator: {
navigate,
},
+ // @ts-ignore
getSources({ query }) {
+ // @ts-ignore
return import('@/mdx/search.mjs').then(({ search }) => {
return [
{
@@ -225,6 +227,7 @@ function SearchResults({ autocomplete, query, collection }) {
}
const SearchInput = forwardRef(function SearchInput(
+ // @ts-ignore
{ autocomplete, autocompleteState, onClose },
inputRef
) {
@@ -248,6 +251,7 @@ const SearchInput = forwardRef(function SearchInput(
) {
// In Safari, closing the dialog with the escape key can sometimes cause the scroll position to jump to the
// bottom of the page. This is a workaround for that until we can figure out a proper fix in Headless UI.
+ // @ts-ignore
document.activeElement?.blur()
onClose()
@@ -308,6 +312,7 @@ function SearchDialog({ open, setOpen, className }) {
afterLeave={() => autocomplete.setQuery('')}
rootProps={autocomplete.getRootProps({})}
>
+ {/* @ts-ignore */}
<form
ref={formRef}
{...autocomplete.getFormProps({
@@ -316,19 +321,24 @@ function SearchDialog({ open, setOpen, className }) {
>
<SearchInput
ref={inputRef}
+ // @ts-ignore
autocomplete={autocomplete}
autocompleteState={autocompleteState}
onClose={() => setOpen(false)}
/>
+ {/* @ts-ignore */}
<div
ref={panelRef}
className="border-t border-zinc-200 bg-white empty:hidden dark:border-zinc-100/5 dark:bg-white/2.5"
{...autocomplete.getPanelProps({})}
>
+ {/* @ts-ignore */}
{autocompleteState.isOpen && (
<SearchResults
autocomplete={autocomplete}
+ // @ts-ignore
query={autocompleteState.query}
+ // @ts-ignore
collection={autocompleteState.collections[0]}
/>
)}
@@ -358,6 +368,7 @@ function useSearchProps() {
// },
setOpen: useCallback(
(open) => {
+ // @ts-ignore
let { width, height } = buttonRef.current.getBoundingClientRect()
if (!open || (width !== 0 && height !== 0)) {
setOpen(open)
@@ -375,6 +386,7 @@ export function Search() {
useEffect(() => {
setModifierKey(
+ // @ts-ignore
/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform) ? '⌘' : 'Ctrl '
)
}, [])
diff --git a/apps/docs/src/components/SectionProvider.jsx b/apps/docs/src/components/SectionProvider.tsx
similarity index 98%
rename from apps/docs/src/components/SectionProvider.jsx
rename to apps/docs/src/components/SectionProvider.tsx
index 576c2027d..d7f87081f 100644
--- a/apps/docs/src/components/SectionProvider.jsx
+++ b/apps/docs/src/components/SectionProvider.tsx
@@ -40,7 +40,9 @@ function createSectionStore(sections) {
}
function useVisibleSections(sectionStore) {
+ // @ts-ignore
let setVisibleSections = useStore(sectionStore, (s) => s.setVisibleSections)
+ // @ts-ignore
let sections = useStore(sectionStore, (s) => s.sections)
useEffect(() => {
@@ -92,6 +94,7 @@ function useVisibleSections(sectionStore) {
}, [setVisibleSections, sections])
}
+// @ts-ignore
const SectionStoreContext = createContext()
const useIsomorphicLayoutEffect =
@@ -115,5 +118,6 @@ export function SectionProvider({ sections, children }) {
export function useSectionStore(selector) {
let store = useContext(SectionStoreContext)
+ // @ts-ignore
return useStore(store, selector)
}
diff --git a/apps/docs/src/components/Spinner.jsx b/apps/docs/src/components/Spinner.tsx
similarity index 100%
rename from apps/docs/src/components/Spinner.jsx
rename to apps/docs/src/components/Spinner.tsx
diff --git a/apps/docs/src/components/Tag.jsx b/apps/docs/src/components/Tag.tsx
similarity index 100%
rename from apps/docs/src/components/Tag.jsx
rename to apps/docs/src/components/Tag.tsx
diff --git a/apps/docs/src/components/Textarea.jsx b/apps/docs/src/components/Textarea.tsx
similarity index 100%
rename from apps/docs/src/components/Textarea.jsx
rename to apps/docs/src/components/Textarea.tsx
diff --git a/apps/docs/src/components/ThemeToggle.jsx b/apps/docs/src/components/ThemeToggle.tsx
similarity index 100%
rename from apps/docs/src/components/ThemeToggle.jsx
rename to apps/docs/src/components/ThemeToggle.tsx
diff --git a/apps/docs/src/components/UseCases.jsx b/apps/docs/src/components/UseCases.tsx
similarity index 98%
rename from apps/docs/src/components/UseCases.jsx
rename to apps/docs/src/components/UseCases.tsx
index a4a871a30..c402e5737 100644
--- a/apps/docs/src/components/UseCases.jsx
+++ b/apps/docs/src/components/UseCases.tsx
@@ -81,6 +81,7 @@ function UseCasePattern({ mouseX, mouseY, ...gridProps }) {
return (
<div className="pointer-events-none">
<div className="absolute inset-0 rounded-2xl transition duration-300 [mask-image:linear-gradient(white,transparent)] group-hover:opacity-50">
+ {/* @ts-ignore */}
<GridPattern
width={72}
height={56}
@@ -97,6 +98,7 @@ function UseCasePattern({ mouseX, mouseY, ...gridProps }) {
className="absolute inset-0 rounded-2xl opacity-0 mix-blend-overlay transition duration-300 group-hover:opacity-100"
style={style}
>
+ {/* @ts-ignore */}
<GridPattern
width={72}
height={56}
@@ -146,6 +148,7 @@ function UseCase({ useCase }) {
export function UseCases() {
return (
<div className="xl:max-w-none">
+ {/* @ts-ignore */}
<Heading level={1} id="useCases">
Use Cases
</Heading>
diff --git a/apps/docs/src/components/icons/BellIcon.jsx b/apps/docs/src/components/icons/BellIcon.tsx
similarity index 100%
rename from apps/docs/src/components/icons/BellIcon.jsx
rename to apps/docs/src/components/icons/BellIcon.tsx
diff --git a/apps/docs/src/components/icons/BoltIcon.jsx b/apps/docs/src/components/icons/BoltIcon.tsx
similarity index 100%
rename from apps/docs/src/components/icons/BoltIcon.jsx
rename to apps/docs/src/components/icons/BoltIcon.tsx
diff --git a/apps/docs/src/components/icons/BookIcon.jsx b/apps/docs/src/components/icons/BookIcon.tsx
similarity index 100%
rename from apps/docs/src/components/icons/BookIcon.jsx
rename to apps/docs/src/components/icons/BookIcon.tsx
diff --git a/apps/docs/src/components/icons/CalendarIcon.jsx b/apps/docs/src/components/icons/CalendarIcon.tsx
similarity index 100%
rename from apps/docs/src/components/icons/CalendarIcon.jsx
rename to apps/docs/src/components/icons/CalendarIcon.tsx
diff --git a/apps/docs/src/components/icons/CartIcon.jsx b/apps/docs/src/components/icons/CartIcon.tsx
similarity index 100%
rename from apps/docs/src/components/icons/CartIcon.jsx
rename to apps/docs/src/components/icons/CartIcon.tsx
diff --git a/apps/docs/src/components/icons/ChatBubbleIcon.jsx b/apps/docs/src/components/icons/ChatBubbleIcon.tsx
similarity index 100%
rename from apps/docs/src/components/icons/ChatBubbleIcon.jsx
rename to apps/docs/src/components/icons/ChatBubbleIcon.tsx
diff --git a/apps/docs/src/components/icons/CheckIcon.jsx b/apps/docs/src/components/icons/CheckIcon.tsx
similarity index 100%
rename from apps/docs/src/components/icons/CheckIcon.jsx
rename to apps/docs/src/components/icons/CheckIcon.tsx
diff --git a/apps/docs/src/components/icons/ChevronRightLeftIcon.jsx b/apps/docs/src/components/icons/ChevronRightLeftIcon.tsx
similarity index 100%
rename from apps/docs/src/components/icons/ChevronRightLeftIcon.jsx
rename to apps/docs/src/components/icons/ChevronRightLeftIcon.tsx
diff --git a/apps/docs/src/components/icons/ClipboardIcon.jsx b/apps/docs/src/components/icons/ClipboardIcon.tsx
similarity index 100%
rename from apps/docs/src/components/icons/ClipboardIcon.jsx
rename to apps/docs/src/components/icons/ClipboardIcon.tsx
diff --git a/apps/docs/src/components/icons/CogIcon.jsx b/apps/docs/src/components/icons/CogIcon.tsx
similarity index 100%
rename from apps/docs/src/components/icons/CogIcon.jsx
rename to apps/docs/src/components/icons/CogIcon.tsx
diff --git a/apps/docs/src/components/icons/CopyIcon.jsx b/apps/docs/src/components/icons/CopyIcon.tsx
similarity index 100%
rename from apps/docs/src/components/icons/CopyIcon.jsx
rename to apps/docs/src/components/icons/CopyIcon.tsx
diff --git a/apps/docs/src/components/icons/DiscordIcon.jsx b/apps/docs/src/components/icons/DiscordIcon.tsx
similarity index 100%
rename from apps/docs/src/components/icons/DiscordIcon.jsx
rename to apps/docs/src/components/icons/DiscordIcon.tsx
diff --git a/apps/docs/src/components/icons/DocumentIcon.jsx b/apps/docs/src/components/icons/DocumentIcon.tsx
similarity index 100%
rename from apps/docs/src/components/icons/DocumentIcon.jsx
rename to apps/docs/src/components/icons/DocumentIcon.tsx
diff --git a/apps/docs/src/components/icons/EnvelopeIcon.jsx b/apps/docs/src/components/icons/EnvelopeIcon.tsx
similarity index 100%
rename from apps/docs/src/components/icons/EnvelopeIcon.jsx
rename to apps/docs/src/components/icons/EnvelopeIcon.tsx
diff --git a/apps/docs/src/components/icons/FaceSmileIcon.jsx b/apps/docs/src/components/icons/FaceSmileIcon.tsx
similarity index 100%
rename from apps/docs/src/components/icons/FaceSmileIcon.jsx
rename to apps/docs/src/components/icons/FaceSmileIcon.tsx
diff --git a/apps/docs/src/components/icons/FolderIcon.jsx b/apps/docs/src/components/icons/FolderIcon.tsx
similarity index 100%
rename from apps/docs/src/components/icons/FolderIcon.jsx
rename to apps/docs/src/components/icons/FolderIcon.tsx
diff --git a/apps/docs/src/components/icons/GitHubIcon.jsx b/apps/docs/src/components/icons/GitHubIcon.tsx
similarity index 100%
rename from apps/docs/src/components/icons/GitHubIcon.jsx
rename to apps/docs/src/components/icons/GitHubIcon.tsx
diff --git a/apps/docs/src/components/icons/LinkIcon.jsx b/apps/docs/src/components/icons/LinkIcon.tsx
similarity index 100%
rename from apps/docs/src/components/icons/LinkIcon.jsx
rename to apps/docs/src/components/icons/LinkIcon.tsx
diff --git a/apps/docs/src/components/icons/ListIcon.jsx b/apps/docs/src/components/icons/ListIcon.tsx
similarity index 100%
rename from apps/docs/src/components/icons/ListIcon.jsx
rename to apps/docs/src/components/icons/ListIcon.tsx
diff --git a/apps/docs/src/components/icons/MagnifyingGlassIcon.jsx b/apps/docs/src/components/icons/MagnifyingGlassIcon.tsx
similarity index 100%
rename from apps/docs/src/components/icons/MagnifyingGlassIcon.jsx
rename to apps/docs/src/components/icons/MagnifyingGlassIcon.tsx
diff --git a/apps/docs/src/components/icons/MapPinIcon.jsx b/apps/docs/src/components/icons/MapPinIcon.tsx
similarity index 100%
rename from apps/docs/src/components/icons/MapPinIcon.jsx
rename to apps/docs/src/components/icons/MapPinIcon.tsx
diff --git a/apps/docs/src/components/icons/PackageIcon.jsx b/apps/docs/src/components/icons/PackageIcon.tsx
similarity index 100%
rename from apps/docs/src/components/icons/PackageIcon.jsx
rename to apps/docs/src/components/icons/PackageIcon.tsx
diff --git a/apps/docs/src/components/icons/PaperAirplaneIcon.jsx b/apps/docs/src/components/icons/PaperAirplaneIcon.tsx
similarity index 100%
rename from apps/docs/src/components/icons/PaperAirplaneIcon.jsx
rename to apps/docs/src/components/icons/PaperAirplaneIcon.tsx
diff --git a/apps/docs/src/components/icons/PaperClipIcon.jsx b/apps/docs/src/components/icons/PaperClipIcon.tsx
similarity index 100%
rename from apps/docs/src/components/icons/PaperClipIcon.jsx
rename to apps/docs/src/components/icons/PaperClipIcon.tsx
diff --git a/apps/docs/src/components/icons/ShapesIcon.jsx b/apps/docs/src/components/icons/ShapesIcon.tsx
similarity index 100%
rename from apps/docs/src/components/icons/ShapesIcon.jsx
rename to apps/docs/src/components/icons/ShapesIcon.tsx
diff --git a/apps/docs/src/components/icons/ShirtIcon.jsx b/apps/docs/src/components/icons/ShirtIcon.tsx
similarity index 100%
rename from apps/docs/src/components/icons/ShirtIcon.jsx
rename to apps/docs/src/components/icons/ShirtIcon.tsx
diff --git a/apps/docs/src/components/icons/SquaresPlusIcon.jsx b/apps/docs/src/components/icons/SquaresPlusIcon.tsx
similarity index 100%
rename from apps/docs/src/components/icons/SquaresPlusIcon.jsx
rename to apps/docs/src/components/icons/SquaresPlusIcon.tsx
diff --git a/apps/docs/src/components/icons/TagIcon.jsx b/apps/docs/src/components/icons/TagIcon.tsx
similarity index 100%
rename from apps/docs/src/components/icons/TagIcon.jsx
rename to apps/docs/src/components/icons/TagIcon.tsx
diff --git a/apps/docs/src/components/icons/TwitterIcon.jsx b/apps/docs/src/components/icons/TwitterIcon.tsx
similarity index 100%
rename from apps/docs/src/components/icons/TwitterIcon.jsx
rename to apps/docs/src/components/icons/TwitterIcon.tsx
diff --git a/apps/docs/src/components/icons/UserIcon.jsx b/apps/docs/src/components/icons/UserIcon.tsx
similarity index 100%
rename from apps/docs/src/components/icons/UserIcon.jsx
rename to apps/docs/src/components/icons/UserIcon.tsx
diff --git a/apps/docs/src/components/icons/UsersIcon.jsx b/apps/docs/src/components/icons/UsersIcon.tsx
similarity index 100%
rename from apps/docs/src/components/icons/UsersIcon.jsx
rename to apps/docs/src/components/icons/UsersIcon.tsx
diff --git a/apps/docs/src/components/mdx.jsx b/apps/docs/src/components/mdx.tsx
similarity index 100%
rename from apps/docs/src/components/mdx.jsx
rename to apps/docs/src/components/mdx.tsx
diff --git a/apps/docs/src/lib/remToPx.js b/apps/docs/src/lib/remToPx.ts
similarity index 100%
rename from apps/docs/src/lib/remToPx.js
rename to apps/docs/src/lib/remToPx.ts
diff --git a/apps/docs/src/utils/useExpiringState.jsx b/apps/docs/src/utils/useExpiringState.ts
similarity index 100%
rename from apps/docs/src/utils/useExpiringState.jsx
rename to apps/docs/src/utils/useExpiringState.ts
diff --git a/apps/docs/src/utils/usePostHog.jsx b/apps/docs/src/utils/usePostHog.tsx
similarity index 99%
rename from apps/docs/src/utils/usePostHog.jsx
rename to apps/docs/src/utils/usePostHog.tsx
index d393897e7..be4c77ecf 100644
--- a/apps/docs/src/utils/usePostHog.jsx
+++ b/apps/docs/src/utils/usePostHog.tsx
@@ -57,4 +57,5 @@ export function PostHogAnalytics() {
}
}, [user])
+ return null
}
diff --git a/apps/docs/src/utils/useUser.jsx b/apps/docs/src/utils/useUser.tsx
similarity index 99%
rename from apps/docs/src/utils/useUser.jsx
rename to apps/docs/src/utils/useUser.tsx
index 4eefade62..bb055ec19 100644
--- a/apps/docs/src/utils/useUser.jsx
+++ b/apps/docs/src/utils/useUser.tsx
@@ -67,6 +67,7 @@ export const CustomUserContextProvider = (props) => {
useEffect(() => {
async function getUserCustom() {
+ // @ts-ignore
const { data: teams, teamsError } = await supabase
.from('users_teams')
.select('*')
diff --git a/apps/docs/tailwind.config.js b/apps/docs/tailwind.config.js
index 0dacad433..b9136a39f 100644
--- a/apps/docs/tailwind.config.js
+++ b/apps/docs/tailwind.config.js
@@ -1,6 +1,6 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
- content: ['./src/**/*.{js,mjs,jsx,mdx}'],
+ content: ['./src/**/*.{js,ts,mjs,jsx,tsx,mdx}'],
darkMode: 'class',
theme: {
fontSize: {
diff --git a/apps/docs/tsconfig.json b/apps/docs/tsconfig.json
new file mode 100644
index 000000000..f0181ec62
--- /dev/null
+++ b/apps/docs/tsconfig.json
@@ -0,0 +1,32 @@
+{
+ "compilerOptions": {
+ "target": "es6",
+ "lib": ["dom", "dom.iterable", "esnext"],
+ "allowJs": true,
+ "skipLibCheck": true,
+ "strict": false, // originally true
+ "forceConsistentCasingInFileNames": true,
+ "noEmit": true,
+ "esModuleInterop": true,
+ "module": "esnext",
+ "moduleResolution": "node", // originally "bundler"
+ "resolveJsonModule": true,
+ "isolatedModules": true,
+ "jsx": "preserve",
+ "incremental": true,
+ "plugins": [
+ {
+ "name": "next"
+ }
+ ],
+ "paths": {
+ "@/*": ["./src/*"]
+ }
+ },
+ "include": [
+ "next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
+ "exclude": [
+ "node_modules",
+ "src/code"
+ ]
+}
diff --git a/apps/docs/typestat.json b/apps/docs/typestat.json
new file mode 100644
index 000000000..402e7db59
--- /dev/null
+++ b/apps/docs/typestat.json
@@ -0,0 +1,17 @@
+{
+ "files": {
+ "renameExtensions": true
+ },
+ "fixes": {
+ "incompleteTypes": true,
+ "missingProperties": true,
+ "noImplicitAny": true
+ },
+ "cleanups": {
+ "suppressTypeErrors": true
+ },
+ "include": [
+ "src/**/*.{js,jsx}"
+ ],
+ "project": "./tsconfig.json"
+}
\ No newline at end of file