mirror of
https://github.com/supabase/supabase.git
synced 2026-05-06 08:56:46 -04:00
chore: Bump Typescript to v6 (#44204)
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
"dev": "next dev --turbopack --port 3003",
|
||||
"dev:full": "concurrently \"pnpm dev\" \"pnpm content:dev\"",
|
||||
"build": "pnpm run content:build && pnpm run build:registry && next build --turbopack",
|
||||
"build:registry": "tsx --tsconfig ./tsconfig.scripts.json ./scripts/build-registry.mts && prettier --log-level silent --write \"registry/**/*.{ts,tsx,mdx}\" --cache",
|
||||
"build:registry": "tsx ./scripts/build-registry.mts && prettier --log-level silent --write \"registry/**/*.{ts,tsx,mdx}\" --cache",
|
||||
"start": "next start",
|
||||
"lint": "eslint .",
|
||||
"content:dev": "contentlayer2 dev",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ErrorDisplay } from 'ui-patterns/ErrorDisplay'
|
||||
import { ErrorDisplay } from 'ui-patterns/ErrorDisplay/ErrorDisplay'
|
||||
|
||||
export default function ErrorDisplayDemo() {
|
||||
return (
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ErrorDisplay } from 'ui-patterns/ErrorDisplay'
|
||||
import { ErrorDisplay } from 'ui-patterns/ErrorDisplay/ErrorDisplay'
|
||||
|
||||
export default function ErrorDisplayWithChildren() {
|
||||
return (
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
{
|
||||
"$schema": "https://json.schemastore.org/tsconfig",
|
||||
"display": "Default",
|
||||
"compilerOptions": {
|
||||
"composite": false,
|
||||
"declaration": true,
|
||||
"declarationMap": true,
|
||||
"esModuleInterop": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"inlineSources": false,
|
||||
"isolatedModules": true,
|
||||
"moduleResolution": "node",
|
||||
"noUnusedLocals": false,
|
||||
"noUnusedParameters": false,
|
||||
"preserveWatchOutput": true,
|
||||
"skipLibCheck": true,
|
||||
"strict": true
|
||||
},
|
||||
"exclude": ["node_modules"]
|
||||
}
|
||||
@@ -1,40 +1,23 @@
|
||||
{
|
||||
"$schema": "https://json.schemastore.org/tsconfig",
|
||||
"extends": "tsconfig/base.json",
|
||||
"extends": "tsconfig/nextjs.json",
|
||||
"compilerOptions": {
|
||||
"target": "es5",
|
||||
"allowJs": false,
|
||||
"lib": ["dom", "dom.iterable", "esnext"],
|
||||
"allowJs": true,
|
||||
"skipLibCheck": true,
|
||||
"strict": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"noEmit": true,
|
||||
"incremental": true,
|
||||
"esModuleInterop": true,
|
||||
"module": "esnext",
|
||||
"moduleResolution": "bundler",
|
||||
"resolveJsonModule": true,
|
||||
"isolatedModules": true,
|
||||
"jsx": "preserve",
|
||||
"paths": {
|
||||
"@/*": ["./*"],
|
||||
"@ui/*": ["./../../packages/ui/src/*"], // handle ui package paths
|
||||
"contentlayer/generated": ["./.contentlayer/generated"],
|
||||
"icons/*": ["./../../packages/icons/*"]
|
||||
},
|
||||
"plugins": [
|
||||
{
|
||||
"name": "next"
|
||||
}
|
||||
]
|
||||
"plugins": [{ "name": "next" }]
|
||||
},
|
||||
"include": [
|
||||
"next-env.d.ts",
|
||||
"**/*.ts",
|
||||
"**/*.tsx",
|
||||
".next/types/**/*.ts",
|
||||
".contentlayer/generated",
|
||||
"./../../packages/ui/src/**/*.d.ts"
|
||||
".contentlayer/generated"
|
||||
],
|
||||
"exclude": ["node_modules", "./scripts/build-registry.mts"]
|
||||
}
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
{
|
||||
"$schema": "https://json.schemastore.org/tsconfig",
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"target": "es6",
|
||||
"module": "ESNext",
|
||||
"moduleResolution": "node",
|
||||
"esModuleInterop": true,
|
||||
"isolatedModules": false
|
||||
},
|
||||
"include": [".contentlayer/generated", "scripts/**/*.ts"],
|
||||
"exclude": ["node_modules"]
|
||||
}
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
declare module '*.scss' {
|
||||
export const styles: Record<string, string>
|
||||
export default styles
|
||||
}
|
||||
@@ -1,18 +1,17 @@
|
||||
import '@code-hike/mdx/styles'
|
||||
import '@code-hike/mdx/styles.css'
|
||||
import 'config/code-hike.scss'
|
||||
import 'ui-patterns/ShimmeringLoader/index.css'
|
||||
import '../styles/main.scss'
|
||||
import '../styles/new-docs.scss'
|
||||
import '../styles/prism-okaidia.scss'
|
||||
|
||||
import { TelemetryTagManager } from 'common'
|
||||
|
||||
import { genFaviconData } from 'common/MetaFavicons/app-router'
|
||||
import type { Metadata, Viewport } from 'next'
|
||||
import { GlobalProviders } from '~/features/app.providers'
|
||||
import { TopNavSkeleton } from '~/layouts/MainSkeleton'
|
||||
import { BASE_PATH, IS_PRODUCTION } from '~/lib/constants'
|
||||
import { getCustomContent } from '~/lib/custom-content/getCustomContent'
|
||||
import { TelemetryTagManager } from 'common'
|
||||
import { genFaviconData } from 'common/MetaFavicons/app-router'
|
||||
import type { Metadata, Viewport } from 'next'
|
||||
|
||||
const { metadataApplicationName, metadataTitle } = getCustomContent([
|
||||
'metadata:application_name',
|
||||
|
||||
@@ -92,7 +92,7 @@
|
||||
"mdast-util-to-string": "^3.1.1",
|
||||
"micromark-extension-gfm": "^2.0.3",
|
||||
"micromark-extension-mdxjs": "^1.0.0",
|
||||
"next": "catalog:",
|
||||
"next": "^15.5.14",
|
||||
"next-mdx-remote": "^6.0.0",
|
||||
"next-plugin-yaml": "^1.0.1",
|
||||
"next-themes": "^0.3.0",
|
||||
|
||||
+7
-29
@@ -1,40 +1,18 @@
|
||||
{
|
||||
"$schema": "https://json.schemastore.org/tsconfig",
|
||||
"extends": "tsconfig/nextjs.json",
|
||||
"compilerOptions": {
|
||||
"incremental": true,
|
||||
"noImplicitAny": false,
|
||||
"allowJs": true,
|
||||
"lib": ["dom", "dom.iterable", "esnext"],
|
||||
"paths": {
|
||||
// @deprecated: use @/ instead of ~/
|
||||
"~/*": ["./*"],
|
||||
"@/*": ["./*"],
|
||||
"@ui/*": ["./../../packages/ui/src/*"]
|
||||
"@/*": ["./*"]
|
||||
},
|
||||
"target": "ES2021",
|
||||
"lib": ["dom", "dom.iterable", "esnext"],
|
||||
"allowJs": true,
|
||||
"skipLibCheck": true,
|
||||
"strict": false,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"noEmit": true,
|
||||
"esModuleInterop": true,
|
||||
"moduleResolution": "bundler",
|
||||
"resolveJsonModule": true,
|
||||
"isolatedModules": true,
|
||||
"jsx": "preserve",
|
||||
"module": "esnext",
|
||||
"plugins": [
|
||||
{
|
||||
"name": "next"
|
||||
}
|
||||
],
|
||||
"plugins": [{ "name": "next" }],
|
||||
"strictNullChecks": true
|
||||
},
|
||||
"include": [
|
||||
"next-env.d.ts",
|
||||
"**/*.ts",
|
||||
"**/*.tsx",
|
||||
"pages/guides/append-test.js",
|
||||
".next/types/**/*.ts",
|
||||
"./../../packages/ui/src/**/*.d.ts"
|
||||
],
|
||||
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
|
||||
"exclude": ["node_modules", "examples"]
|
||||
}
|
||||
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
declare module '*.scss' {
|
||||
export const styles: Record<string, string>
|
||||
export default styles
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
import path from 'path'
|
||||
import { getHighlighter, loadTheme } from '@shikijs/compat'
|
||||
import { defineDocumentType, defineNestedType, makeSource } from 'contentlayer2/source-files'
|
||||
import path from 'path'
|
||||
import rehypeAutolinkHeadings from 'rehype-autolink-headings'
|
||||
import rehypePrettyCode from 'rehype-pretty-code'
|
||||
import rehypeSlug from 'rehype-slug'
|
||||
@@ -157,6 +157,7 @@ export const Doc = defineDocumentType(() => ({
|
||||
}))
|
||||
|
||||
export default makeSource({
|
||||
disableImportAliasWarning: true,
|
||||
contentDirPath: './content',
|
||||
documentTypes: [Doc],
|
||||
mdx: {
|
||||
|
||||
@@ -7,13 +7,13 @@
|
||||
"preinstall": "npx only-allow pnpm",
|
||||
"dev": "next dev --port 3007",
|
||||
"build": "pnpm run content:build && next build --turbopack",
|
||||
"internal:sync": "tsx --tsconfig ./tsconfig.scripts.json ./scripts/sync-internal-content.mts",
|
||||
"internal:sync": "tsx ./scripts/sync-internal-content.mts",
|
||||
"start": "next start",
|
||||
"lint": "eslint .",
|
||||
"lint:mdx": "supa-mdx-lint content --config ../../supa-mdx-lint.config.toml",
|
||||
"content:build": "contentlayer2 build",
|
||||
"clean": "rimraf node_modules .next .turbo tsconfig.tsbuildinfo",
|
||||
"typecheck": "contentlayer2 build && tsc --noEmit -p tsconfig.json"
|
||||
"typecheck": "contentlayer2 build && tsc --noEmit"
|
||||
},
|
||||
"dependencies": {
|
||||
"common": "workspace:*",
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
{
|
||||
"$schema": "https://json.schemastore.org/tsconfig",
|
||||
"display": "Default",
|
||||
"compilerOptions": {
|
||||
"composite": false,
|
||||
"declaration": true,
|
||||
"declarationMap": true,
|
||||
"esModuleInterop": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"inlineSources": false,
|
||||
"isolatedModules": true,
|
||||
"moduleResolution": "node",
|
||||
"noUnusedLocals": false,
|
||||
"noUnusedParameters": false,
|
||||
"preserveWatchOutput": true,
|
||||
"skipLibCheck": true,
|
||||
"strict": true
|
||||
},
|
||||
"exclude": ["node_modules"]
|
||||
}
|
||||
@@ -1,40 +1,24 @@
|
||||
{
|
||||
"$schema": "https://json.schemastore.org/tsconfig",
|
||||
"extends": "tsconfig/base.json",
|
||||
"extends": "tsconfig/nextjs.json",
|
||||
"compilerOptions": {
|
||||
"target": "es5",
|
||||
"lib": ["dom", "dom.iterable", "esnext"],
|
||||
"allowJs": true,
|
||||
"skipLibCheck": true,
|
||||
"strict": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"noEmit": true,
|
||||
"incremental": true,
|
||||
"esModuleInterop": true,
|
||||
"module": "esnext",
|
||||
"moduleResolution": "bundler",
|
||||
"resolveJsonModule": true,
|
||||
"isolatedModules": true,
|
||||
"jsx": "preserve",
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
// @deprecated: Don't import directly without suffix. Use @/ always.
|
||||
"*": ["./*"],
|
||||
"@/*": ["./*"],
|
||||
"@ui/*": ["./../../packages/ui/src/*"], // handle ui package paths
|
||||
"contentlayer/generated": ["./.contentlayer/generated"]
|
||||
},
|
||||
"plugins": [
|
||||
{
|
||||
"name": "next"
|
||||
}
|
||||
]
|
||||
"plugins": [{ "name": "next" }],
|
||||
"lib": ["dom", "dom.iterable", "esnext"],
|
||||
"allowJs": false
|
||||
},
|
||||
"include": [
|
||||
"next-env.d.ts",
|
||||
"**/*.ts",
|
||||
"**/*.tsx",
|
||||
".next/types/**/*.ts",
|
||||
".contentlayer/generated",
|
||||
"./../../packages/ui/src/**/*.d.ts"
|
||||
".contentlayer/generated"
|
||||
],
|
||||
"exclude": ["node_modules", "./scripts/build-registry.mts"]
|
||||
}
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
{
|
||||
"$schema": "https://json.schemastore.org/tsconfig",
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"target": "es6",
|
||||
"module": "ESNext",
|
||||
"moduleResolution": "node",
|
||||
"esModuleInterop": true,
|
||||
"isolatedModules": false
|
||||
},
|
||||
"include": [".contentlayer/generated", "scripts/**/*.ts"],
|
||||
"exclude": ["node_modules"]
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
'use client'
|
||||
|
||||
import { useTrack } from 'lib/telemetry/track'
|
||||
import { ErrorDisplay, SupportFormParams } from 'ui-patterns/ErrorDisplay'
|
||||
import { ErrorDisplay, SupportFormParams } from 'ui-patterns/ErrorDisplay/ErrorDisplay'
|
||||
|
||||
import { getMappingForError } from './ErrorMatcher.utils'
|
||||
|
||||
|
||||
@@ -204,6 +204,7 @@
|
||||
"raw-loader": "^4.0.2",
|
||||
"require-in-the-middle": "^8.0.0",
|
||||
"tailwindcss": "catalog:",
|
||||
"tsconfig": "workspace:*",
|
||||
"tsx": "catalog:",
|
||||
"typescript": "catalog:",
|
||||
"vite": "catalog:",
|
||||
|
||||
@@ -1,44 +1,17 @@
|
||||
{
|
||||
"$schema": "https://json.schemastore.org/tsconfig",
|
||||
"extends": "tsconfig/nextjs.json",
|
||||
"compilerOptions": {
|
||||
"target": "ES2021",
|
||||
"lib": ["dom", "dom.iterable", "esnext"],
|
||||
"allowJs": false,
|
||||
"skipLibCheck": true,
|
||||
"strict": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"noEmit": true,
|
||||
"esModuleInterop": true,
|
||||
"module": "esnext",
|
||||
"moduleResolution": "bundler",
|
||||
"resolveJsonModule": true,
|
||||
"isolatedModules": true,
|
||||
"jsx": "react-jsx",
|
||||
// @deprecated: use @/ instead of importing from root
|
||||
"baseUrl": ".",
|
||||
"downlevelIteration": true,
|
||||
"incremental": true,
|
||||
"lib": ["dom", "dom.iterable", "esnext"],
|
||||
"paths": {
|
||||
// @deprecated: Don't import directly without suffix. Use @/ always.
|
||||
"*": ["./*"],
|
||||
"@/*": ["./*"],
|
||||
"@ui/*": ["./../../packages/ui/src/*"] // handle ui package paths
|
||||
},
|
||||
"useDefineForClassFields": true,
|
||||
"plugins": [
|
||||
{
|
||||
"name": "next"
|
||||
}
|
||||
],
|
||||
"noErrorTruncation": true
|
||||
"plugins": [{ "name": "next" }]
|
||||
},
|
||||
"include": [
|
||||
"next-env.d.ts",
|
||||
"**/*.ts",
|
||||
"**/*.tsx",
|
||||
"**/*.js",
|
||||
"**/*.jsx",
|
||||
".next/types/**/*.ts",
|
||||
"./../../packages/ui/src/**/*.d.ts",
|
||||
".next/dev/types/**/*.ts",
|
||||
".next/dev/dev/types/**/*.ts"
|
||||
],
|
||||
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
|
||||
"exclude": ["node_modules", "public/deno/*.ts"]
|
||||
}
|
||||
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
declare module '*.scss' {
|
||||
export const styles: Record<string, string>
|
||||
export default styles
|
||||
}
|
||||
@@ -7,8 +7,8 @@
|
||||
"preinstall": "npx only-allow pnpm",
|
||||
"dev": "next dev --port 3004",
|
||||
"build": "pnpm run content:build && pnpm run build:registry && pnpm run build:llms && next build --turbopack",
|
||||
"build:registry": "rimraf -G public/r/* && tsx --tsconfig ./tsconfig.scripts.json ./scripts/build-registry.mts && shadcn build public/r/registry.json && tsx scripts/clean-registry.ts",
|
||||
"build:llms": "tsx --tsconfig ./tsconfig.scripts.json ./scripts/build-llms-txt.ts",
|
||||
"build:registry": "rimraf -G public/r/* && tsx ./scripts/build-registry.mts && shadcn build public/r/registry.json && tsx scripts/clean-registry.ts",
|
||||
"build:llms": "tsx ./scripts/build-llms-txt.ts",
|
||||
"start": "next start",
|
||||
"lint": "eslint .",
|
||||
"lint:mdx": "supa-mdx-lint content --config ../../supa-mdx-lint.config.toml",
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
'use client'
|
||||
|
||||
import { Button } from '@ui/components/shadcn/ui/button'
|
||||
import { RefreshCcw } from 'lucide-react'
|
||||
import { useEffect, useState } from 'react'
|
||||
|
||||
import { generateFullName } from './utils'
|
||||
import { RealtimeCursors } from '@/registry/default/blocks/realtime-cursor/components/realtime-cursors'
|
||||
import { Button } from '@/registry/default/components/ui/button'
|
||||
import { Input } from '@/registry/default/components/ui/input'
|
||||
import { Label } from '@/registry/default/components/ui/label'
|
||||
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
{
|
||||
"$schema": "https://json.schemastore.org/tsconfig",
|
||||
"display": "Default",
|
||||
"compilerOptions": {
|
||||
"composite": false,
|
||||
"declaration": true,
|
||||
"declarationMap": true,
|
||||
"esModuleInterop": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"inlineSources": false,
|
||||
"isolatedModules": true,
|
||||
"moduleResolution": "node",
|
||||
"noUnusedLocals": false,
|
||||
"noUnusedParameters": false,
|
||||
"preserveWatchOutput": true,
|
||||
"skipLibCheck": true,
|
||||
"strict": true
|
||||
},
|
||||
"exclude": ["node_modules"]
|
||||
}
|
||||
@@ -1,39 +1,21 @@
|
||||
{
|
||||
"$schema": "https://json.schemastore.org/tsconfig",
|
||||
"extends": "tsconfig/base.json",
|
||||
"extends": "tsconfig/nextjs.json",
|
||||
"compilerOptions": {
|
||||
"target": "es5",
|
||||
"allowJs": false,
|
||||
"lib": ["dom", "dom.iterable", "esnext"],
|
||||
"allowJs": true,
|
||||
"skipLibCheck": true,
|
||||
"strict": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"noEmit": true,
|
||||
"incremental": true,
|
||||
"esModuleInterop": true,
|
||||
"module": "esnext",
|
||||
"moduleResolution": "bundler",
|
||||
"resolveJsonModule": true,
|
||||
"isolatedModules": true,
|
||||
"jsx": "preserve",
|
||||
"paths": {
|
||||
"@/*": ["./*"],
|
||||
"@ui/*": ["./../../packages/ui/src/*"], // handle ui package paths
|
||||
"contentlayer/generated": ["./.contentlayer/generated"]
|
||||
},
|
||||
"plugins": [
|
||||
{
|
||||
"name": "next"
|
||||
}
|
||||
]
|
||||
"plugins": [{ "name": "next" }]
|
||||
},
|
||||
"include": [
|
||||
"next-env.d.ts",
|
||||
"**/*.ts",
|
||||
"**/*.tsx",
|
||||
".next/types/**/*.ts",
|
||||
".contentlayer/generated",
|
||||
"./../../packages/ui/src/**/*.d.ts"
|
||||
".contentlayer/generated"
|
||||
],
|
||||
"exclude": ["node_modules", "./scripts/build-registry.mts"]
|
||||
}
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
{
|
||||
"$schema": "https://json.schemastore.org/tsconfig",
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"target": "es6",
|
||||
"module": "ESNext",
|
||||
"moduleResolution": "node",
|
||||
"esModuleInterop": true,
|
||||
"isolatedModules": false
|
||||
},
|
||||
"include": [".contentlayer/generated", "scripts/**/*.ts"],
|
||||
"exclude": ["node_modules"]
|
||||
}
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
declare module '*.css' {
|
||||
export const styles: Record<string, string>
|
||||
export default styles
|
||||
}
|
||||
@@ -1,12 +1,13 @@
|
||||
import '@code-hike/mdx/styles'
|
||||
import '@code-hike/mdx/styles.css'
|
||||
import 'config/code-hike.scss'
|
||||
import '../styles/index.css'
|
||||
|
||||
import { Metadata } from 'next'
|
||||
import { APP_NAME, DEFAULT_META_DESCRIPTION } from '~/lib/constants'
|
||||
import Providers from './providers'
|
||||
import type { Viewport } from 'next'
|
||||
|
||||
import Providers from './providers'
|
||||
import { APP_NAME, DEFAULT_META_DESCRIPTION } from '@/lib/constants'
|
||||
|
||||
const site_title = `${APP_NAME} | The Open Source Firebase Alternative`
|
||||
|
||||
export const metadata: Metadata = {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
'use client'
|
||||
|
||||
import { Input } from '@ui/components/shadcn/ui/input'
|
||||
import { Input_Shadcn_ as Input } from 'ui'
|
||||
import { SearchIcon } from 'lucide-react'
|
||||
import { Badge } from 'ui'
|
||||
import { useEvents } from '~/app/events/context'
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
"mdast-util-to-markdown": "^1.5.0",
|
||||
"micromark-extension-gfm": "^2.0.3",
|
||||
"micromark-extension-mdxjs": "^1.0.1",
|
||||
"next": "catalog:",
|
||||
"next": "^15.5.14",
|
||||
"next-mdx-remote": "^6.0.0",
|
||||
"next-seo": "^6.5.0",
|
||||
"next-themes": "^0.3.0",
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
import '@code-hike/mdx/styles'
|
||||
import '@code-hike/mdx/styles.css'
|
||||
import 'config/code-hike.scss'
|
||||
import '../styles/index.css'
|
||||
|
||||
import { WwwCommandMenu } from '~/components/CommandMenu'
|
||||
import { API_URL, APP_NAME, DEFAULT_META_DESCRIPTION } from '~/lib/constants'
|
||||
import {
|
||||
AuthProvider,
|
||||
FeatureFlagProvider,
|
||||
@@ -11,6 +13,10 @@ import {
|
||||
ThemeProvider,
|
||||
useThemeSandbox,
|
||||
} from 'common'
|
||||
import MetaFaviconsPagesRouter, {
|
||||
DEFAULT_FAVICON_ROUTE,
|
||||
DEFAULT_FAVICON_THEME_COLOR,
|
||||
} from 'common/MetaFavicons/pages-router'
|
||||
import { DevToolbar, DevToolbarProvider } from 'dev-tools'
|
||||
import { DefaultSeo } from 'next-seo'
|
||||
import type { AppProps } from 'next/app'
|
||||
@@ -20,12 +26,6 @@ import { SonnerToaster, themes, TooltipProvider } from 'ui'
|
||||
import { CommandProvider } from 'ui-patterns/CommandMenu'
|
||||
import { useConsentToast } from 'ui-patterns/consent'
|
||||
|
||||
import MetaFaviconsPagesRouter, {
|
||||
DEFAULT_FAVICON_ROUTE,
|
||||
DEFAULT_FAVICON_THEME_COLOR,
|
||||
} from 'common/MetaFavicons/pages-router'
|
||||
import { WwwCommandMenu } from '~/components/CommandMenu'
|
||||
import { API_URL, APP_NAME, DEFAULT_META_DESCRIPTION } from '~/lib/constants'
|
||||
import useDarkLaunchWeeks from '../hooks/useDarkLaunchWeeks'
|
||||
import { useWwwCommandMenuTelemetry } from '../hooks/useWwwCommandMenuTelemetry'
|
||||
|
||||
|
||||
+12
-29
@@ -1,42 +1,25 @@
|
||||
{
|
||||
"$schema": "https://json.schemastore.org/tsconfig",
|
||||
"extends": "tsconfig/nextjs.json",
|
||||
"compilerOptions": {
|
||||
// @deprecated: use @/ instead of importing from root
|
||||
"baseUrl": ".",
|
||||
"allowJs": true,
|
||||
"lib": ["dom", "dom.iterable", "esnext"],
|
||||
"paths": {
|
||||
"contentlayer/generated": ["./.contentlayer/generated"],
|
||||
// ~/ is deprecated, use @/ instead
|
||||
// @deprecated: Don't import directly without suffix. Use @/ always.
|
||||
"*": ["./*"],
|
||||
// @deprecated: use @/ instead of importing from root
|
||||
"~/*": ["./*"],
|
||||
"@/*": ["./*"],
|
||||
"@ui/*": ["./../../packages/ui/src/*"]
|
||||
"contentlayer/generated": ["./.contentlayer/generated"]
|
||||
},
|
||||
"downlevelIteration": true,
|
||||
"target": "ES2021",
|
||||
"module": "esnext",
|
||||
"jsx": "preserve",
|
||||
"strict": true,
|
||||
"esModuleInterop": true,
|
||||
"skipLibCheck": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"lib": ["dom", "dom.iterable", "esnext"],
|
||||
"allowJs": true,
|
||||
"noEmit": true,
|
||||
"moduleResolution": "bundler",
|
||||
"resolveJsonModule": true,
|
||||
"isolatedModules": true,
|
||||
"incremental": true,
|
||||
"plugins": [
|
||||
{
|
||||
"name": "next"
|
||||
}
|
||||
]
|
||||
"plugins": [{ "name": "next" }]
|
||||
},
|
||||
"exclude": ["node_modules", "supabase"],
|
||||
"include": [
|
||||
"next-env.d.ts",
|
||||
"**/*.ts",
|
||||
"**/*.tsx",
|
||||
".next/types/**/*.ts",
|
||||
".contentlayer/generated",
|
||||
"./../../packages/ui/src/**/*.d.ts"
|
||||
]
|
||||
".contentlayer/generated"
|
||||
],
|
||||
"exclude": ["node_modules", "supabase"]
|
||||
}
|
||||
|
||||
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
declare module '*.css' {
|
||||
export const styles: Record<string, string>
|
||||
export default styles
|
||||
}
|
||||
|
||||
declare module '*.scss' {
|
||||
export const styles: Record<string, string>
|
||||
export default styles
|
||||
}
|
||||
|
||||
declare module 'swiper/css'
|
||||
declare module 'swiper/css/a11y'
|
||||
declare module 'swiper/css/navigation'
|
||||
declare module 'swiper/css/controller'
|
||||
@@ -6,8 +6,8 @@
|
||||
"exports": "./index.ts",
|
||||
"scripts": {
|
||||
"preinstall": "npx only-allow pnpm",
|
||||
"clean": "rimraf node_modules .next .turbo",
|
||||
"typecheck": "tsc --noEmit -p tsconfig.json"
|
||||
"clean": "rimraf node_modules .next .turbo tsconfig.tsbuildinfo",
|
||||
"typecheck": "tsc --noEmit"
|
||||
},
|
||||
"dependencies": {
|
||||
"@supabase/ssr": "^0.7.0",
|
||||
|
||||
@@ -1,27 +1,6 @@
|
||||
{
|
||||
"$schema": "https://json.schemastore.org/tsconfig",
|
||||
"extends": "tsconfig/react-library.json",
|
||||
"compilerOptions": {
|
||||
"composite": false,
|
||||
"declaration": true,
|
||||
"declarationMap": true,
|
||||
"esModuleInterop": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"inlineSources": false,
|
||||
"isolatedModules": true,
|
||||
"moduleResolution": "bundler",
|
||||
"noUnusedLocals": false,
|
||||
"noUnusedParameters": false,
|
||||
"preserveWatchOutput": true,
|
||||
"skipLibCheck": true,
|
||||
"strict": true,
|
||||
"target": "es5",
|
||||
"lib": ["dom", "dom.iterable", "esnext"],
|
||||
"allowJs": true,
|
||||
"noEmit": true,
|
||||
"incremental": true,
|
||||
"module": "esnext",
|
||||
"resolveJsonModule": true,
|
||||
"jsx": "preserve",
|
||||
"paths": {
|
||||
"@/*": ["./*"]
|
||||
}
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
"include": ["."],
|
||||
"exclude": ["dist", "build", "node_modules"],
|
||||
"compilerOptions": {
|
||||
"moduleResolution": "bundler",
|
||||
"types": ["./test/extensions.d.ts"]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,9 +7,9 @@
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"preinstall": "npx only-allow pnpm",
|
||||
"clean": "rimraf node_modules",
|
||||
"clean": "rimraf node_modules .turbo tsconfig.tsbuildinfo",
|
||||
"gen:types": "supabase gen types typescript --local >| ./database-types.ts",
|
||||
"typecheck_CURRENTLY_IGNORED": "tsc --noEmit"
|
||||
"typecheck": "tsc --noEmit"
|
||||
},
|
||||
"dependencies": {
|
||||
"@types/dat.gui": "^0.7.12",
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
{
|
||||
"extends": "tsconfig/react-library.json",
|
||||
"include": ["."],
|
||||
"exclude": ["dist", "build", "node_modules"],
|
||||
"compilerOptions": {
|
||||
"resolveJsonModule": true
|
||||
}
|
||||
"exclude": ["dist", "build", "node_modules"]
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
},
|
||||
"scripts": {
|
||||
"preinstall": "npx only-allow pnpm",
|
||||
"clean": "rimraf node_modules",
|
||||
"clean": "rimraf node_modules .turbo tsconfig.tsbuildinfo dist",
|
||||
"test": "vitest run",
|
||||
"test:watch": "vitest",
|
||||
"typecheck": "tsc --noEmit"
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
{
|
||||
"extends": "tsconfig/react-library.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "dist",
|
||||
"resolveJsonModule": true
|
||||
},
|
||||
"include": [".", "../ui/src/**/*.d.ts"],
|
||||
"exclude": ["dist", "node_modules"]
|
||||
}
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
{
|
||||
"extends": "tsconfig/base.json",
|
||||
"include": ["."],
|
||||
"exclude": ["dist", "build", "node_modules"],
|
||||
"compilerOptions": { "isolatedModules": false }
|
||||
"exclude": ["dist", "build", "node_modules"]
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"scripts": {
|
||||
"preinstall": "npx only-allow pnpm",
|
||||
"build:icons": "build-icons --templateSrc=./scripts/exportTemplate.mjs --renderUniqueKey --iconFileExtension=.ts --exportFileName=index.ts",
|
||||
"clean": "rimraf node_modules"
|
||||
"clean": "rimraf node_modules .turbo"
|
||||
},
|
||||
"dependencies": {
|
||||
"typescript": "catalog:",
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
{
|
||||
"extends": "tsconfig/react-library.json",
|
||||
"compilerOptions": {
|
||||
"resolveJsonModule": true
|
||||
},
|
||||
"include": ["."],
|
||||
"exclude": ["dist", "build", "node_modules"]
|
||||
}
|
||||
|
||||
@@ -7,13 +7,14 @@
|
||||
"repository": "supabase/supabase",
|
||||
"scripts": {
|
||||
"preinstall": "npx only-allow pnpm",
|
||||
"clean": "rimraf node_modules",
|
||||
"clean": "rimraf node_modules .turbo tsconfig.tsbuildinfo",
|
||||
"test": "run-s db:clean db:run test:run db:clean",
|
||||
"db:clean": "cd test/db && docker compose down",
|
||||
"db:run": "cd test/db && docker compose up --detach --wait",
|
||||
"test:run": "vitest run --coverage",
|
||||
"test:update": "vitest run --update",
|
||||
"lint": "tsc --noEmit"
|
||||
"lint": "tsc --noEmit",
|
||||
"typecheck": "tsc --noEmit"
|
||||
},
|
||||
"dependencies": {
|
||||
"zod": "catalog:"
|
||||
|
||||
@@ -1,10 +1,5 @@
|
||||
{
|
||||
"extends": "../tsconfig/base.json",
|
||||
"compilerOptions": {
|
||||
"module": "ESNext",
|
||||
"target": "ES2021",
|
||||
"moduleResolution": "bundler"
|
||||
},
|
||||
"include": ["."],
|
||||
"exclude": ["dist", "build", "node_modules"]
|
||||
}
|
||||
|
||||
@@ -6,7 +6,8 @@
|
||||
"types": "./index.ts",
|
||||
"scripts": {
|
||||
"preinstall": "npx only-allow pnpm",
|
||||
"clean": "rimraf node_modules"
|
||||
"clean": "rimraf node_modules .turbo tsconfig.tsbuildinfo",
|
||||
"typecheck": "tsc --noEmit"
|
||||
},
|
||||
"devDependencies": {
|
||||
"tsconfig": "workspace:"
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
{
|
||||
"extends": "tsconfig/react-library.json",
|
||||
"include": ["."],
|
||||
"exclude": ["dist", "build", "node_modules"],
|
||||
"compilerOptions": {
|
||||
"resolveJsonModule": true
|
||||
}
|
||||
"exclude": ["dist", "build", "node_modules"]
|
||||
}
|
||||
|
||||
@@ -1,18 +1,19 @@
|
||||
{
|
||||
"$schema": "https://json.schemastore.org/tsconfig",
|
||||
"display": "Default",
|
||||
"display": "Base tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"composite": false,
|
||||
"declaration": true,
|
||||
"declarationMap": true,
|
||||
"esModuleInterop": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"incremental": true,
|
||||
"inlineSources": false,
|
||||
"isolatedModules": true,
|
||||
"moduleResolution": "node",
|
||||
"noErrorTruncation": true,
|
||||
"noUnusedLocals": false,
|
||||
"noUnusedParameters": false,
|
||||
"preserveWatchOutput": true,
|
||||
"resolveJsonModule": true,
|
||||
"skipLibCheck": true,
|
||||
"strict": true
|
||||
},
|
||||
|
||||
@@ -3,20 +3,12 @@
|
||||
"display": "Next.js",
|
||||
"extends": "./base.json",
|
||||
"compilerOptions": {
|
||||
"target": "ES2021",
|
||||
"lib": ["dom", "dom.iterable", "esnext"],
|
||||
"allowJs": true,
|
||||
"skipLibCheck": true,
|
||||
"strict": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"declaration": false,
|
||||
"declarationMap": false,
|
||||
"jsx": "preserve",
|
||||
"noEmit": true,
|
||||
"incremental": true,
|
||||
"esModuleInterop": true,
|
||||
"module": "esnext",
|
||||
"resolveJsonModule": true,
|
||||
"isolatedModules": true,
|
||||
"jsx": "preserve"
|
||||
"module": "preserve",
|
||||
"target": "ES2021"
|
||||
},
|
||||
"include": ["src", "next-env.d.ts"],
|
||||
"exclude": ["node_modules"]
|
||||
}
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
"display": "React Library",
|
||||
"extends": "./base.json",
|
||||
"compilerOptions": {
|
||||
"lib": ["ES2015", "dom", "dom.iterable", "esnext"],
|
||||
"module": "ESNext",
|
||||
"target": "ES2021",
|
||||
"jsx": "react-jsx"
|
||||
"jsx": "react-jsx",
|
||||
"module": "preserve",
|
||||
"moduleResolution": "bundler",
|
||||
"target": "es2021"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
"preinstall": "npx only-allow pnpm",
|
||||
"test": "vitest",
|
||||
"test:coverage": "vitest --run --coverage",
|
||||
"clean": "rimraf node_modules",
|
||||
"clean": "rimraf node_modules .turbo tsconfig.tsbuildinfo",
|
||||
"typecheck": "tsc --noEmit",
|
||||
"gen:exports": "tsx ./scripts/update-exports.ts"
|
||||
},
|
||||
@@ -314,10 +314,6 @@
|
||||
"import": "./src/ErrorDisplay/ErrorDisplay.types.ts",
|
||||
"types": "./src/ErrorDisplay/ErrorDisplay.types.ts"
|
||||
},
|
||||
"./ErrorDisplay": {
|
||||
"import": "./src/ErrorDisplay/ErrorDisplay.tsx",
|
||||
"types": "./src/ErrorDisplay/ErrorDisplay.tsx"
|
||||
},
|
||||
"./ExpandableVideo": {
|
||||
"import": "./src/ExpandableVideo/index.tsx",
|
||||
"types": "./src/ExpandableVideo/index.tsx"
|
||||
@@ -462,6 +458,10 @@
|
||||
"import": "./src/McpUrlBuilder/utils/getMcpButtonData.ts",
|
||||
"types": "./src/McpUrlBuilder/utils/getMcpButtonData.ts"
|
||||
},
|
||||
"./McpUrlBuilder/utils/getMcpIconSrc.test": {
|
||||
"import": "./src/McpUrlBuilder/utils/getMcpIconSrc.test.ts",
|
||||
"types": "./src/McpUrlBuilder/utils/getMcpIconSrc.test.ts"
|
||||
},
|
||||
"./McpUrlBuilder/utils/getMcpIconSrc": {
|
||||
"import": "./src/McpUrlBuilder/utils/getMcpIconSrc.ts",
|
||||
"types": "./src/McpUrlBuilder/utils/getMcpIconSrc.ts"
|
||||
@@ -470,6 +470,10 @@
|
||||
"import": "./src/McpUrlBuilder/utils/getMcpUrl.ts",
|
||||
"types": "./src/McpUrlBuilder/utils/getMcpUrl.ts"
|
||||
},
|
||||
"./McpUrlBuilder/utils/mcpIconAssets": {
|
||||
"import": "./src/McpUrlBuilder/utils/mcpIconAssets.ts",
|
||||
"types": "./src/McpUrlBuilder/utils/mcpIconAssets.ts"
|
||||
},
|
||||
"./MetricCard": {
|
||||
"import": "./src/MetricCard/index.tsx",
|
||||
"types": "./src/MetricCard/index.tsx"
|
||||
@@ -498,6 +502,10 @@
|
||||
"import": "./src/MultiSelectDeprecated/index.tsx",
|
||||
"types": "./src/MultiSelectDeprecated/index.tsx"
|
||||
},
|
||||
"./MultipleCodeBlock/index.test": {
|
||||
"import": "./src/MultipleCodeBlock/index.test.tsx",
|
||||
"types": "./src/MultipleCodeBlock/index.test.tsx"
|
||||
},
|
||||
"./MultipleCodeBlock": {
|
||||
"import": "./src/MultipleCodeBlock/index.tsx",
|
||||
"types": "./src/MultipleCodeBlock/index.tsx"
|
||||
@@ -542,6 +550,10 @@
|
||||
"import": "./src/Row/Row.utils.ts",
|
||||
"types": "./src/Row/Row.utils.ts"
|
||||
},
|
||||
"./Row/index.test": {
|
||||
"import": "./src/Row/index.test.ts",
|
||||
"types": "./src/Row/index.test.ts"
|
||||
},
|
||||
"./Row": {
|
||||
"import": "./src/Row/index.tsx",
|
||||
"types": "./src/Row/index.tsx"
|
||||
@@ -586,6 +598,10 @@
|
||||
"import": "./src/SqlToRest/util.ts",
|
||||
"types": "./src/SqlToRest/util.ts"
|
||||
},
|
||||
"./StatusCode": {
|
||||
"import": "./src/StatusCode/index.tsx",
|
||||
"types": "./src/StatusCode/index.tsx"
|
||||
},
|
||||
"./ThemeToggle": {
|
||||
"import": "./src/ThemeToggle.tsx",
|
||||
"types": "./src/ThemeToggle.tsx"
|
||||
@@ -642,14 +658,18 @@
|
||||
"import": "./src/form/FormItemLayout/FormItemLayout.tsx",
|
||||
"types": "./src/form/FormItemLayout/FormItemLayout.tsx"
|
||||
},
|
||||
"./form/KeyValueFieldArray/KeyValueFieldArray": {
|
||||
"import": "./src/form/KeyValueFieldArray/KeyValueFieldArray.tsx",
|
||||
"types": "./src/form/KeyValueFieldArray/KeyValueFieldArray.tsx"
|
||||
},
|
||||
"./form/FormLayout2": {
|
||||
"import": "./src/form/FormLayout2.tsx",
|
||||
"types": "./src/form/FormLayout2.tsx"
|
||||
},
|
||||
"./form/KeyValueFieldArray/KeyValueFieldArray.test": {
|
||||
"import": "./src/form/KeyValueFieldArray/KeyValueFieldArray.test.tsx",
|
||||
"types": "./src/form/KeyValueFieldArray/KeyValueFieldArray.test.tsx"
|
||||
},
|
||||
"./form/KeyValueFieldArray/KeyValueFieldArray": {
|
||||
"import": "./src/form/KeyValueFieldArray/KeyValueFieldArray.tsx",
|
||||
"types": "./src/form/KeyValueFieldArray/KeyValueFieldArray.tsx"
|
||||
},
|
||||
"./form/Layout/FormLayout": {
|
||||
"import": "./src/form/Layout/FormLayout.tsx",
|
||||
"types": "./src/form/Layout/FormLayout.tsx"
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
{
|
||||
"extends": "tsconfig/react-library.json",
|
||||
"compilerOptions": {
|
||||
"resolveJsonModule": true,
|
||||
"incremental": true
|
||||
},
|
||||
"include": [".", "./../../packages/ui/src/**/*.d.ts", "../ui/src/components/Icons"],
|
||||
"include": ["."],
|
||||
"exclude": ["dist", "build", "node_modules"]
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
"transform-tokens": "node ./transformTokens.js",
|
||||
"extract-design-tokens": "node internals/tokens/extract-design-tokens.js",
|
||||
"generate-styles": "pnpm run extract-design-tokens && pnpm run transform-tokens && pnpm run cleanse-css-for-tailwind && pnpm run generate-demo-tailwind-classes",
|
||||
"clean": "rimraf node_modules",
|
||||
"clean": "rimraf node_modules .turbo tsconfig.tsbuildinfo",
|
||||
"test": "vitest",
|
||||
"test:ci": "vitest --run --coverage",
|
||||
"test:report": "open coverage/lcov-report/index.html"
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
'use client'
|
||||
|
||||
// @ts-ignore
|
||||
import curl from 'highlightjs-curl'
|
||||
import { noop } from 'lodash'
|
||||
import { Check, Copy } from 'lucide-react'
|
||||
|
||||
-4
@@ -1,4 +0,0 @@
|
||||
declare module 'highlightjs-curl' {
|
||||
const languageFunc: any
|
||||
export = languageFunc
|
||||
}
|
||||
@@ -1,8 +1,5 @@
|
||||
{
|
||||
"extends": "tsconfig/react-library.json",
|
||||
"compilerOptions": {
|
||||
"resolveJsonModule": true
|
||||
},
|
||||
"include": ["."],
|
||||
"exclude": ["dist", "build", "node_modules"]
|
||||
}
|
||||
|
||||
Generated
+251
-248
File diff suppressed because it is too large
Load Diff
+3
-1
@@ -21,7 +21,7 @@ catalog:
|
||||
recharts: ^2.15.4
|
||||
tailwindcss: 3.4.1
|
||||
tsx: 4.20.3
|
||||
typescript: ~5.9.0
|
||||
typescript: ~6.0.0
|
||||
valtio: ^1.12.0
|
||||
vite: ^7.3.1
|
||||
vitest: ^3.2.0
|
||||
@@ -50,6 +50,8 @@ minimumReleaseAgeExclude:
|
||||
- next
|
||||
- '@next/*'
|
||||
- h3
|
||||
- typescript
|
||||
- stripe-experiment-sync
|
||||
|
||||
onlyBuiltDependencies:
|
||||
- node-pty
|
||||
|
||||
Reference in New Issue
Block a user