Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
Remove embed app
Richie McIlroy8ff3ccfd5491
diff --git a/apps/embed/.eslintrc.cjs b/apps/embed/.eslintrc.cjsdeleted file mode 100644index 625ebb14b..000000000--- a/apps/embed/.eslintrc.cjs+++ /dev/null@@ -1,7 +0,0 @@-module.exports = {- extends: [require.resolve("config/eslint/web.js")],- parserOptions: {- tsconfigRootDir: __dirname,- project: "./tsconfig.json",- },-};diff --git a/apps/embed/.gitignore b/apps/embed/.gitignoredeleted file mode 100644index 90f1072a5..000000000--- a/apps/embed/.gitignore+++ /dev/null@@ -1,36 +0,0 @@-# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.--# dependencies-/node_modules-/.pnp-.pnp.js--# testing-/coverage--# next.js-/.next/-/out/--# production-/build--# misc-.DS_Store-*.pem--# debug-npm-debug.log*-yarn-debug.log*-yarn-error.log*--# local env files-.env*.local--# vercel-.vercel--# typescript-*.tsbuildinfo-next-env.d.ts-pnpm-lock.yaml\ No newline at end of filediff --git a/apps/embed/README.md b/apps/embed/README.mddeleted file mode 100644index c0ed8b358..000000000--- a/apps/embed/README.md+++ /dev/null@@ -1,3 +0,0 @@-# Cap Embed App--This Next.js app is used for Cap web embeds.diff --git a/apps/embed/app/favicon.ico b/apps/embed/app/favicon.icodeleted file mode 100644index 718d6fea4..000000000Binary files a/apps/embed/app/favicon.ico and /dev/null differdiff --git a/apps/embed/app/globals.css b/apps/embed/app/globals.cssdeleted file mode 100644index 235a14266..000000000--- a/apps/embed/app/globals.css+++ /dev/null@@ -1,26 +0,0 @@-@tailwind base;-@tailwind components;-@tailwind utilities;--.wrapper {- @apply mx-auto w-[92%] max-w-screen-xl;-}--.wrapper-max {- @apply max-w-screen-2xl;-}--.wrapper-sm {- @apply max-w-5xl;-}--*,-*:before,-*:after {- box-sizing: border-box;-}--* {- min-width: 0;- min-height: 0;-}diff --git a/apps/embed/app/layout.tsx b/apps/embed/app/layout.tsxdeleted file mode 100644index b430d391c..000000000--- a/apps/embed/app/layout.tsx+++ /dev/null@@ -1,55 +0,0 @@-import "@/app/globals.css";-import { Toaster } from "react-hot-toast";-import type { Metadata } from "next";--export const metadata: Metadata = {- title: "Cap — Beautiful screen recordings, owned by you.",- description:- "Cap is the open source alternative to Loom. Lightweight, powerful, and stunning. Record and share in seconds.",- openGraph: {- title: "Cap — Beautiful screen recordings, owned by you.",- description:- "Cap is the open source alternative to Loom. Lightweight, powerful, and stunning. Record and share in seconds.",- type: "website",- url: "https://cap.so",- images: ["https://cap.so/og.png"],- },-};--export default async function RootLayout({- children,-}: {- children: React.ReactNode;-}) {- return (- <html lang="en">- <head>- <link- rel="apple-touch-icon"- sizes="180x180"- href="/apple-touch-icon.png"- />- <link- rel="icon"- type="image/png"- sizes="32x32"- href="/favicon-32x32.png"- />- <link- rel="icon"- type="image/png"- sizes="16x16"- href="/favicon-16x16.png"- />- <link rel="manifest" href="/site.webmanifest" />- <link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5" />- <meta name="msapplication-TileColor" content="#da532c" />- <meta name="theme-color" content="#ffffff" />- </head>- <body className="w-screen h-screen">- <Toaster />- <main className="w-full h-full overflow-hidden">{children}</main>- </body>- </html>- );-}diff --git a/apps/embed/app/page.tsx b/apps/embed/app/page.tsxdeleted file mode 100644index 52c0113a1..000000000--- a/apps/embed/app/page.tsx+++ /dev/null@@ -1,7 +0,0 @@-export default async function EmbedPage() {- return (- <div>- <p>Embed</p>- </div>- );-}diff --git a/apps/embed/app/view/[videoId]/Share.tsx b/apps/embed/app/view/[videoId]/Share.tsxdeleted file mode 100644index 5a10e2df4..000000000--- a/apps/embed/app/view/[videoId]/Share.tsx+++ /dev/null@@ -1,21 +0,0 @@-"use client";--import { ShareVideo } from "./_components/ShareVideo";-import { comments as commentsSchema, videos } from "@cap/database/schema";-import { userSelectProps } from "@cap/database/auth/session";--export const Share = ({- data,- user,- comments,-}: {- data: typeof videos.$inferSelect;- user: typeof userSelectProps | null;- comments: (typeof commentsSchema.$inferSelect)[];-}) => {- return (- <div className="w-full h-full space-y-6">- <ShareVideo data={data} user={user} comments={comments} />- </div>- );-};diff --git a/apps/embed/app/view/[videoId]/_components/AudioPlayer.tsx b/apps/embed/app/view/[videoId]/_components/AudioPlayer.tsxdeleted file mode 100644index b7eead87b..000000000--- a/apps/embed/app/view/[videoId]/_components/AudioPlayer.tsx+++ /dev/null@@ -1,42 +0,0 @@-import { memo, forwardRef, useEffect } from "react";-import Hls from "hls.js";--export const AudioPlayer = memo(- forwardRef<HTMLAudioElement, { src: string; onReady: () => void }>(- ({ src, onReady }, ref) => {- useEffect(() => {- const audio = ref as React.MutableRefObject<HTMLAudioElement | null>;-- if (!audio.current) return;-- let hls: Hls | null = null;-- if (Hls.isSupported()) {- hls = new Hls();- hls.loadSource(src);- hls.attachMedia(audio.current);- hls.on(Hls.Events.MANIFEST_PARSED, () => {- onReady();- });- } else if (audio.current.canPlayType("application/vnd.apple.mpegurl")) {- audio.current.src = src;- audio.current.addEventListener(- "loadedmetadata",- () => {- onReady();- },- { once: true }- );- }-- return () => {- if (hls) {- hls.destroy();- }- };- }, [src, onReady, ref]);-- return <audio ref={ref} controls={false} style={{ display: "none" }} />;- }- )-);diff --git a/apps/embed/app/view/[videoId]/_components/ShareVideo.tsx b/apps/embed/app/view/[videoId]/_components/ShareVideo.tsxdeleted file mode 100644index 2f19d0c2c..000000000--- a/apps/embed/app/view/[videoId]/_components/ShareVideo.tsx+++ /dev/null@@ -1,681 +0,0 @@-import { comments as commentsSchema, videos } from "@cap/database/schema";-import { VideoPlayer } from "./VideoPlayer";-import { useState, useEffect, useRef } from "react";-import {- Play,- Pause,- Maximize,- VolumeX,- Volume2,- MessageSquare,- LinkIcon,- ThumbsUp,-} from "lucide-react";-import { Button, LogoBadge, LogoSpinner } from "@cap/ui";-import { userSelectProps } from "@cap/database/auth/session";-import { Tooltip } from "react-tooltip";-import { fromVtt, Subtitle } from "subtitles-parser-vtt";-import { useRouter } from "next/navigation";-import toast from "react-hot-toast";-import moment from "moment";-import { Toolbar } from "./Toolbar";-import { S3_BUCKET_URL } from "@cap/utils";--declare global {- interface Window {- MSStream: any;- }-}--const formatTime = (time: number) => {- const minutes = Math.floor(time / 60);- const seconds = Math.floor(time % 60);- return `${minutes.toString().padStart(2, "0")}:${seconds- .toString()- .padStart(2, "0")}`;-};--export const ShareVideo = ({- data,- user,- comments,-}: {- data: typeof videos.$inferSelect;- user: typeof userSelectProps | null;- comments: (typeof commentsSchema.$inferSelect)[];-}) => {- const videoRef = useRef<HTMLVideoElement>(null);- const [isPlaying, setIsPlaying] = useState(false);- const [currentTime, setCurrentTime] = useState(0);- const [isLoading, setIsLoading] = useState(true);- const [longestDuration, setLongestDuration] = useState(0);- const [seeking, setSeeking] = useState(false);- const [videoMetadataLoaded, setVideoMetadataLoaded] = useState(false);- const [overlayVisible, setOverlayVisible] = useState(true);- const [subtitles, setSubtitles] = useState<Subtitle[]>([]);- const [subtitlesVisible, setSubtitlesVisible] = useState(true);- const [isTranscriptionProcessing, setIsTranscriptionProcessing] =- useState(false);- const [videoSpeed, setVideoSpeed] = useState(1);- const overlayTimeoutRef = useRef<NodeJS.Timeout | null>(null);- const [showReactionBar, setShowReactionBar] = useState(false);- const { push } = useRouter();-- useEffect(() => {- const handleMouseMove = () => {- setOverlayVisible(true);- if (overlayTimeoutRef.current) {- clearTimeout(overlayTimeoutRef.current);- }- overlayTimeoutRef.current = setTimeout(() => {- setOverlayVisible(false);- }, 1000);- };-- window.addEventListener("mousemove", handleMouseMove);-- return () => {- window.removeEventListener("mousemove", handleMouseMove);- if (overlayTimeoutRef.current) {- clearTimeout(overlayTimeoutRef.current);- }- };- }, []);-- useEffect(() => {- if (videoMetadataLoaded) {- setIsLoading(false);- }- }, [videoMetadataLoaded]);-- useEffect(() => {- const onVideoLoadedMetadata = () => {- if (videoRef.current) {- setLongestDuration(videoRef.current.duration);- setVideoMetadataLoaded(true);- setIsLoading(false);- }- };-- const onCanPlay = () => {- setVideoMetadataLoaded(true);- setIsLoading(false);- };-- const videoElement = videoRef.current;- if (videoElement) {- videoElement.addEventListener("loadedmetadata", onVideoLoadedMetadata);- videoElement.addEventListener("canplay", onCanPlay);- }-- return () => {- if (videoElement) {- videoElement.removeEventListener(- "loadedmetadata",- onVideoLoadedMetadata- );- videoElement.removeEventListener("canplay", onCanPlay);- }- };- }, []);-- const handlePlayPauseClick = async () => {- const videoElement = videoRef.current;-- if (!videoElement) return;-- if (isPlaying) {- videoElement.pause();- setIsPlaying(false);- } else {- try {- await videoElement.play();- setIsPlaying(true);- videoElement.muted = false;- } catch (error) {- console.error("Error with playing:", error);- }- }- };-- const applyTimeToVideos = (time: number) => {- if (videoRef.current) videoRef.current.currentTime = time;- setCurrentTime(time);- };-- useEffect(() => {- const syncPlayback = () => {- const videoElement = videoRef.current;-- if (!isPlaying || isLoading || !videoElement) return;-- const handleTimeUpdate = () => {- setCurrentTime(videoElement.currentTime);- };-- videoElement.play().catch((error) => {- console.error("Error playing video", error);- setIsPlaying(false);- });- videoElement.addEventListener("timeupdate", handleTimeUpdate);-- return () =>- videoElement.removeEventListener("timeupdate", handleTimeUpdate);- };-- syncPlayback();- }, [isPlaying, isLoading]);-- useEffect(() => {- const handleSeeking = () => {- if (seeking && videoRef.current) {- setCurrentTime(videoRef.current.currentTime);- }- };-- const videoElement = videoRef.current;-- videoElement?.addEventListener("seeking", handleSeeking);-- return () => {- videoElement?.removeEventListener("seeking", handleSeeking);- };- }, [seeking]);-- const calculateNewTime = (event: any, seekBar: any) => {- const rect = seekBar.getBoundingClientRect();- const offsetX = event.clientX - rect.left;- const relativePosition = offsetX / rect.width;- return relativePosition * longestDuration;- };-- const handleSeekMouseDown = () => {- setSeeking(true);- };-- const handleSeekMouseUp = (event: any) => {- if (!seeking) return;- setSeeking(false);- const seekBar = event.currentTarget;- const seekTo = calculateNewTime(event, seekBar);- applyTimeToVideos(seekTo);- if (isPlaying) {- videoRef.current?.play();- }- };-- const handleSeekMouseMove = (event: any) => {- if (!seeking) return;- const seekBar = event.currentTarget;- const seekTo = calculateNewTime(event, seekBar);- applyTimeToVideos(seekTo);- };-- const handleMuteClick = () => {- if (videoRef.current) {- console.log("Mute clicked");- videoRef.current.muted = videoRef.current.muted ? false : true;- }- };-- const handleFullscreenClick = () => {- const player = document.getElementById("player");- const isIOS =- /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;-- if (!document.fullscreenElement && !isIOS) {- player- ?.requestFullscreen()- .catch((err) =>- console.error(- `Error attempting to enable full-screen mode: ${err.message} (${err.name})`- )- );- } else if (isIOS && videoRef.current) {- const videoUrl = videoRef.current.src;- window.open(videoUrl, "_blank");- } else {- document.exitFullscreen();- }- };-- const handleSpeedChange = () => {- let newSpeed;- if (videoSpeed === 1) {- newSpeed = 1.5;- } else if (videoSpeed === 1.5) {- newSpeed = 2;- } else {- newSpeed = 1;- }- setVideoSpeed(newSpeed);- if (videoRef.current) {- videoRef.current.playbackRate = newSpeed;- }- };-- const watchedPercentage =- longestDuration > 0 ? (currentTime / longestDuration) * 100 : 0;-- useEffect(() => {- if (isPlaying) {- videoRef.current?.play();- } else {- videoRef.current?.pause();- }- }, [isPlaying]);-- useEffect(() => {- const syncPlay = () => {- if (videoRef.current && !isLoading) {- const playPromise2 = videoRef.current.play();- playPromise2.catch((e) => console.log("Play failed for video 2", e));- }- };-- if (isPlaying) {- syncPlay();- }- }, [isPlaying, isLoading]);-- const parseSubTime = (timeString: number) => {- const [hours, minutes, seconds] = timeString- .toString()- .split(":")- .map(Number);- return hours * 3600 + minutes * 60 + seconds;- };-- useEffect(() => {- const fetchSubtitles = async () => {- let transcriptionUrl;-- if (- data.bucket &&- data.awsBucket !== process.env.NEXT_PUBLIC_CAP_AWS_BUCKET- ) {- // For custom S3 buckets, fetch through the API- transcriptionUrl = `/api/playlist?userId=${data.ownerId}&videoId=${data.id}&fileType=transcription`;- } else {- // For default Cap storage- transcriptionUrl = `${S3_BUCKET_URL}/${data.ownerId}/${data.id}/transcription.vtt`;- }-- try {- const response = await fetch(transcriptionUrl);- const text = await response.text();- const parsedSubtitles = fromVtt(text);- setSubtitles(parsedSubtitles);- } catch (error) {- console.error("Error fetching subtitles:", error);- }- };-- if (data.transcriptionStatus === "COMPLETE") {- fetchSubtitles();- } else {- const startTime = Date.now();- const maxDuration = 2 * 60 * 1000; // 2 minutes in milliseconds-- const intervalId = setInterval(() => {- if (Date.now() - startTime > maxDuration) {- clearInterval(intervalId);- return;- }-- fetch(`/api/video/transcribe/status?videoId=${data.id}`)- .then((response) => response.json())- .then(({ transcriptionStatus }) => {- if (transcriptionStatus === "PROCESSING") {- setIsTranscriptionProcessing(true);- } else if (transcriptionStatus === "COMPLETE") {- fetchSubtitles();- clearInterval(intervalId);- } else if (transcriptionStatus === "ERROR") {- clearInterval(intervalId);- }- });- }, 1000);-- return () => clearInterval(intervalId);- }- }, [data]);-- const currentSubtitle = subtitles.find(- (subtitle) =>- parseSubTime(subtitle.startTime) <= currentTime &&- parseSubTime(subtitle.endTime) >= currentTime- );-- if (data.jobStatus === "ERROR") {- return (- <div className="flex items-center justify-center w-full h-full overflow-hidden">- <div- style={{ paddingBottom: "min(806px, 56.25%)" }}- className="relative w-full h-full bg-black flex items-center justify-center p-8"- >- <p className="text-white text-xl">- There was an error when processing the video. Please contact- support.- </p>- </div>- </div>- );- }-- return (- <div- className="relative flex h-full w-full overflow-hidden shadow-lg group"- id="player"- >- {isLoading && (- <div className="absolute top-0 left-0 flex flex-col items-center justify-center w-full h-full z-10">- <LogoSpinner className="w-10 h-auto animate-spin" />- </div>- )}- {isLoading === false && (- <div- className={`absolute top-0 left-0 w-full h-full z-10 flex items-center justify-center bg-black bg-opacity-50 transition-all opacity-0 ${- overlayVisible && "group-hover:opacity-100"- } z-20 ${showReactionBar && "opacity-100"}`}- >- <button- aria-label="Play video"- className=" w-full h-full flex items-center justify-center text-sm font-medium transition ease-in-out duration-150 text-white border border-transparent px-2 py-2 justify-center rounded-lg"- tabIndex={0}- type="button"- onClick={() => handlePlayPauseClick()}- >- {isPlaying ? (- <Pause className="w-auto h-14 hover:opacity-50" />- ) : (- <Play className="w-auto h-14 hover:opacity-50" />- )}- </button>- </div>- )}- <div className="absolute top-0 z-20 w-full text-white bg-black bg-opacity-50 opacity-0 group-hover:opacity-100 transition-all">- <div className="px-6 md:flex md:items-center md:justify-between space-x-0 md:space-x-6">- <div className="flex items-center md:justify-between space-x-6">- <div>- <a- href={- user- ? "/dashboard"- : `${process.env.NEXT_PUBLIC_WEB_URL}?referrer=${data.id}`- }- >- <LogoBadge className="w-8 h-auto" />- </a>- </div>- <div>- <h1 className="text-2xl">{data.name}</h1>- <p className="text-gray-400 text-sm">- {moment(data.createdAt).fromNow()}- </p>- </div>- </div>- </div>- </div>- {showReactionBar && (- <div className="absolute bottom-0 transform -translate-y-16 z-20 w-full flex justify-center">- <Toolbar data={data} user={user} />- </div>- )}- <div- className="relative block w-full h-full bg-black"- style={{ paddingBottom: "min(806px, 56.25%)" }}- >- {currentSubtitle && currentSubtitle.text && subtitlesVisible && (- <div className="absolute bottom-0 w-full text-center transform transition p-1.5 lg:p-2.5 xl:p-3.5 -translate-y-16 z-10">- <div className="inline px-2 py-1 text-sm text-white bg-black bg-opacity-75 rounded-xl leading-7 md:text-lg md:leading-9 lg:text-2xl lg:leading-11 2xl:text-3xl 2xl:leading-13 xs:text-base box-decoration-break-clone xs:leading-8 xl:text-2.5xl">- {currentSubtitle.text- .replace("- ", "")- .replace(".", "")- .replace(",", "")}- </div>- </div>- )}- <VideoPlayer- ref={videoRef}- videoSrc={- data.skipProcessing === true ||- (data.jobStatus !== "COMPLETE" &&- data.source.type === "MediaConvert")- ? `${process.env.NEXT_PUBLIC_WEB_URL}/api/playlist?userId=${data.ownerId}&videoId=${data.id}&videoType=master`- : data.source.type === "MediaConvert"- ? `${S3_BUCKET_URL}/${data.ownerId}/${data.id}/output/video_recording_000.m3u8`- : `${S3_BUCKET_URL}/${data.ownerId}/${data.id}/combined-source/stream.m3u8`- }- />- </div>- <div className="absolute bottom-0 z-20 w-full text-white bg-black bg-opacity-50 opacity-0 group-hover:opacity-100 transition-all">- <div- id="seek"- className="drag-seek absolute left-0 right-0 block h-4 mx-4 -mt-2 group z-20 cursor-pointer"- onMouseDown={handleSeekMouseDown}- onMouseMove={handleSeekMouseMove}- onMouseUp={handleSeekMouseUp}- onMouseLeave={() => setSeeking(false)}- onTouchEnd={handleSeekMouseUp}- >- {!isLoading && comments !== null && (- <div className="w-full -mt-7 md:-mt-6">- {comments.map((comment) => {- if (comment.timestamp === null) return null;-- return (- <div- key={comment.id}- className="absolute z-10 text-[16px] hover:scale-125 transition-all"- style={{- left: `${(comment.timestamp / longestDuration) * 100}%`,- }}- data-tooltip-id={comment.id}- data-tooltip-content={`${- comment.type === "text"- ? "User: " + comment.content- : comment.authorId === "anonymous"- ? "Anonymous"- : "User"- }`}- >- <Tooltip id={comment.id} />- <span>- {comment.type === "text" ? (- <MessageSquare- fill="#646464"- className="w-auto h-[22px] text-white"- />- ) : (- comment.content- )}- </span>- </div>- );- })}- </div>- )}- <div className="absolute top-1.5 w-full h-1.5 bg-white bg-opacity-50 rounded-full z-10" />- <div- className="absolute top-1.5 h-1.5 bg-white rounded-full cursor-pointer transition-all duration-300 z-10"- style={{ width: `${watchedPercentage}%` }}- />- <div- className="drag-button absolute top-1.5 z-20 -mt-1.5 -ml-2 w-4 h-4 bg-white rounded-full border border-white cursor-pointer focus:ring-2 focus:ring-indigo-600 focus:ring-opacity-80 focus:outline-none transition-all duration-300"- tabIndex={0}- style={{ left: `${watchedPercentage}%` }}- />- </div>- <div className="flex items-center justify-between px-4 py-2">- <div className="flex items-center space-x-3">- <div>- <span className="inline-flex">- <button- aria-label="Play video"- className=" inline-flex items-center text-sm font-medium transition ease-in-out duration-150 focus:outline-none border text-slate-100 border-transparent hover:text-white focus:border-white hover:bg-slate-100 hover:bg-opacity-10 active:bg-slate-100 active:bg-opacity-10 px-2 py-2 justify-center rounded-lg"- tabIndex={0}- type="button"- onClick={() => handlePlayPauseClick()}- >- {isPlaying ? (- <Pause className="w-auto h-6" />- ) : (- <Play className="w-auto h-6" />- )}- </button>- </span>- </div>- <div className="text-sm text-white font-medium select-none tabular text-clip overflow-hidden whitespace-nowrap space-x-0.5">- {formatTime(currentTime)} - {formatTime(longestDuration)}- </div>- </div>- <div className="flex justify-end space-x-2">- <div className="flex items-center justify-end space-x-2">- <span className="inline-flex">- <button- aria-label="React to video"- className=" inline-flex items-center text-sm font-medium transition ease-in-out duration-150 focus:outline-none border text-slate-100 border-transparent hover:text-white focus:border-white hover:bg-slate-100 hover:bg-opacity-10 active:bg-slate-100 active:bg-opacity-10 px-2 py-2 justify-center rounded-lg"- tabIndex={0}- type="button"- onClick={() => {- setShowReactionBar(!showReactionBar);- if (!showReactionBar) {- handlePlayPauseClick();- }- }}- >- <ThumbsUp className="w-auto h-5" />- </button>- </span>- <span className="inline-flex">- <button- aria-label={`Change video speed to ${videoSpeed}x`}- className=" inline-flex min-w-[45px] items-center text-sm font-medium transition ease-in-out duration-150 focus:outline-none border text-slate-100 border-transparent hover:text-white focus:border-white hover:bg-slate-100 hover:bg-opacity-10 active:bg-slate-100 active:bg-opacity-10 px-2 py-2 justify-center rounded-lg"- tabIndex={0}- type="button"- onClick={handleSpeedChange}- >- {videoSpeed}x- </button>- </span>- {isTranscriptionProcessing && subtitles.length === 0 && (- <span className="inline-flex">- <button- aria-label={isPlaying ? "Pause video" : "Play video"}- className=" inline-flex items-center text-sm font-medium transition ease-in-out duration-150 focus:outline-none border text-slate-100 border-transparent hover:text-white focus:border-white hover:bg-slate-100 hover:bg-opacity-10 active:bg-slate-100 active:bg-opacity-10 px-2 py-2 justify-center rounded-lg"- tabIndex={0}- type="button"- onClick={() => {- toast.error("Transcription is processing");- }}- >- <svg- xmlns="http://www.w3.org/2000/svg"- className="w-6 h-6"- viewBox="0 0 24 24"- >- <style>- {- "@keyframes spinner_AtaB{to{transform:rotate(360deg)}}"- }- </style>- <path- fill="#FFF"- d="M12 1a11 11 0 1 0 11 11A11 11 0 0 0 12 1Zm0 19a8 8 0 1 1 8-8 8 8 0 0 1-8 8Z"- opacity={0.25}- />- <path- fill="#FFF"- d="M10.14 1.16a11 11 0 0 0-9 8.92A1.59 1.59 0 0 0 2.46 12a1.52 1.52 0 0 0 1.65-1.3 8 8 0 0 1 6.66-6.61A1.42 1.42 0 0 0 12 2.69a1.57 1.57 0 0 0-1.86-1.53Z"- style={{- transformOrigin: "center",- animation: "spinner_AtaB .75s infinite linear",- }}- />- </svg>- </button>- </span>- )}- {subtitles.length > 0 && (- <span className="inline-flex">- <button- aria-label={- subtitlesVisible ? "Hide subtitles" : "Show subtitles"- }- className=" inline-flex items-center text-sm font-medium transition ease-in-out duration-150 focus:outline-none border text-slate-100 border-transparent hover:text-white focus:border-white hover:bg-slate-100 hover:bg-opacity-10 active:bg-slate-100 active:bg-opacity-10 px-2 py-2 justify-center rounded-lg"- tabIndex={0}- type="button"- onClick={() => setSubtitlesVisible(!subtitlesVisible)}- >- {subtitlesVisible ? (- <svg- xmlns="http://www.w3.org/2000/svg"- fill="none"- stroke="currentColor"- strokeLinecap="round"- strokeLinejoin="round"- strokeWidth="2"- className="w-auto h-6"- viewBox="0 0 24 24"- >- <rect- width="18"- height="14"- x="3"- y="5"- rx="2"- ry="2"- ></rect>- <path d="M7 15h4m4 0h2M7 11h2m4 0h4"></path>- </svg>- ) : (- <svg- xmlns="http://www.w3.org/2000/svg"- fill="none"- stroke="currentColor"- strokeLinecap="round"- strokeLinejoin="round"- strokeWidth="2"- className="w-auto h-6"- viewBox="0 0 24 24"- >- <path d="M10.5 5H19a2 2 0 012 2v8.5M17 11h-.5M19 19H5a2 2 0 01-2-2V7a2 2 0 012-2M2 2l20 20M7 11h4M7 15h2.5"></path>- </svg>- )}- </button>- </span>- )}- <span className="inline-flex">- <button- aria-label={videoRef?.current?.muted ? "Unmute" : "Mute"}- className=" inline-flex items-center text-sm font-medium transition ease-in-out duration-150 focus:outline-none border text-slate-100 border-transparent hover:text-white focus:border-white hover:bg-slate-100 hover:bg-opacity-10 active:bg-slate-100 active:bg-opacity-10 px-2 py-2 justify-center rounded-lg"- tabIndex={0}- type="button"- onClick={() => handleMuteClick()}- >- {videoRef?.current?.muted ? (- <VolumeX className="w-auto h-6" />- ) : (- <Volume2 className="w-auto h-6" />- )}- </button>- </span>- <span className="inline-flex">- <button- aria-label="Go fullscreen"- className=" inline-flex items-center text-sm font-medium transition ease-in-out duration-150 focus:outline-none border text-slate-100 border-transparent hover:text-white focus:border-white hover:bg-slate-100 hover:bg-opacity-10 active:bg-slate-100 active:bg-opacity-10 px-2 py-2 justify-center rounded-lg"- tabIndex={0}- type="button"- onClick={handleFullscreenClick}- >- <Maximize className="w-auto h-6" />- </button>- </span>- </div>- </div>- </div>- </div>- </div>- );-};diff --git a/apps/embed/app/view/[videoId]/_components/Toolbar.tsx b/apps/embed/app/view/[videoId]/_components/Toolbar.tsxdeleted file mode 100644index 7a1c89f56..000000000--- a/apps/embed/app/view/[videoId]/_components/Toolbar.tsx+++ /dev/null@@ -1,269 +0,0 @@-"use client";-import { useEffect, useRef, useState } from "react";-import { MessageSquare } from "lucide-react";-import { videos } from "@cap/database/schema";-import { userSelectProps } from "@cap/database/auth/session";-import { useRouter } from "next/navigation";-import { Button } from "@cap/ui";-import toast from "react-hot-toast";--// million-ignore-export const Toolbar = ({- data,- user,-}: {- data: typeof videos.$inferSelect;- user: typeof userSelectProps | null;-}) => {- const { refresh, push } = useRouter();- const [commentBoxOpen, setCommentBoxOpen] = useState(false);- const [comment, setComment] = useState("");- const videoElement = useRef<HTMLVideoElement | null>(null);- useEffect(() => {- videoElement.current = document.getElementById(- "video-player"- ) as HTMLVideoElement;- }, []);-- const [currentEmoji, setCurrentEmoji] = useState<{- emoji: string;- id: number;- } | null>(null);- const clearEmojiTimeout = useRef<any>(null);-- useEffect(() => {- return () => {- if (clearEmojiTimeout.current) {- clearTimeout(clearEmojiTimeout.current);- }- };- }, []);-- const timestamp =- videoElement && videoElement.current ? videoElement.current.currentTime : 0;-- const handleEmojiClick = async (emoji: string) => {- // Clear any existing timeout- if (clearEmojiTimeout.current) {- clearTimeout(clearEmojiTimeout.current);- }-- // Set the current emoji with a unique identifier- setCurrentEmoji({ emoji, id: Date.now() });-- // Remove the emoji after the animation duration- clearEmojiTimeout.current = setTimeout(() => {- setCurrentEmoji(null);- }, 3000);-- const videoElement = document.getElementById(- "video-player"- ) as HTMLVideoElement;- console.log("videoElement", videoElement.currentTime);- const timestamp = videoElement ? videoElement.currentTime : 0;-- console.log("timestamp", timestamp);-- const response = await fetch(- `${process.env.NEXT_PUBLIC_WEB_URL}/api/video/comment`,- {- method: "POST",- headers: {- "Content-Type": "application/json",- },- body: JSON.stringify({- type: "emoji",- content: emoji,- videoId: data.id,- parentCommentId: null,- timestamp: timestamp,- }),- }- );-- if (response.status === 429) {- toast.error("Too many requests - please try again later.");- return;- }-- if (!response.ok) {- console.error("Failed to record emoji reaction");- }-- refresh();- };-- const handleCommentSubmit = async () => {- if (comment.length === 0) {- return;- }-- const response = await fetch("/api/video/comment", {- method: "POST",- headers: {- "Content-Type": "application/json",- },- body: JSON.stringify({- type: "text",- content: comment,- videoId: data.id,- parentCommentId: null,- timestamp: timestamp,- }),- });-- if (!response.ok) {- console.error("Failed to record comment");- }-- setComment("");- setCommentBoxOpen(false);-- refresh();- };-- const Emoji = ({ label, emoji }: { label: string; emoji: string }) => (- <div className="relative w-fit">- <button- className="font-emoji text-2xl leading-6 bg-transparent p-1 relative transition-bg-color duration-600 inline-flex justify-center items-center align-middle rounded-full ease-in-out hover:bg-gray-200 active:bg-gray-400 active:duration-0"- role="img"- aria-label={label ? label : ""}- aria-hidden={label ? "false" : "true"}- onClick={() => handleEmojiClick(emoji)}- >- {emoji}- {currentEmoji && currentEmoji.emoji === emoji && (- <span- key={currentEmoji.id}- className="font-emoji absolute -top-10 left-0 right-0 mx-auto animate-flyEmoji duration-3000"- >- {currentEmoji.emoji}- </span>- )}- </button>- </div>- );-- return (- <>- <div- className={`bg-white border border-gray-200 rounded-full mx-auto shadow-lg transition-all ${- commentBoxOpen === true && "w-full"- }`}- >- <div- className={`${- commentBoxOpen === true ? "flex w-full" : "grid"- } items-center justify-start`}- >- <div className="w-full p-2">- {commentBoxOpen === true ? (- <div className="w-full flex items-center justify-between">- <input- autoFocus- type="text"- value={comment}- onChange={(e) => setComment(e.target.value)}- placeholder="Add a comment"- className="flex-grow h-full outline-none px-3"- maxLength={255}- onKeyDown={(e) => {- if (e.key === "Enter") {- e.preventDefault();- handleCommentSubmit();- }- if (e.key === "Escape") {- setCommentBoxOpen(false);- setComment("");- }- }}- />- <div className="flex items-center space-x-2">- <Button- className="min-w-[160px]"- disabled={comment.length === 0}- variant="primary"- size="sm"- onClick={() => {- handleCommentSubmit();- }}- >- Comment at {timestamp.toFixed(2)}- </Button>- <Button- className="min-w-[100px]"- variant="secondary"- size="sm"- onClick={() => {- setCommentBoxOpen(false);- setComment("");- }}- >- Cancel- </Button>- </div>- </div>- ) : (- <div className="grid items-center justify-start grid-flow-col">- {REACTIONS.map((reaction) => (- <Emoji- key={reaction.emoji}- emoji={reaction.emoji}- label={reaction.label}- />- ))}- <div className="w-[2px] bg-gray-200 h-full mx-2"></div>- <div className="flex items-center">- <button- onClick={() => {- if (!user) {- push(`/login?next=${window.location.pathname}`);- return;- }- const videoElement = document.getElementById(- "video-player"- ) as HTMLVideoElement;- videoElement.pause();- setCommentBoxOpen(true);- }}- className="text-xs sm:text-sm font-medium bg-transparent py-1 px-2 relative transition-bg-color duration-600 flex justify-center items-center rounded-full ease-in-out hover:bg-gray-200 active:bg-gray-400 active:duration-0"- >- <MessageSquare className="w-[22px] h-auto" />- <span className="ml-1">Comment</span>- </button>- </div>- </div>- )}- </div>- </div>- </div>- </>- );-};--const REACTIONS = [- {- emoji: "😂",- label: "joy",- },- {- emoji: "😍",- label: "love",- },- {- emoji: "😮",- label: "wow",- },- {- emoji: "🙌",- label: "yay",- },- {- emoji: "👍",- label: "up",- },- {- emoji: "👎",- label: "down",- },-];diff --git a/apps/embed/app/view/[videoId]/_components/VideoPlayer.tsx b/apps/embed/app/view/[videoId]/_components/VideoPlayer.tsxdeleted file mode 100644index 9524f1481..000000000--- a/apps/embed/app/view/[videoId]/_components/VideoPlayer.tsx+++ /dev/null@@ -1,76 +0,0 @@-import {- memo,- forwardRef,- useEffect,- useRef,- useImperativeHandle,-} from "react";-import Hls from "hls.js";--interface VideoPlayerProps {- videoSrc: string;-}--export const VideoPlayer = memo(- forwardRef<HTMLVideoElement, VideoPlayerProps>(({ videoSrc }, ref) => {- const videoRef = useRef<HTMLVideoElement>(null);- const videoHlsInstance = useRef<Hls | null>(null);-- useImperativeHandle(ref, () => videoRef.current as HTMLVideoElement);-- const initializeHls = (- src: string,- media: HTMLMediaElement,- hlsInstance: React.MutableRefObject<Hls | null>- ) => {- const hls = new Hls();- hls.on(Hls.Events.ERROR, (event, data) => {- console.error("HLS error:", data);- if (data.fatal) {- switch (data.type) {- case Hls.ErrorTypes.NETWORK_ERROR:- if (data.details === Hls.ErrorDetails.MANIFEST_LOAD_ERROR) {- setTimeout(() => {- console.log("Retrying...");- hls.loadSource(src);- }, 500);- }- break;- case Hls.ErrorTypes.MEDIA_ERROR:- hls.recoverMediaError();- break;- default:- break;- }- }- });- hlsInstance.current = hls;- hls.loadSource(src);- hls.attachMedia(media);- };-- useEffect(() => {- if (!videoRef.current) return;-- initializeHls(videoSrc, videoRef.current, videoHlsInstance);-- return () => {- videoHlsInstance.current?.destroy();- };- }, [videoSrc]);-- return (- <video- id="video-player"- ref={videoRef}- className="absolute top-0 left-0 rounded-lg w-full h-full object-contain"- preload="metadata"- playsInline- controls={false}- muted- >- <source src={videoSrc} type="application/x-mpegURL" />- </video>- );- })-);diff --git a/apps/embed/app/view/[videoId]/page.tsx b/apps/embed/app/view/[videoId]/page.tsxdeleted file mode 100644index a0db1791e..000000000--- a/apps/embed/app/view/[videoId]/page.tsx+++ /dev/null@@ -1,118 +0,0 @@-"use server";-import { Share } from "./Share";-import { db } from "@cap/database";-import { eq } from "drizzle-orm";-import { videos, comments } from "@cap/database/schema";-import { getCurrentUser, userSelectProps } from "@cap/database/auth/session";-import type { Metadata, ResolvingMetadata } from "next";-import { notFound } from "next/navigation";--type Props = {- params: { [key: string]: string | string[] | undefined };-};--export async function generateMetadata(- { params }: Props,- parent: ResolvingMetadata-): Promise<Metadata> {- const videoId = params.videoId as string;- const query = await db.select().from(videos).where(eq(videos.id, videoId));-- if (query.length === 0) {- return notFound();- }-- const video = query[0];-- if (video.public === false) {- return {- title: "Cap: This video is private",- description: "This video is private and cannot be shared.",- openGraph: {- images: [- `${process.env.NEXT_PUBLIC_WEB_URL}/api/video/og?videoId=${videoId}`,- ],- },- };- }-- return {- title: "Cap: " + video.name,- description: "Watch this video on Cap",- openGraph: {- images: [- `${process.env.NEXT_PUBLIC_WEB_URL}/api/video/og?videoId=${videoId}`,- ],- },- };-}--export default async function ShareVideoPage(props: Props) {- const params = props.params;- const videoId = params.videoId as string;- const user = (await getCurrentUser()) as typeof userSelectProps | null;- const userId = user?.id as string | undefined;- const query = await db.select().from(videos).where(eq(videos.id, videoId));-- if (query.length === 0) {- return <p>No video found</p>;- }-- const video = query[0];-- if (- video.jobId === null &&- video.skipProcessing === false &&- video.source.type === "MediaConvert"- ) {- const res = await fetch(- `${process.env.NEXT_PUBLIC_WEB_URL}/api/upload/mux/create?videoId=${videoId}&userId=${video.ownerId}`,- {- method: "GET",- credentials: "include",- cache: "no-store",- }- );-- await res.json();- }-- if (video.transcriptionStatus !== "COMPLETE") {- fetch(- `${process.env.NEXT_PUBLIC_WEB_URL}/api/video/transcribe?videoId=${videoId}&userId=${video.ownerId}`,- {- method: "GET",- credentials: "include",- cache: "no-store",- }- );- }-- if (- video.jobStatus !== "COMPLETE" &&- video.skipProcessing === false &&- video.source.type === "MediaConvert"- ) {- fetch(- `${process.env.NEXT_PUBLIC_WEB_URL}/api/upload/mux/status?videoId=${videoId}&userId=${video.ownerId}`,- {- method: "GET",- credentials: "include",- cache: "no-store",- }- );- }-- if (video.public === false) {- if (video.public === false && userId !== video.ownerId) {- return <p>This video is private</p>;- }- }-- const commentsQuery = await db- .select()- .from(comments)- .where(eq(comments.videoId, videoId));-- return <Share data={video} user={user} comments={commentsQuery} />;-}diff --git a/apps/embed/app/view/loading.tsx b/apps/embed/app/view/loading.tsxdeleted file mode 100644index 972527c43..000000000--- a/apps/embed/app/view/loading.tsx+++ /dev/null@@ -1,7 +0,0 @@-"use client";--import { SkeletonPage } from "@cap/ui";--export default function Loading() {- return <SkeletonPage />;-}diff --git a/apps/embed/app/view/page.tsx b/apps/embed/app/view/page.tsxdeleted file mode 100644index 1f49e29e6..000000000--- a/apps/embed/app/view/page.tsx+++ /dev/null@@ -1,6 +0,0 @@-"use server";-import { redirect } from "next/navigation";--export default async function SharePage() {- redirect("/");-}diff --git a/apps/embed/next.config.mjs b/apps/embed/next.config.mjsdeleted file mode 100644index d360e34a0..000000000--- a/apps/embed/next.config.mjs+++ /dev/null@@ -1,79 +0,0 @@-import million from "million/compiler";--/** @type {import('next').NextConfig} */--import("dotenv").then(({ config }) => config({ path: "../../.env" }));--import fs from "fs";-import path from "path";--const packageJson = JSON.parse(- fs.readFileSync(path.resolve("./package.json"), "utf8")-);-const { version } = packageJson;--const nextConfig = {- reactStrictMode: true,- swcMinify: true,- transpilePackages: ["@cap/ui", "@cap/utils"],- eslint: {- ignoreDuringBuilds: true,- },- typescript: {- ignoreBuildErrors: true,- },- experimental: {- optimizePackageImports: ["@cap/ui", "@cap/utils"],- serverComponentsExternalPackages: [- "@react-email/components",- "@react-email/render",- "@react-email/tailwind",- ],- },- images: {- remotePatterns: [- {- protocol: "https",- hostname: "**",- port: "",- pathname: "**",- },- ],- },- async rewrites() {- return [- {- source: "/r/:path*",- destination: "https://dub.cap.link/:path*",- },- ];- },- async redirects() {- return [- {- source: "/roadmap",- destination:- "https://capso.notion.site/7aac740edeee49b5a23be901a7cb734e?v=9d4a3bf3d72d488cad9b899ab73116a1",- permanent: true,- },- ];- },- env: {- appVersion: version,- },-};--const millionConfig = {- auto: {- rsc: true,- skip: [- "Parallax",- "Toolbar",- "react-scroll-parallax",- "Record",- "ActionButton",- ],- },-};--export default million.next(nextConfig, millionConfig);diff --git a/apps/embed/package.json b/apps/embed/package.jsondeleted file mode 100644index d84127db4..000000000--- a/apps/embed/package.json+++ /dev/null@@ -1,51 +0,0 @@-{- "name": "@cap/embed",- "version": "0.3.1",- "private": true,- "scripts": {- "dev": "next dev -p 3003",- "build": "next build",- "start": "next start -p 3003",- "lint": "next lint"- },- "dependencies": {- "@cap/database": "workspace:*",- "@cap/ui": "workspace:*",- "@cap/utils": "workspace:*",- "@headlessui/react": "^1.7.17",- "clsx": "^2.0.0",- "date-fns": "^3.2.0",- "dotenv": "^16.3.1",- "drizzle-orm": "0.30.9",- "hls.js": "^1.5.3",- "lucide-react": "^0.294.0",- "million": "^2.6.4",- "moment": "^2.30.1",- "next": "14.2.9",- "next-auth": "^4.24.5",- "react": "^18.2.0",- "react-dom": "^18.2.0",- "react-hls-player": "^3.0.7",- "react-hot-toast": "^2.4.1",- "react-player": "^2.14.1",- "react-rnd": "^10.4.1",- "react-tooltip": "^5.26.3",- "server-only": "^0.0.1",- "subtitles-parser-vtt": "^0.1.0",- "zod": "^3.24.1"- },- "devDependencies": {- "@types/node": "^20.11.5",- "@types/react": "^18.2.7",- "@types/react-dom": "^18",- "autoprefixer": "^10.4.14",- "eslint": "^8.41.0",- "eslint-config-next": "14.1.0",- "postcss": "^8.4.23",- "tailwindcss": "^3",- "typescript": "^5.7.2"- },- "engines": {- "node": "20"- }-}\ No newline at end of filediff --git a/apps/embed/postcss.config.js b/apps/embed/postcss.config.jsdeleted file mode 100644index a1d89157e..000000000--- a/apps/embed/postcss.config.js+++ /dev/null@@ -1 +0,0 @@-module.exports = require("@cap/ui/postcss");diff --git a/apps/embed/tailwind.config.js b/apps/embed/tailwind.config.jsdeleted file mode 100644index cbe4f4a2e..000000000--- a/apps/embed/tailwind.config.js+++ /dev/null@@ -1 +0,0 @@-module.exports = require("@cap/ui/tailwind")("web");diff --git a/apps/embed/tsconfig.json b/apps/embed/tsconfig.jsondeleted file mode 100644index 095d594a1..000000000--- a/apps/embed/tsconfig.json+++ /dev/null@@ -1,35 +0,0 @@-{- "compilerOptions": {- "target": "ESNext",- "useDefineForClassFields": true,- "lib": ["DOM", "DOM.Iterable", "ESNext"],- "allowJs": false,- "skipLibCheck": true,- "esModuleInterop": true,- "allowSyntheticDefaultImports": true,- "strict": true,- "forceConsistentCasingInFileNames": true,- "module": "ESNext",- "moduleResolution": "Node",- "resolveJsonModule": true,- "isolatedModules": true,- "noEmit": true,- "jsx": "preserve",- "incremental": true,- "plugins": [- {- "name": "next"- }- ],- "baseUrl": ".",- "paths": {- "@/app/*": ["app/*"],- "@/components/*": ["components/*"],- "@/pages/*": ["components/pages/*"],- "@/utils/*": ["utils/*"]- }- },-- "include": ["next-env.d.ts", ".next/types/**/*.ts", "**/*.ts", "**/*.tsx"],- "exclude": ["node_modules"]-}diff --git a/apps/embed/tsconfig.node.json b/apps/embed/tsconfig.node.jsondeleted file mode 100644index 42872c59f..000000000--- a/apps/embed/tsconfig.node.json+++ /dev/null@@ -1,10 +0,0 @@-{- "compilerOptions": {- "composite": true,- "skipLibCheck": true,- "module": "ESNext",- "moduleResolution": "bundler",- "allowSyntheticDefaultImports": true- },- "include": ["vite.config.ts"]-}diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex ed8663fac..f8f3ca69e 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -262,109 +262,6 @@ importers:specifier: ^3.109.1version: 3.109.1(@cloudflare/[email protected])- apps/embed:- dependencies:- '@cap/database':- specifier: workspace:*- version: link:../../packages/database- '@cap/ui':- specifier: workspace:*- version: link:../../packages/ui- '@cap/utils':- specifier: workspace:*- version: link:../../packages/utils- '@headlessui/react':- specifier: ^1.7.17- clsx:- specifier: ^2.0.0- version: 2.1.1- date-fns:- specifier: ^3.2.0- version: 3.6.0- dotenv:- specifier: ^16.3.1- version: 16.4.5- drizzle-orm:- specifier: 0.30.9- version: 0.30.9(@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])(@types/[email protected])([email protected])([email protected])- hls.js:- specifier: ^1.5.3- version: 1.5.15- lucide-react:- specifier: ^0.294.0- version: 0.294.0([email protected])- million:- specifier: ^2.6.4- version: 2.6.4- moment:- specifier: ^2.30.1- version: 2.30.1- next:- specifier: 14.2.9- version: 14.2.9(@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])- next-auth:- specifier: ^4.24.5- version: 4.24.8([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected])- react:- specifier: ^18.2.0- version: 18.3.1- react-dom:- specifier: ^18.2.0- version: 18.3.1([email protected])- react-hls-player:- specifier: ^3.0.7- react-hot-toast:- specifier: ^2.4.1- react-player:- specifier: ^2.14.1- version: 2.16.0([email protected])- react-rnd:- specifier: ^10.4.1- react-tooltip:- specifier: ^5.26.3- server-only:- specifier: ^0.0.1- version: 0.0.1- subtitles-parser-vtt:- specifier: ^0.1.0- version: 0.1.0- zod:- specifier: ^3.24.1- version: 3.24.1- devDependencies:- '@types/node':- specifier: ^20.11.5- version: 20.16.9- '@types/react':- specifier: ^18.2.7- version: 18.3.9- '@types/react-dom':- specifier: ^18- version: 18.3.0- autoprefixer:- specifier: ^10.4.14- version: 10.4.20([email protected])- eslint:- specifier: ^8.41.0- version: 8.57.1- eslint-config-next:- specifier: 14.1.0- version: 14.1.0([email protected])([email protected])- postcss:- specifier: ^8.4.23- version: 8.4.47- tailwindcss:- specifier: ^3- typescript:- specifier: ^5.7.2- version: 5.7.2-apps/storybook:dependencies:'@cap/ui-solid':@@ -805,7 +702,7 @@ importers:version: 5.0.7next:specifier: 14.2.9- version: 14.2.9(@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])+ version: 14.2.9(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])next-auth:specifier: ^4.24.5version: 4.24.8([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected])@@ -9055,10 +8952,6 @@ packages:resolution: {integrity: sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==}engines: {node: '>=8.6'}- resolution: {integrity: sha512-voUkdd/jHWrG+7NS+mX49Pat+POKdgGW78V7pYMSrTaOjUitR6ySEcAci8hn17Rsx1IMI3+5w41dkADM1J1ZEg==}- hasBin: true-resolution: {integrity: sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==}engines: {node: '>= 0.6'}@@ -21853,20 +21746,6 @@ snapshots:braces: 3.0.3picomatch: 2.3.1- dependencies:- '@babel/core': 7.25.2- '@babel/generator': 7.25.6- '@babel/plugin-syntax-jsx': 7.24.7(@babel/[email protected])- '@babel/plugin-syntax-typescript': 7.25.4(@babel/[email protected])- '@babel/types': 7.25.6- kleur: 4.1.5- rollup: 3.29.5- unplugin: 1.14.1- transitivePeerDependencies:- - supports-color- - webpack-sources-@@ -22068,7 +21947,7 @@ snapshots:'@panva/hkdf': 1.2.1cookie: 0.5.0jose: 4.15.9- next: 14.2.9(@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])+ next: 14.2.9(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])oauth: 0.9.15openid-client: 5.7.0preact: 10.24.1@@ -22117,7 +21996,7 @@ snapshots:postcss: 8.4.31react: 18.3.1react-dom: 18.3.1([email protected])- styled-jsx: 5.1.1(@babel/[email protected])([email protected])+ styled-jsx: 5.1.1([email protected])optionalDependencies:'@next/swc-darwin-arm64': 14.2.3'@next/swc-darwin-x64': 14.2.3@@ -22133,7 +22012,7 @@ snapshots:- '@babel/core'- babel-plugin-macros- [email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected]):+ [email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]):dependencies:'@next/env': 14.2.9'@swc/helpers': 0.5.5@@ -22143,7 +22022,7 @@ snapshots:postcss: 8.4.31react: 18.3.1react-dom: 18.3.1([email protected])- styled-jsx: 5.1.1(@babel/[email protected])([email protected])+ styled-jsx: 5.1.1([email protected])optionalDependencies:'@next/swc-darwin-arm64': 14.2.9'@next/swc-darwin-x64': 14.2.9@@ -23941,12 +23820,10 @@ snapshots:dependencies:inline-style-parser: 0.2.4dependencies:client-only: 0.0.1react: 18.3.1- optionalDependencies:- '@babel/core': 7.25.2