Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Add type def package for react syntax highlighter in ui

Joshen Limc1e0d0f8c292
diff --git a/package-lock.json b/package-lock.json
index ab9bc95cb9e..0881d78353b 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -39040,6 +39040,7 @@
"@types/react": "^17.0.37",
"@types/react-copy-to-clipboard": "^5.0.4",
"@types/react-dom": "^17.0.11",
+ "@types/react-syntax-highlighter": "^15.5.6",
"sql-formatter": "^12.2.0",
"storybook-dark-mode": "^2.1.1",
"typescript": "4.3.4"
@@ -39077,6 +39078,15 @@
"@types/react": "*"
}
},
+ "packages/ui/node_modules/@types/react-syntax-highlighter": {
+ "version": "15.5.6",
+ "resolved": "https://registry.npmjs.org/@types/react-syntax-highlighter/-/react-syntax-highlighter-15.5.6.tgz",
+ "integrity": "sha512-i7wFuLbIAFlabTeD2I1cLjEOrG/xdMa/rpx2zwzAoGHuXJDhSqp9BSfDlMHSh9JSuNfxHk9eEmMX6D55GiyjGg==",
+ "dev": true,
+ "dependencies": {
+ "@types/react": "*"
+ }
+ },
"packages/ui/node_modules/clsx": {
"version": "1.2.1",
"license": "MIT",
@@ -68097,6 +68107,7 @@
"@types/react": "^17.0.37",
"@types/react-copy-to-clipboard": "^5.0.4",
"@types/react-dom": "^17.0.11",
+ "@types/react-syntax-highlighter": "*",
"autoprefixer": "^10.4.2",
"clsx": "^1.2.1",
"cmdk-supabase": "^0.2.2",
@@ -68150,6 +68161,15 @@
"@types/react": "*"
}
},
+ "@types/react-syntax-highlighter": {
+ "version": "15.5.6",
+ "resolved": "https://registry.npmjs.org/@types/react-syntax-highlighter/-/react-syntax-highlighter-15.5.6.tgz",
+ "integrity": "sha512-i7wFuLbIAFlabTeD2I1cLjEOrG/xdMa/rpx2zwzAoGHuXJDhSqp9BSfDlMHSh9JSuNfxHk9eEmMX6D55GiyjGg==",
+ "dev": true,
+ "requires": {
+ "@types/react": "*"
+ }
+ },
"clsx": {
"version": "1.2.1"
},
diff --git a/packages/ui/package.json b/packages/ui/package.json
index 5423c0e5df5..e3befbec3fc 100644
--- a/packages/ui/package.json
+++ b/packages/ui/package.json
@@ -35,6 +35,7 @@
"postcss": "^8.4.5",
"prop-types": "^15.7.2",
"react-copy-to-clipboard": "^5.1.0",
+ "react-countdown": "^2.3.5",
"react-feather": "^2.0.10",
"react-markdown": "^8.0.3",
"react-syntax-highlighter": "^15.5.0",
@@ -42,8 +43,7 @@
"sse.js": "^0.6.1",
"tailwind-merge": "^1.10.0",
"tailwindcss": "^3.0.15",
- "tailwindcss-radix": "^1.6.0",
- "react-countdown": "^2.3.5"
+ "tailwindcss-radix": "^1.6.0"
},
"devDependencies": {
"@storybook/react": "^6.5.16",
@@ -51,6 +51,7 @@
"@types/react": "^17.0.37",
"@types/react-copy-to-clipboard": "^5.0.4",
"@types/react-dom": "^17.0.11",
+ "@types/react-syntax-highlighter": "^15.5.6",
"sql-formatter": "^12.2.0",
"storybook-dark-mode": "^2.1.1",
"typescript": "4.3.4"