From ea9356982a7408d3373f2850783db3b9427dbfcf Mon Sep 17 00:00:00 2001 From: Jonathan Summers-Muir Date: Mon, 4 Nov 2024 14:53:13 +0800 Subject: [PATCH] fix issues --- apps/studio/package.json | 2 +- apps/www/public/sitemap_www.xml | 316 ++++++++++++++++++++- package-lock.json | 19 +- packages/next-providers/package.json | 16 +- packages/next-providers/tsconfig.json | 8 + packages/next-providers/vercel-toolbar.tsx | 3 +- 6 files changed, 345 insertions(+), 19 deletions(-) create mode 100644 packages/next-providers/tsconfig.json diff --git a/apps/studio/package.json b/apps/studio/package.json index 8531d3db8fb..7f06b582ac1 100644 --- a/apps/studio/package.json +++ b/apps/studio/package.json @@ -78,6 +78,7 @@ "monaco-editor": "0.33.0", "motion-number": "^0.1.7", "next": "^14.2.10", + "next-providers": "*", "next-themes": "^0.3.0", "nuqs": "^1.17.8", "openai": "^4.20.1", @@ -119,7 +120,6 @@ "tus-js-client": "^4.1.0", "ui": "*", "ui-patterns": "*", - "next-providers": "*", "uuid": "^9.0.1", "valtio": "^1.12.0", "vite-tsconfig-paths": "^4.3.2", diff --git a/apps/www/public/sitemap_www.xml b/apps/www/public/sitemap_www.xml index 38cb13ed722..1405a4a7b53 100644 --- a/apps/www/public/sitemap_www.xml +++ b/apps/www/public/sitemap_www.xml @@ -241,13 +241,13 @@ - https://supabase.com/partners/integrations + https://supabase.com/partners/experts weekly 0.5 - https://supabase.com/partners/experts + https://supabase.com/partners/integrations weekly 0.5 @@ -2060,6 +2060,12 @@ 0.5 + + https://supabase.com/blog/supabase-clickhouse-partnership + weekly + 0.5 + + https://supabase.com/customers/berriai weekly @@ -2209,4 +2215,310 @@ weekly 0.5 + + + https://supabase.com/features/ai-integrations + weekly + 0.5 + + + + https://supabase.com/features/ai-query-assistance + weekly + 0.5 + + + + https://supabase.com/features/auth-captcha-protection + weekly + 0.5 + + + + https://supabase.com/features/auto-generated-graphql-api + weekly + 0.5 + + + + https://supabase.com/features/auto-generated-rest-api + weekly + 0.5 + + + + https://supabase.com/features/branching + weekly + 0.5 + + + + https://supabase.com/features/cdn + weekly + 0.5 + + + + https://supabase.com/features/cli + weekly + 0.5 + + + + https://supabase.com/features/custom-domains + weekly + 0.5 + + + + https://supabase.com/features/database-backups + weekly + 0.5 + + + + https://supabase.com/features/database-webhooks + weekly + 0.5 + + + + https://supabase.com/features/deno-edge-functions + weekly + 0.5 + + + + https://supabase.com/features/email-login + weekly + 0.5 + + + + https://supabase.com/features/file-storage + weekly + 0.5 + + + + https://supabase.com/features/fly-postgres + weekly + 0.5 + + + + https://supabase.com/features/foreign-key-selector + weekly + 0.5 + + + + https://supabase.com/features/image-transformations + weekly + 0.5 + + + + https://supabase.com/features/log-drains + weekly + 0.5 + + + + https://supabase.com/features/logs-analytics + weekly + 0.5 + + + + https://supabase.com/features/management-api + weekly + 0.5 + + + + https://supabase.com/features/multi-factor-authentication + weekly + 0.5 + + + + https://supabase.com/features/network-restrictions + weekly + 0.5 + + + + https://supabase.com/features/npm-compatibility + weekly + 0.5 + + + + https://supabase.com/features/passwordless-login-via-magicklink + weekly + 0.5 + + + + https://supabase.com/features/phone-logins + weekly + 0.5 + + + + https://supabase.com/features/policy-templates + weekly + 0.5 + + + + https://supabase.com/features/postgres-database + weekly + 0.5 + + + + https://supabase.com/features/postgres-extensions + weekly + 0.5 + + + + https://supabase.com/features/postgres-roles + weekly + 0.5 + + + + https://supabase.com/features/read-replicas + weekly + 0.5 + + + + https://supabase.com/features/realtime-broadcast + weekly + 0.5 + + + + https://supabase.com/features/realtime-postgres-changes + weekly + 0.5 + + + + https://supabase.com/features/realtime-presence + weekly + 0.5 + + + + https://supabase.com/features/regional-invocations + weekly + 0.5 + + + + https://supabase.com/features/reports-and-metrics + weekly + 0.5 + + + + https://supabase.com/features/resumable-uploads + weekly + 0.5 + + + + https://supabase.com/features/role-based-access-control + weekly + 0.5 + + + + https://supabase.com/features/row-level-security + weekly + 0.5 + + + + https://supabase.com/features/s3-compatibility + weekly + 0.5 + + + + https://supabase.com/features/security-and-performance-advisor + weekly + 0.5 + + + + https://supabase.com/features/server-side-auth + weekly + 0.5 + + + + https://supabase.com/features/smart-cdn + weekly + 0.5 + + + + https://supabase.com/features/soc-2-compliance + weekly + 0.5 + + + + https://supabase.com/features/social-login + weekly + 0.5 + + + + https://supabase.com/features/sql-editor + weekly + 0.5 + + + + https://supabase.com/features/ssl-enforcement + weekly + 0.5 + + + + https://supabase.com/features/supavisor + weekly + 0.5 + + + + https://supabase.com/features/terraform-provider + weekly + 0.5 + + + + https://supabase.com/features/vault + weekly + 0.5 + + + + https://supabase.com/features/vector-database + weekly + 0.5 + + + + https://supabase.com/features/visual-schema-designer + weekly + 0.5 + diff --git a/package-lock.json b/package-lock.json index c283bc49b8c..02180f9601f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15892,10 +15892,6 @@ "@supabase/node-fetch": "^2.6.14" } }, - "node_modules/@supabase/providers": { - "resolved": "packages/next-providers", - "link": true - }, "node_modules/@supabase/realtime-js": { "version": "2.10.2", "resolved": "https://registry.npmjs.org/@supabase/realtime-js/-/realtime-js-2.10.2.tgz", @@ -33849,9 +33845,8 @@ } }, "node_modules/next-providers": { - "version": "0.0.0", - "resolved": "https://registry.npmjs.org/next-providers/-/next-providers-0.0.0.tgz", - "integrity": "sha512-/xlJKvZEU9ERtBhMZL+pszux4zfCOu3xMx4mtqsh3ngFybwJfAXeNtHbDEkhjrXPYWtgcuD6moAcWbk+58dXFw==" + "resolved": "packages/next-providers", + "link": true }, "node_modules/next-router-mock": { "version": "0.9.13", @@ -45227,14 +45222,20 @@ } }, "packages/next-providers": { - "name": "@supabase/providers", "version": "0.0.0", "license": "MIT", "dependencies": { - "@vercel/toolbar": "^0.1.22" + "@vercel/toolbar": "^0.1.22", + "common": "*" }, "devDependencies": { + "tsconfig": "*", "typescript": "~5.5.0" + }, + "peerDependencies": { + "next": "*", + "react": "*", + "react-dom": "*" } }, "packages/pg-meta": { diff --git a/packages/next-providers/package.json b/packages/next-providers/package.json index 3b33b355de6..74090d01b07 100644 --- a/packages/next-providers/package.json +++ b/packages/next-providers/package.json @@ -1,14 +1,20 @@ { - "name": "@supabase/providers", + "name": "next-providers", "version": "0.0.0", "license": "MIT", - "author": "Supabase", - "main": "./src/index.ts", + "main": "./index.tsx", "repository": "supabase/supabase", "dependencies": { - "@vercel/toolbar": "^0.1.22" + "@vercel/toolbar": "^0.1.22", + "common": "*" }, "devDependencies": { - "typescript": "~5.5.0" + "typescript": "~5.5.0", + "tsconfig": "*" + }, + "peerDependencies": { + "next": "*", + "react": "*", + "react-dom": "*" } } diff --git a/packages/next-providers/tsconfig.json b/packages/next-providers/tsconfig.json new file mode 100644 index 00000000000..c6e40b7c779 --- /dev/null +++ b/packages/next-providers/tsconfig.json @@ -0,0 +1,8 @@ +{ + "extends": "tsconfig/react-library.json", + "compilerOptions": { + "resolveJsonModule": true + }, + "include": ["."], + "exclude": ["dist", "build", "node_modules"] +} diff --git a/packages/next-providers/vercel-toolbar.tsx b/packages/next-providers/vercel-toolbar.tsx index acfa3c7cdc5..a26fc2c1593 100644 --- a/packages/next-providers/vercel-toolbar.tsx +++ b/packages/next-providers/vercel-toolbar.tsx @@ -1,8 +1,7 @@ import { VercelToolbar } from '@vercel/toolbar/next' import { useUser } from 'common' -import { PropsWithChildren } from 'react' -export function VercelToolbarProvider({ children }: PropsWithChildren<{}>) { +export function VercelToolbarProvider() { const user = useUser() const isSupabaseTeam =