Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

feat: Video/audio sync in segments of 3 secs, check for remaining files on stop

Richie McIlroy0d96d307a582
diff --git a/apps/desktop/package.json b/apps/desktop/package.json
index 687dd5e7a..a855c6f91 100644
--- a/apps/desktop/package.json
+++ b/apps/desktop/package.json
@@ -9,8 +9,10 @@
"tauri": "tauri"
},
"dependencies": {
+ "@cap/utils": "workspace:*",
"@tauri-apps/api": "^1.5.0",
"autoprefixer": "^10.4.16",
+ "date-fns": "^3.2.0",
"dotenv": "^16.3.1",
"postcss": "^8.4.31",
"react": "^18.2.0",
@@ -20,8 +22,7 @@
"tailwindcss": "^3.3.4",
"tauri-plugin-context-menu": "^0.5.0",
"tauri-plugin-positioner-api": "^0.2.7",
- "vite-tsconfig-paths": "^4.2.1",
- "@cap/utils": "workspace:*"
+ "vite-tsconfig-paths": "^4.2.1"
},
"devDependencies": {
"@supabase/supabase-js": "^2.39.0",
@@ -31,5 +32,8 @@
"@vitejs/plugin-react": "^4.0.3",
"typescript": "^5.3.2",
"vite": "^5.0.11"
+ },
+ "engines": {
+ "node": "20"
}
}
diff --git a/apps/desktop/src-tauri/Cargo.lock b/apps/desktop/src-tauri/Cargo.lock
index b72291cbe..5898ab436 100644
--- a/apps/desktop/src-tauri/Cargo.lock
+++ b/apps/desktop/src-tauri/Cargo.lock
@@ -458,6 +458,7 @@ dependencies = [
"tauri",
"tauri-build",
"tauri-plugin-context-menu",
+ "tauri-plugin-deep-link",
"tauri-plugin-positioner",
"tokio",
"tokio-util",
@@ -841,6 +842,15 @@ dependencies = [
"crypto-common",
]
+[[package]]
+name = "dirs"
+version = "5.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "44c45a9d03d6676652bcb5e724c7e988de1acad23a711b5217ab9cbecbec2225"
+dependencies = [
+ "dirs-sys",
+]
+
[[package]]
name = "dirs-next"
version = "2.0.0"
@@ -851,6 +861,18 @@ dependencies = [
"dirs-sys-next",
]
+[[package]]
+name = "dirs-sys"
+version = "0.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "520f05a5cbd335fae5a99ff7a6ab8627577660ee5cfd6a94a6a929b52ff0321c"
+dependencies = [
+ "libc",
+ "option-ext",
+ "redox_users",
+ "windows-sys 0.48.0",
+]
+
[[package]]
name = "dirs-sys-next"
version = "0.1.2"
@@ -1869,6 +1891,19 @@ dependencies = [
"cfg-if",
]
+[[package]]
+name = "interprocess"
+version = "1.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "81f2533f3be42fffe3b5e63b71aeca416c1c3bc33e4e27be018521e76b1f38fb"
+dependencies = [
+ "cfg-if",
+ "libc",
+ "rustc_version",
+ "to_method",
+ "winapi",
+]
+
[[package]]
name = "io-lifetimes"
version = "1.0.11"
@@ -2392,6 +2427,28 @@ dependencies = [
"objc_id",
]
+[[package]]
+name = "objc-sys"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c7c71324e4180d0899963fc83d9d241ac39e699609fc1025a850aadac8257459"
+
+[[package]]
+name = "objc2"
+version = "0.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "559c5a40fdd30eb5e344fbceacf7595a81e242529fb4e21cf5f43fb4f11ff98d"
+dependencies = [
+ "objc-sys",
+ "objc2-encode",
+]
+
+[[package]]
+name = "objc2-encode"
+version = "3.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d079845b37af429bfe5dfa76e6d087d788031045b25cfc6fd898486fd9847666"
+
[[package]]
name = "objc_exception"
version = "0.1.2"
@@ -2479,6 +2536,12 @@ dependencies = [
"vcpkg",
]
+[[package]]
+name = "option-ext"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d"
+
[[package]]
name = "ordered-stream"
version = "0.2.0"
@@ -3890,6 +3953,22 @@ dependencies = [
"winapi",
]
+[[package]]
+name = "tauri-plugin-deep-link"
+version = "0.1.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4536f5f6602e8fdfaa7b3b185076c2a0704f8eb7015f4e58461eb483ec3ed1f8"
+dependencies = [
+ "dirs",
+ "interprocess",
+ "log",
+ "objc2",
+ "once_cell",
+ "tauri-utils",
+ "windows-sys 0.48.0",
+ "winreg 0.50.0",
+]
+
[[package]]
name = "tauri-plugin-positioner"
version = "1.0.4"
@@ -4109,6 +4188,12 @@ version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"
+[[package]]
+name = "to_method"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c7c4ceeeca15c8384bbc3e011dbd8fccb7f068a440b752b7d9b32ceb0ca0e2e8"
+
[[package]]
name = "tokio"
version = "1.35.1"
diff --git a/apps/desktop/src-tauri/Cargo.toml b/apps/desktop/src-tauri/Cargo.toml
index bd33b451a..335d90886 100644
--- a/apps/desktop/src-tauri/Cargo.toml
+++ b/apps/desktop/src-tauri/Cargo.toml
@@ -24,6 +24,7 @@ tokio = { version = "1.35.1", features = ["full"] }
tokio-util = { version = "0.7.10", features = ["io"] }
futures = "0.3.30"
reqwest = { version = "0.11.23", features = ["json", "multipart", "stream"] }
+tauri-plugin-deep-link = "0.1.2"
[features]
# this feature is used for production builds or when `devPath` points to the filesystem
diff --git a/apps/desktop/src-tauri/Release.entitlements b/apps/desktop/src-tauri/Release.entitlements
index 1d159b772..3bae05e5e 100644
--- a/apps/desktop/src-tauri/Release.entitlements
+++ b/apps/desktop/src-tauri/Release.entitlements
@@ -26,5 +26,16 @@
<true/>
<key>com.apple.security.inherit</key>
<true/>
+ <key>CFBundleURLTypes</key>
+ <array>
+ <dict>
+ <key>CFBundleURLName</key>
+ <string>com.cap.so</string>
+ <key>CFBundleURLSchemes</key>
+ <array>
+ <string>caprecorder</string>
+ </array>
+ </dict>
+ </array>
</dict>
-</plist>
+</plist>
\ No newline at end of file
diff --git a/apps/desktop/src-tauri/src/main.rs b/apps/desktop/src-tauri/src/main.rs
index db6ae9940..53c9aa7ec 100644
--- a/apps/desktop/src-tauri/src/main.rs
+++ b/apps/desktop/src-tauri/src/main.rs
@@ -1,8 +1,9 @@
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
use std::sync::{Arc};
-use std::sync::atomic::{AtomicBool};
+use std::path::PathBuf;
use tokio::sync::Mutex;
+use std::sync::atomic::{AtomicBool};
use std::env;
use tauri::{Manager};
use tauri_plugin_positioner::{WindowExt, Position};
@@ -14,7 +15,6 @@ mod utils;
use recording::{RecordingState, start_dual_recording, stop_all_recordings};
use upload::upload_file;
-use devices::list_devices;
use ffmpeg_sidecar::{
command::ffmpeg_is_installed,
@@ -25,6 +25,8 @@ use ffmpeg_sidecar::{
};
fn main() {
+ tauri_plugin_deep_link::prepare("com.cap.so");
+
std::panic::set_hook(Box::new(|info| {
eprintln!("Thread panicked: {:?}", info);
}));
@@ -66,6 +68,9 @@ fn main() {
tauri::Builder::default()
.plugin(tauri_plugin_positioner::init())
.setup(move |app| {
+ let handle = app.handle();
+ let handle_clone = handle.clone();
+
if let Some(camera_window) = app.get_window("camera") {
let _ = camera_window.move_window(Position::BottomRight);
}
@@ -74,15 +79,33 @@ fn main() {
let _ = options_window.move_window(Position::Center);
}
+ tauri_plugin_deep_link::register(
+ "caprecorder",
+ move |request| {
+ dbg!(&request);
+ handle_clone.emit_all("scheme-request-received", request).unwrap();
+ },
+ ).unwrap();
+
+ let data_directory = handle.path_resolver().app_data_dir().unwrap_or_else(|| PathBuf::new());
+ let recording_state = RecordingState {
+ screen_process: None,
+ video_process: None,
+ upload_handles: Mutex::new(vec![]),
+ recording_options: None,
+ shutdown_flag: Arc::new(AtomicBool::new(false)),
+ data_dir: Some(data_directory),
+ };
+
+ app.manage(Arc::new(Mutex::new(recording_state)));
+
Ok(())
})
.invoke_handler(tauri::generate_handler![
start_dual_recording,
stop_all_recordings,
- upload_file,
- list_devices
+ upload_file
])
- .manage(Arc::new(Mutex::new(RecordingState { screen_process: None, video_process: None, recording_options: None, upload_handles: Mutex::new(vec![]), shutdown_flag: Arc::new(AtomicBool::new(false))})))
.plugin(tauri_plugin_context_menu::init())
.run(tauri::generate_context!())
.expect("Error while running tauri application");
diff --git a/apps/desktop/src-tauri/src/recording.rs b/apps/desktop/src-tauri/src/recording.rs
index 5ce34608f..ca3df1334 100644
--- a/apps/desktop/src-tauri/src/recording.rs
+++ b/apps/desktop/src-tauri/src/recording.rs
@@ -20,6 +20,7 @@ pub struct RecordingState {
pub upload_handles: Mutex<Vec<JoinHandle<Result<(), String>>>>,
pub recording_options: Option<RecordingOptions>,
pub shutdown_flag: Arc<AtomicBool>,
+ pub data_dir: Option<PathBuf>,
}
#[derive(Debug, Serialize, Deserialize, Clone)]
@@ -40,29 +41,31 @@ pub async fn start_dual_recording(
options: RecordingOptions,
) -> Result<(), String> {
println!("Starting screen recording...");
+ let mut state_guard = state.lock().await;
let shutdown_flag = Arc::new(AtomicBool::new(false));
let ffmpeg_binary_path_str = ffmpeg_path_as_str()?;
-
- let screen_chunks_dir = std::env::current_dir()
- .map_err(|_| "Cannot get current directory".to_string())?
- .join("chunks/screen");
- let video_chunks_dir = std::env::current_dir()
- .map_err(|_| "Cannot get current directory".to_string())?
- .join("chunks/video");
+ let data_dir = state_guard.data_dir.as_ref()
+ .ok_or("Data directory is not set in the recording state".to_string())?;
+
+ //print the data_dir
+ println!("data_dir: {:?}", data_dir);
+
+ let screen_chunks_dir = data_dir.join("chunks/screen");
+ let video_chunks_dir = data_dir.join("chunks/video");
clean_and_create_dir(&screen_chunks_dir)?;
clean_and_create_dir(&video_chunks_dir)?;
let ffmpeg_screen_args_future = construct_recording_args(&options, &screen_chunks_dir, "screen", &options.screen_index);
- let ffmpeg_video_args_future = construct_recording_args(&options, &video_chunks_dir, "video", &options.video_index);
+ // let ffmpeg_video_args_future = construct_recording_args(&options, &video_chunks_dir, "video", &options.video_index);
let ffmpeg_screen_args = ffmpeg_screen_args_future.await.map_err(|e| e.to_string())?;
- let ffmpeg_video_args = ffmpeg_video_args_future.await.map_err(|e| e.to_string())?;
+ // let ffmpeg_video_args = ffmpeg_video_args_future.await.map_err(|e| e.to_string())?;
println!("Screen args: {:?}", ffmpeg_screen_args);
- println!("Video args: {:?}", ffmpeg_video_args);
+ // println!("Video args: {:?}", ffmpeg_video_args);
let mut screen_child = tokio::process::Command::new(&ffmpeg_binary_path_str)
.args(&ffmpeg_screen_args)
@@ -71,37 +74,45 @@ pub async fn start_dual_recording(
.spawn()
.map_err(|e| e.to_string())?;
- let mut video_child = tokio::process::Command::new(&ffmpeg_binary_path_str)
- .args(&ffmpeg_video_args)
- .stdout(Stdio::piped())
- .stderr(Stdio::piped())
- .spawn()
- .map_err(|e| e.to_string())?;
+ // let mut video_child = tokio::process::Command::new(&ffmpeg_binary_path_str)
+ // .args(&ffmpeg_video_args)
+ // .stdout(Stdio::piped())
+ // .stderr(Stdio::piped())
+ // .spawn()
+ // .map_err(|e| e.to_string())?;
let screen_stdout = screen_child.stdout.take().unwrap();
let screen_stderr = screen_child.stderr.take().unwrap();
tokio::spawn(log_output(screen_stdout, "Screen stdout".to_string()));
tokio::spawn(log_output(screen_stderr, "Screen stderr".to_string()));
- let video_stdout = video_child.stdout.take().unwrap();
- let video_stderr = video_child.stderr.take().unwrap();
- tokio::spawn(log_output(video_stdout, "Video stdout".to_string()));
- tokio::spawn(log_output(video_stderr, "Video stderr".to_string()));
+ // let video_stdout = video_child.stdout.take().unwrap();
+ // let video_stderr = video_child.stderr.take().unwrap();
+ // tokio::spawn(log_output(video_stdout, "Video stdout".to_string()));
+ // tokio::spawn(log_output(video_stderr, "Video stderr".to_string()));
- let mut guard = state.lock().await;
- guard.screen_process = Some(screen_child);
- guard.video_process = Some(video_child);
- guard.upload_handles = Mutex::new(vec![]);
- guard.recording_options = Some(options.clone());
- guard.shutdown_flag = shutdown_flag.clone();
+ state_guard.screen_process = Some(screen_child);
+ // guard.video_process = Some(video_child);
+ state_guard.upload_handles = Mutex::new(vec![]);
+ state_guard.recording_options = Some(options.clone());
+ state_guard.shutdown_flag = shutdown_flag.clone();
- drop(guard);
+ drop(state_guard);
+
+ println!("Starting upload loops...");
+
+ let screen_upload = start_upload_loop(state.clone(), screen_chunks_dir, options.clone(), "screen".to_string(), shutdown_flag.clone());
+ let video_upload = start_upload_loop(state.clone(), video_chunks_dir, options.clone(), "video".to_string(), shutdown_flag.clone());
+
+ match tokio::try_join!(screen_upload, video_upload) {
+ Ok(_) => {
+ println!("Both upload loops completed successfully.");
+ },
+ Err(e) => {
+ eprintln!("An error occurred: {}", e);
+ },
+ }
- tokio::join!(
- start_upload_loop(state.clone(), screen_chunks_dir, options.clone(), "screen".to_string(), shutdown_flag.clone()),
- start_upload_loop(state.clone(), video_chunks_dir, options.clone(), "video".to_string(), shutdown_flag.clone()),
- );
-
Ok(())
}
@@ -120,24 +131,23 @@ pub async fn stop_all_recordings(state: State<'_, Arc<Mutex<RecordingState>>>) -
println!("Child process terminated successfully.");
}
}
- if let Some(child_process) = &mut guard.video_process {
- if let Err(e) = child_process.kill().await {
- eprintln!("Failed to kill the child process: {}", e);
- } else {
- println!("Child process terminated successfully.");
- }
- }
+ // if let Some(child_process) = &mut guard.video_process {
+ // if let Err(e) = child_process.kill().await {
+ // eprintln!("Failed to kill the child process: {}", e);
+ // } else {
+ // println!("Child process terminated successfully.");
+ // }
+ // }
guard.screen_process = None;
- guard.video_process = None;
+ // guard.video_process = None;
+
+ let data_dir = guard.data_dir.as_ref()
+ .ok_or("Data directory is not set in the recording state".to_string())?;
- let chunks_dir_screen = std::env::current_dir()
- .map_err(|e| format!("Cannot get current directory: {}", e))?
- .join("chunks/screen");
+ let chunks_dir_screen = data_dir.join("chunks/screen");
- let chunks_dir_video = std::env::current_dir()
- .map_err(|e| format!("Cannot get current directory: {}", e))?
- .join("chunks/video");
+ let chunks_dir_video = data_dir.join("chunks/video");
let recording_options = guard.recording_options.clone();
@@ -193,7 +203,19 @@ fn clean_and_create_dir(dir: &Path) -> Result<(), String> {
} else {
std::fs::create_dir_all(dir).map_err(|e| e.to_string())?;
}
- Ok(())
+
+ // Ensure the segment list file exists within the given directory
+ // This assumes a naming convention where the segment list file is named "segment_list.txt"
+ let segment_list_path = dir.join("segment_list.txt");
+ match File::open(&segment_list_path) {
+ Ok(_) => Ok(()), // File already exists, return Ok(())
+ Err(ref e) if e.kind() == ErrorKind::NotFound => {
+ // Create the file if it does not exist, but ignore the returned File object
+ File::create(&segment_list_path).map_err(|e| e.to_string())?;
+ Ok(()) // Now the file is created, return Ok(())
+ },
+ Err(e) => Err(e.to_string()), // Handle other possible file I/O errors
+ }
}
async fn log_output(reader: impl tokio::io::AsyncRead + Unpin + Send + 'static, desc: String) {
@@ -357,11 +379,15 @@ async fn start_upload_loop(
options: RecordingOptions,
video_type: String,
shutdown_flag: Arc<AtomicBool>,
-) {
- let segment_list_path = chunks_dir.join("segment_list.txt");
+) -> Result<(), String> {
+ println!("Starting upload loop for {}", video_type);
+
+ //print the chunks_dir
+ println!("chunks_dir: {:?}", chunks_dir);
+ let segment_list_path = chunks_dir.join("segment_list.txt");
+
let mut watched_segments: HashSet<String> = HashSet::new();
- let upload_interval = std::time::Duration::from_secs(3);
loop {
if shutdown_flag.load(Ordering::SeqCst) {
@@ -399,15 +425,18 @@ async fn start_upload_loop(
// Store the handle in the state for later awaits or cancels if required.
let guard = state.lock().await;
guard.upload_handles.lock().await.push(handle);
+
+ drop(guard);
}
}
}
Err(e) => eprintln!("Failed to read segment list for {}: {}", video_type, e),
}
- // Sleep for the interval before checking the segment list again
- tokio::time::sleep(upload_interval).await;
+ tokio::time::sleep(Duration::from_secs(3)).await;
}
+
+ Ok(())
}
fn ensure_segment_list_exists(file_path: PathBuf) -> io::Result<()> {
@@ -444,8 +473,6 @@ async fn upload_remaining_chunks(
video_type: &str,
) -> Result<(), String> {
if let Some(actual_options) = options {
- tokio::time::sleep(Duration::from_secs(1)).await;
-
let retry_interval = Duration::from_secs(2);
let upload_timeout = Duration::from_secs(15);
let file_stability_timeout = Duration::from_secs(1);
@@ -455,13 +482,13 @@ async fn upload_remaining_chunks(
let entries = std::fs::read_dir(chunks_dir).map_err(|e| format!("Error reading directory: {}", e))?;
// A semaphore to limit the number of concurrent uploads
- let semaphore = Arc::new(Semaphore::new(8));
+ let semaphore = Arc::new(Semaphore::new(16));
// Create upload tasks for each file entry
let tasks: Vec<_> = entries.filter_map(|entry| entry.ok())
.map(|entry| {
let path = entry.path();
- if path.is_file() && path.extension().map_or(false, |e| e == "mkv") {
+ if path.is_file() && (path.extension().map_or(false, |e| e == "mkv" || e == "webm")) {
let video_type = video_type.to_string();
let semaphore_clone = semaphore.clone();
let actual_options_clone = actual_options.clone();
diff --git a/apps/desktop/src/components/windows/inner/Recorder.tsx b/apps/desktop/src/components/windows/inner/Recorder.tsx
index 072346dc0..fe282d906 100644
--- a/apps/desktop/src/components/windows/inner/Recorder.tsx
+++ b/apps/desktop/src/components/windows/inner/Recorder.tsx
@@ -12,7 +12,7 @@ import { Countdown } from "./Countdown";
import { AuthSession } from "@supabase/supabase-js";
import { supabase } from "@/utils/database/client";
import type { Database } from "@cap/utils";
-import { useAudioRecorder } from "@/utils/recording/useAudioRecorder";
+import { useMediaRecorder } from "@/utils/recording/useMediaRecorder";
import { getSelectedVideoProperties } from "@/utils/recording/utils";
import { getLatestVideoId, saveLatestVideoId } from "@/utils/database/utils";
import { openLinkInBrowser } from "@/utils/helpers";
@@ -30,7 +30,7 @@ export const Recorder = ({ session }: { session: AuthSession | null }) => {
const [stoppingRecording, setStoppingRecording] = useState(false);
const [currentStoppingMessage, setCurrentStoppingMessage] =
useState("Stopping Recording");
- const { startAudioRecording, stopAudioRecording } = useAudioRecorder();
+ const { startMediaRecording, stopMediaRecording } = useMediaRecorder();
const handleContextClick = async (option: string) => {
const filteredDevices = devices
@@ -137,7 +137,11 @@ export const Recorder = ({ session }: { session: AuthSession | null }) => {
try {
const videoData = await prepareVideoData();
if (videoData) {
- await startAudioRecording(selectedAudioDevice);
+ const stream = await navigator.mediaDevices.getUserMedia({
+ audio: { deviceId: selectedAudioDevice?.deviceId },
+ video: { deviceId: selectedVideoDevice?.deviceId },
+ });
+ await startMediaRecording(stream);
await startDualRecording(videoData);
} else {
throw new Error("Failed to prepare video data.");
@@ -151,47 +155,30 @@ export const Recorder = ({ session }: { session: AuthSession | null }) => {
const handleStopAllRecordings = async () => {
setStoppingRecording(true);
- const recordedAudioFilePath = await stopAudioRecording();
- if (recordedAudioFilePath) {
- try {
- console.log("Stopping recordings...");
+ try {
+ console.log("Stopping recordings...");
- await invoke("stop_all_recordings");
+ await stopMediaRecording();
- console.log("Recordings stopped...");
+ await invoke("stop_all_recordings");
- await invoke("upload_file", {
- options: {
- user_id: session?.user?.id,
- video_id: await getLatestVideoId(),
- screen_index: "",
- video_index: "",
- aws_region: import.meta.env.VITE_AWS_REGION,
- aws_bucket: import.meta.env.VITE_AWS_BUCKET,
- framerate: "",
- resolution: "",
- },
- filePath: recordedAudioFilePath,
- fileType: "audio",
- });
+ console.log("Recordings stopped...");
- console.log("Opening window...");
+ console.log("Opening window...");
- await openLinkInBrowser(
- `${import.meta.env.VITE_PUBLIC_URL}/share/${uuidParse(
- await getLatestVideoId()
- )}`
- );
+ await openLinkInBrowser(
+ `${import.meta.env.VITE_PUBLIC_URL}/share/${uuidParse(
+ await getLatestVideoId()
+ )}`
+ );
- setIsRecording(false);
- setCountdownActive(false);
- setStoppingRecording(false);
- } catch (error) {
- console.error("Error invoking upload_file:", error);
- }
- } else {
- console.error("Audio file path string is not available.");
+ setIsRecording(false);
+ setCountdownActive(false);
+ setStoppingRecording(false);
+ } catch (error) {
+ console.error("Error invoking upload_file:", error);
}
+
setIsRecording(false);
setCountdownActive(false);
setStoppingRecording(false);
diff --git a/apps/desktop/src/utils/database/AuthContext.tsx b/apps/desktop/src/utils/database/AuthContext.tsx
index 66608f6f7..e0854e076 100644
--- a/apps/desktop/src/utils/database/AuthContext.tsx
+++ b/apps/desktop/src/utils/database/AuthContext.tsx
@@ -1,6 +1,7 @@
import { createContext, useState, useEffect, useContext, useRef } from "react";
import { Session, User } from "@supabase/supabase-js";
import { supabase } from "@/utils/database/client";
+import { saveUserId } from "@/utils/database/utils";
interface AuthContextProps {
session: Session | null;
@@ -27,7 +28,10 @@ export const AuthProvider: React.FC<React.PropsWithChildren<{}>> = ({
const updateAuthState = (session: Session | null) => {
setSession(session);
setUser(session?.user || null);
- userRef.current = session?.user || null; // Update the ref whenever the user state changes
+ userRef.current = session?.user || null;
+ if (session?.user) {
+ saveUserId(session.user.id);
+ }
};
supabase.auth.getSession().then(({ data: { session }, error }) => {
diff --git a/apps/desktop/src/utils/database/utils.ts b/apps/desktop/src/utils/database/utils.ts
index 8d5ec0f20..c8714fcb4 100644
--- a/apps/desktop/src/utils/database/utils.ts
+++ b/apps/desktop/src/utils/database/utils.ts
@@ -9,3 +9,15 @@ export const saveLatestVideoId = async (videoId: string) => {
export const getLatestVideoId = async () => {
return window.localStorage.getItem("latestVideoId") || "";
};
+
+export const saveUserId = async (userId: string) => {
+ try {
+ window.localStorage.setItem("userId", userId);
+ } catch (error) {
+ console.error(error);
+ }
+};
+
+export const getUserId = async () => {
+ return window.localStorage.getItem("userId") || "";
+};
diff --git a/apps/desktop/src/utils/recording/MediaDeviceContext.tsx b/apps/desktop/src/utils/recording/MediaDeviceContext.tsx
index 87cb40577..1df477dca 100644
--- a/apps/desktop/src/utils/recording/MediaDeviceContext.tsx
+++ b/apps/desktop/src/utils/recording/MediaDeviceContext.tsx
@@ -6,18 +6,13 @@ import {
useCallback,
} from "react";
import { listen } from "@tauri-apps/api/event";
-import { invoke } from "@tauri-apps/api/tauri";
import { getLocalDevices, enumerateAndStoreDevices } from "./utils";
interface Devices {
index: number;
label: string;
kind: "videoinput" | "audioinput";
-}
-
-interface DeviceList {
- video_devices: string[];
- audio_devices: string[];
+ deviceId: string;
}
export interface MediaDeviceContextData {
@@ -50,21 +45,20 @@ export const MediaDeviceProvider: React.FC<React.PropsWithChildren<{}>> = ({
await enumerateAndStoreDevices();
try {
- const deviceList = (await invoke("list_devices")) as DeviceList;
- const { video_devices } = deviceList;
-
- const { audioDevices } = await getLocalDevices();
+ const { videoDevices, audioDevices } = await getLocalDevices();
const formattedDevices = [
- ...(video_devices.map((device, index) => ({
+ ...(videoDevices.map((device: MediaDeviceInfo, index) => ({
index: index,
- label: device,
+ label: device.label,
kind: "videoinput",
+ deviceId: device.deviceId,
})) as Devices[]),
...(audioDevices.map((device: MediaDeviceInfo, index: number) => ({
index: index,
label: device.label,
kind: "audioinput",
+ deviceId: device.deviceId,
})) as Devices[]),
];
diff --git a/apps/desktop/src/utils/recording/useAudioRecorder.ts b/apps/desktop/src/utils/recording/useAudioRecorder.ts
index 3c77fbbe9..0a9a6f3ea 100644
--- a/apps/desktop/src/utils/recording/useAudioRecorder.ts
+++ b/apps/desktop/src/utils/recording/useAudioRecorder.ts
@@ -1,5 +1,5 @@
import { useState, useRef } from "react";
-import { appDataDir, join } from "@tauri-apps/api/path";
+import { dataDir, join } from "@tauri-apps/api/path";
import { writeBinaryFile } from "@tauri-apps/api/fs";
import { MediaDeviceContextData } from "@/utils/recording/MediaDeviceContext";
import { getLocalDevices } from "@/utils/recording/utils";
@@ -64,7 +64,7 @@ export const useAudioRecorder = () => {
type: "audio/mp3",
});
const buffer = await audioBlob.arrayBuffer();
- const dir = await appDataDir();
+ const dir = await dataDir();
const filePath = await join(
dir,
`cap_audio_${new Date().toISOString()}.mp3`
diff --git a/apps/desktop/src/utils/recording/useMediaRecorder.ts b/apps/desktop/src/utils/recording/useMediaRecorder.ts
new file mode 100644
index 000000000..2bf3a2aae
--- /dev/null
+++ b/apps/desktop/src/utils/recording/useMediaRecorder.ts
@@ -0,0 +1,111 @@
+import { useState, useRef, useCallback } from "react";
+import { writeBinaryFile } from "@tauri-apps/api/fs";
+import { appDataDir, join } from "@tauri-apps/api/path";
+import { writeTextFile, readTextFile } from "@tauri-apps/api/fs";
+
+export const useMediaRecorder = () => {
+ const [isRecording, setIsRecording] = useState(false);
+ const mediaRecorder = useRef<MediaRecorder | null>(null);
+ const chunkCounter = useRef(0);
+
+ const getVideoChunksDir = async () => {
+ const dir = await appDataDir();
+ return join(dir, "chunks", "video");
+ };
+
+ const appendToSegmentListFile = async (fileName: string) => {
+ const dir = await getVideoChunksDir();
+ const segmentListPath = await join(dir, "segment_list.txt");
+
+ let fileContent;
+ try {
+ // Try to read the existing content
+ fileContent = await readTextFile(segmentListPath);
+ } catch (error) {
+ // If there's an error (like file doesn't exist), we start with an empty string
+ fileContent = "";
+ }
+
+ // Create new content by appending the new file name (not the full path)
+ const newContent = `${fileContent}${fileName}\n`;
+
+ // Write the new content back to the file, effectively appending it
+ await writeTextFile(segmentListPath, newContent);
+ };
+
+ const handleDataAvailable = useCallback(async (event: BlobEvent) => {
+ const blob = new Blob([event.data], { type: "video/webm" });
+ const buffer = await blob.arrayBuffer();
+ const dir = await getVideoChunksDir();
+ const chunkNumber = chunkCounter.current++;
+ const fileName = `recording_chunk_${String(chunkNumber).padStart(
+ 3,
+ "0"
+ )}.webm`;
+ const filePath = await join(dir, fileName);
+
+ // First write the binary file
+ await writeBinaryFile({
+ path: filePath,
+ contents: buffer,
+ })
+ .then(() => {
+ // After a successful write, append to the segment list file
+ appendToSegmentListFile(fileName).catch((error) => {
+ // Handle errors during the append operation
+ console.error(
+ `Failed to append to segment list file: ${error.message}`
+ );
+ });
+ })
+ .catch((error) => {
+ // Handle errors during the file writing
+ console.error(`Failed to write video chunk: ${error.message}`);
+ });
+ }, []);
+ const startMediaRecording = useCallback(
+ async (stream: MediaStream) => {
+ chunkCounter.current = 0;
+ const dir = await getVideoChunksDir();
+ const segmentListPath = await join(dir, "segment_list.txt");
+ await writeTextFile({ path: segmentListPath, contents: "" });
+
+ // Set up and start the MediaRecorder
+ if (MediaRecorder.isTypeSupported("video/webm;codecs=vp8")) {
+ mediaRecorder.current = new MediaRecorder(stream, {
+ mimeType: "video/webm;codecs=vp8",
+ });
+ } else {
+ // Fallback to the default MIME type if 'webm' is not supported
+ mediaRecorder.current = new MediaRecorder(stream);
+ }
+ mediaRecorder.current.ondataavailable = handleDataAvailable;
+ mediaRecorder.current.onerror = (event: any) => {
+ console.error("Recording error:", event.error);
+ };
+
+ mediaRecorder.current.start(3000);
+ setIsRecording(true);
+ },
+ [handleDataAvailable]
+ );
+
+ const stopMediaRecording = useCallback(async () => {
+ if (mediaRecorder.current && isRecording) {
+ mediaRecorder.current.onstop = async () => {
+ setIsRecording(false);
+ chunkCounter.current = 0;
+
+ console.log("Media recording stopped.");
+ };
+
+ mediaRecorder.current.stop();
+ }
+ }, [isRecording]);
+
+ return {
+ isRecording,
+ startMediaRecording,
+ stopMediaRecording,
+ };
+};
diff --git a/apps/desktop/src/utils/recording/utils.ts b/apps/desktop/src/utils/recording/utils.ts
index 16ff6edca..9f1e510e9 100644
--- a/apps/desktop/src/utils/recording/utils.ts
+++ b/apps/desktop/src/utils/recording/utils.ts
@@ -1,20 +1,24 @@
export const enumerateAndStoreDevices = async () => {
- await navigator.mediaDevices.getUserMedia({ audio: true });
+ await navigator.mediaDevices.getUserMedia({ video: true, audio: true });
const devices = await navigator.mediaDevices.enumerateDevices();
+ const videoDevices = devices.filter((device) => device.kind === "videoinput");
const audioDevices = devices.filter((device) => device.kind === "audioinput");
+ window.localStorage.setItem("videoDevices", JSON.stringify(videoDevices));
window.localStorage.setItem("audioDevices", JSON.stringify(audioDevices));
};
export const getLocalDevices = async () => {
+ const videoDevices = JSON.parse(
+ window.localStorage.getItem("videoDevices") || "[]"
+ ) as MediaDeviceInfo[];
+
const audioDevices = JSON.parse(
window.localStorage.getItem("audioDevices") || "[]"
) as MediaDeviceInfo[];
- console.log("audioDevices:", audioDevices);
-
- return { audioDevices };
+ return { audioDevices, videoDevices };
};
export const getSelectedVideoProperties = async () => {
diff --git a/apps/web/app/api/upload/new/route.ts b/apps/web/app/api/upload/new/route.ts
index 3f63d35be..a31584587 100644
--- a/apps/web/app/api/upload/new/route.ts
+++ b/apps/web/app/api/upload/new/route.ts
@@ -4,6 +4,7 @@ import { getSignedUrl } from "@aws-sdk/s3-request-presigner";
import { NextRequest } from "next/server";
const s3Client = new S3Client({
+ region: process.env.CAP_AWS_REGION || "",
credentials: {
accessKeyId: process.env.CAP_AWS_ACCESS_KEY || "",
secretAccessKey: process.env.CAP_AWS_SECRET_KEY || "",
diff --git a/apps/web/app/auth/callback/route.ts b/apps/web/app/auth/callback/route.ts
new file mode 100644
index 000000000..7f7fa1b57
--- /dev/null
+++ b/apps/web/app/auth/callback/route.ts
@@ -0,0 +1,24 @@
+import { createRouteHandlerClient } from "@supabase/auth-helpers-nextjs";
+import { cookies } from "next/headers";
+import { NextResponse } from "next/server";
+
+import type { NextRequest } from "next/server";
+import type { Database } from "@cap/utils";
+
+export async function GET(request: NextRequest) {
+ const requestUrl = new URL(request.url);
+ const code = requestUrl.searchParams.get("code");
+
+ if (code) {
+ const supabase = createRouteHandlerClient<Database>(
+ { cookies },
+ {
+ supabaseUrl: process.env.NEXT_PUBLIC_SUPABASE_URL,
+ supabaseKey: process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY,
+ }
+ );
+ await supabase.auth.exchangeCodeForSession(code);
+ }
+
+ return NextResponse.redirect(`${process.env.NEXT_PUBLIC_URL}/dashboard/caps`);
+}
diff --git a/apps/web/app/dashboard/layout.tsx b/apps/web/app/dashboard/layout.tsx
index f7874953a..5f828a92a 100644
--- a/apps/web/app/dashboard/layout.tsx
+++ b/apps/web/app/dashboard/layout.tsx
@@ -2,6 +2,7 @@ import "server-only";
import DynamicSharedLayout from "@/app/dashboard/_components/DynamicSharedLayout";
import {
createServerClient,
+ getSession,
getActiveSpace,
} from "@/utils/database/supabase/server";
@@ -18,6 +19,9 @@ export default async function DashboardLayout({
.select("*")
.order("created_at", { ascending: true });
const activeSpace = await getActiveSpace();
+ const session = await getSession();
+
+ console.log("session", session);
return (
<DynamicSharedLayout spaceData={spaceData?.data} activeSpace={activeSpace}>
diff --git a/apps/web/app/globals.css b/apps/web/app/globals.css
index d8550400e..3fb60be97 100644
--- a/apps/web/app/globals.css
+++ b/apps/web/app/globals.css
@@ -116,6 +116,7 @@ a.bg-primary:hover {
--foreground-rgb: #000000;
--background-start-rgb: 214, 219, 220;
--background-end-rgb: 255, 255, 255;
+ --primary-font: "Geist", sans-serif;
}
@media (prefers-color-scheme: dark) {
@@ -129,7 +130,7 @@ a.bg-primary:hover {
body,
html {
color: #000000;
- font-family: "Geist", sans-serif !important;
+ font-family: var(--primary-font) !important;
}
@media (prefers-color-scheme: dark) {
diff --git a/apps/web/app/layout.tsx b/apps/web/app/layout.tsx
index dc1adb093..71312d6fd 100644
--- a/apps/web/app/layout.tsx
+++ b/apps/web/app/layout.tsx
@@ -1,16 +1,11 @@
import "server-only";
-import SupabaseListener from "@/utils/database/supabase/listener";
import SupabaseProvider from "@/utils/database/supabase/provider";
import "@/app/globals.css";
-import { createServerClient } from "@/utils/database/supabase/server";
-import type { Database } from "@cap/utils";
-import type { SupabaseClient } from "@supabase/auth-helpers-nextjs";
import { Toaster } from "react-hot-toast";
import { Navbar } from "@/components/Navbar";
import { Footer } from "@/components/Footer";
import { Metadata } from "next/types";
-
-export type TypedSupabaseClient = SupabaseClient<Database>;
+import { getSession } from "@/utils/database/supabase/server";
export const metadata: Metadata = {
title: "Cap — Beautiful, shareable screen recordings",
@@ -24,10 +19,7 @@ export default async function RootLayout({
}: {
children: React.ReactNode;
}) {
- const supabase = createServerClient();
- const {
- data: { session },
- } = await supabase.auth.getSession();
+ const session = await getSession();
return (
<html lang="en">
@@ -58,8 +50,7 @@ export default async function RootLayout({
<meta name="theme-color" content="#ffffff" />
</head>
<body>
- <SupabaseProvider session={session}>
- <SupabaseListener serverAccessToken={session?.access_token} />
+ <SupabaseProvider session={session ?? null}>
<Toaster />
<main className="w-full overflow-hidden">
<Navbar />
diff --git a/apps/web/app/login/page.tsx b/apps/web/app/login/page.tsx
index 48d4dfca1..e907d6a78 100644
--- a/apps/web/app/login/page.tsx
+++ b/apps/web/app/login/page.tsx
@@ -1,40 +1,18 @@
"use client";
-import { useState, useRef, useEffect } from "react";
-import { Button } from "@cap/ui";
-import { LogoBadge } from "@cap/ui";
-import { useSupabase } from "@/utils/database/supabase/provider";
-
-export default function Login() {
- const [email, setEmail] = useState<string>("");
- const [loading, setLoading] = useState<boolean>(false);
- const [success, setSuccess] = useState<boolean>(false);
- const { supabase } = useSupabase();
-
- const handleEmailLogin = async () => {
- setLoading(true);
- if (!email || email === "") {
- alert("Please enter your email address.");
- setLoading(false);
- return;
- }
-
- const { error } = await supabase.auth.signInWithOtp({
- email: email,
- options: {
- emailRedirectTo: `${process.env.NEXT_PUBLIC_URL}/dashboard`,
- },
- });
+import { useSupabase } from "@/utils/database/supabase/provider";
+import { LogoBadge } from "@cap/ui";
+import { Auth } from "@supabase/auth-ui-react";
+import { ThemeSupa } from "@supabase/auth-ui-shared";
+import { useRouter } from "next/navigation";
- if (error) {
- alert(error.message);
- setLoading(false);
- return;
- }
+export default function AuthUI() {
+ const { supabase, session } = useSupabase();
+ const router = useRouter();
- setSuccess(true);
- setLoading(false);
- };
+ if (session) {
+ router.replace("/dashboard/caps");
+ }
return (
<div>
@@ -48,29 +26,33 @@ export default function Login() {
</a>
<h1 className="text-3xl">Sign in to Cap</h1>
</div>
- <div className="flex flex-col space-y-3">
- <div>
- <label htmlFor="email">Email</label>
- <input
- id="email"
- name="email"
- type="email"
- placeholder="[email protected]"
- className="block w-full bg-white border border-gray-400 placeholder-gray-500 focus:outline-black shadow-sm rounded-lg py-3 px-5 text-black"
- onChange={(e) => setEmail(e.target.value)}
- />
- </div>
- <Button onClick={() => handleEmailLogin()} variant="default">
- {loading ? "Loading..." : "Continue with Email"}
- </Button>
+ <div className="flex flex-col space-y-4">
+ <Auth
+ supabaseClient={supabase}
+ view="magic_link"
+ providers={[]}
+ redirectTo={`${process.env.NEXT_PUBLIC_URL}/auth/callback`}
+ magicLink={true}
+ appearance={{
+ theme: ThemeSupa,
+ variables: {
+ default: {
+ colors: {
+ brand: "var(--primary)",
+ brandAccent: "var(--primary-2)",
+ },
+ fonts: {
+ bodyFontFamily: "var(--font-primary)",
+ buttonFontFamily: "var(--font-primary)",
+ inputFontFamily: "var(--font-primary)",
+ labelFontFamily: "var(--font-primary)",
+ },
+ },
+ },
+ }}
+ theme="default"
+ />
</div>
- {success && (
- <div>
- <p className="text-black text-sm mt-4">
- Your sign in link has been sent to the email you provided.
- </p>
- </div>
- )}
</div>
</div>
</div>
diff --git a/apps/web/app/share/[videoId]/Share.tsx b/apps/web/app/share/[videoId]/Share.tsx
new file mode 100644
index 000000000..2e2389574
--- /dev/null
+++ b/apps/web/app/share/[videoId]/Share.tsx
@@ -0,0 +1,19 @@
+"use client";
+import { Button } from "@cap/ui";
+import type { Database } from "@cap/utils";
+import { classNames } from "../../../../../packages/ui/src/utils/helpers";
+
+export const Share = ({
+ data,
+}: {
+ data: Database["public"]["Tables"]["videos"]["Row"] | null;
+}) => {
+ return (
+ <div className="wrapper py-24">
+ <h1 className="text-2xl mb-3 text-center">
+ My Video: 2024-01-12 17:32:54
+ </h1>
+ <div className="w-full max-w-[500px] h-96 mx-auto bg-gray-100 rounded-xl"></div>
+ </div>
+ );
+};
diff --git a/apps/web/app/share/[videoId]/page.tsx b/apps/web/app/share/[videoId]/page.tsx
new file mode 100644
index 000000000..4a4d4a66c
--- /dev/null
+++ b/apps/web/app/share/[videoId]/page.tsx
@@ -0,0 +1,24 @@
+import "server-only";
+import { createServerClient } from "@/utils/database/supabase/server";
+import { Share } from "./Share";
+import { uuidFormat } from "@cap/utils";
+
+export const revalidate = 0;
+
+type Props = {
+ params: { [key: string]: string | string[] | undefined };
+};
+
+export default async function ShareVideoPage(props: Props) {
+ const params = props.params;
+ const supabase = createServerClient();
+
+ const video = await supabase
+ .from("videos")
+ .select("*")
+ .eq("id", "6e3ae508-f661-4547-948b-d7b06c9bb752");
+
+ console.log(video);
+
+ return <Share data={video?.data ? video?.data[0] : null} />;
+}
diff --git a/apps/web/app/share/page.tsx b/apps/web/app/share/page.tsx
index e69de29bb..f954c8c46 100644
--- a/apps/web/app/share/page.tsx
+++ b/apps/web/app/share/page.tsx
@@ -0,0 +1,7 @@
+"use client";
+import { useRouter } from "next/navigation";
+
+export default function SharePage() {
+ const router = useRouter();
+ router.replace("/");
+}
diff --git a/apps/web/middleware.tsx b/apps/web/middleware.ts
similarity index 61%
rename from apps/web/middleware.tsx
rename to apps/web/middleware.ts
index c36c43f48..c6262d87f 100644
--- a/apps/web/middleware.tsx
+++ b/apps/web/middleware.ts
@@ -2,12 +2,16 @@ import { createMiddlewareClient } from "@supabase/auth-helpers-nextjs";
import { NextResponse } from "next/server";
import type { NextRequest } from "next/server";
-// this middleware refreshes the user's session and must be run
-// for any Server Component route that uses `createServerComponentSupabaseClient`
export async function middleware(req: NextRequest) {
const res = NextResponse.next();
- const supabase = createMiddlewareClient({ req, res });
+ const supabase = createMiddlewareClient(
+ { req, res },
+ {
+ supabaseUrl: process.env.NEXT_PUBLIC_SUPABASE_URL,
+ supabaseKey: process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY,
+ }
+ );
const {
data: { session },
@@ -29,3 +33,16 @@ export async function middleware(req: NextRequest) {
return res;
}
+
+export const config = {
+ matcher: [
+ /*
+ * Match all request paths except for the ones starting with:
+ * - api (API routes)
+ * - _next/static (static files)
+ * - _next/image (image optimization files)
+ * - favicon.ico (favicon file)
+ */
+ "/((?!api|_next/static|_next/image|favicon.ico).*)",
+ ],
+};
diff --git a/apps/web/next.config.js b/apps/web/next.config.js
index 3c249a010..6ab9e4b1c 100644
--- a/apps/web/next.config.js
+++ b/apps/web/next.config.js
@@ -26,6 +26,11 @@ const nextConfig = {
experimental: {
optimizePackageImports: ["@cap/ui", "@cap/utils"],
},
+ env: {
+ NEXT_PUBLIC_SUPABASE_URL: process.env.NEXT_PUBLIC_SUPABASE_URL,
+ NEXT_PUBLIC_SUPABASE_ANON_KEY: process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY,
+ SUPABASE_SERVICE_ROLE_KEY: process.env.SUPABASE_SERVICE_ROLE_KEY,
+ },
};
module.exports = nextConfig;
diff --git a/apps/web/package.json b/apps/web/package.json
index ba059781e..d7777944f 100644
--- a/apps/web/package.json
+++ b/apps/web/package.json
@@ -16,15 +16,17 @@
"@cap/utils": "workspace:*",
"@headlessui/react": "^1.7.17",
"@hookform/resolvers": "^3.3.2",
- "@supabase/auth-helpers-nextjs": "^0.8.7",
- "@supabase/supabase-js": "^2.39.0",
+ "@supabase/auth-helpers-nextjs": "^0.7.0",
+ "@supabase/auth-ui-react": "^0.4.2",
+ "@supabase/auth-ui-shared": "^0.1.6",
+ "@supabase/supabase-js": "^2.23.0",
"aws-sdk": "^2.1530.0",
"clsx": "^2.0.0",
"dotenv": "^16.3.1",
"lucide-react": "^0.294.0",
- "next": "14.0.3",
- "react": "^18",
- "react-dom": "^18",
+ "next": "13.4.3",
+ "react": "^18.2.0",
+ "react-dom": "^18.2.0",
"react-hook-form": "^7.49.2",
"react-hot-toast": "^2.4.1",
"react-scroll-parallax": "^3.4.5",
@@ -33,15 +35,22 @@
"zod": "^3.22.4"
},
"devDependencies": {
- "@types/node": "^20.10.0",
- "@types/react": "^18.2.38",
+ "@types/node": "^20.2.3",
+ "@types/react": "^18.2.7",
"@types/react-dom": "^18",
- "autoprefixer": "^10",
- "eslint": "^8",
- "eslint-config-next": "13.5.6",
- "postcss": "^8",
- "supabase": "^1.123.4",
+ "autoprefixer": "^10.4.14",
+ "eslint": "^8.41.0",
+ "eslint-config-next": "13.4.3",
+ "postcss": "^8.4.23",
+ "supabase": "^1.63.1",
"tailwindcss": "^3",
"typescript": "^5.3.2"
+ },
+ "optionalDependencies": {
+ "bufferutil": "^4.0.8",
+ "utf-8-validate": "^6.0.3"
+ },
+ "engines": {
+ "node": "20"
}
}
diff --git a/apps/web/utils/database/supabase/browser.ts b/apps/web/utils/database/supabase/browser.ts
index a1dec7b0f..74aa88d33 100644
--- a/apps/web/utils/database/supabase/browser.ts
+++ b/apps/web/utils/database/supabase/browser.ts
@@ -1,4 +1,8 @@
import { createPagesBrowserClient } from "@supabase/auth-helpers-nextjs";
import type { Database } from "@cap/utils";
-export const createBrowserClient = () => createPagesBrowserClient<Database>();
+export const createBrowserClient = () =>
+ createPagesBrowserClient<Database>({
+ supabaseUrl: process.env.NEXT_PUBLIC_SUPABASE_URL,
+ supabaseKey: process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY,
+ });
diff --git a/apps/web/utils/database/supabase/provider.tsx b/apps/web/utils/database/supabase/provider.tsx
index fc79e74d4..e18cf907d 100644
--- a/apps/web/utils/database/supabase/provider.tsx
+++ b/apps/web/utils/database/supabase/provider.tsx
@@ -1,27 +1,44 @@
-'use client';
-import type { Session } from '@supabase/auth-helpers-nextjs';
-import { createContext, useContext, useState } from 'react';
-import type { TypedSupabaseClient } from '@/app/layout';
-import { createBrowserClient } from '@/utils/database/supabase/browser';
+"use client";
-type MaybeSession = Session | null;
+import type { Database } from "@cap/utils";
+import { createPagesBrowserClient } from "@supabase/auth-helpers-nextjs";
+import type { Session, SupabaseClient } from "@supabase/auth-helpers-nextjs";
+import { useRouter } from "next/navigation";
+import { createContext, useContext, useEffect, useState } from "react";
type SupabaseContext = {
- supabase: TypedSupabaseClient;
- session: MaybeSession;
+ supabase: SupabaseClient<Database>;
+ session: Session | null;
};
-// @ts-ignore
-const Context = createContext<SupabaseContext>();
+const Context = createContext<SupabaseContext | undefined>(undefined);
export default function SupabaseProvider({
children,
- session
+ session,
}: {
children: React.ReactNode;
- session: MaybeSession;
+ session: SupabaseContext["session"];
}) {
- const [supabase] = useState(() => createBrowserClient());
+ const [supabase] = useState(() =>
+ createPagesBrowserClient({
+ supabaseUrl: process.env.NEXT_PUBLIC_SUPABASE_URL,
+ supabaseKey: process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY,
+ })
+ );
+ const router = useRouter();
+
+ useEffect(() => {
+ const {
+ data: { subscription },
+ } = supabase.auth.onAuthStateChange((event) => {
+ if (event === "SIGNED_IN") router.refresh();
+ });
+
+ return () => {
+ subscription.unsubscribe();
+ };
+ }, [router, supabase]);
return (
<Context.Provider value={{ supabase, session }}>
@@ -30,4 +47,12 @@ export default function SupabaseProvider({
);
}
-export const useSupabase = () => useContext(Context);
+export const useSupabase = () => {
+ const context = useContext(Context);
+
+ if (context === undefined) {
+ throw new Error("useSupabase must be used inside SupabaseProvider");
+ }
+
+ return context;
+};
diff --git a/apps/web/utils/database/supabase/server.ts b/apps/web/utils/database/supabase/server.ts
index 35bb8c096..0e0fb81aa 100644
--- a/apps/web/utils/database/supabase/server.ts
+++ b/apps/web/utils/database/supabase/server.ts
@@ -1,19 +1,30 @@
import { cookies } from "next/headers";
-import {
- createServerComponentClient,
- createRouteHandlerClient,
-} from "@supabase/auth-helpers-nextjs";
+import { createServerComponentClient } from "@supabase/auth-helpers-nextjs";
import type { Database } from "@cap/utils";
export const createServerClient = () =>
- createServerComponentClient<Database>({
- cookies,
- });
+ createServerComponentClient<Database>(
+ {
+ cookies,
+ },
+ {
+ supabaseUrl: process.env.NEXT_PUBLIC_SUPABASE_URL,
+ supabaseKey: process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY,
+ }
+ );
-export const createRouteClient = () =>
- createRouteHandlerClient<Database>({
- cookies,
- });
+export const getSession = async () => {
+ const supabase = createServerClient();
+ try {
+ const {
+ data: { session },
+ } = await supabase.auth.getSession();
+ return session;
+ } catch (error) {
+ console.error("Error:", error);
+ return null;
+ }
+};
export const getActiveSpace = async () => {
const supabase = createServerClient();
diff --git a/package.json b/package.json
index 6aa63b106..29e518f93 100644
--- a/package.json
+++ b/package.json
@@ -13,5 +13,8 @@
"supabase": "^1.123.4"
},
"packageManager": "[email protected]",
- "name": "cap"
+ "name": "cap",
+ "engines": {
+ "node": "20"
+ }
}
diff --git a/packages/ui/package.json b/packages/ui/package.json
index 977a6b798..4571f2292 100644
--- a/packages/ui/package.json
+++ b/packages/ui/package.json
@@ -46,5 +46,8 @@
"react-hook-form": "^7.49.2",
"react-loading-skeleton": "^3.3.1",
"tailwind-merge": "^2.1.0"
+ },
+ "engines": {
+ "node": "20"
}
}
diff --git a/packages/utils/package.json b/packages/utils/package.json
index a572ba2dd..39b76264c 100644
--- a/packages/utils/package.json
+++ b/packages/utils/package.json
@@ -18,5 +18,8 @@
"react-dom": "^18.2.0",
"react-router-dom": "^6.18.0"
},
- "dependencies": {}
+ "dependencies": {},
+ "engines": {
+ "node": "20"
+ }
}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index f1ba1a6dd..273e93e65 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -10,7 +10,7 @@ importers:
devDependencies:
'@turbo/gen':
specifier: ^1.9.7
- version: 1.10.16(@types/[email protected])([email protected])
+ version: 1.10.16(@types/[email protected])([email protected])
eslint:
specifier: ^7.32.0
version: 7.32.0
@@ -35,6 +35,9 @@ importers:
autoprefixer:
specifier: ^10.4.16
version: 10.4.16([email protected])
+ date-fns:
+ specifier: ^3.2.0
+ version: 3.2.0
dotenv:
specifier: ^16.3.1
version: 16.3.1
@@ -49,7 +52,7 @@ importers:
version: 18.2.0([email protected])
react-hot-toast:
specifier: ^2.4.1
react-router-dom:
specifier: ^6.18.0
@@ -68,7 +71,7 @@ importers:
devDependencies:
'@supabase/supabase-js':
specifier: ^2.39.0
- version: 2.39.0
'@tauri-apps/cli':
specifier: ^1.5.0
version: 1.5.6
@@ -86,7 +89,7 @@ importers:
version: 5.3.2
vite:
specifier: ^5.0.11
- version: 5.0.11(@types/[email protected])
+ version: 5.0.11(@types/[email protected])
apps/web:
dependencies:
@@ -112,11 +115,17 @@ importers:
specifier: ^3.3.2
version: 3.3.2([email protected])
'@supabase/auth-helpers-nextjs':
- specifier: ^0.8.7
- version: 0.8.7(@supabase/[email protected])
+ specifier: ^0.7.0
+ version: 0.7.4(@supabase/[email protected])
+ '@supabase/auth-ui-react':
+ specifier: ^0.4.2
+ version: 0.4.7(@supabase/[email protected])
+ '@supabase/auth-ui-shared':
+ specifier: ^0.1.6
+ version: 0.1.8(@supabase/[email protected])
'@supabase/supabase-js':
- specifier: ^2.39.0
- version: 2.39.0
+ specifier: ^2.23.0
aws-sdk:
specifier: ^2.1530.0
version: 2.1530.0
@@ -130,20 +139,20 @@ importers:
specifier: ^0.294.0
version: 0.294.0([email protected])
next:
- specifier: 14.0.3
+ specifier: 13.4.3
react:
- specifier: ^18
+ specifier: ^18.2.0
version: 18.2.0
react-dom:
- specifier: ^18
+ specifier: ^18.2.0
version: 18.2.0([email protected])
react-hook-form:
specifier: ^7.49.2
version: 7.49.2([email protected])
react-hot-toast:
specifier: ^2.4.1
react-scroll-parallax:
specifier: ^3.4.5
@@ -156,30 +165,37 @@ importers:
zod:
specifier: ^3.22.4
version: 3.22.4
+ optionalDependencies:
+ bufferutil:
+ specifier: ^4.0.8
+ version: 4.0.8
+ utf-8-validate:
+ specifier: ^6.0.3
+ version: 6.0.3
devDependencies:
'@types/node':
- specifier: ^20.10.0
- version: 20.10.0
+ specifier: ^20.2.3
+ version: 20.11.0
'@types/react':
- specifier: ^18.2.38
+ specifier: ^18.2.7
version: 18.2.38
'@types/react-dom':
specifier: ^18
version: 18.2.17
autoprefixer:
- specifier: ^10
- version: 10.4.16([email protected])
+ specifier: ^10.4.14
+ version: 10.4.16([email protected])
eslint:
- specifier: ^8
+ specifier: ^8.41.0
version: 8.54.0
eslint-config-next:
- specifier: 13.5.6
+ specifier: 13.4.3
postcss:
- specifier: ^8
- version: 8.4.31
+ specifier: ^8.4.23
+ version: 8.4.33
supabase:
- specifier: ^1.123.4
+ specifier: ^1.63.1
version: 1.123.4
tailwindcss:
specifier: ^3
@@ -198,23 +214,23 @@ importers:
version: 4.5.0(@types/[email protected])
vite-tsconfig-paths:
specifier: ^4.2.0
devDependencies:
'@types/node':
specifier: ^20.4.5
version: 20.10.0
'@typescript-eslint/eslint-plugin':
specifier: ^5.59.6
- version: 5.62.0(@typescript-eslint/[email protected])([email protected])([email protected])
+ version: 5.62.0(@typescript-eslint/[email protected])([email protected])([email protected])
'@typescript-eslint/parser':
specifier: ^5.59.6
eslint:
specifier: ^8.41.0
version: 8.54.0
eslint-config-next:
specifier: 13.3.0
eslint-config-prettier:
specifier: ^8.8.0
version: 8.10.0([email protected])
@@ -232,7 +248,7 @@ importers:
version: 4.6.0([email protected])
eslint-plugin-tailwindcss:
specifier: ^3.12.0
- version: 3.13.0([email protected])
+ version: 3.13.0([email protected])
eslint-utils:
specifier: ^3.0.0
version: 3.0.0([email protected])
@@ -1163,13 +1179,6 @@ packages:
regenerator-runtime: 0.14.0
dev: true
- resolution: {integrity: sha512-2Yv65nlWnWlSpe3fXEyX5i7fx5kIKo4Qbcj+hMO0odwaneFjfXw5fdum+4yL20O0QiaHpia0cYQ9xpNMqrBwHg==}
- engines: {node: '>=6.9.0'}
- dependencies:
- regenerator-runtime: 0.14.0
- dev: true
-
resolution: {integrity: sha512-zHd0eUrf5GZoOWVCXp6koAKQTfZV07eit6bGPmJgnZdnSAvvZee6zniW2XMF7Cmc4ISOOnPy3QaSiIJGJkVEDQ==}
engines: {node: '>=6.9.0'}
@@ -1177,6 +1186,13 @@ packages:
regenerator-runtime: 0.14.0
dev: false
+ resolution: {integrity: sha512-Y7KbAP984rn1VGMbGqKmBLio9V7y5Je9GvU4rQPCPinCyNfUcToxIXl06d59URp/F3LwinvODxab5N/G6qggkw==}
+ engines: {node: '>=6.9.0'}
+ dependencies:
+ regenerator-runtime: 0.14.1
+ dev: true
+
resolution: {integrity: sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w==}
engines: {node: '>=6.9.0'}
@@ -1714,6 +1730,18 @@ packages:
resolution: {integrity: sha512-dvuCeX5fC9dXgJn9t+X5atfmgQAzUOWqS1254Gh0m6i8wKd10ebXkfNKiRK+1GWi/yTvvLDHpoxLr0xxxeslWw==}
dev: true
+ /@isaacs/[email protected]:
+ resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==}
+ engines: {node: '>=12'}
+ dependencies:
+ string-width: 5.1.2
+ string-width-cjs: /[email protected]
+ strip-ansi: 7.1.0
+ strip-ansi-cjs: /[email protected]
+ wrap-ansi: 8.1.0
+ wrap-ansi-cjs: /[email protected]
+ dev: true
+
/@jridgewell/[email protected]:
resolution: {integrity: sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==}
engines: {node: '>=6.0.0'}
@@ -1746,8 +1774,8 @@ packages:
'@jridgewell/sourcemap-codec': 1.4.15
dev: true
- resolution: {integrity: sha512-7xRqh9nMvP5xrW4/+L0jgRRX+HoNRGnfJpD+5Wq6/13j3dsdzxO3BCXn7D3hMqsDb+vjZnJq+vI7+EtgrYZTeA==}
+ resolution: {integrity: sha512-pa1ErjyFensznttAk3EIv77vFbfSYT6cLzVRK5jx4uiRuCQo+m2wCFAREaHKIy63dlgvOyMlzh6R8Inu8H3KrQ==}
dev: false
@@ -1756,14 +1784,14 @@ packages:
glob: 7.1.7
dev: true
- resolution: {integrity: sha512-ng7pU/DDsxPgT6ZPvuprxrkeew3XaRf4LAT4FabaEO/hAbvVx4P7wqnqdbTdDn1kgTvsI4tpIgT4Awn/m0bGbg==}
+ resolution: {integrity: sha512-5B0uOnh7wyUY9vNNdIA6NUvWozhrZaTMZOzdirYAefqD0ZBK5C/h3+KMYdCKrR7JrXGvVpWnHtv54b3dCzwICA==}
dependencies:
glob: 7.1.7
dev: true
- resolution: {integrity: sha512-64JbSvi3nbbcEtyitNn2LEDS/hcleAFpHdykpcnrstITFlzFgB/bW0ER5/SJJwUPj+ZPY+z3e+1jAfcczRLVGw==}
+ resolution: {integrity: sha512-yx18udH/ZmR4Bw4M6lIIPE3JxsAZwo04iaucEfA2GMt1unXr2iodHUX/LAKNyi6xoLP2ghi0E+Xi1f4Qb8f1LQ==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [darwin]
@@ -1771,8 +1799,8 @@ packages:
dev: false
optional: true
- resolution: {integrity: sha512-RkTf+KbAD0SgYdVn1XzqE/+sIxYGB7NLMZRn9I4Z24afrhUpVJx6L8hsRnIwxz3ERE2NFURNliPjJ2QNfnWicQ==}
+ resolution: {integrity: sha512-Mi8xJWh2IOjryAM1mx18vwmal9eokJ2njY4nDh04scy37F0LEGJ/diL6JL6kTXi0UfUCGbMsOItf7vpReNiD2A==}
engines: {node: '>= 10'}
cpu: [x64]
os: [darwin]
@@ -1780,8 +1808,8 @@ packages:
dev: false
optional: true
- resolution: {integrity: sha512-3tBWGgz7M9RKLO6sPWC6c4pAw4geujSwQ7q7Si4d6bo0l6cLs4tmO+lnSwFp1Tm3lxwfMk0SgkJT7EdwYSJvcg==}
+ resolution: {integrity: sha512-aBvtry4bxJ1xwKZ/LVPeBGBwWVwxa4bTnNkRRw6YffJnn/f4Tv4EGDPaVeYHZGQVA56wsGbtA6nZMuWs/EIk4Q==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [linux]
@@ -1789,8 +1817,8 @@ packages:
dev: false
optional: true
- resolution: {integrity: sha512-v0v8Kb8j8T23jvVUWZeA2D8+izWspeyeDGNaT2/mTHWp7+37fiNfL8bmBWiOmeumXkacM/AB0XOUQvEbncSnHA==}
+ resolution: {integrity: sha512-krT+2G3kEsEUvZoYte3/2IscscDraYPc2B+fDJFipPktJmrv088Pei/RjrhWm5TMIy5URYjZUoDZdh5k940Dyw==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [linux]
@@ -1798,8 +1826,8 @@ packages:
dev: false
optional: true
- resolution: {integrity: sha512-VM1aE1tJKLBwMGtyBR21yy+STfl0MapMQnNrXkxeyLs0GFv/kZqXS5Jw/TQ3TSUnbv0QPDf/X8sDXuMtSgG6eg==}
+ resolution: {integrity: sha512-AMdFX6EKJjC0G/CM6hJvkY8wUjCcbdj3Qg7uAQJ7PVejRWaVt0sDTMavbRfgMchx8h8KsAudUCtdFkG9hlEClw==}
engines: {node: '>= 10'}
cpu: [x64]
os: [linux]
@@ -1807,8 +1835,8 @@ packages:
dev: false
optional: true
- resolution: {integrity: sha512-64EnmKy18MYFL5CzLaSuUn561hbO1Gk16jM/KHznYP3iCIfF9e3yULtHaMy0D8zbHfxset9LTOv6cuYKJgcOxg==}
+ resolution: {integrity: sha512-jySgSXE48shaLtcQbiFO9ajE9mqz7pcAVLnVLvRIlUHyQYR/WyZdK8ehLs65Mz6j9cLrJM+YdmdJPyV4WDaz2g==}
engines: {node: '>= 10'}
cpu: [x64]
os: [linux]
@@ -1816,8 +1844,8 @@ packages:
dev: false
optional: true
- resolution: {integrity: sha512-WRDp8QrmsL1bbGtsh5GqQ/KWulmrnMBgbnb+59qNTW1kVi1nG/2ndZLkcbs2GX7NpFLlToLRMWSQXmPzQm4tog==}
+ resolution: {integrity: sha512-5DxHo8uYcaADiE9pHrg8o28VMt/1kR8voDehmfs9AqS0qSClxAAl+CchjdboUvbCjdNWL1MISCvEfKY2InJ3JA==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [win32]
@@ -1825,8 +1853,8 @@ packages:
dev: false
optional: true
- resolution: {integrity: sha512-EKffQeqCrj+t6qFFhIFTRoqb2QwX1mU7iTOvMyLbYw3QtqTw9sMwjykyiMlZlrfm2a4fA84+/aeW+PMg1MjuTg==}
+ resolution: {integrity: sha512-LaqkF3d+GXRA5X6zrUjQUrXm2MN/3E2arXBtn5C7avBCNYfm9G3Xc646AmmmpN3DJZVaMYliMyCIQCMDEzk80w==}
engines: {node: '>= 10'}
cpu: [ia32]
os: [win32]
@@ -1834,8 +1862,8 @@ packages:
dev: false
optional: true
- resolution: {integrity: sha512-ERhKPSJ1vQrPiwrs15Pjz/rvDHZmkmvbf/BjPN/UCOI++ODftT0GtasDPi0j+y6PPJi5HsXw+dpRaXUaw4vjuQ==}
+ resolution: {integrity: sha512-jglUk/x7ZWeOJWlVoKyIAkHLTI+qEkOriOOV+3hr1GyiywzcqfI7TpFSiwC7kk1scOiH7NTFKp8mA3XPNO9bDw==}
engines: {node: '>= 10'}
cpu: [x64]
os: [win32]
@@ -1861,6 +1889,13 @@ packages:
'@nodelib/fs.scandir': 2.1.5
fastq: 1.15.0
+ resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==}
+ engines: {node: '>=14'}
+ requiresBuild: true
+ dev: true
+ optional: true
+
/@radix-ui/[email protected]:
resolution: {integrity: sha512-3e7rn8FDMin4CgeL7Z/49smCA3rFYY3Ha2rUQ7HRWFadS5iCRw08ZgVT1LaNTCNqgvrUiyczLflrVrF0SRQtNA==}
dependencies:
@@ -2570,6 +2605,10 @@ packages:
resolution: {integrity: sha512-2/U3GXA6YiPYQDLGwtGlnNgKYBSwCFIHf8Y9LUY5VATHdtbLlU0Y1R3QoBnT0aB4qv/BEiVVsj7LJXoQCgJ2vA==}
dev: true
+ /@rushstack/[email protected]:
+ resolution: {integrity: sha512-UY+FGM/2jjMkzQLn8pxcHGMaVLh9aEitG3zY2CiY7XHdLiz3bZOwa6oDxNqEMv7zZkV+cj5DOdz0cQ1BP5Hjgw==}
+ dev: true
+
resolution: {integrity: sha512-4foO7738k8kM9flMHu3VLabqu7nPgvIj8TB909S0CnKx0YZz/dcDH3pZ/4JHdatfxlZdKF1JWOYCw9+v3HVVsw==}
engines: {node: '>=14.0.0'}
@@ -3025,25 +3064,50 @@ packages:
tslib: 2.6.2
dev: false
- /@supabase/[email protected](@supabase/[email protected]):
- resolution: {integrity: sha512-iYdOjFo0GkRvha340l8JdCiBiyXQuG9v8jnq7qMJ/2fakrskRgHTCOt7ryWbip1T6BExcWKC8SoJrhCzPOxhhg==}
+ /@stitches/[email protected]:
+ resolution: {integrity: sha512-Gfkvwk9o9kE9r9XNBmJRfV8zONvXThnm1tcuojL04Uy5uRyqg93DC83lDebl0rocZCfKSjUv+fWYtMQmEDJldg==}
+ dev: false
+
+ /@supabase/[email protected](@supabase/[email protected]):
+ resolution: {integrity: sha512-MyGCkB7LEDcGrKmesKGjyG54Jlbiss8VGTegrNde/ywXujQyRFnzycijoASDBc6i9SmE7eE1qWBsMr2URb07nw==}
peerDependencies:
'@supabase/supabase-js': ^2.19.0
dependencies:
- '@supabase/auth-helpers-shared': 0.6.3(@supabase/[email protected])
- '@supabase/supabase-js': 2.39.0
+ '@supabase/auth-helpers-shared': 0.4.1(@supabase/[email protected])
+ '@supabase/supabase-js': 2.39.0([email protected])([email protected])
set-cookie-parser: 2.6.0
dev: false
- /@supabase/[email protected](@supabase/[email protected]):
- resolution: {integrity: sha512-xYQRLFeFkL4ZfwC7p9VKcarshj3FB2QJMgJPydvOY7J5czJe6xSG5/wM1z63RmAzGbCkKg+dzpq61oeSyWiGBQ==}
+ /@supabase/[email protected](@supabase/[email protected]):
+ resolution: {integrity: sha512-IEDX9JzWkIjQiLUaP4Qy5YDiG0jFQatWfS+jw8cCQs6QfbNdEPd2Y3qonwGHnM90CZom9SvjuylBv2pFVAL7Lw==}
peerDependencies:
'@supabase/supabase-js': ^2.19.0
dependencies:
- '@supabase/supabase-js': 2.39.0
+ '@supabase/supabase-js': 2.39.0([email protected])([email protected])
jose: 4.15.4
dev: false
+ /@supabase/[email protected](@supabase/[email protected]):
+ resolution: {integrity: sha512-Lp4FQGFh7BMX1Y/BFaUKidbryL7eskj1fl6Lby7BeHrTctbdvDbCMjVKS8wZ2rxuI8FtPS2iU900fSb70FHknQ==}
+ peerDependencies:
+ '@supabase/supabase-js': ^2.21.0
+ dependencies:
+ '@stitches/core': 1.2.8
+ '@supabase/auth-ui-shared': 0.1.8(@supabase/[email protected])
+ '@supabase/supabase-js': 2.39.0([email protected])([email protected])
+ prop-types: 15.8.1
+ react: 18.2.0
+ react-dom: 18.2.0([email protected])
+ dev: false
+
+ /@supabase/[email protected](@supabase/[email protected]):
+ resolution: {integrity: sha512-ouQ0DjKcEFg+0gZigFIEgu01V3e6riGZPzgVD0MJsCBNsMsiDT74+GgCEIElMUpTGkwSja3xLwdFRFgMNFKcjg==}
+ peerDependencies:
+ '@supabase/supabase-js': ^2.21.0
+ dependencies:
+ '@supabase/supabase-js': 2.39.0([email protected])([email protected])
+ dev: false
+
/@supabase/[email protected]:
resolution: {integrity: sha512-BNzC5XhCzzCaggJ8s53DP+WeHHGT/NfTsx2wUSSGKR2/ikLFQTBCDzMvGz/PxYMqRko/LwncQtKXGOYp1PkPaw==}
dependencies:
@@ -3065,13 +3129,13 @@ packages:
dependencies:
'@supabase/node-fetch': 2.6.15
- /@supabase/[email protected]:
resolution: {integrity: sha512-e/SI+/eqFJorAKAgVAwKQ9hSDQSBp86Yh7XbQmfJJ90LEfpM52HlTfJt/03lcepRu6BmH5h1uYn1b4zta7ghdw==}
dependencies:
'@supabase/node-fetch': 2.6.15
'@types/phoenix': 1.6.4
'@types/websocket': 1.0.10
- ws: 8.15.0
transitivePeerDependencies:
- bufferutil
- utf-8-validate
@@ -3081,21 +3145,21 @@ packages:
dependencies:
'@supabase/node-fetch': 2.6.15
- /@supabase/[email protected]:
resolution: {integrity: sha512-cYfnwWRW5rYBbPT/BNIejtRT9ULdD9PnIExQV28PZpqcqm3PLwS4f3pY7WGB01Da63VYdvktZPKuYvreqsj/Zg==}
dependencies:
'@supabase/functions-js': 2.1.5
'@supabase/gotrue-js': 2.60.1
'@supabase/node-fetch': 2.6.15
'@supabase/postgrest-js': 1.9.0
- '@supabase/realtime-js': 2.9.0
+ '@supabase/realtime-js': 2.9.0([email protected])([email protected])
'@supabase/storage-js': 2.5.5
transitivePeerDependencies:
- bufferutil
- utf-8-validate
- resolution: {integrity: sha512-E4KcWTpoLHqwPHLxidpOqQbcrZVgi0rsmmZXUle1jXmJfuIf/UWpczUJ7MZZ5tlxytgJXyp0w4PGkkeLiuIdZw==}
+ resolution: {integrity: sha512-sJ902EfIzn1Fa+qYmjdQqh8tPsoxyBz+8yBKC2HKUxyezKJFwPGOn7pv4WY6QuQW//ySQi5lJjA/ZT9sNWWNTg==}
dependencies:
tslib: 2.6.2
dev: false
@@ -3231,7 +3295,7 @@ packages:
resolution: {integrity: sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==}
dev: true
resolution: {integrity: sha512-PzyluADjVuy5OcIi+/aRcD70OElQpRVRDdfZ9fH8G5Fv75lQcNrjd1bBGKmhjSw+g+eTEkXMGnY7s6gsCYjYTQ==}
hasBin: true
dependencies:
@@ -3243,7 +3307,7 @@ packages:
minimatch: 9.0.3
node-plop: 0.26.3
proxy-agent: 6.3.1
- ts-node: 10.9.1(@types/[email protected])([email protected])
+ ts-node: 10.9.1(@types/[email protected])([email protected])
update-check: 1.5.4
validate-npm-package-name: 5.0.0
transitivePeerDependencies:
@@ -3304,7 +3368,7 @@ packages:
resolution: {integrity: sha512-ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3UA==}
dependencies:
'@types/minimatch': 5.1.2
- '@types/node': 20.10.0
+ '@types/node': 20.11.0
dev: true
@@ -3331,6 +3395,11 @@ packages:
dependencies:
undici-types: 5.26.5
+ resolution: {integrity: sha512-o9bjXmDNcF7GbM4CNQpmi+TutCgap/K3w1JyKgxAjqx41zp9qlIAVFi0IhCNsJcXolEqLWhbFbEeL0PvYm4pcQ==}
+ dependencies:
+ undici-types: 5.26.5
+
resolution: {integrity: sha512-B34A7uot1Cv0XtaHRYDATltAdKx0BvVKNgYNqE4WjtPUa4VQJM7kxeXcVKaH+KS+kCmZ+6w+QaUdcljiheiBJA==}
@@ -3359,7 +3428,7 @@ packages:
resolution: {integrity: sha512-HsJ+z3QuETzP3cswwtzt2vEIiHBk/dCcHGhbmG5X3ecnwFD/lPrMpliGXxSCg03L9AhrdwA4Oz/qfspkDW+xGQ==}
dependencies:
- '@types/node': 20.10.0
+ '@types/node': 20.11.0
dev: true
@@ -3369,9 +3438,9 @@ packages:
resolution: {integrity: sha512-svjGZvPB7EzuYS94cI7a+qhwgGU1y89wUgjT6E2wVUfmAGIvRfT7obBvRtnhXCSsoMdlG4gBFGE7MfkIXZLoww==}
dependencies:
- '@types/node': 20.10.0
+ '@types/node': 20.11.0
- /@typescript-eslint/[email protected](@typescript-eslint/[email protected])([email protected])([email protected]):
+ /@typescript-eslint/[email protected](@typescript-eslint/[email protected])([email protected])([email protected]):
resolution: {integrity: sha512-TiZzBSJja/LbhNPvk6yc0JrX9XqhQ0hdh6M2svYfsHGejaKFIAGd9MQ+ERIMzLGlN/kZoYIgdxFV0PuljTKXag==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies:
@@ -3383,18 +3452,18 @@ packages:
optional: true
dependencies:
'@eslint-community/regexpp': 4.10.0
- '@typescript-eslint/parser': 5.62.0([email protected])([email protected])
+ '@typescript-eslint/parser': 5.62.0([email protected])([email protected])
'@typescript-eslint/scope-manager': 5.62.0
- '@typescript-eslint/type-utils': 5.62.0([email protected])([email protected])
- '@typescript-eslint/utils': 5.62.0([email protected])([email protected])
+ '@typescript-eslint/type-utils': 5.62.0([email protected])([email protected])
+ '@typescript-eslint/utils': 5.62.0([email protected])([email protected])
debug: 4.3.4
eslint: 8.54.0
graphemer: 1.4.0
ignore: 5.3.0
natural-compare-lite: 1.4.0
semver: 7.5.4
- tsutils: 3.21.0([email protected])
- typescript: 5.3.2
+ tsutils: 3.21.0([email protected])
+ typescript: 5.3.3
transitivePeerDependencies:
- supports-color
dev: true
@@ -3419,6 +3488,26 @@ packages:
- supports-color
dev: true
+ resolution: {integrity: sha512-VlJEV0fOQ7BExOsHYAGrgbEiZoi8D+Bl2+f6V2RrXerRSylnp+ZBHmPvaIa8cz0Ajx7WO7Z5RqfgYg7ED1nRhA==}
+ engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
+ peerDependencies:
+ eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
+ typescript: '*'
+ peerDependenciesMeta:
+ typescript:
+ optional: true
+ dependencies:
+ '@typescript-eslint/scope-manager': 5.62.0
+ '@typescript-eslint/types': 5.62.0
+ '@typescript-eslint/typescript-estree': 5.62.0([email protected])
+ debug: 4.3.4
+ eslint: 8.54.0
+ typescript: 5.3.3
+ transitivePeerDependencies:
+ - supports-color
+ dev: true
+
/@typescript-eslint/[email protected]:
resolution: {integrity: sha512-VXuvVvZeQCQb5Zgf4HAxc04q5j+WrNAtNh9OwCsCgpKqESMTu3tF/jhZ3xG6T4NZwWl65Bg8KuS2uEvhSfLl0w==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
@@ -3427,7 +3516,7 @@ packages:
'@typescript-eslint/visitor-keys': 5.62.0
dev: true
resolution: {integrity: sha512-xsSQreu+VnfbqQpW5vnCJdq1Z3Q0U31qiWmRhr98ONQmcp/yhiPJFPq8MXiJVLiksmOKSjIldZzkebzHuCGzew==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies:
@@ -3437,12 +3526,12 @@ packages:
typescript:
optional: true
dependencies:
- '@typescript-eslint/typescript-estree': 5.62.0([email protected])
- '@typescript-eslint/utils': 5.62.0([email protected])([email protected])
+ '@typescript-eslint/typescript-estree': 5.62.0([email protected])
+ '@typescript-eslint/utils': 5.62.0([email protected])([email protected])
debug: 4.3.4
eslint: 8.54.0
- tsutils: 3.21.0([email protected])
- typescript: 5.3.2
+ tsutils: 3.21.0([email protected])
+ typescript: 5.3.3
transitivePeerDependencies:
- supports-color
dev: true
@@ -3473,7 +3562,28 @@ packages:
- supports-color
dev: true
+ /@typescript-eslint/[email protected]([email protected]):
+ resolution: {integrity: sha512-CmcQ6uY7b9y694lKdRB8FEel7JbU/40iSAPomu++SjLMntB+2Leay2LO6i8VnJk58MtE9/nQSFIH6jpyRWyYzA==}
+ engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
+ peerDependencies:
+ typescript: '*'
+ peerDependenciesMeta:
+ typescript:
+ optional: true
+ dependencies:
+ '@typescript-eslint/types': 5.62.0
+ '@typescript-eslint/visitor-keys': 5.62.0
+ debug: 4.3.4
+ globby: 11.1.0
+ is-glob: 4.0.3
+ semver: 7.5.4
+ tsutils: 3.21.0([email protected])
+ typescript: 5.3.3
+ transitivePeerDependencies:
+ - supports-color
+ dev: true
+
resolution: {integrity: sha512-n8oxjeb5aIbPFEtmQxQYOLI0i9n5ySBEY/ZEHHZqKQSFnxio1rv6dthascc9dLuwrL0RC5mPCxB7vnAVGAYWAQ==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies:
@@ -3484,7 +3594,7 @@ packages:
'@types/semver': 7.5.6
'@typescript-eslint/scope-manager': 5.62.0
'@typescript-eslint/types': 5.62.0
- '@typescript-eslint/typescript-estree': 5.62.0([email protected])
+ '@typescript-eslint/typescript-estree': 5.62.0([email protected])
eslint: 8.54.0
eslint-scope: 5.1.1
semver: 7.5.4
@@ -3531,7 +3641,7 @@ packages:
'@babel/plugin-transform-react-jsx-source': 7.23.3(@babel/[email protected])
'@types/babel__core': 7.20.5
react-refresh: 0.14.0
- vite: 5.0.11(@types/[email protected])
+ vite: 5.0.11(@types/[email protected])
transitivePeerDependencies:
- supports-color
dev: true
@@ -3621,6 +3731,11 @@ packages:
engines: {node: '>=8'}
dev: true
+ resolution: {integrity: sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==}
+ engines: {node: '>=12'}
+ dev: true
+
resolution: {integrity: sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==}
engines: {node: '>=4'}
@@ -3634,6 +3749,11 @@ packages:
color-convert: 2.0.1
dev: true
+ resolution: {integrity: sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==}
+ engines: {node: '>=12'}
+ dev: true
+
resolution: {integrity: sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==}
@@ -3788,6 +3908,22 @@ packages:
postcss: 8.4.31
postcss-value-parser: 4.2.0
+ resolution: {integrity: sha512-7vd3UC6xKp0HLfua5IjZlcXvGAGy7cBAXTg2lyQ/8WpNhd6SiZ8Be+xm3FyBSYJx5GKcpRCzBh7RH4/0dnY+uQ==}
+ engines: {node: ^10 || ^12 || >=14}
+ hasBin: true
+ peerDependencies:
+ postcss: ^8.1.0
+ dependencies:
+ browserslist: 4.22.1
+ caniuse-lite: 1.0.30001576
+ fraction.js: 4.3.7
+ normalize-range: 0.1.2
+ picocolors: 1.0.0
+ postcss: 8.4.33
+ postcss-value-parser: 4.2.0
+ dev: true
+
resolution: {integrity: sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==}
engines: {node: '>= 0.4'}
@@ -3883,7 +4019,7 @@ packages:
engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}
hasBin: true
dependencies:
- caniuse-lite: 1.0.30001564
+ caniuse-lite: 1.0.30001576
electron-to-chromium: 1.4.593
node-releases: 2.0.13
update-browserslist-db: 1.0.13([email protected])
@@ -3903,6 +4039,13 @@ packages:
ieee754: 1.2.1
dev: true
+ resolution: {integrity: sha512-4T53u4PdgsXqKaIctwF8ifXlRTTmEPJ8iEPWFdGZvcf7sbwYo6FKFEX9eNNAnzFZ7EzJAQ3CJeOtCRA4rDp7Pw==}
+ engines: {node: '>=6.14.2'}
+ requiresBuild: true
+ dependencies:
+ node-gyp-build: 4.8.0
+
resolution: {integrity: sha512-qwVpFEHNfhYJIzNRBvd2C1kyo6jz3ZSMPyyuR47OPdiKWlbYnZNyDWuyR175qDnAJLiCo5fBBqPb3RiXgWlkOQ==}
dependencies:
@@ -3942,6 +4085,9 @@ packages:
resolution: {integrity: sha512-DqAOf+rhof+6GVx1y+xzbFPeOumfQnhYzVnZD6LAXijR77yPtm9mfOcqOnT3mpnJiZVT+kwLAFnRlZcIz+c6bg==}
+ resolution: {integrity: sha512-ff5BdakGe2P3SQsMsiqmt1Lc8221NR1VzHj5jXN5vBny9A6fpze94HiVV/n7XRosOlsShJcvMv5mdnpjOGCEgg==}
+
resolution: {integrity: sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==}
engines: {node: '>=4'}
@@ -4144,6 +4290,10 @@ packages:
resolution: {integrity: sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==}
+ resolution: {integrity: sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==}
+ dev: false
+
resolution: {integrity: sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==}
dev: true
@@ -4158,6 +4308,10 @@ packages:
engines: {node: '>= 14'}
dev: true
+ resolution: {integrity: sha512-E4KWKavANzeuusPi0jUjpuI22SURAznGkx7eZV+4i6x2A+IZxAMcajgkvuDAU1bg40+xuhW1zRdVIIM/4khuIg==}
+ dev: false
+
resolution: {integrity: sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==}
peerDependencies:
@@ -4292,6 +4446,10 @@ packages:
engines: {node: '>=12'}
dev: false
+ resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==}
+ dev: true
+
resolution: {integrity: sha512-c7+Hhj87zWmdpmjDONbvNKNo24tvmD4mjal1+qqTYTrlF0/sNpAcDlU0Ki84ftA/5yj3BF2QhSGEC0Rky6larg==}
@@ -4491,7 +4649,7 @@ packages:
source-map: 0.6.1
dev: true
resolution: {integrity: sha512-6YEwmFBX0VjBd3ODGW9df0Is0FLaRFdMN8eAahQG9CN6LjQ28J8AFr19ngxqMSg7Qv6Uca/3VeeBosJh1bzu0w==}
peerDependencies:
eslint: ^7.23.0 || ^8.0.0
@@ -4502,22 +4660,22 @@ packages:
dependencies:
'@next/eslint-plugin-next': 13.3.0
'@rushstack/eslint-patch': 1.6.0
- '@typescript-eslint/parser': 5.62.0([email protected])([email protected])
+ '@typescript-eslint/parser': 5.62.0([email protected])([email protected])
eslint: 8.54.0
eslint-import-resolver-node: 0.3.9
eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/[email protected])([email protected])([email protected])([email protected])
- eslint-plugin-import: 2.29.0(@typescript-eslint/[email protected])([email protected])
+ eslint-plugin-import: 2.29.0(@typescript-eslint/[email protected])([email protected])([email protected])
eslint-plugin-jsx-a11y: 6.8.0([email protected])
eslint-plugin-react: 7.33.2([email protected])
eslint-plugin-react-hooks: 4.6.0([email protected])
- typescript: 5.3.2
+ typescript: 5.3.3
transitivePeerDependencies:
- eslint-import-resolver-webpack
- supports-color
dev: true
- resolution: {integrity: sha512-o8pQsUHTo9aHqJ2YiZDym5gQAMRf7O2HndHo/JZeY7TDD+W4hk6Ma8Vw54RHiBeb7OWWO5dPirQB+Is/aVQ7Kg==}
+ resolution: {integrity: sha512-1lXwdFi29fKxzeugof/TUE7lpHyJQt5+U4LaUHyvQfHjvsWO77vFNicJv5sX6k0VDVSbnfz0lw+avxI+CinbMg==}
peerDependencies:
eslint: ^7.23.0 || ^8.0.0
typescript: '>=3.3.1'
@@ -4525,13 +4683,13 @@ packages:
typescript:
optional: true
dependencies:
- '@next/eslint-plugin-next': 13.5.6
- '@rushstack/eslint-patch': 1.6.0
+ '@next/eslint-plugin-next': 13.4.3
+ '@rushstack/eslint-patch': 1.6.1
'@typescript-eslint/parser': 5.62.0([email protected])([email protected])
eslint: 8.54.0
eslint-import-resolver-node: 0.3.9
- eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/[email protected])([email protected])([email protected])([email protected])
- eslint-plugin-import: 2.29.0(@typescript-eslint/[email protected])([email protected])([email protected])
+ eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/[email protected])([email protected])([email protected])([email protected])
+ eslint-plugin-import: 2.29.1(@typescript-eslint/[email protected])([email protected])([email protected])
eslint-plugin-jsx-a11y: 6.8.0([email protected])
eslint-plugin-react: 7.33.2([email protected])
eslint-plugin-react-hooks: 4.6.0([email protected])
@@ -4592,6 +4750,29 @@ packages:
- supports-color
dev: true
+ resolution: {integrity: sha512-xgdptdoi5W3niYeuQxKmzVDTATvLYqhpwmykwsh7f6HIOStGWEIL9iqZgQDF9u9OEzrRwR8no5q2VT+bjAujTg==}
+ engines: {node: ^14.18.0 || >=16.0.0}
+ peerDependencies:
+ eslint: '*'
+ eslint-plugin-import: '*'
+ dependencies:
+ debug: 4.3.4
+ enhanced-resolve: 5.15.0
+ eslint: 8.54.0
+ eslint-module-utils: 2.8.0(@typescript-eslint/[email protected])([email protected])([email protected])([email protected])
+ eslint-plugin-import: 2.29.1(@typescript-eslint/[email protected])([email protected])([email protected])
+ fast-glob: 3.3.2
+ get-tsconfig: 4.7.2
+ is-core-module: 2.13.1
+ is-glob: 4.0.3
+ transitivePeerDependencies:
+ - '@typescript-eslint/parser'
+ - eslint-import-resolver-node
+ - eslint-import-resolver-webpack
+ - supports-color
+ dev: true
+
resolution: {integrity: sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==}
engines: {node: '>=4'}
@@ -4617,7 +4798,36 @@ packages:
debug: 3.2.7
eslint: 8.54.0
eslint-import-resolver-node: 0.3.9
- eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/[email protected])([email protected])([email protected])([email protected])
+ eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/[email protected])([email protected])([email protected])([email protected])
+ transitivePeerDependencies:
+ - supports-color
+ dev: true
+
+ resolution: {integrity: sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==}
+ engines: {node: '>=4'}
+ peerDependencies:
+ '@typescript-eslint/parser': '*'
+ eslint: '*'
+ eslint-import-resolver-node: '*'
+ eslint-import-resolver-typescript: '*'
+ eslint-import-resolver-webpack: '*'
+ peerDependenciesMeta:
+ '@typescript-eslint/parser':
+ optional: true
+ eslint:
+ optional: true
+ eslint-import-resolver-node:
+ optional: true
+ eslint-import-resolver-typescript:
+ optional: true
+ eslint-import-resolver-webpack:
+ optional: true
+ dependencies:
+ '@typescript-eslint/parser': 5.62.0([email protected])([email protected])
+ debug: 3.2.7
+ eslint: 8.54.0
+ eslint-import-resolver-node: 0.3.9
transitivePeerDependencies:
- supports-color
dev: true
@@ -4632,7 +4842,7 @@ packages:
'@typescript-eslint/parser':
optional: true
dependencies:
- '@typescript-eslint/parser': 5.62.0([email protected])([email protected])
+ '@typescript-eslint/parser': 5.62.0([email protected])([email protected])
array-includes: 3.1.7
array.prototype.findlastindex: 1.2.3
array.prototype.flat: 1.3.2
@@ -4641,7 +4851,7 @@ packages:
doctrine: 2.1.0
eslint: 8.54.0
eslint-import-resolver-node: 0.3.9
- eslint-module-utils: 2.8.0(@typescript-eslint/[email protected])([email protected])([email protected])([email protected])
+ eslint-module-utils: 2.8.0(@typescript-eslint/[email protected])([email protected])([email protected])
hasown: 2.0.0
is-core-module: 2.13.1
is-glob: 4.0.3
@@ -4657,8 +4867,8 @@ packages:
- supports-color
dev: true
- resolution: {integrity: sha512-QPOO5NO6Odv5lpoTkddtutccQjysJuFxoPS7fAHO+9m9udNHvTCPSAMW9zGAYj8lAIdr40I8yPCdUYrncXtrwg==}
+ resolution: {integrity: sha512-BbPC0cuExzhiMo4Ff1BTVwHpjjv28C5R+btTOGaCRC7UEz801up0JadwkeSk5Ued6TG34uaczuVuH6qyy5YUxw==}
engines: {node: '>=4'}
peerDependencies:
'@typescript-eslint/parser': '*'
@@ -4685,7 +4895,7 @@ packages:
object.groupby: 1.0.1
object.values: 1.1.7
semver: 6.3.1
- tsconfig-paths: 3.14.2
+ tsconfig-paths: 3.15.0
transitivePeerDependencies:
- eslint-import-resolver-typescript
- eslint-import-resolver-webpack
@@ -4698,7 +4908,7 @@ packages:
peerDependencies:
eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8
dependencies:
- '@babel/runtime': 7.23.4
+ '@babel/runtime': 7.23.8
aria-query: 5.3.0
array-includes: 3.1.7
array.prototype.flatmap: 1.3.2
@@ -4768,15 +4978,15 @@ packages:
string.prototype.matchall: 4.0.10
dev: true
resolution: {integrity: sha512-Fcep4KDRLWaK3KmkQbdyKHG0P4GdXFmXdDaweTIPcgOP60OOuWFbh1++dufRT28Q4zpKTKaHwTsXPJ4O/EjU2Q==}
engines: {node: '>=12.13.0'}
peerDependencies:
tailwindcss: ^3.3.2
dependencies:
fast-glob: 3.3.2
- postcss: 8.4.31
- tailwindcss: 3.3.5
+ postcss: 8.4.33
+ tailwindcss: 3.4.1
dev: true
@@ -5106,6 +5316,14 @@ packages:
dependencies:
is-callable: 1.2.7
+ resolution: {integrity: sha512-TMKDUnIte6bfb5nWv7V/caI169OHgvwjb7V4WkeUvbQQdjr5rWKqHFiKWb/fcOwB+CzBT+qbWjvj+DVwRskpIg==}
+ engines: {node: '>=14'}
+ dependencies:
+ cross-spawn: 7.0.3
+ signal-exit: 4.1.0
+ dev: true
+
resolution: {integrity: sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==}
engines: {node: '>=12.20.0'}
@@ -5232,9 +5450,17 @@ packages:
dependencies:
is-glob: 4.0.3
- resolution: {integrity: sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==}
- dev: false
+ resolution: {integrity: sha512-fa46+tv1Ak0UPK1TOy/pZrIybNNt4HCv7SDzwyfiOZkvZLEbjsZkJBPtDHVshZjbecAoAGSC20MjLDG/qr679g==}
+ engines: {node: '>=16 || 14 >=14.17'}
+ hasBin: true
+ dependencies:
+ foreground-child: 3.1.1
+ jackspeak: 2.3.6
+ minimatch: 9.0.3
+ minipass: 7.0.4
+ path-scurry: 1.10.1
+ dev: true
resolution: {integrity: sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==}
@@ -5315,12 +5541,12 @@ packages:
resolution: {integrity: sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==}
resolution: {integrity: sha512-jFj3BQeleOoy7t93E9rZ2de+ScC4lQICLwiAQmKMg9F6roKGaLSHoCDYKkWlSafg138jejvq/mTdvmnwDQgqoQ==}
peerDependencies:
csstype: ^3.0.10
dependencies:
- csstype: 3.1.2
+ csstype: 3.1.3
dev: false
@@ -5330,6 +5556,7 @@ packages:
resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==}
+ dev: true
resolution: {integrity: sha512-rEDCuqUQ4tbD78TpzsMtt5OIf0cBCSDWSJtUDaF6JsAh+k0v9r++NzxNEG87oDZx9ZwGhD8DaezR2L/yrw0Jdw==}
@@ -5769,6 +5996,15 @@ packages:
set-function-name: 2.0.1
dev: true
+ resolution: {integrity: sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ==}
+ engines: {node: '>=14'}
+ dependencies:
+ '@isaacs/cliui': 8.0.2
+ optionalDependencies:
+ '@pkgjs/parseargs': 0.11.0
+ dev: true
+
resolution: {integrity: sha512-gFqAIbuKyyso/3G2qhiO2OM6shY6EPP/R0+mkDbyspxKazh8BXDC5FiFsUjlczgdNz/vfra0da2y+aHrusLG/Q==}
hasBin: true
@@ -5947,6 +6183,11 @@ packages:
resolution: {integrity: sha512-2Fgx1Ycm599x+WGpIYwJOvsjmXFzTSc34IwDWALRA/8AopUKAVPwfJ+h5+f85BCp0PWmmJcWzEpxOpoXycMpdA==}
dev: true
+ resolution: {integrity: sha512-/1clY/ui8CzjKFyjdvwPWJUYKiFVXG2I2cY0ssG7h4+hwk+XOIX7ZSG9Q7TW8TW3Kp3BUSqgFWBLgL4PJ+Blag==}
+ engines: {node: 14 || >=16.14}
+ dev: true
+
resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==}
dependencies:
@@ -6024,6 +6265,11 @@ packages:
engines: {node: '>=8'}
dev: true
+ resolution: {integrity: sha512-jYofLM5Dam9279rdkWzqHozUo4ybjdZmCsDHePy5V/PbBcVMiSZR97gmAy45aqi8CK1lG2ECd356FU86avfwUQ==}
+ engines: {node: '>=16 || 14 >=14.17'}
+ dev: true
+
resolution: {integrity: sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==}
engines: {node: '>= 8'}
@@ -6085,40 +6331,46 @@ packages:
engines: {node: '>= 0.4.0'}
dev: true
- resolution: {integrity: sha512-AbYdRNfImBr3XGtvnwOxq8ekVCwbFTv/UJoLwmaX89nk9i051AEY4/HAWzU0YpaTDw8IofUpmuIlvzWF13jxIw==}
- engines: {node: '>=18.17.0'}
+ resolution: {integrity: sha512-FV3pBrAAnAIfOclTvncw9dDohyeuEEXPe5KNcva91anT/rdycWbgtu3IjUj4n5yHnWK8YEPo0vrUecHmnmUNbA==}
+ engines: {node: '>=16.8.0'}
hasBin: true
peerDependencies:
'@opentelemetry/api': ^1.1.0
+ fibers: '>= 3.1.0'
+ node-sass: ^6.0.0 || ^7.0.0
react: ^18.2.0
react-dom: ^18.2.0
sass: ^1.3.0
peerDependenciesMeta:
'@opentelemetry/api':
optional: true
+ fibers:
+ optional: true
+ node-sass:
+ optional: true
sass:
optional: true
dependencies:
- '@next/env': 14.0.3
- '@swc/helpers': 0.5.2
+ '@next/env': 13.4.3
+ '@swc/helpers': 0.5.1
busboy: 1.6.0
- caniuse-lite: 1.0.30001564
- postcss: 8.4.31
+ caniuse-lite: 1.0.30001576
+ postcss: 8.4.14
react: 18.2.0
react-dom: 18.2.0([email protected])
styled-jsx: 5.1.1([email protected])
- watchpack: 2.4.0
+ zod: 3.21.4
optionalDependencies:
- '@next/swc-darwin-arm64': 14.0.3
- '@next/swc-darwin-x64': 14.0.3
- '@next/swc-linux-arm64-gnu': 14.0.3
- '@next/swc-linux-arm64-musl': 14.0.3
- '@next/swc-linux-x64-gnu': 14.0.3
- '@next/swc-linux-x64-musl': 14.0.3
- '@next/swc-win32-arm64-msvc': 14.0.3
- '@next/swc-win32-ia32-msvc': 14.0.3
- '@next/swc-win32-x64-msvc': 14.0.3
+ '@next/swc-darwin-arm64': 13.4.3
+ '@next/swc-darwin-x64': 13.4.3
+ '@next/swc-linux-arm64-gnu': 13.4.3
+ '@next/swc-linux-arm64-musl': 13.4.3
+ '@next/swc-linux-x64-gnu': 13.4.3
+ '@next/swc-linux-x64-musl': 13.4.3
+ '@next/swc-win32-arm64-msvc': 13.4.3
+ '@next/swc-win32-ia32-msvc': 13.4.3
+ '@next/swc-win32-x64-msvc': 13.4.3
transitivePeerDependencies:
- '@babel/core'
- babel-plugin-macros
@@ -6144,6 +6396,11 @@ packages:
formdata-polyfill: 4.0.10
dev: true
+ resolution: {integrity: sha512-u6fs2AEUljNho3EYTJNBfImO5QTo/J/1Etd+NVdCj7qWKUSN/bSLkZwhDv7I+w/MSC6qJ4cknepkAYykDdK8og==}
+ hasBin: true
+ requiresBuild: true
+
resolution: {integrity: sha512-Cov028YhBZ5aB7MdMWJEmwyBig43aGL5WT4vdoB28Oitau1zZAcHUn8Sgfk9HM33TqhtLJ9PlM/O0Mv+QpV/4Q==}
engines: {node: '>=8.9.4'}
@@ -6408,6 +6665,14 @@ packages:
resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==}
+ resolution: {integrity: sha512-MkhCqzzBEpPvxxQ71Md0b1Kk51W01lrYvlMzSUaIzNsODdd7mqhiimSZlr+VegAz5Z6Vzt9Xg2ttE//XBhH3EQ==}
+ engines: {node: '>=16 || 14 >=14.17'}
+ dependencies:
+ lru-cache: 10.1.0
+ minipass: 7.0.4
+ dev: true
+
resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==}
engines: {node: '>=8'}
@@ -6439,6 +6704,18 @@ packages:
read-cache: 1.0.0
resolve: 1.22.8
+ resolution: {integrity: sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==}
+ engines: {node: '>=14.0.0'}
+ peerDependencies:
+ postcss: ^8.0.0
+ dependencies:
+ postcss: 8.4.33
+ postcss-value-parser: 4.2.0
+ read-cache: 1.0.0
+ resolve: 1.22.8
+ dev: true
+
resolution: {integrity: sha512-dDLF8pEO191hJMtlHFPRa8xsizHaM82MLfNkUHdUtVEV3tgTp5oj+8qbEqYM57SLfc74KSbw//4SeJma2LRVIw==}
engines: {node: ^12 || ^14 || >= 16}
@@ -6448,6 +6725,16 @@ packages:
camelcase-css: 2.0.1
postcss: 8.4.31
+ resolution: {integrity: sha512-dDLF8pEO191hJMtlHFPRa8xsizHaM82MLfNkUHdUtVEV3tgTp5oj+8qbEqYM57SLfc74KSbw//4SeJma2LRVIw==}
+ engines: {node: ^12 || ^14 || >= 16}
+ peerDependencies:
+ postcss: ^8.4.21
+ dependencies:
+ camelcase-css: 2.0.1
+ postcss: 8.4.33
+ dev: true
+
resolution: {integrity: sha512-bSVhyJGL00wMVoPUzAVAnbEoWyqRxkjv64tUl427SKnPrENtq6hJwUojroMz2VB+Q1edmi4IfrAPpami5VVgMQ==}
engines: {node: '>= 14'}
@@ -6464,6 +6751,23 @@ packages:
postcss: 8.4.31
yaml: 2.3.4
+ resolution: {integrity: sha512-bSVhyJGL00wMVoPUzAVAnbEoWyqRxkjv64tUl427SKnPrENtq6hJwUojroMz2VB+Q1edmi4IfrAPpami5VVgMQ==}
+ engines: {node: '>= 14'}
+ peerDependencies:
+ postcss: '>=8.0.9'
+ ts-node: '>=9.0.0'
+ peerDependenciesMeta:
+ postcss:
+ optional: true
+ ts-node:
+ optional: true
+ dependencies:
+ lilconfig: 3.0.0
+ postcss: 8.4.33
+ yaml: 2.3.4
+ dev: true
+
resolution: {integrity: sha512-mEp4xPMi5bSWiMbsgoPfcP74lsWLHkQbZc3sY+jWYd65CUwXrUaTp0fmNpa01ZcETKlIgUdFN/MpS2xZtqL9dQ==}
engines: {node: '>=12.0'}
@@ -6473,6 +6777,16 @@ packages:
postcss: 8.4.31
postcss-selector-parser: 6.0.13
+ resolution: {integrity: sha512-mEp4xPMi5bSWiMbsgoPfcP74lsWLHkQbZc3sY+jWYd65CUwXrUaTp0fmNpa01ZcETKlIgUdFN/MpS2xZtqL9dQ==}
+ engines: {node: '>=12.0'}
+ peerDependencies:
+ postcss: ^8.2.14
+ dependencies:
+ postcss: 8.4.33
+ postcss-selector-parser: 6.0.13
+ dev: true
+
resolution: {integrity: sha512-EaV1Gl4mUEV4ddhDnv/xtj7sxwrwxdetHdWUGnT4VJQf+4d05v6lHYZr8N573k5Z0BViss7BDhfWtKS3+sfAqQ==}
engines: {node: '>=4'}
@@ -6480,9 +6794,26 @@ packages:
cssesc: 3.0.0
util-deprecate: 1.0.2
+ resolution: {integrity: sha512-rEYkQOMUCEMhsKbK66tbEU9QVIxbhN18YiniAwA7XQYTVBqrBy+P2p5JcdqsHgKM2zWylp8d7J6eszocfds5Sw==}
+ engines: {node: '>=4'}
+ dependencies:
+ cssesc: 3.0.0
+ util-deprecate: 1.0.2
+ dev: true
+
resolution: {integrity: sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==}
+ resolution: {integrity: sha512-E398TUmfAYFPBSdzgeieK2Y1+1cpdxJx8yXbK/m57nRhKSmk1GB2tO4lbLBtlkfPQTDKfe4Xqv1ASWPpayPEig==}
+ engines: {node: ^10 || ^12 || >=14}
+ dependencies:
+ nanoid: 3.3.7
+ picocolors: 1.0.0
+ source-map-js: 1.0.2
+ dev: false
+
resolution: {integrity: sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==}
engines: {node: ^10 || ^12 || >=14}
@@ -6528,7 +6859,6 @@ packages:
loose-envify: 1.4.0
object-assign: 4.1.1
react-is: 16.13.1
- dev: true
resolution: {integrity: sha512-Rb5RVBy1iyqOtNl15Cw/llpeLH8bsb37gM1FUfKQ+Wck6xHlbAhWGUFiTRHtkjqGTA5pSHz6+0hrPW/oECihPQ==}
@@ -6596,14 +6926,14 @@ packages:
react: 18.2.0
dev: false
resolution: {integrity: sha512-j8z+cQbWIM5LY37pR6uZR6D4LfseplqnuAO4co4u8917hBUvXlEqyP1ZzqVLcqoyUesZZv/ImreoCeHVDpE5pQ==}
engines: {node: '>=10'}
peerDependencies:
react: '>=16'
react-dom: '>=16'
dependencies:
- goober: 2.1.13([email protected])
+ goober: 2.1.13([email protected])
react: 18.2.0
react-dom: 18.2.0([email protected])
transitivePeerDependencies:
@@ -6612,7 +6942,6 @@ packages:
resolution: {integrity: sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==}
- dev: true
resolution: {integrity: sha512-NilqqwMh2v9omN7LteiDloEVpFyMIa0VGqF+ukqp0ncVlYu1sKYbYGX9JEl+GtOT9TKsh04zCHAbavnQ2USldA==}
@@ -6776,6 +7105,10 @@ packages:
resolution: {integrity: sha512-srw17NI0TUWHuGa5CFGGmhfNIeja30WMBfbslPNhf6JrqQlLN5gcrvig1oqPxiVaXb0oW0XRKtH6Nngs5lKCIA==}
+ resolution: {integrity: sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==}
+ dev: true
+
resolution: {integrity: sha512-sy6TXMN+hnP/wMy+ISxg3krXx7BAtWVO4UouuCN/ziM9UEne0euamVNafDfvC83bRNr95y0V5iijeDQFUNpvrg==}
engines: {node: '>= 0.4'}
@@ -7086,6 +7419,15 @@ packages:
strip-ansi: 6.0.1
dev: true
+ resolution: {integrity: sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==}
+ engines: {node: '>=12'}
+ dependencies:
+ eastasianwidth: 0.2.0
+ emoji-regex: 9.2.2
+ strip-ansi: 7.1.0
+ dev: true
+
resolution: {integrity: sha512-rGXbGmOEosIQi6Qva94HUjgPs9vKW+dkG7Y8Q5O2OYkWL6wFaTRZO8zM4mhP94uX55wgyrXzfS2aGtGzUL7EJQ==}
dependencies:
@@ -7138,6 +7480,13 @@ packages:
ansi-regex: 5.0.1
dev: true
+ resolution: {integrity: sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==}
+ engines: {node: '>=12'}
+ dependencies:
+ ansi-regex: 6.0.1
+ dev: true
+
resolution: {integrity: sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==}
engines: {node: '>=4'}
@@ -7192,6 +7541,20 @@ packages:
pirates: 4.0.6
ts-interface-checker: 0.1.13
+ resolution: {integrity: sha512-8EbVDiu9iN/nESwxeSxDKe0dunta1GOlHufmSSXxMD2z2/tMZpDMpvXQGsc+ajGo8y2uYUmixaSRUc/QPoQ0GA==}
+ engines: {node: '>=16 || 14 >=14.17'}
+ hasBin: true
+ dependencies:
+ '@jridgewell/gen-mapping': 0.3.3
+ commander: 4.1.1
+ glob: 10.3.10
+ lines-and-columns: 1.2.4
+ mz: 2.7.0
+ pirates: 4.0.6
+ ts-interface-checker: 0.1.13
+ dev: true
+
resolution: {integrity: sha512-HFQOU+n73Ah9sYbja7tdjuqT6QNDzkKXfLCCIbD9GdggbTvGZa3D+0hJPADL4y0vAfsoB5tlx3WBXswnbWIXiw==}
engines: {npm: '>=8'}
@@ -7277,6 +7640,37 @@ packages:
transitivePeerDependencies:
- ts-node
+ resolution: {integrity: sha512-qAYmXRfk3ENzuPBakNK0SRrUDipP8NQnEY6772uDhflcQz5EhRdD7JNZxyrFHVQNCwULPBn6FNPp9brpO7ctcA==}
+ engines: {node: '>=14.0.0'}
+ hasBin: true
+ dependencies:
+ '@alloc/quick-lru': 5.2.0
+ arg: 5.0.2
+ chokidar: 3.5.3
+ didyoumean: 1.2.2
+ dlv: 1.1.3
+ fast-glob: 3.3.2
+ glob-parent: 6.0.2
+ is-glob: 4.0.3
+ jiti: 1.21.0
+ lilconfig: 2.1.0
+ micromatch: 4.0.5
+ normalize-path: 3.0.0
+ object-hash: 3.0.0
+ picocolors: 1.0.0
+ postcss: 8.4.33
+ postcss-import: 15.1.0([email protected])
+ postcss-js: 4.0.1([email protected])
+ postcss-load-config: 4.0.2([email protected])
+ postcss-nested: 6.0.1([email protected])
+ postcss-selector-parser: 6.0.15
+ resolve: 1.22.8
+ sucrase: 3.35.0
+ transitivePeerDependencies:
+ - ts-node
+ dev: true
+
resolution: {integrity: sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==}
engines: {node: '>=6'}
@@ -7364,7 +7758,7 @@ packages:
resolution: {integrity: sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==}
resolution: {integrity: sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==}
hasBin: true
peerDependencies:
@@ -7383,14 +7777,14 @@ packages:
'@tsconfig/node12': 1.0.11
'@tsconfig/node14': 1.0.3
'@tsconfig/node16': 1.0.4
- '@types/node': 20.10.0
+ '@types/node': 20.11.0
acorn: 8.11.2
acorn-walk: 8.3.0
arg: 4.1.3
create-require: 1.1.1
diff: 4.0.2
make-error: 1.3.6
- typescript: 5.3.2
+ typescript: 5.3.3
v8-compile-cache-lib: 3.0.1
yn: 3.1.1
dev: true
@@ -7407,6 +7801,19 @@ packages:
dependencies:
typescript: 5.3.2
+ resolution: {integrity: sha512-ghqN1b0puy3MhhviwO2kGF8SeMDNhEbnKxjK7h6+fvY9JAxqvXi8y5NAHSQv687OVboS2uZIByzGd45/YxrRHg==}
+ engines: {node: ^14.13.1 || ^16 || >=18}
+ hasBin: true
+ peerDependencies:
+ typescript: ^4.3.5 || ^5.0.0
+ peerDependenciesMeta:
+ typescript:
+ optional: true
+ dependencies:
+ typescript: 5.3.3
+ dev: false
+
resolution: {integrity: sha512-o/9iXgCYc5L/JxCHPe3Hvh8Q/2xm5Z+p18PESBU6Ff33695QnCHBEjcytY2q19ua7Mbl/DavtBOLq+oG0RCL+g==}
dependencies:
@@ -7416,6 +7823,15 @@ packages:
strip-bom: 3.0.0
dev: true
+ resolution: {integrity: sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg==}
+ dependencies:
+ '@types/json5': 0.0.29
+ json5: 1.0.2
+ minimist: 1.2.8
+ strip-bom: 3.0.0
+ dev: true
+
resolution: {integrity: sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==}
@@ -7432,6 +7848,16 @@ packages:
typescript: 5.3.2
dev: true
+ resolution: {integrity: sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==}
+ engines: {node: '>= 6'}
+ peerDependencies:
+ typescript: '>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta'
+ dependencies:
+ tslib: 1.14.1
+ typescript: 5.3.3
+ dev: true
+
resolution: {integrity: sha512-+Jk91FNcp9e9NCLYlvDDlp2HwEDp14F9N42IoW3dmHI5ZkGSXzalbhVcrx3DOox3QfiNUHxzWg4d7CnVNCuuMg==}
cpu: [x64]
@@ -7552,6 +7978,11 @@ packages:
engines: {node: '>=14.17'}
hasBin: true
+ resolution: {integrity: sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==}
+ engines: {node: '>=14.17'}
+ hasBin: true
+
resolution: {integrity: sha512-T9q82TJI9e/C1TAxYvfb16xO120tMVFZrGA3f9/P4424DNu6ypK103y0GPFVa17yotwSyZW5iYXgjYHkGrJW/g==}
engines: {node: '>=0.8.0'}
@@ -7653,6 +8084,13 @@ packages:
tslib: 2.6.2
dev: false
+ resolution: {integrity: sha512-uIuGf9TWQ/y+0Lp+KGZCMuJWc3N9BHA+l/UmHd/oUHwJJDeysyTRxNQVkbzsIWfGFbRe3OcgML/i0mvVRPOyDA==}
+ engines: {node: '>=6.14.2'}
+ requiresBuild: true
+ dependencies:
+ node-gyp-build: 4.8.0
+
resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==}
@@ -7706,6 +8144,7 @@ packages:
transitivePeerDependencies:
- supports-color
- typescript
+ dev: true
resolution: {integrity: sha512-GNUI6ZgPqT3oervkvzU+qtys83+75N/OuDaQl7HmOqFTb0pjZsuARrRipsyJhJ3enqV8beI1xhGbToR4o78nSQ==}
@@ -7718,7 +8157,24 @@ packages:
debug: 4.3.4
globrex: 0.1.2
tsconfck: 2.1.2([email protected])
- vite: 5.0.11(@types/[email protected])
+ vite: 5.0.11(@types/[email protected])
+ transitivePeerDependencies:
+ - supports-color
+ - typescript
+ dev: false
+
+ resolution: {integrity: sha512-GNUI6ZgPqT3oervkvzU+qtys83+75N/OuDaQl7HmOqFTb0pjZsuARrRipsyJhJ3enqV8beI1xhGbToR4o78nSQ==}
+ peerDependencies:
+ vite: '*'
+ peerDependenciesMeta:
+ vite:
+ optional: true
+ dependencies:
+ debug: 4.3.4
+ globrex: 0.1.2
+ tsconfck: 2.1.2([email protected])
+ vite: 4.5.0(@types/[email protected])
transitivePeerDependencies:
- supports-color
- typescript
@@ -7754,12 +8210,12 @@ packages:
dependencies:
'@types/node': 20.10.0
esbuild: 0.18.20
- postcss: 8.4.31
+ postcss: 8.4.33
rollup: 3.29.4
optionalDependencies:
fsevents: 2.3.3
resolution: {integrity: sha512-XBMnDjZcNAw/G1gEiskiM1v6yzM4GE5aMGvhWTlHAYYhxb7S3/V1s3m2LDHa8Vh6yIWYYB0iJwsEaS523c4oYA==}
engines: {node: ^18.0.0 || >=20.0.0}
hasBin: true
@@ -7787,21 +8243,13 @@ packages:
terser:
optional: true
dependencies:
- '@types/node': 20.10.0
+ '@types/node': 20.11.0
esbuild: 0.19.11
postcss: 8.4.33
rollup: 4.9.3
optionalDependencies:
fsevents: 2.3.3
- resolution: {integrity: sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg==}
- engines: {node: '>=10.13.0'}
- dependencies:
- glob-to-regexp: 0.4.1
- graceful-fs: 4.2.11
- dev: false
-
resolution: {integrity: sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==}
dependencies:
@@ -7890,6 +8338,24 @@ packages:
strip-ansi: 6.0.1
dev: true
+ resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==}
+ engines: {node: '>=10'}
+ dependencies:
+ ansi-styles: 4.3.0
+ string-width: 4.2.3
+ strip-ansi: 6.0.1
+ dev: true
+
+ resolution: {integrity: sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==}
+ engines: {node: '>=12'}
+ dependencies:
+ ansi-styles: 6.2.1
+ string-width: 5.1.2
+ strip-ansi: 7.1.0
+ dev: true
+
resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==}
@@ -7901,7 +8367,7 @@ packages:
signal-exit: 4.1.0
dev: true
resolution: {integrity: sha512-H/Z3H55mrcrgjFwI+5jKavgXvwQLtfPCUEp6pi35VhoB0pfcHnSoyuTzkBEZpzq49g1193CUEwIvmsjcotenYw==}
engines: {node: '>=10.0.0'}
peerDependencies:
@@ -7912,6 +8378,9 @@ packages:
optional: true
utf-8-validate:
optional: true
+ dependencies:
+ bufferutil: 4.0.8
+ utf-8-validate: 6.0.3
resolution: {integrity: sha512-drPFnkQJik/O+uPKpqSgr22mpuFHqKdbS835iAQrUC73L2F5WkboIRd63ai/2Yg6I1jzifPFKH2NTK+cfglkIA==}
@@ -7947,6 +8416,10 @@ packages:
engines: {node: '>=10'}
dev: true
+ resolution: {integrity: sha512-m46AKbrzKVzOzs/DZgVnG5H55N1sv1M8qZU3A8RIKbs3mrACDNeIOeilDymVb2HdmP8uwshOCF4uJ8uM9rCqJw==}
+ dev: false
+
resolution: {integrity: sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg==}
dev: false
diff --git a/supabase/config.toml b/supabase/config.toml
index 75ae01b5a..4f1e223ca 100644
--- a/supabase/config.toml
+++ b/supabase/config.toml
@@ -40,9 +40,9 @@ file_size_limit = "50MiB"
[auth]
# The base URL of your website. Used as an allow-list for redirects and for constructing URLs used
# in emails.
-site_url = "http://localhost:1420"
+site_url = "http://localhost:3000"
# A list of *exact* URLs that auth providers are permitted to redirect to post authentication.
-additional_redirect_urls = ["https://localhost:1420"]
+additional_redirect_urls = ["http://localhost:3000/**", "https://localhost:3000/**", "http://localhost:3000/auth/callback", "http://localhost:3000/dashboard", "http://localhost:1420/**", "https://localhost:1420/**"]
# How long tokens are valid for, in seconds. Defaults to 3600 (1 hour), maximum 604,800 seconds (one
# week).
jwt_expiry = 3600
@@ -58,14 +58,6 @@ double_confirm_changes = true
# If enabled, users need to confirm their email address before signing in.
enable_confirmations = false
-[auth.email.template.confirmation]
-subject = "Your Cap Sign In"
-content_path = "./supabase/templates/magic_link.html"
-
-[auth.email.template.magic_link]
-subject = "Your Cap Sign In"
-content_path = "./supabase/templates/magic_link.html"
-
# Use an external OAuth provider. The full list of providers are: `apple`, `azure`, `bitbucket`,
# `discord`, `facebook`, `github`, `gitlab`, `google`, `keycloak`, `linkedin`, `notion`, `twitch`,
# `twitter`, `slack`, `spotify`, `workos`, `zoom`.