Emdash source with visual editor image upload fix

Fixes:
1. media.ts: wrap placeholder generation in try-catch
2. toolbar.ts: check r.ok, display error message in popover
This commit is contained in:
2026-05-03 10:44:54 +07:00
parent 78f81bebb6
commit 2d1be52177
2352 changed files with 662964 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
import { ArrowRightIcon, CaretRightIcon, type IconProps } from "@phosphor-icons/react";
import { cn } from "../lib/utils";
/** Caret pointing in the "forward" direction — right in LTR, left in RTL. */
export function CaretNext({ className, ...props }: IconProps) {
return <CaretRightIcon className={cn("rtl:-scale-x-100", className)} {...props} />;
}
/** Caret pointing in the "backward" direction — left in LTR, right in RTL. */
export function CaretPrev({ className, ...props }: IconProps) {
return <CaretRightIcon className={cn("rotate-180 rtl:rotate-0", className)} {...props} />;
}
/** Arrow pointing in the "forward" direction — right in LTR, left in RTL. */
export function ArrowNext({ className, ...props }: IconProps) {
return <ArrowRightIcon className={cn("rtl:-scale-x-100", className)} {...props} />;
}
/** Arrow pointing in the "backward" direction — left in LTR, right in RTL. */
export function ArrowPrev({ className, ...props }: IconProps) {
return <ArrowRightIcon className={cn("rotate-180 rtl:rotate-0", className)} {...props} />;
}