Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Editor Interface #297

Merged
merged 11 commits into from
Aug 8, 2024
11 changes: 11 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
const path = require('path');

/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
Expand All @@ -10,6 +12,15 @@ const nextConfig = {
},
],
},
transpilePackages: ['slate-transcript-editor'],
webpack: (config) => {
// Resolve React dependencies for local development of slate-transcript-editor
// This configuration is only necessary when working with a local version of the library
// It prevents "Invalid hook call" errors by ensuring consistent React versions
config.resolve.alias['react'] = path.resolve('./node_modules/react');
config.resolve.alias['react-dom'] = path.resolve('./node_modules/react-dom');
return config;
},
};

module.exports = nextConfig;
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,14 @@
"match-sorter": "^6.3.1",
"next": "^13.4.13",
"next-auth": "^4.22.5",
"next-transpile-modules": "^10.0.1",
"react": "^18.2.0",
"react-datepicker": "^4.16.0",
"react-dom": "^18.2.0",
"react-icons": "^4.10.1",
"react-markdown-editor-lite": "^1.3.4",
"react-youtube": "^10.1.0",
"sanitize-html": "^2.11.0",
"slate-transcript-editor": "https://github.com/kouloumos/slate-transcript-editor.git#v0.1.6",
"slugify": "^1.6.6",
"use-debounce": "^10.0.0"
},
Expand Down
142 changes: 0 additions & 142 deletions src/components/alerts/SubmitTranscriptAlert.tsx

This file was deleted.

Loading