Skip to content

Open-source agentic AI Search Execution Platform. Track AI visibility, find opportunities, and let agents turn signals into prioritized actions and drafted fixes across ChatGPT, Claude, Gemini, Google AI Overviews, Google AI Mode, Perplexity, Grok, and Microsoft Copilot.

feat(reports): Simple Reports MVP — immutable snapshot reports with AI summary and vector PDF export (#390)

Gökhan Geyikd1e9ac91f6a0
diff --git a/server/src/routes/index.js b/server/src/routes/index.js
index c7615f690..dc59038c8 100644
--- a/server/src/routes/index.js
+++ b/server/src/routes/index.js
@@ -6,6 +6,7 @@ import contentRoutes from './content.js';
import competitorRoutes from './competitors.js';
import topicRoutes from './topics.js';
import auditRoutes from './audits.js';
+import reportRoutes from './reports.js';
const router = Router();
@@ -16,6 +17,7 @@ router.use('/content', contentRoutes);
router.use('/competitors', competitorRoutes);
router.use('/topics', topicRoutes);
router.use('/audits', auditRoutes);
+router.use('/reports', reportRoutes);
router.get('/health', (req, res) => {
res.json({ status: 'ok', user: req.user?.id });
diff --git a/server/src/routes/reports.js b/server/src/routes/reports.js
new file mode 100644
index 000000000..b2b70e443
--- /dev/null
+++ b/server/src/routes/reports.js
@@ -0,0 +1,76 @@
+/**
+ * Reports routes (Simple Reports MVP).
+ *
+ * POST /api/reports/summary { brandId, snapshot, dateFrom, dateTo, model? }
+ * → { success, summary }
+ *
+ * Generates the AI executive summary for a report from the metric snapshot the
+ * web action assembled (insights KPIs, share of voice, competitor comparison,
+ * citations overview). The snapshot itself is saved to the `reports` table by
+ * the Server Action — this endpoint only turns numbers into prose, following
+ * the content.js brief-generation pattern (resolveModel + one LLM round-trip,
+ * no retry loop: generation is user-triggered and re-runnable).
+ */
+
+import { Router } from 'express';
+import { generateText } from 'ai';
+import { resolveModel } from '../lib/ai-provider.js';
+import { assertBrandAccess } from '../lib/access.js';
+import supabaseAdmin from '../config/supabase.js';
+
+const router = Router();
+
+const SUMMARY_SYSTEM_PROMPT = `You are an AI search visibility analyst writing the executive summary of a brand's AI visibility report.
+
+You will receive a JSON snapshot of the brand's metrics for the report period: overall visibility KPIs (with deltas vs the previous period), share of voice, a competitor comparison, and a citations overview.
+
+Write a 1-2 paragraph executive summary in English for a marketing executive:
+- Lead with the overall picture (visibility, mentions, citations) and how it changed.
+- Call out the most notable competitor dynamics (who leads, who moved).
+- Mention citation reach (domains/URLs) only if it adds signal.
+- Be concrete: use the numbers from the snapshot. Never invent metrics that are not present.
+- No headings, no bullet points, no markdown — plain prose only.`;
+
+router.post('/summary', async (req, res) => {
+ const userId = req.user?.id;
+ const { brandId, snapshot, dateFrom, dateTo, model } = req.body || {};
+
+ if (!brandId || !snapshot || typeof snapshot !== 'object') {
+ return res.status(400).json({ success: false, message: 'brandId and snapshot are required' });
+ }
+
+ try {
+ await assertBrandAccess(brandId, userId);
+
+ const { data: brandRow } = await supabaseAdmin
+ .from('brands')
+ .select('name')
+ .eq('id', brandId)
+ .single();
+ const brandName = brandRow?.name || 'the brand';
+
+ const userPrompt = `Brand: ${brandName}
+Report period: ${dateFrom || 'unknown'} to ${dateTo || 'unknown'}
+
+Metric snapshot (JSON):
+${JSON.stringify(snapshot, null, 2)}
+
+Write the executive summary.`;
+
+ const { text: summary } = await generateText({
+ model: resolveModel(model),
+ system: SUMMARY_SYSTEM_PROMPT,
+ prompt: userPrompt,
+ });
+
+ return res.json({ success: true, summary: summary.trim() });
+ } catch (err) {
+ if (err.status) {
+ return res.status(err.status).json({ success: false, message: err.message });
+ }
+ req.log.error({ err }, 'report summary generation failed');
+ return res.status(500).json({ success: false, message: err.message });
+ }
+});
+
+export default router;
diff --git a/supabase/migrations/00023_reports.sql b/supabase/migrations/00023_reports.sql
new file mode 100644
index 000000000..b01607f17
--- /dev/null
+++ b/supabase/migrations/00023_reports.sql
@@ -0,0 +1,53 @@
+-- Reports (Simple Reports MVP).
+-- One row per generated report. The report is IMMUTABLE: `payload` stores the
+-- metric snapshot taken at generation time (insights summary, share of voice,
+-- competitor comparison, citations overview) plus the AI executive summary
+-- text, so the detail page renders from the saved payload with no live
+-- queries. Writes happen through the authenticated client via Server Actions;
+-- member policies below mirror site_audits/competitors (brand_id -> brands ->
+-- profiles -> auth.uid()).
+
+CREATE TABLE IF NOT EXISTS reports (
+ id uuid PRIMARY KEY DEFAULT gen_random_uuid(),
+ brand_id uuid NOT NULL REFERENCES brands(id) ON DELETE CASCADE,
+ title text NOT NULL,
+ template text NOT NULL DEFAULT 'executive_summary',
+ date_from timestamptz NOT NULL,
+ date_to timestamptz NOT NULL,
+ payload jsonb NOT NULL DEFAULT '{}'::jsonb,
+ created_by uuid REFERENCES profiles(id) ON DELETE SET NULL,
+ created_at timestamptz NOT NULL DEFAULT now()
+);
+
+CREATE INDEX IF NOT EXISTS reports_brand_id_idx ON reports (brand_id, created_at DESC);
+
+-- RLS: org-membership scoped, mirroring site_audits / competitors.
+-- No UPDATE policy on purpose — reports are immutable snapshots.
+ALTER TABLE reports ENABLE ROW LEVEL SECURITY;
+
+CREATE POLICY reports_member_select ON reports FOR SELECT
+ USING (
+ brand_id IN (
+ SELECT b.id FROM brands b
+ JOIN profiles p ON p.organization_id = b.organization_id
+ WHERE p.id = auth.uid()
+ )
+ );
+
+CREATE POLICY reports_member_insert ON reports FOR INSERT
+ WITH CHECK (
+ brand_id IN (
+ SELECT b.id FROM brands b
+ JOIN profiles p ON p.organization_id = b.organization_id
+ WHERE p.id = auth.uid()
+ )
+ );
+
+CREATE POLICY reports_member_delete ON reports FOR DELETE
+ USING (
+ brand_id IN (
+ SELECT b.id FROM brands b
+ JOIN profiles p ON p.organization_id = b.organization_id
+ WHERE p.id = auth.uid()
+ )
+ );
diff --git a/supabase/schema.sql b/supabase/schema.sql
index a36e88cde..df608e2f1 100644
--- a/supabase/schema.sql
+++ b/supabase/schema.sql
@@ -2985,3 +2985,60 @@ COMMENT ON TABLE fanout_query_intents IS
ALTER TABLE fanout_query_intents ENABLE ROW LEVEL SECURITY;
+-- ─────────────────────────────────────────────────────────────────────────
+-- migrations/00023_reports.sql
+-- ─────────────────────────────────────────────────────────────────────────
+-- Reports (Simple Reports MVP).
+-- One row per generated report. The report is IMMUTABLE: `payload` stores the
+-- metric snapshot taken at generation time (insights summary, share of voice,
+-- competitor comparison, citations overview) plus the AI executive summary
+-- text, so the detail page renders from the saved payload with no live
+-- queries. Writes happen through the authenticated client via Server Actions;
+-- member policies below mirror site_audits/competitors (brand_id -> brands ->
+-- profiles -> auth.uid()).
+
+CREATE TABLE IF NOT EXISTS reports (
+ id uuid PRIMARY KEY DEFAULT gen_random_uuid(),
+ brand_id uuid NOT NULL REFERENCES brands(id) ON DELETE CASCADE,
+ title text NOT NULL,
+ template text NOT NULL DEFAULT 'executive_summary',
+ date_from timestamptz NOT NULL,
+ date_to timestamptz NOT NULL,
+ payload jsonb NOT NULL DEFAULT '{}'::jsonb,
+ created_by uuid REFERENCES profiles(id) ON DELETE SET NULL,
+ created_at timestamptz NOT NULL DEFAULT now()
+);
+
+CREATE INDEX IF NOT EXISTS reports_brand_id_idx ON reports (brand_id, created_at DESC);
+
+-- RLS: org-membership scoped, mirroring site_audits / competitors.
+-- No UPDATE policy on purpose — reports are immutable snapshots.
+ALTER TABLE reports ENABLE ROW LEVEL SECURITY;
+
+CREATE POLICY reports_member_select ON reports FOR SELECT
+ USING (
+ brand_id IN (
+ SELECT b.id FROM brands b
+ JOIN profiles p ON p.organization_id = b.organization_id
+ WHERE p.id = auth.uid()
+ )
+ );
+
+CREATE POLICY reports_member_insert ON reports FOR INSERT
+ WITH CHECK (
+ brand_id IN (
+ SELECT b.id FROM brands b
+ JOIN profiles p ON p.organization_id = b.organization_id
+ WHERE p.id = auth.uid()
+ )
+ );
+
+CREATE POLICY reports_member_delete ON reports FOR DELETE
+ USING (
+ brand_id IN (
+ SELECT b.id FROM brands b
+ JOIN profiles p ON p.organization_id = b.organization_id
+ WHERE p.id = auth.uid()
+ )
+ );
+
diff --git a/web/messages/en.json b/web/messages/en.json
index 5cfe4e686..68558b2db 100644
--- a/web/messages/en.json
+++ b/web/messages/en.json
@@ -395,8 +395,65 @@
"description": "Export and share your AI visibility reports.",
"generateReport": "Generate Report",
"downloadPDF": "Download PDF",
+ "downloadFailed": "PDF export failed. Please try again.",
"dateRange": "Date Range",
- "platforms": "Platforms"
+ "platforms": "Platforms",
+ "libraryTitle": "Generated Reports",
+ "emptyLibrary": "No reports yet. Generate your first report to see it here.",
+ "loadFailed": "Failed to load reports",
+ "generated": "Report generated",
+ "generateFailed": "Report generation failed. Please try again.",
+ "generating": "Generating…",
+ "deleteConfirm": "Delete this report?",
+ "deleteFailed": "Failed to delete report",
+ "selectDates": "Pick a start and end date",
+ "dialogTitle": "Generate Report",
+ "dialogDescription": "Snapshot your brand's AI visibility for a period, with an AI-written executive summary.",
+ "reportTitleLabel": "Title (optional)",
+ "reportTitlePlaceholder": "e.g. Q2 Executive Summary",
+ "presets": {
+ "7d": "Last 7 days",
+ "30d": "Last 30 days",
+ "90d": "Last 90 days",
+ "custom": "Custom"
+ },
+ "columns": {
+ "title": "Title",
+ "period": "Period",
+ "created": "Created",
+ "actions": "Actions",
+ "brand": "Brand",
+ "change": "Change",
+ "domain": "Domain",
+ "sourceType": "Source Type",
+ "usage": "Usage",
+ "prompt": "Prompt",
+ "runs": "Runs",
+ "query": "Query",
+ "engines": "Engines",
+ "timesSearched": "Times Searched"
+ },
+ "visibilityTrend": "Visibility Trend",
+ "bestPrompts": "Best Performing Prompts",
+ "worstPrompts": "Weakest Prompts",
+ "queryFanout": "Query Fan-out",
+ "queryFanoutDescription": "Sub-queries answer engines actually ran while answering your tracked prompts.",
+ "notFound": "Report not found.",
+ "backToReports": "Back to Reports",
+ "generatedOn": "Generated on",
+ "executiveSummary": "Executive Summary",
+ "kpi": {
+ "visibility": "Visibility",
+ "mentions": "Mentions",
+ "citations": "Citations",
+ "sentiment": "Positive Sentiment"
+ },
+ "shareOfVoice": "Share of Voice",
+ "competitorLeaderboard": "Competitor Leaderboard",
+ "topCitationSources": "Top Citation Sources",
+ "citationTotals": "{domains} domains · {citations} citations in this period",
+ "noData": "No data for this period.",
+ "you": "(you)"
},
"settings": {
"title": "Settings",
diff --git a/web/package.json b/web/package.json
index 85dcfd5cf..633e89c0d 100644
--- a/web/package.json
+++ b/web/package.json
@@ -26,6 +26,7 @@
"@base-ui/react": "^1.2.0",
"@modelcontextprotocol/sdk": "^1.29.0",
"@radix-ui/react-checkbox": "^1.3.3",
+ "@react-pdf/renderer": "^4.5.1",
"@stripe/stripe-js": "^9.1.0",
"@supabase/ssr": "^0.9.0",
"@supabase/supabase-js": "^2.99.0",
diff --git a/web/public/fonts/Inter-Bold.ttf b/web/public/fonts/Inter-Bold.ttf
new file mode 100644
index 000000000..9c2f47d4a
Binary files /dev/null and b/web/public/fonts/Inter-Bold.ttf differ
diff --git a/web/public/fonts/Inter-Regular.ttf b/web/public/fonts/Inter-Regular.ttf
new file mode 100644
index 000000000..399a6e0c3
Binary files /dev/null and b/web/public/fonts/Inter-Regular.ttf differ
diff --git a/web/src/app/[locale]/(dashboard)/dashboard/insights/_charts.tsx b/web/src/app/[locale]/(dashboard)/dashboard/insights/_charts.tsx
index 9b7188be9..6307702bf 100644
--- a/web/src/app/[locale]/(dashboard)/dashboard/insights/_charts.tsx
+++ b/web/src/app/[locale]/(dashboard)/dashboard/insights/_charts.tsx
@@ -192,6 +192,11 @@ function BarList({ data }: { data: { name: string; value: number; color: string
export function TrendChart({ data }: { data: VisibilityTrendPoint[] }) {
const hasCompetitors = data.some((d) => d.competitors !== null);
+ // Adaptive Y ceiling (see niceVisibilityYMax): a fixed 0–100 axis flattens
+ // realistic low-single-digit visibility averages into a floor-hugging line.
+ const yMax = niceVisibilityYMax(
+ data.flatMap((d) => [d.score, ...(d.competitors !== null ? [d.competitors] : [])]),
+ );
if (data.length === 0) {
return (
@@ -233,7 +238,7 @@ export function TrendChart({ data }: { data: VisibilityTrendPoint[] }) {
tickLine={false}
axisLine={false}
className="fill-muted-foreground"
- domain={[0, 100]}
+ domain={[0, yMax]}
/>
<Tooltip content={<AreaTooltip />} />
<Legend iconType="circle" iconSize={8} wrapperStyle={{ fontSize: 11, paddingTop: 8 }} />
diff --git a/web/src/app/[locale]/(dashboard)/dashboard/reports/[id]/_report-pdf.tsx b/web/src/app/[locale]/(dashboard)/dashboard/reports/[id]/_report-pdf.tsx
new file mode 100644
index 000000000..41bbb8236
--- /dev/null
+++ b/web/src/app/[locale]/(dashboard)/dashboard/reports/[id]/_report-pdf.tsx
@@ -0,0 +1,449 @@
+/**
+ * Vector PDF document for a report (@react-pdf/renderer) — replaces the old
+ * html2canvas screenshot approach: selectable text, crisp at any zoom, exact
+ * layout control, and no oklch/layout-shift issues. Rendered client-side on
+ * demand (see the detail page's download handler); everything draws from the
+ * immutable saved payload, mirroring the on-screen section order.
+ *
+ * Inter is embedded from /public/fonts so Turkish characters (ş, ğ, ı…) in
+ * brand names and prompt texts render correctly — the built-in Helvetica
+ * only covers WinAnsi.
+ */
+
+import {
+ Document,
+ Page,
+ Text,
+ View,
+ StyleSheet,
+ Font,
+ Svg,
+ Path,
+ Polyline,
+ Line,
+} from '@react-pdf/renderer';
+import type { Report, ReportPromptPerf } from '@/lib/actions/reports';
+
+Font.register({
+ family: 'Inter',
+ fonts: [
+ { src: '/fonts/Inter-Regular.ttf', fontWeight: 400 },
+ { src: '/fonts/Inter-Bold.ttf', fontWeight: 700 },
+ ],
+});
+// Word-splitting hyphenation looks broken in tables; wrap whole words only.
+Font.registerHyphenationCallback((word) => [word]);
+
+const INDIGO = '#6366f1';
+const SLATE = '#94a3b8';
+const TEXT = '#111827';
+const MUTED = '#6b7280';
+const BORDER = '#e5e7eb';
+const GREEN = '#059669';
+const RED = '#dc2626';
+
+const styles = StyleSheet.create({
+ page: {
+ fontFamily: 'Inter',
+ fontSize: 9,
+ color: TEXT,
+ paddingTop: 40,
+ paddingHorizontal: 40,
+ paddingBottom: 56,
+ },
+ title: { fontSize: 16, fontWeight: 700 },
+ subtitle: { fontSize: 9, color: MUTED, marginTop: 4 },
+ rule: { height: 2, backgroundColor: INDIGO, marginTop: 10, marginBottom: 16 },
+ section: { marginBottom: 16 },
+ sectionTitle: { fontSize: 11, fontWeight: 700, marginBottom: 6 },
+ paragraph: { fontSize: 9, lineHeight: 1.5, color: TEXT },
+ kpiRow: { flexDirection: 'row', gap: 8 },
+ kpiBox: {
+ flex: 1,
+ borderWidth: 0.5,
+ borderColor: BORDER,
+ borderRadius: 4,
+ padding: 8,
+ },
+ kpiLabel: { fontSize: 7, color: MUTED, textTransform: 'uppercase', marginBottom: 3 },
+ kpiValueRow: { flexDirection: 'row', alignItems: 'flex-end', gap: 4 },
+ kpiValue: { fontSize: 14, fontWeight: 700 },
+ delta: { fontSize: 8, marginBottom: 1 },
+ axisLabelRow: {
+ flexDirection: 'row',
+ justifyContent: 'space-between',
+ marginTop: 3,
+ },
+ axisLabel: { fontSize: 7, color: MUTED },
+ legendRow: { flexDirection: 'row', gap: 12, marginTop: 4 },
+ legendItem: { flexDirection: 'row', alignItems: 'center', gap: 4 },
+ legendSwatch: { width: 8, height: 3, borderRadius: 1 },
+ legendText: { fontSize: 7, color: MUTED },
+ barRow: { flexDirection: 'row', alignItems: 'center', marginBottom: 5 },
+ barLabel: { width: 110, fontSize: 8, paddingRight: 6 },
+ barTrack: {
+ flex: 1,
+ height: 5,
+ backgroundColor: '#f3f4f6',
+ borderRadius: 2.5,
+ overflow: 'hidden',
+ },
+ barFill: { height: 5, backgroundColor: INDIGO, borderRadius: 2.5 },
+ barValue: { width: 40, fontSize: 8, textAlign: 'right' },
+ tableHeader: {
+ flexDirection: 'row',
+ borderBottomWidth: 1,
+ borderBottomColor: BORDER,
+ paddingBottom: 4,
+ marginBottom: 2,
+ },
+ tableHeaderCell: { fontSize: 7, fontWeight: 700, color: MUTED, textTransform: 'uppercase' },
+ tableRow: {
+ flexDirection: 'row',
+ borderBottomWidth: 0.5,
+ borderBottomColor: BORDER,
+ paddingVertical: 4,
+ alignItems: 'center',
+ },
+ cell: { fontSize: 8 },
+ footer: {
+ position: 'absolute',
+ bottom: 24,
+ left: 40,
+ right: 40,
+ flexDirection: 'row',
+ justifyContent: 'space-between',
+ borderTopWidth: 0.5,
+ borderTopColor: BORDER,
+ paddingTop: 6,
+ },
+ footerText: { fontSize: 7, color: MUTED },
+});
+
+function DeltaText({ value }: { value: number | null }) {
+ if (value === null) return null;
+ const up = value >= 0;
+ return (
+ <Text style={[styles.delta, { color: up ? GREEN : RED }]}>
+ {up ? '+' : ''}
+ {value}%
+ </Text>
+ );
+}
+
+/** Simple area/line chart drawn with react-pdf SVG primitives. */
+function TrendSvg({
+ data,
+ width,
+ height,
+}: {
+ data: { date: string; score: number; competitors: number | null }[];
+ width: number;
+ height: number;
+}) {
+ const scores = data.flatMap((d) => [d.score, ...(d.competitors !== null ? [d.competitors] : [])]);
+ const yMax = Math.max(...scores, 1) * 1.25;
+ const x = (i: number) => (i * width) / Math.max(data.length - 1, 1);
+ const y = (v: number) => height - (v / yMax) * height;
+
+ const brandPoints = data.map((d, i) => `${x(i)},${y(d.score)}`).join(' ');
+ const areaPath = `M0,${height} L${data
+ .map((d, i) => `${x(i)},${y(d.score)}`)
+ .join(' L')} L${width},${height} Z`;
+ const hasCompetitors = data.some((d) => d.competitors !== null);
+ const compPoints = hasCompetitors
+ ? data.map((d, i) => `${x(i)},${y(d.competitors ?? 0)}`).join(' ')
+ : '';
+
+ return (
+ <Svg width={width} height={height}>
+ {[0.25, 0.5, 0.75].map((f) => (
+ <Line
+ key={f}
+ x1={0}
+ y1={height * f}
+ x2={width}
+ y2={height * f}
+ stroke={BORDER}
+ strokeWidth={0.5}
+ />
+ ))}
+ <Path d={areaPath} fill={INDIGO} fillOpacity={0.12} />
+ <Polyline points={brandPoints} fill="none" stroke={INDIGO} strokeWidth={1.5} />
+ {hasCompetitors && (
+ <Polyline
+ points={compPoints}
+ fill="none"
+ stroke={SLATE}
+ strokeWidth={1.2}
+ strokeDasharray="3 2"
+ />
+ )}
+ <Line x1={0} y1={height} x2={width} y2={height} stroke={BORDER} strokeWidth={1} />
+ </Svg>
+ );
+}
+
+function HBar({ label, pct, value }: { label: string; pct: number; value: string }) {
+ return (
+ <View style={styles.barRow}>
+ <Text style={styles.barLabel}>{label}</Text>
+ <View style={styles.barTrack}>
+ <View style={[styles.barFill, { width: `${Math.min(Math.max(pct, 0), 100)}%` }]} />
+ </View>
+ <Text style={styles.barValue}>{value}</Text>
+ </View>
+ );
+}
+
+function PromptTable({ title, prompts }: { title: string; prompts: ReportPromptPerf[] }) {
+ return (
+ <View style={styles.section} wrap={false}>
+ <Text style={styles.sectionTitle}>{title}</Text>
+ <View style={styles.tableHeader}>
+ <Text style={[styles.tableHeaderCell, { flex: 1 }]}>Prompt</Text>
+ <Text style={[styles.tableHeaderCell, { width: 60, textAlign: 'right' }]}>Visibility</Text>
+ <Text style={[styles.tableHeaderCell, { width: 40, textAlign: 'right' }]}>Runs</Text>
+ </View>
+ {prompts.map((p) => (
+ <View key={p.text} style={styles.tableRow}>
+ <Text style={[styles.cell, { flex: 1, paddingRight: 8 }]}>{p.text}</Text>
+ <Text style={[styles.cell, { width: 60, textAlign: 'right' }]}>{p.avgVisibility}%</Text>
+ <Text style={[styles.cell, { width: 40, textAlign: 'right', color: MUTED }]}>
+ {p.runs}
+ </Text>
+ </View>
+ ))}
+ </View>
+ );
+}
+
+function formatDate(iso: string) {
+ return new Date(iso).toLocaleDateString('en-US', {
+ year: 'numeric',
+ month: 'short',
+ day: 'numeric',
+ });
+}
+
+export function ReportPdfDocument({ report }: { report: Report }) {
+ const { payload } = report;
+ const maxSov = Math.max(...payload.shareOfVoice.byPlatform.map((p) => p.sov), 1);
+ const trend = payload.visibilityTrend ?? [];
+ const hasCompetitorTrend = trend.some((d) => d.competitors !== null);
+
+ return (
+ <Document title={report.title} author="Ansvisor" creator="Ansvisor">
+ <Page size="A4" style={styles.page}>
+ {/* Header */}
+ <Text style={styles.title}>{report.title}</Text>
+ <Text style={styles.subtitle}>
+ {payload.brandName} · {formatDate(report.dateFrom)} — {formatDate(report.dateTo)} ·
+ Generated on {formatDate(report.createdAt)}
+ </Text>
+ <View style={styles.rule} />
+
+ {/* Executive summary */}
+ <View style={styles.section}>
+ <Text style={styles.sectionTitle}>Executive Summary</Text>
+ <Text style={styles.paragraph}>{payload.summaryText}</Text>
+ </View>
+
+ {/* KPI row */}
+ <View style={[styles.section, styles.kpiRow]} wrap={false}>
+ {(
+ [
+ [
+ 'Visibility',
+ `${payload.insights.avgVisibilityScore}%`,
+ payload.insights.visibilityChange,
+ ],
+ ['Mentions', String(payload.insights.totalMentions), payload.insights.mentionsChange],
+ [
+ 'Citations',
+ String(payload.insights.totalCitations),
+ payload.insights.citationsChange,
+ ],
+ [
+ 'Positive Sentiment',
+ `${payload.insights.positiveSentimentPct}%`,
+ payload.insights.sentimentChange,
+ ],
+ ] as const
+ ).map(([label, value, change]) => (
+ <View key={label} style={styles.kpiBox}>
+ <Text style={styles.kpiLabel}>{label}</Text>
+ <View style={styles.kpiValueRow}>
+ <Text style={styles.kpiValue}>{value}</Text>
+ <DeltaText value={change} />
+ </View>
+ </View>
+ ))}
+ </View>
+
+ {/* Visibility trend */}
+ {trend.length > 1 && (
+ <View style={styles.section} wrap={false}>
+ <Text style={styles.sectionTitle}>Visibility Trend</Text>
+ <TrendSvg data={trend} width={515} height={110} />
+ <View style={styles.axisLabelRow}>
+ <Text style={styles.axisLabel}>{trend[0].date}</Text>
+ <Text style={styles.axisLabel}>{trend[trend.length - 1].date}</Text>
+ </View>
+ <View style={styles.legendRow}>
+ <View style={styles.legendItem}>
+ <View style={[styles.legendSwatch, { backgroundColor: INDIGO }]} />
+ <Text style={styles.legendText}>Your Brand</Text>
+ </View>
+ {hasCompetitorTrend && (
+ <View style={styles.legendItem}>
+ <View style={[styles.legendSwatch, { backgroundColor: SLATE }]} />
+ <Text style={styles.legendText}>Avg. Competitor</Text>
+ </View>
+ )}
+ </View>
+ </View>
+ )}
+
+ {/* Share of Voice */}
+ <View style={styles.section} wrap={false}>
+ <Text style={styles.sectionTitle}>
+ Share of Voice — {payload.shareOfVoice.overallSov}%
+ </Text>
+ {payload.shareOfVoice.byPlatform.map((p) => (
+ <HBar
+ key={p.provider}
+ label={p.provider}
+ pct={(p.sov / maxSov) * 100}
+ value={`${p.sov}%`}
+ />
+ ))}
+ </View>
+
+ {/* Competitor leaderboard */}
+ {payload.competitors.length > 0 && (
+ <View style={styles.section} wrap={false}>
+ <Text style={styles.sectionTitle}>Competitor Leaderboard</Text>
+ <View style={styles.tableHeader}>
+ <Text style={[styles.tableHeaderCell, { flex: 1 }]}>Brand</Text>
+ <Text style={[styles.tableHeaderCell, { width: 60, textAlign: 'right' }]}>
+ Visibility
+ </Text>
+ <Text style={[styles.tableHeaderCell, { width: 50, textAlign: 'right' }]}>
+ Change
+ </Text>
+ <Text style={[styles.tableHeaderCell, { width: 55, textAlign: 'right' }]}>
+ Mentions
+ </Text>
+ <Text style={[styles.tableHeaderCell, { width: 55, textAlign: 'right' }]}>
+ Citations
+ </Text>
+ </View>
+ {payload.competitors.map((c) => (
+ <View key={c.name} style={styles.tableRow}>
+ <Text
+ style={[
+ styles.cell,
+ { flex: 1, paddingRight: 8 },
+ c.isOwnBrand ? { fontWeight: 700, color: INDIGO } : {},
+ ]}
+ >
+ {c.name}
+ {c.isOwnBrand ? ' (you)' : ''}
+ </Text>
+ <Text style={[styles.cell, { width: 60, textAlign: 'right' }]}>
+ {c.avgVisibilityScore}%
+ </Text>
+ <View style={{ width: 50, alignItems: 'flex-end' }}>
+ <DeltaText value={c.change} />
+ </View>
+ <Text style={[styles.cell, { width: 55, textAlign: 'right' }]}>
+ {c.totalMentions}
+ </Text>
+ <Text style={[styles.cell, { width: 55, textAlign: 'right' }]}>
+ {c.totalCitations}
+ </Text>
+ </View>
+ ))}
+ </View>
+ )}
+
+ {/* Best / worst prompts */}
+ {payload.promptPerformance && payload.promptPerformance.best.length > 0 && (
+ <PromptTable title="Best Performing Prompts" prompts={payload.promptPerformance.best} />
+ )}
+ {payload.promptPerformance && payload.promptPerformance.worst.length > 0 && (
+ <PromptTable title="Weakest Prompts" prompts={payload.promptPerformance.worst} />
+ )}
+
+ {/* Query fan-out */}
+ {payload.queryFanout && payload.queryFanout.length > 0 && (
+ <View style={styles.section} wrap={false}>
+ <Text style={styles.sectionTitle}>Query Fan-out</Text>
+ <View style={styles.tableHeader}>
+ <Text style={[styles.tableHeaderCell, { flex: 1 }]}>Query</Text>
+ <Text style={[styles.tableHeaderCell, { width: 150 }]}>Engines</Text>
+ <Text style={[styles.tableHeaderCell, { width: 60, textAlign: 'right' }]}>
+ Searched
+ </Text>
+ </View>
+ {payload.queryFanout.map((q) => (
+ <View key={q.query} style={styles.tableRow}>
+ <Text style={[styles.cell, { flex: 1, paddingRight: 8 }]}>{q.query}</Text>
+ <Text style={[styles.cell, { width: 150, color: MUTED }]}>
+ {q.engines.join(', ')}
+ </Text>
+ <Text style={[styles.cell, { width: 60, textAlign: 'right' }]}>
+ {q.timesSearched}
+ </Text>
+ </View>
+ ))}
+ </View>
+ )}
+
+ {/* Citations */}
+ <View style={styles.section} wrap={false}>
+ <Text style={styles.sectionTitle}>
+ Top Citation Sources — {payload.citations.totals.domains} domains ·{' '}
+ {payload.citations.totals.citations} citations
+ </Text>
+ {payload.citations.topDomains.length > 0 && (
+ <View style={{ marginTop: 8 }}>
+ <View style={styles.tableHeader}>
+ <Text style={[styles.tableHeaderCell, { flex: 1 }]}>Domain</Text>
+ <Text style={[styles.tableHeaderCell, { width: 80 }]}>Source Type</Text>
+ <Text style={[styles.tableHeaderCell, { width: 60, textAlign: 'right' }]}>
+ Citations
+ </Text>
+ <Text style={[styles.tableHeaderCell, { width: 50, textAlign: 'right' }]}>
+ Usage
+ </Text>
+ </View>
+ {payload.citations.topDomains.map((d) => (
+ <View key={d.domain} style={styles.tableRow}>
+ <Text style={[styles.cell, { flex: 1, paddingRight: 8 }]}>{d.domain}</Text>
+ <Text style={[styles.cell, { width: 80, color: MUTED }]}>{d.category}</Text>
+ <Text style={[styles.cell, { width: 60, textAlign: 'right' }]}>
+ {d.totalCitations}
+ </Text>
+ <Text style={[styles.cell, { width: 50, textAlign: 'right' }]}>
+ {d.usagePct}%
+ </Text>
+ </View>
+ ))}
+ </View>
+ )}
+ </View>
+
+ {/* Footer */}
+ <View style={styles.footer} fixed>
+ <Text style={styles.footerText}>Generated with Ansvisor · www.ansvisor.com</Text>
+ <Text
+ style={styles.footerText}
+ render={({ pageNumber, totalPages }) => `${pageNumber} / ${totalPages}`}
+ />
+ </View>
+ </Page>
+ </Document>
+ );
+}
diff --git a/web/src/app/[locale]/(dashboard)/dashboard/reports/[id]/page.tsx b/web/src/app/[locale]/(dashboard)/dashboard/reports/[id]/page.tsx
new file mode 100644
index 000000000..0973688d0
--- /dev/null
+++ b/web/src/app/[locale]/(dashboard)/dashboard/reports/[id]/page.tsx
@@ -0,0 +1,427 @@
+'use client';
+
+import { useState, useEffect } from 'react';
+import { useParams } from 'next/navigation';
+import { useTranslations } from 'next-intl';
+import dynamic from 'next/dynamic';
+import { Link } from '@/i18n/navigation';
+import { Skeleton } from '@/components/ui/skeleton';
+
+// Reuse the insights page's Recharts trend chart (same VisibilityTrendPoint
+// shape the report payload stores), loaded client-only like insights does.
+const TrendChart = dynamic(() => import('../../insights/_charts').then((m) => m.TrendChart), {
+ ssr: false,
+ loading: () => <Skeleton className="h-48 w-full" />,
+});
+import { toast } from 'sonner';
+import { getReport, type Report } from '@/lib/actions/reports';
+import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card';
+import { Button } from '@/components/ui/button';
+import {
+ Table,
+ TableBody,
+ TableCell,
+ TableHead,
+ TableHeader,
+ TableRow,
+} from '@/components/ui/table';
+import { ArrowLeft, FileDown, Loader2 } from 'lucide-react';
+import { cn } from '@/lib/utils';
+import { PLATFORM_LABELS } from '@/config/platform-labels';
+
+function formatDate(iso: string) {
+ return new Date(iso).toLocaleDateString('en-US', {
+ year: 'numeric',
+ month: 'short',
+ day: 'numeric',
+ });
+}
+
+/** Signed percentage delta with up/down coloring; renders nothing for null. */
+function Delta({ value }: { value: number | null }) {
+ if (value === null) return null;
+ const up = value >= 0;
+ return (
+ <span className={cn('text-xs font-medium', up ? 'text-emerald-600' : 'text-red-600')}>
+ {up ? '+' : ''}
+ {value}%
+ </span>
+ );
+}
+
+function KpiCard({
+ label,
+ value,
+ change,
+}: {
+ label: string;
+ value: string;
+ change: number | null;
+}) {
+ return (
+ <Card>
+ <CardContent className="pt-6">
+ <p className="text-xs font-medium uppercase tracking-wider text-muted-foreground">
+ {label}
+ </p>
+ <div className="mt-1 flex items-baseline gap-2">
+ <span className="text-2xl font-bold">{value}</span>
+ <Delta value={change} />
+ </div>
+ </CardContent>
+ </Card>
+ );
+}
+
+export default function ReportDetailPage() {
+ const params = useParams();
+ const id = params.id as string;
+ const t = useTranslations('reports');
+
+ const [report, setReport] = useState<Report | null>(null);
+ const [loading, setLoading] = useState(true);
+ const [downloading, setDownloading] = useState(false);
+
+ useEffect(() => {
+ let cancelled = false;
+ getReport(id)
+ .then((r) => {
+ if (!cancelled) setReport(r);
+ })
+ .catch((err) => console.error('Failed to load report:', err))
+ .finally(() => {
+ if (!cancelled) setLoading(false);
+ });
+ return () => {
+ cancelled = true;
+ };
+ }, [id]);
+
+ if (loading) {
+ return (
+ <div className="flex items-center justify-center py-24">
+ <Loader2 className="h-6 w-6 animate-spin text-muted-foreground" />
+ </div>
+ );
+ }
+
+ if (!report) {
+ return (
+ <div className="flex flex-col items-center gap-4 py-24 text-center">
+ <p className="text-sm text-muted-foreground">{t('notFound')}</p>
+ <Link
+ href="/dashboard/reports"
+ className="inline-flex items-center gap-2 rounded-md border px-4 py-2 text-sm font-medium hover:bg-accent"
+ >
+ <ArrowLeft className="h-4 w-4" />
+ {t('backToReports')}
+ </Link>
+ </div>
+ );
+ }
+
+ const { payload } = report;
+ const maxSov = Math.max(...payload.shareOfVoice.byPlatform.map((p) => p.sov), 1);
+
+ // Render a true vector PDF from the saved payload with @react-pdf/renderer
+ // (selectable text, exact layout — no screenshot artifacts). The renderer
+ // and the document component both load on demand: PDF export is rare and
+ // the library is heavy.
+ const handleDownloadPdf = async () => {
+ setDownloading(true);
+ try {
+ const [{ pdf }, { ReportPdfDocument }] = await Promise.all([
+ import('@react-pdf/renderer'),
+ import('./_report-pdf'),
+ ]);
+ const blob = await pdf(<ReportPdfDocument report={report} />).toBlob();
+
+ const slug =
+ payload.brandName
+ .toLowerCase()
+ .replace(/[^a-z0-9]+/g, '-')
+ .replace(/(^-|-$)/g, '') || 'brand';
+ const url = URL.createObjectURL(blob);
+ const a = document.createElement('a');
+ a.href = url;
+ a.download = `ansvisor_${slug}_report_${report.dateTo.slice(0, 10)}.pdf`;
+ a.click();
+ URL.revokeObjectURL(url);
+ } catch (err) {
+ console.error('PDF download error:', err);
+ toast.error(t('downloadFailed'));
+ } finally {
+ setDownloading(false);
+ }
+ };
+
+ return (
+ <div className="space-y-6">
+ <div className="flex items-center justify-between">
+ <div className="space-y-1">
+ <Link
+ href="/dashboard/reports"
+ className="inline-flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground"
+ >
+ <ArrowLeft className="h-4 w-4" />
+ {t('backToReports')}
+ </Link>
+ <h1 className="text-2xl font-bold tracking-tight">{report.title}</h1>
+ <p className="text-sm text-muted-foreground">
+ {formatDate(report.dateFrom)} — {formatDate(report.dateTo)} · {t('generatedOn')}{' '}
+ {formatDate(report.createdAt)}
+ </p>
+ </div>
+ <Button onClick={handleDownloadPdf} disabled={downloading} className="gap-2">
+ {downloading ? (
+ <Loader2 className="h-4 w-4 animate-spin" />
+ ) : (
+ <FileDown className="h-4 w-4" />
+ )}
+ {t('downloadPDF')}
+ </Button>
+ </div>
+
+ {/* Everything below renders from the immutable saved payload; the
+ container id is the future PDF capture root. */}
+ <div id="report-root" className="space-y-6">
+ <Card>
+ <CardHeader>
+ <CardTitle className="text-base">{t('executiveSummary')}</CardTitle>
+ </CardHeader>
+ <CardContent>
+ <p className="whitespace-pre-line text-sm leading-relaxed text-muted-foreground">
+ {payload.summaryText}
+ </p>
+ </CardContent>
+ </Card>
+
+ <div className="grid gap-4 sm:grid-cols-2 lg:grid-cols-4">
+ <KpiCard
+ label={t('kpi.visibility')}
+ value={`${payload.insights.avgVisibilityScore}%`}
+ change={payload.insights.visibilityChange}
+ />
+ <KpiCard
+ label={t('kpi.mentions')}
+ value={String(payload.insights.totalMentions)}
+ change={payload.insights.mentionsChange}
+ />
+ <KpiCard
+ label={t('kpi.citations')}
+ value={String(payload.insights.totalCitations)}
+ change={payload.insights.citationsChange}
+ />
+ <KpiCard
+ label={t('kpi.sentiment')}
+ value={`${payload.insights.positiveSentimentPct}%`}
+ change={payload.insights.sentimentChange}
+ />
+ </div>
+
+ {/* Optional sections below guard on their payload field: reports
+ generated before a section shipped simply don't render it. */}
+ {payload.visibilityTrend && payload.visibilityTrend.length > 0 && (
+ <Card>
+ <CardHeader>
+ <CardTitle className="text-base">{t('visibilityTrend')}</CardTitle>
+ </CardHeader>
+ <CardContent>
+ <TrendChart data={payload.visibilityTrend} />
+ </CardContent>
+ </Card>
+ )}
+
+ <Card>
+ <CardHeader>
+ <CardTitle className="flex items-baseline gap-2 text-base">
+ {t('shareOfVoice')}
+ <span className="text-2xl font-bold">{payload.shareOfVoice.overallSov}%</span>
+ <Delta value={payload.shareOfVoice.overallSovChange} />
+ </CardTitle>
+ </CardHeader>
+ <CardContent className="space-y-3">
+ {payload.shareOfVoice.byPlatform.length === 0 ? (
+ <p className="text-sm text-muted-foreground">{t('noData')}</p>
+ ) : (
+ payload.shareOfVoice.byPlatform.map((p) => (
+ <div key={p.provider} className="flex items-center gap-3">
+ <span className="w-32 shrink-0 truncate text-sm">{p.provider}</span>
+ <div className="h-2 flex-1 overflow-hidden rounded-full bg-muted">
+ <div
+ className="h-full rounded-full bg-primary"
+ style={{ width: `${Math.min((p.sov / maxSov) * 100, 100)}%` }}
+ />
+ </div>
+ <span className="w-14 shrink-0 text-right text-sm font-medium">{p.sov}%</span>
+ </div>
+ ))
+ )}
+ </CardContent>
+ </Card>
+
+ <Card>
+ <CardHeader>
+ <CardTitle className="text-base">{t('competitorLeaderboard')}</CardTitle>
+ </CardHeader>
+ <CardContent>
+ {payload.competitors.length === 0 ? (
+ <p className="text-sm text-muted-foreground">{t('noData')}</p>
+ ) : (
+ <Table>
+ <TableHeader>
+ <TableRow>
+ <TableHead>{t('columns.brand')}</TableHead>
+ <TableHead className="text-right">{t('kpi.visibility')}</TableHead>
+ <TableHead className="text-right">{t('columns.change')}</TableHead>
+ <TableHead className="text-right">{t('kpi.mentions')}</TableHead>
+ <TableHead className="text-right">{t('kpi.citations')}</TableHead>
+ </TableRow>
+ </TableHeader>
+ <TableBody>
+ {payload.competitors.map((c) => (
+ <TableRow key={c.name} className={cn(c.isOwnBrand && 'bg-primary/5')}>
+ <TableCell className={cn('font-medium', c.isOwnBrand && 'text-primary')}>
+ {c.name}
+ {c.isOwnBrand && (
+ <span className="ml-2 text-xs text-muted-foreground">{t('you')}</span>
+ )}
+ </TableCell>
+ <TableCell className="text-right">{c.avgVisibilityScore}%</TableCell>
+ <TableCell className="text-right">
+ <Delta value={c.change} />
+ </TableCell>
+ <TableCell className="text-right">{c.totalMentions}</TableCell>
+ <TableCell className="text-right">{c.totalCitations}</TableCell>
+ </TableRow>
+ ))}
+ </TableBody>
+ </Table>
+ )}
+ </CardContent>
+ </Card>
+
+ {payload.promptPerformance &&
+ (payload.promptPerformance.best.length > 0 ||
+ payload.promptPerformance.worst.length > 0) && (
+ <div className="grid gap-6 lg:grid-cols-2">
+ {(
+ [
+ ['bestPrompts', payload.promptPerformance.best],
+ ['worstPrompts', payload.promptPerformance.worst],
+ ] as const
+ ).map(
+ ([key, prompts]) =>
+ prompts.length > 0 && (
+ <Card key={key}>
+ <CardHeader>
+ <CardTitle className="text-base">{t(key)}</CardTitle>
+ </CardHeader>
+ <CardContent>
+ <Table>
+ <TableHeader>
+ <TableRow>
+ <TableHead>{t('columns.prompt')}</TableHead>
+ <TableHead className="w-24 text-right">
+ {t('kpi.visibility')}
+ </TableHead>
+ <TableHead className="w-16 text-right">{t('columns.runs')}</TableHead>
+ </TableRow>
+ </TableHeader>
+ <TableBody>
+ {prompts.map((p) => (
+ <TableRow key={p.text}>
+ <TableCell className="max-w-[280px] truncate font-medium">
+ {p.text}
+ </TableCell>
+ <TableCell className="text-right">{p.avgVisibility}%</TableCell>
+ <TableCell className="text-right text-muted-foreground">
+ {p.runs}
+ </TableCell>
+ </TableRow>
+ ))}
+ </TableBody>
+ </Table>
+ </CardContent>
+ </Card>
+ ),
+ )}
+ </div>
+ )}
+
+ {payload.queryFanout && payload.queryFanout.length > 0 && (
+ <Card>
+ <CardHeader>
+ <CardTitle className="text-base">{t('queryFanout')}</CardTitle>
+ <p className="text-sm text-muted-foreground">{t('queryFanoutDescription')}</p>
+ </CardHeader>
+ <CardContent>
+ <Table>
+ <TableHeader>
+ <TableRow>
+ <TableHead>{t('columns.query')}</TableHead>
+ <TableHead>{t('columns.engines')}</TableHead>
+ <TableHead className="w-32 text-right">{t('columns.timesSearched')}</TableHead>
+ </TableRow>
+ </TableHeader>
+ <TableBody>
+ {payload.queryFanout.map((q) => (
+ <TableRow key={q.query}>
+ <TableCell className="max-w-[320px] truncate font-medium">
+ {q.query}
+ </TableCell>
+ <TableCell className="text-muted-foreground">
+ {q.engines.map((e) => PLATFORM_LABELS[e] ?? e).join(', ')}
+ </TableCell>
+ <TableCell className="text-right">{q.timesSearched}</TableCell>
+ </TableRow>
+ ))}
+ </TableBody>
+ </Table>
+ </CardContent>
+ </Card>
+ )}
+
+ <Card>
+ <CardHeader>
+ <CardTitle className="text-base">{t('topCitationSources')}</CardTitle>
+ <p className="text-sm text-muted-foreground">
+ {t('citationTotals', {
+ domains: payload.citations.totals.domains,
+ citations: payload.citations.totals.citations,
+ })}
+ </p>
+ </CardHeader>
+ <CardContent className="space-y-4">
+ {payload.citations.topDomains.length === 0 ? (
+ <p className="text-sm text-muted-foreground">{t('noData')}</p>
+ ) : (
+ <Table>
+ <TableHeader>
+ <TableRow>
+ <TableHead>{t('columns.domain')}</TableHead>
+ <TableHead>{t('columns.sourceType')}</TableHead>
+ <TableHead className="text-right">{t('kpi.citations')}</TableHead>
+ <TableHead className="text-right">{t('columns.usage')}</TableHead>
+ </TableRow>
+ </TableHeader>
+ <TableBody>
+ {payload.citations.topDomains.map((d) => (
+ <TableRow key={d.domain}>
+ <TableCell className="font-medium">{d.domain}</TableCell>
+ <TableCell className="capitalize text-muted-foreground">
+ {d.category}
+ </TableCell>
+ <TableCell className="text-right">{d.totalCitations}</TableCell>
+ <TableCell className="text-right">{d.usagePct}%</TableCell>
+ </TableRow>
+ ))}
+ </TableBody>
+ </Table>
+ )}
+ </CardContent>
+ </Card>
+ </div>
+ </div>
+ );
+}
diff --git a/web/src/app/[locale]/(dashboard)/dashboard/reports/page.tsx b/web/src/app/[locale]/(dashboard)/dashboard/reports/page.tsx
index 7fe6ad744..29b27ec34 100644
--- a/web/src/app/[locale]/(dashboard)/dashboard/reports/page.tsx
+++ b/web/src/app/[locale]/(dashboard)/dashboard/reports/page.tsx
@@ -1,10 +1,129 @@
+'use client';
+
+import { useState, useEffect, useCallback } from 'react';
+import { useRouter } from '@/i18n/navigation';
import { useTranslations } from 'next-intl';
+import { toast } from 'sonner';
+import { useBrandStore } from '@/stores/use-brand-store';
+import { createReport, getReports, deleteReport, type ReportListItem } from '@/lib/actions/reports';
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card';
import { Button } from '@/components/ui/button';
-import { FileDown, Plus } from 'lucide-react';
+import { Input } from '@/components/ui/input';
+import {
+ Dialog,
+ DialogContent,
+ DialogDescription,
+ DialogFooter,
+ DialogHeader,
+ DialogTitle,
+} from '@/components/ui/dialog';
+import {
+ Table,
+ TableBody,
+ TableCell,
+ TableHead,
+ TableHeader,
+ TableRow,
+} from '@/components/ui/table';
+import { FileBarChart, Loader2, Plus, Trash2 } from 'lucide-react';
+import { cn } from '@/lib/utils';
+
+type DatePreset = '7d' | '30d' | '90d' | 'custom';
+
+/** Resolve a preset into the concrete [from, to] ISO range a report snapshots. */
+function getDateRange(preset: DatePreset, custom: { from: string; to: string }) {
+ if (preset === 'custom') {
+ return {
+ dateFrom: custom.from ? `${custom.from}T00:00:00.000Z` : '',
+ dateTo: custom.to ? `${custom.to}T23:59:59.999Z` : '',
+ };
+ }
+ const days = preset === '7d' ? 7 : preset === '30d' ? 30 : 90;
+ const to = new Date();
+ const from = new Date();
+ from.setDate(from.getDate() - days);
+ return { dateFrom: from.toISOString(), dateTo: to.toISOString() };
+}
+
+function formatDate(iso: string) {
+ return new Date(iso).toLocaleDateString('en-US', {
+ year: 'numeric',
+ month: 'short',
+ day: 'numeric',
+ });
+}
export default function ReportsPage() {
const t = useTranslations('reports');
+ const tc = useTranslations('common');
+ const router = useRouter();
+ const activeBrandId = useBrandStore((s) => s.activeBrandId);
+
+ const [reports, setReports] = useState<ReportListItem[]>([]);
+ const [loading, setLoading] = useState(true);
+ const [dialogOpen, setDialogOpen] = useState(false);
+ const [generating, setGenerating] = useState(false);
+ const [deletingId, setDeletingId] = useState<string | null>(null);
+
+ const [preset, setPreset] = useState<DatePreset>('30d');
+ const [customRange, setCustomRange] = useState({ from: '', to: '' });
+ const [reportTitle, setReportTitle] = useState('');
+
+ const load = useCallback(async () => {
+ if (!activeBrandId) return;
+ setLoading(true);
+ try {
+ setReports(await getReports(activeBrandId));
+ } catch (err) {
+ console.error('Failed to load reports:', err);
+ toast.error(t('loadFailed'));
+ } finally {
+ setLoading(false);
+ }
+ }, [activeBrandId, t]);
+
+ useEffect(() => {
+ load();
+ }, [load]);
+
+ const handleGenerate = async () => {
+ if (!activeBrandId) return;
+ const { dateFrom, dateTo } = getDateRange(preset, customRange);
+ if (!dateFrom || !dateTo) {
+ toast.error(t('selectDates'));
+ return;
+ }
+ setGenerating(true);
+ try {
+ const { id } = await createReport(activeBrandId, {
+ dateFrom,
+ dateTo,
+ title: reportTitle || undefined,
+ });
+ toast.success(t('generated'));
+ setDialogOpen(false);
+ router.push(`/dashboard/reports/${id}`);
+ } catch (err) {
+ console.error('Report generation error:', err);
+ toast.error(t('generateFailed'));
+ } finally {
+ setGenerating(false);
+ }
+ };
+
+ const handleDelete = async (id: string) => {
+ if (!confirm(t('deleteConfirm'))) return;
+ setDeletingId(id);
+ try {
+ await deleteReport(id);
+ setReports((prev) => prev.filter((r) => r.id !== id));
+ } catch (err) {
+ console.error('Report delete error:', err);
+ toast.error(t('deleteFailed'));
+ } finally {
+ setDeletingId(null);
+ }
+ };
return (
<div className="space-y-6">
@@ -13,29 +132,150 @@ export default function ReportsPage() {
<h1 className="text-2xl font-bold tracking-tight">{t('title')}</h1>
<p className="text-muted-foreground">{t('description')}</p>
</div>
- <div className="flex items-center gap-2">
- <Button variant="outline" className="gap-2">
- <FileDown className="h-4 w-4" />
- {t('downloadPDF')}
- </Button>
- <Button className="gap-2">
- <Plus className="h-4 w-4" />
- {t('generateReport')}
- </Button>
- </div>
+ <Button className="gap-2" onClick={() => setDialogOpen(true)} disabled={!activeBrandId}>
+ <Plus className="h-4 w-4" />
+ {t('generateReport')}
+ </Button>
</div>
<Card>
<CardHeader>
- <CardTitle className="text-base">Generated Reports</CardTitle>
+ <CardTitle className="text-base">{t('libraryTitle')}</CardTitle>
</CardHeader>
<CardContent>
- <p className="text-sm text-muted-foreground">
- No reports generated yet. Run at least one prompt analysis to generate your first
- report.
- </p>
+ {loading ? (
+ <div className="flex items-center gap-2 py-8 text-sm text-muted-foreground">
+ <Loader2 className="h-4 w-4 animate-spin" />
+ {tc('loading')}
+ </div>
+ ) : reports.length === 0 ? (
+ <div className="flex flex-col items-center gap-2 py-10 text-center">
+ <FileBarChart className="h-8 w-8 text-muted-foreground/50" />
+ <p className="text-sm text-muted-foreground">{t('emptyLibrary')}</p>
+ </div>
+ ) : (
+ <Table>
+ <TableHeader>
+ <TableRow>
+ <TableHead>{t('columns.title')}</TableHead>
+ <TableHead>{t('columns.period')}</TableHead>
+ <TableHead>{t('columns.created')}</TableHead>
+ <TableHead className="w-[140px] text-right">{t('columns.actions')}</TableHead>
+ </TableRow>
+ </TableHeader>
+ <TableBody>
+ {reports.map((report) => (
+ <TableRow key={report.id}>
+ <TableCell className="font-medium">{report.title}</TableCell>
+ <TableCell className="text-muted-foreground">
+ {formatDate(report.dateFrom)} — {formatDate(report.dateTo)}
+ </TableCell>
+ <TableCell className="text-muted-foreground">
+ {formatDate(report.createdAt)}
+ </TableCell>
+ <TableCell className="text-right">
+ <div className="flex items-center justify-end gap-1">
+ <Button
+ size="sm"
+ variant="outline"
+ onClick={() => router.push(`/dashboard/reports/${report.id}`)}
+ >
+ {tc('view')}
+ </Button>
+ <Button
+ size="sm"
+ variant="ghost"
+ className="text-muted-foreground hover:text-destructive"
+ disabled={deletingId === report.id}
+ onClick={() => handleDelete(report.id)}
+ >
+ {deletingId === report.id ? (
+ <Loader2 className="h-4 w-4 animate-spin" />
+ ) : (
+ <Trash2 className="h-4 w-4" />
+ )}
+ </Button>
+ </div>
+ </TableCell>
+ </TableRow>
+ ))}
+ </TableBody>
+ </Table>
+ )}
</CardContent>
</Card>
+
+ <Dialog open={dialogOpen} onOpenChange={(open) => !generating && setDialogOpen(open)}>
+ <DialogContent className="sm:max-w-md">
+ <DialogHeader>
+ <DialogTitle>{t('dialogTitle')}</DialogTitle>
+ <DialogDescription>{t('dialogDescription')}</DialogDescription>
+ </DialogHeader>
+
+ <div className="space-y-4 py-2">
+ <div className="space-y-2">
+ <p className="text-sm font-medium">{t('reportTitleLabel')}</p>
+ <Input
+ placeholder={t('reportTitlePlaceholder')}
+ value={reportTitle}
+ onChange={(e) => setReportTitle(e.target.value)}
+ disabled={generating}
+ />
+ </div>
+
+ <div className="space-y-2">
+ <p className="text-sm font-medium">{t('dateRange')}</p>
+ <div className="flex gap-1">
+ {(['7d', '30d', '90d', 'custom'] as DatePreset[]).map((p) => (
+ <button
+ key={p}
+ type="button"
+ onClick={() => setPreset(p)}
+ disabled={generating}
+ className={cn(
+ 'rounded-md border px-3 py-1.5 text-xs transition-colors',
+ preset === p
+ ? 'border-primary bg-primary/10 font-medium text-primary'
+ : 'border-border text-muted-foreground hover:border-muted-foreground/40',
+ )}
+ >
+ {t(`presets.${p}`)}
+ </button>
+ ))}
+ </div>
+ {preset === 'custom' && (
+ <div className="flex items-center gap-2 pt-1">
+ <Input
+ type="date"
+ value={customRange.from}
+ onChange={(e) => setCustomRange((r) => ({ ...r, from: e.target.value }))}
+ disabled={generating}
+ className="text-sm"
+ />
+ <span className="text-xs text-muted-foreground">—</span>
+ <Input
+ type="date"
+ value={customRange.to}
+ onChange={(e) => setCustomRange((r) => ({ ...r, to: e.target.value }))}
+ disabled={generating}
+ className="text-sm"
+ />
+ </div>
+ )}
+ </div>
+ </div>
+
+ <DialogFooter>
+ <Button variant="outline" onClick={() => setDialogOpen(false)} disabled={generating}>
+ {tc('cancel')}
+ </Button>
+ <Button onClick={handleGenerate} disabled={generating} className="gap-2">
+ {generating && <Loader2 className="h-4 w-4 animate-spin" />}
+ {generating ? t('generating') : t('generateReport')}
+ </Button>
+ </DialogFooter>
+ </DialogContent>
+ </Dialog>
</div>
);
}
diff --git a/web/src/lib/actions/reports.ts b/web/src/lib/actions/reports.ts
new file mode 100644
index 000000000..2773958a8
--- /dev/null
+++ b/web/src/lib/actions/reports.ts
@@ -0,0 +1,367 @@
+'use server';
+
+import { revalidatePath } from 'next/cache';
+import { createClient } from '@/lib/supabase/server';
+import type { Json } from '@/types/supabase';
+import { API_BASE_URL } from '@/config/api';
+import {
+ getInsightsSummary,
+ getShareOfVoiceData,
+ getCompetitorComparison,
+ getVisibilityTrend,
+ type InsightsSummary,
+ type CompetitorComparisonEntry,
+ type SoVByPlatform,
+ type VisibilityTrendPoint,
+} from '@/lib/actions/tracking';
+import { getCitationsOverview, type CitationsSourceBreakdown } from '@/lib/actions/citations';
+import type { SourceCategory } from '@/lib/citations/classify';
+
+/**
+ * Simple Reports MVP — generate, list and delete immutable report snapshots.
+ *
+ * `createReport` gathers the brand's metrics for the chosen period through the
+ * existing analytics actions, asks the server for a 1-2 paragraph AI executive
+ * summary, and saves everything as one JSONB payload in the `reports` table
+ * (migration 00023). The detail page renders purely from that saved payload —
+ * a report never changes after generation.
+ */
+
+// ─── Payload shape (what reports.payload stores) ─────────────────────────────
+
+export interface ReportTopDomain {
+ domain: string;
+ category: SourceCategory;
+ totalCitations: number;
+ resultsCiting: number;
+ usagePct: number;
+}
+
+export interface ReportPromptPerf {
+ text: string;
+ avgVisibility: number;
+ totalMentions: number;
+ runs: number;
+}
+
+export interface ReportFanoutQuery {
+ query: string;
+ engines: string[];
+ timesSearched: number;
+}
+
+export interface ReportPayload {
+ brandName: string;
+ /** AI-generated executive summary (plain prose). */
+ summaryText: string;
+ insights: InsightsSummary;
+ /**
+ * Daily visibility trend over the report period. Optional: reports
+ * generated before this field shipped simply don't have it (the payload is
+ * immutable), and the detail page hides the section.
+ */
+ visibilityTrend?: VisibilityTrendPoint[];
+ /** Best/worst performing prompts in the period (also optional, see above). */
+ promptPerformance?: {
+ best: ReportPromptPerf[];
+ worst: ReportPromptPerf[];
+ };
+ /** Most-run observed fan-out sub-queries in the period (optional, see above). */
+ queryFanout?: ReportFanoutQuery[];
+ shareOfVoice: {
+ overallSov: number;
+ overallSovChange: number | null;
+ byPlatform: SoVByPlatform[];
+ };
+ /** Own brand + competitors, as returned by getCompetitorComparison. */
+ competitors: CompetitorComparisonEntry[];
+ citations: {
+ totals: {
+ domains: number;
+ urls: number;
+ citations: number;
+ results: number;
+ avgCitationsPerResult: number;
+ };
+ sourceTypeBreakdown: CitationsSourceBreakdown[];
+ topDomains: ReportTopDomain[];
+ };
+}
+
+export interface ReportListItem {
+ id: string;
+ brandId: string;
+ title: string;
+ template: string;
+ dateFrom: string;
+ dateTo: string;
+ createdAt: string;
+}
+
+export interface Report extends ReportListItem {
+ payload: ReportPayload;
+}
+
+/** How many citation domains a report keeps (the table is capped, by design). */
+const REPORT_TOP_DOMAINS = 10;
+
+/** How many best/worst prompts a report keeps. */
+const REPORT_PROMPT_COUNT = 5;
+
+/**
+ * Best/worst prompts by average visibility WITHIN the report period.
+ * getPromptVisibilitySummaries anchors its window to "now", which lies for
+ * custom historical ranges — so reports aggregate over [dateFrom, dateTo]
+ * directly (same shape: exclude chatgpt-shopping, average per prompt).
+ */
+async function getPromptPerformance(
+ brandId: string,
+ dateFrom: string,
+ dateTo: string,
+): Promise<{ best: ReportPromptPerf[]; worst: ReportPromptPerf[] }> {
+ const supabase = await createClient();
+ const { data, error } = await supabase
+ .from('prompt_results')
+ .select('prompt_id, visibility_score, mention_count')
+ .eq('brand_id', brandId)
+ .neq('platform', 'chatgpt-shopping')
+ .gte('created_at', dateFrom)
+ .lte('created_at', dateTo);
+ if (error) throw new Error(error.message);
+
+ const acc = new Map<string, { sumVis: number; mentions: number; runs: number }>();
+ for (const r of data ?? []) {
+ const pid = r.prompt_id as string | null;
+ if (!pid) continue;
+ const entry = acc.get(pid) ?? { sumVis: 0, mentions: 0, runs: 0 };
+ entry.sumVis += (r.visibility_score as number) ?? 0;
+ entry.mentions += (r.mention_count as number) ?? 0;
+ entry.runs += 1;
+ acc.set(pid, entry);
+ }
+ if (acc.size === 0) return { best: [], worst: [] };
+
+ const { data: promptRows } = await supabase
+ .from('prompts')
+ .select('id, text')
+ .in('id', [...acc.keys()]);
+ const textById = new Map((promptRows ?? []).map((p) => [p.id as string, p.text as string]));
+
+ const ranked = [...acc.entries()]
+ .map(([pid, v]) => ({
+ text: textById.get(pid) ?? '',
+ avgVisibility: Math.round((v.sumVis / v.runs) * 10) / 10,
+ totalMentions: v.mentions,
+ runs: v.runs,
+ }))
+ .filter((p) => p.text)
+ .sort((a, b) => b.avgVisibility - a.avgVisibility);
+
+ const best = ranked.slice(0, REPORT_PROMPT_COUNT);
+ // Worst come from the remaining pool so a short prompt list doesn't show
+ // the same prompt in both columns.
+ const worst = ranked.slice(REPORT_PROMPT_COUNT).slice(-REPORT_PROMPT_COUNT).reverse();
+ return { best, worst };
+}
+
+/** How many fan-out sub-queries a report keeps. */
+const REPORT_FANOUT_COUNT = 10;
+
+/**
+ * Top observed fan-out sub-queries WITHIN the report period. Mirrors the
+ * aggregation in fanout.ts (dedupe per answer, whitespace/case-normalized
+ * grouping) but bounded to [dateFrom, dateTo] instead of a rolling window
+ * anchored to "now", which would lie for historical custom ranges.
+ */
+async function getFanoutSnapshot(
+ brandId: string,
+ dateFrom: string,
+ dateTo: string,
+): Promise<ReportFanoutQuery[]> {
+ const supabase = await createClient();
+ const { data, error } = await supabase
+ .from('prompt_results')
+ .select('platform, search_queries')
+ .eq('brand_id', brandId)
+ .gte('created_at', dateFrom)
+ .lte('created_at', dateTo);
+ if (error) throw new Error(error.message);
+
+ const normalize = (raw: string) => raw.replace(/\s+/g, ' ').trim();
+ const byQuery = new Map<string, { display: string; engines: Set<string>; count: number }>();
+
+ for (const row of data ?? []) {
+ const items = Array.isArray(row.search_queries)
+ ? (row.search_queries as { query?: unknown; source_platform?: unknown }[])
+ : [];
+ const seenInRow = new Set<string>();
+ for (const item of items) {
+ const q = typeof item?.query === 'string' ? normalize(item.query) : '';
+ if (!q) continue;
+ const key = q.toLowerCase();
+ let acc = byQuery.get(key);
+ if (!acc) {
+ acc = { display: q, engines: new Set(), count: 0 };
+ byQuery.set(key, acc);
+ }
+ const sp =
+ typeof item?.source_platform === 'string' && item.source_platform
+ ? item.source_platform
+ : (row.platform as string | null);
+ if (sp) acc.engines.add(sp);
+ if (!seenInRow.has(key)) {
+ acc.count += 1;
+ seenInRow.add(key);
+ }
+ }
+ }
+
+ return [...byQuery.values()]
+ .sort((a, b) => b.count - a.count || a.display.localeCompare(b.display))
+ .slice(0, REPORT_FANOUT_COUNT)
+ .map((a) => ({ query: a.display, engines: [...a.engines].sort(), timesSearched: a.count }));
+}
+
+// ─── Actions ─────────────────────────────────────────────────────────────────
+
+export async function createReport(
+ brandId: string,
+ opts: { dateFrom: string; dateTo: string; title?: string },
+): Promise<{ id: string }> {
+ const supabase = await createClient();
+ const {
+ data: { session },
+ } = await supabase.auth.getSession();
+ if (!session) throw new Error('Not authenticated');
+
+ const { dateFrom, dateTo } = opts;
+ const range = { dateFrom, dateTo };
+
+ // 1. Gather the metric snapshot through the existing analytics actions.
+ const [brandRow, insights, sov, comparison, citations, trend, promptPerformance, queryFanout] =
+ await Promise.all([
+ supabase.from('brands').select('name').eq('id', brandId).single(),
+ getInsightsSummary(brandId, range),
+ getShareOfVoiceData(brandId, range),
+ getCompetitorComparison(brandId, range),
+ getCitationsOverview(brandId, { datePreset: 'custom', dateFrom, dateTo }),
+ getVisibilityTrend(brandId, range),
+ getPromptPerformance(brandId, dateFrom, dateTo),
+ getFanoutSnapshot(brandId, dateFrom, dateTo),
+ ]);
+ const brandName = (brandRow.data?.name as string) ?? 'Brand';
+
+ const snapshot: Omit<ReportPayload, 'summaryText'> = {
+ brandName,
+ insights,
+ visibilityTrend: trend,
+ promptPerformance,
+ queryFanout,
+ shareOfVoice: {
+ overallSov: sov.overallSov,
+ overallSovChange: sov.overallSovChange,
+ byPlatform: sov.byPlatform,
+ },
+ competitors: comparison.brands,
+ citations: {
+ totals: citations.totals,
+ sourceTypeBreakdown: citations.sourceTypeBreakdown,
+ topDomains: citations.rows.slice(0, REPORT_TOP_DOMAINS).map((r) => ({
+ domain: r.domain,
+ category: r.category,
+ totalCitations: r.totalCitations,
+ resultsCiting: r.resultsCiting,
+ usagePct: r.usagePct,
+ })),
+ },
+ };
+
+ // 2. AI executive summary from the server (content.js-style single call).
+ const res = await fetch(`${API_BASE_URL}/api/reports/summary`, {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json',
+ Authorization: `Bearer ${session.access_token}`,
+ },
+ body: JSON.stringify({ brandId, snapshot, dateFrom, dateTo }),
+ });
+ if (!res.ok) {
+ const body = await res.json().catch(() => ({}));
+ throw new Error(body.message || `Summary generation failed: ${res.status}`);
+ }
+ const { summary } = (await res.json()) as { summary: string };
+
+ const payload: ReportPayload = { ...snapshot, summaryText: summary };
+
+ // 3. Persist the immutable snapshot (RLS scopes the insert to org members).
+ const title =
+ opts.title?.trim() ||
+ `${brandName} — Executive Summary (${dateFrom.slice(0, 10)} → ${dateTo.slice(0, 10)})`;
+
+ const { data: created, error } = await supabase
+ .from('reports')
+ .insert({
+ brand_id: brandId,
+ title,
+ template: 'executive_summary',
+ date_from: dateFrom,
+ date_to: dateTo,
+ payload: payload as unknown as Json,
+ created_by: session.user.id,
+ })
+ .select('id')
+ .single();
+ if (error) throw new Error(error.message);
+
+ revalidatePath('/dashboard/reports');
+ return { id: created.id as string };
+}
+
+export async function getReports(brandId: string): Promise<ReportListItem[]> {
+ const supabase = await createClient();
+ const { data, error } = await supabase
+ .from('reports')
+ .select('id, brand_id, title, template, date_from, date_to, created_at')
+ .eq('brand_id', brandId)
+ .order('created_at', { ascending: false });
+ if (error) throw new Error(error.message);
+
+ return (data ?? []).map((r) => ({
+ id: r.id as string,
+ brandId: r.brand_id as string,
+ title: r.title as string,
+ template: r.template as string,
+ dateFrom: r.date_from as string,
+ dateTo: r.date_to as string,
+ createdAt: r.created_at as string,
+ }));
+}
+
+export async function getReport(id: string): Promise<Report | null> {
+ const supabase = await createClient();
+ const { data, error } = await supabase
+ .from('reports')
+ .select('id, brand_id, title, template, date_from, date_to, payload, created_at')
+ .eq('id', id)
+ .maybeSingle();
+ if (error) throw new Error(error.message);
+ if (!data) return null;
+
+ return {
+ id: data.id as string,
+ brandId: data.brand_id as string,
+ title: data.title as string,
+ template: data.template as string,
+ dateFrom: data.date_from as string,
+ dateTo: data.date_to as string,
+ createdAt: data.created_at as string,
+ payload: data.payload as unknown as ReportPayload,
+ };
+}
+
+export async function deleteReport(id: string): Promise<void> {
+ const supabase = await createClient();
+ const { error } = await supabase.from('reports').delete().eq('id', id);
+ if (error) throw new Error(error.message);
+ revalidatePath('/dashboard/reports');
+}
diff --git a/web/src/lib/actions/tracking.ts b/web/src/lib/actions/tracking.ts
index 0a29b5916..78fd3fe2c 100644
--- a/web/src/lib/actions/tracking.ts
+++ b/web/src/lib/actions/tracking.ts
@@ -1524,8 +1524,12 @@ export async function getVisibilityTrend(
points.push({
date: label,
- score: Math.round(d.totalScore / d.count),
- competitors: d.compCount > 0 ? Math.round(d.compTotalScore / d.compCount) : null,
+ // One decimal, not integer rounding: realistic daily averages for a
+ // low-visibility brand sit in the 0.3–1.5 band (see the sub-1 note on
+ // getInsightsSummary), and Math.round crushed the whole window into a
+ // flat "1" line on the chart.
+ score: roundTo1(d.totalScore / d.count),
+ competitors: d.compCount > 0 ? roundTo1(d.compTotalScore / d.compCount) : null,
});
}
diff --git a/web/src/types/supabase.ts b/web/src/types/supabase.ts
index 4b1bcc962..a855892a8 100644
--- a/web/src/types/supabase.ts
+++ b/web/src/types/supabase.ts
@@ -932,6 +932,57 @@ export type Database = {
},
];
};
+ reports: {
+ Row: {
+ brand_id: string;
+ created_at: string;
+ created_by: string | null;
+ date_from: string;
+ date_to: string;
+ id: string;
+ payload: Json;
+ template: string;
+ title: string;
+ };
+ Insert: {
+ brand_id: string;
+ created_at?: string;
+ created_by?: string | null;
+ date_from: string;
+ date_to: string;
+ id?: string;
+ payload?: Json;
+ template?: string;
+ title: string;
+ };
+ Update: {
+ brand_id?: string;
+ created_at?: string;
+ created_by?: string | null;
+ date_from?: string;
+ date_to?: string;
+ id?: string;
+ payload?: Json;
+ template?: string;
+ title?: string;
+ };
+ Relationships: [
+ {
+ foreignKeyName: 'reports_brand_id_fkey';
+ columns: ['brand_id'];
+ isOneToOne: false;
+ referencedRelation: 'brands';
+ referencedColumns: ['id'];
+ },
+ {
+ foreignKeyName: 'reports_created_by_fkey';
+ columns: ['created_by'];
+ isOneToOne: false;
+ referencedRelation: 'profiles';
+ referencedColumns: ['id'];
+ },
+ ];
+ };
topics: {
Row: {
brand_id: string;
diff --git a/web/yarn.lock b/web/yarn.lock
index f95b42cae..905e162fb 100644
--- a/web/yarn.lock
+++ b/web/yarn.lock
@@ -281,6 +281,11 @@
"@babel/plugin-transform-modules-commonjs" "^7.27.1"
"@babel/plugin-transform-typescript" "^7.28.5"
+"@babel/runtime@^7.20.13":
+ version "7.29.7"
+ resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.29.7.tgz#12022450c45a4da6d8d8287b18a4ff2ddb23f768"
+ integrity sha512-Nq8OhGWiZIZGV6hLHoyAKLLcJihP/xFeBMGJoUrxTX2psI8dCifzLhZISFb+VWS3wFMRDmCGw5R+dOySCqPLhw==
+
"@babel/runtime@^7.28.6":
version "7.28.6"
resolved "https://registry.npmjs.org/@babel/runtime/-/runtime-7.28.6.tgz"
@@ -1047,7 +1052,7 @@
resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-16.1.6.tgz#60c27323c30f35722b20fd6d62449fbb768e46d9"
integrity sha512-NRfO39AIrzBnixKbjuo2YiYhB6o9d8v/ymU9m/Xk8cyVk+k7XylniXkHwjs4s70wedVffc6bQNbufk5v0xEm0A==
-"@noble/ciphers@^1.3.0":
+"@noble/ciphers@^1.0.0", "@noble/ciphers@^1.3.0":
version "1.3.0"
resolved "https://registry.npmjs.org/@noble/ciphers/-/ciphers-1.3.0.tgz"
integrity sha512-2I0gnIVPtfnMw9ee9h1dJG7tp81+8Ob3OJb3Mv37rx5L40/b0i7djjCVvGOVqc9AEIQyvyu1i6ypKdFw8R8gQw==
@@ -1059,7 +1064,7 @@
dependencies:
"@noble/hashes" "1.8.0"
-"@noble/[email protected]", "@noble/hashes@^1.8.0":
+"@noble/[email protected]", "@noble/hashes@^1.6.0", "@noble/hashes@^1.8.0":
version "1.8.0"
resolved "https://registry.npmjs.org/@noble/hashes/-/hashes-1.8.0.tgz"
integrity sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==
@@ -1450,6 +1455,147 @@
dependencies:
"@radix-ui/react-use-layout-effect" "1.1.1"
+"@react-pdf/[email protected]":
+ version "3.1.3"
+ resolved "https://registry.yarnpkg.com/@react-pdf/fns/-/fns-3.1.3.tgz#e0437d60ac10746bfbdf080e6809ba6f20d01556"
+ integrity sha512-0I7pApDr1/RLAKbizuLy/IHTEa93LSPy/bEwYniboC3Xqnp6Od8xFJKbKEzGw2wh/5zKFFwl00g4t9RwgIMc3w==
+
+"@react-pdf/font@^4.0.8":
+ version "4.0.8"
+ resolved "https://registry.yarnpkg.com/@react-pdf/font/-/font-4.0.8.tgz#2279fb487f8a532e8b82e11732703a904ad05bb3"
+ integrity sha512-deNd+emtZAJho1IlzKL9bRoLAGv/6oXOIKO2oZfs4RuXUrK1onLHbJO7e2YoVLPFP/sQxisRTnzdJFtd35iKwA==
+ dependencies:
+ "@react-pdf/pdfkit" "^5.1.1"
+ "@react-pdf/types" "^2.11.1"
+ fontkit "^2.0.2"
+ is-url "^1.2.4"
+
+"@react-pdf/image@^3.1.0":
+ version "3.1.0"
+ resolved "https://registry.yarnpkg.com/@react-pdf/image/-/image-3.1.0.tgz#1ab51db9a6341ffde5049be3ef55d44c3dc777d8"
+ integrity sha512-ks7Ry8v711r8NvKWSELehj0BXBNPRihSnWsM09nDD8Ur175zbWBCK217LLwQMKDNYDVpkZaipdoJPom1LGaE9g==
+ dependencies:
+ "@react-pdf/svg" "^1.1.0"
+ jay-peg "^1.1.1"
+ png-js "^2.0.0"
+
+"@react-pdf/layout@^4.6.1":
+ version "4.6.1"
+ resolved "https://registry.yarnpkg.com/@react-pdf/layout/-/layout-4.6.1.tgz#6777fafa2a47996d4b42de37ddd324ea1aff4557"
+ integrity sha512-gN6PmWoEffvlIkifLfEhMsVucRywVMyH3rnxdyOVOhGy0nWJKKGpHyPc4plbDdpP6EfZ0r8prHXujDSkIG2nSA==
+ dependencies:
+ "@react-pdf/fns" "3.1.3"
+ "@react-pdf/image" "^3.1.0"
+ "@react-pdf/primitives" "^4.3.0"
+ "@react-pdf/stylesheet" "^6.2.1"
+ "@react-pdf/textkit" "^6.3.0"
+ "@react-pdf/types" "^2.11.1"
+ emoji-regex-xs "^1.0.0"
+ queue "^6.0.1"
+ yoga-layout "^3.2.1"
+
+"@react-pdf/pdfkit@^5.1.1":
+ version "5.1.1"
+ resolved "https://registry.yarnpkg.com/@react-pdf/pdfkit/-/pdfkit-5.1.1.tgz#b3af968f94555a3d7c4cc1d5b81493bdbfbd76e0"
+ integrity sha512-wNcdSsNlNYyGHGAgIdt453egBF7fiF9UxpRlklUfVvu8OWCrUppG9xiUrPLVoKiqWet5tMi0w6LmuFUJuYqjEg==
+ dependencies:
+ "@babel/runtime" "^7.20.13"
+ "@noble/ciphers" "^1.0.0"
+ "@noble/hashes" "^1.6.0"
+ browserify-zlib "^0.2.0"
+ fontkit "^2.0.2"
+ jay-peg "^1.1.1"
+ js-md5 "^0.8.3"
+ linebreak "^1.1.0"
+ png-js "^2.0.0"
+ vite-compatible-readable-stream "^3.6.1"
+
+"@react-pdf/primitives@^4.3.0":
+ version "4.3.0"
+ resolved "https://registry.yarnpkg.com/@react-pdf/primitives/-/primitives-4.3.0.tgz#3bb5f74294bea923392499dd46bc5196d47b918c"
+ integrity sha512-nYXoZ36pvwNzbc54+DbL8RCn15jU7woJ9D/svnh5tpUXekJ+CbI4mZLo6boSv24CvJgychOu6h7gxX03B4ps0A==
+
+"@react-pdf/reconciler@^2.0.0":
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/@react-pdf/reconciler/-/reconciler-2.0.0.tgz#d53ba53d5418c275c1fe1b150f0e9822243b799a"
+ integrity sha512-7zaPRujpbHSmCpIrZ+b9HSTJHthcVZzX0Wx7RzvQGsGBUbHP4p6s5itXrAIOuQuPvDepoHGNOvf6xUuMVvdoyw==
+ dependencies:
+ object-assign "^4.1.1"
+ scheduler "0.25.0-rc-603e6108-20241029"
+
+"@react-pdf/render@^4.5.1":
+ version "4.5.1"
+ resolved "https://registry.yarnpkg.com/@react-pdf/render/-/render-4.5.1.tgz#7d94bfb96f4abe0cac28f769e296db909c8c456f"
+ integrity sha512-IW/N4HWJWtioBXCf7n02IR24VJJ8gbdS3jGypf+vW/rSErEx3/URRzh9UK6Ma8Fpog9+T/W6GE2NHJ5AAKHhVA==
+ dependencies:
+ "@babel/runtime" "^7.20.13"
+ "@react-pdf/fns" "3.1.3"
+ "@react-pdf/primitives" "^4.3.0"
+ "@react-pdf/textkit" "^6.3.0"
+ "@react-pdf/types" "^2.11.1"
+ abs-svg-path "^0.1.1"
+ color-string "^2.1.4"
+ normalize-svg-path "^1.1.0"
+ parse-svg-path "^0.1.2"
+ svg-arc-to-cubic-bezier "^3.2.0"
+
+"@react-pdf/renderer@^4.5.1":
+ version "4.5.1"
+ resolved "https://registry.yarnpkg.com/@react-pdf/renderer/-/renderer-4.5.1.tgz#3daa9caa572ea8c42beece01b6faa348b460d304"
+ integrity sha512-5r1VQrE6FRLXX5wWUxwZzM24E2BJMo6g8AQWuS8WyPs9ugu5yMnb2g8/RpPYka/Z6J+RUEWc32wty2NoUJF42Q==
+ dependencies:
+ "@babel/runtime" "^7.20.13"
+ "@react-pdf/fns" "3.1.3"
+ "@react-pdf/font" "^4.0.8"
+ "@react-pdf/layout" "^4.6.1"
+ "@react-pdf/pdfkit" "^5.1.1"
+ "@react-pdf/primitives" "^4.3.0"
+ "@react-pdf/reconciler" "^2.0.0"
+ "@react-pdf/render" "^4.5.1"
+ "@react-pdf/types" "^2.11.1"
+ events "^3.3.0"
+ object-assign "^4.1.1"
+ prop-types "^15.6.2"
+ queue "^6.0.1"
+
+"@react-pdf/stylesheet@^6.2.1":
+ version "6.2.1"
+ resolved "https://registry.yarnpkg.com/@react-pdf/stylesheet/-/stylesheet-6.2.1.tgz#baa87869c0cc953fb334d20c63359672b872475c"
+ integrity sha512-2+UEk+7e+z8baaWi2l5kPLWmwtJeOI+T5wW9GGeN3iDH7vd3kbTqOpN1yt9mmfNVZFxQsnDHpznFb5v5UF983A==
+ dependencies:
+ "@react-pdf/fns" "3.1.3"
+ "@react-pdf/types" "^2.11.1"
+ color-string "^2.1.4"
+ hsl-to-hex "^1.0.0"
+ media-engine "^1.0.3"
+ postcss-value-parser "^4.1.0"
+
+"@react-pdf/svg@^1.1.0":
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/@react-pdf/svg/-/svg-1.1.0.tgz#c3ba275d312f7e2862f2a7044944b46c44c35f41"
+ integrity sha512-cTIHXiz9x1HrbfqzfxfZP3FRdDwUXG77QWF6Fb5MP/lV3ONxR+g0Z3hwtBatCS9HeGBQCpxX/Lzb8wHE+co1PA==
+ dependencies:
+ "@react-pdf/primitives" "^4.3.0"
+
+"@react-pdf/textkit@^6.3.0":
+ version "6.3.0"
+ resolved "https://registry.yarnpkg.com/@react-pdf/textkit/-/textkit-6.3.0.tgz#fe685654f557ff861008e09308db4a2a57f6bc42"
+ integrity sha512-v6+V8nAcVwm7s2s1jIG2MD3Iw//x/k+XrH1foWOELBE4b32pyDgKyPXN/6KJE0dnX7+fVy27uctLNCLNMvzKzQ==
+ dependencies:
+ "@react-pdf/fns" "3.1.3"
+ bidi-js "^1.0.2"
+ hyphen "^1.6.4"
+ unicode-properties "^1.4.1"
+
+"@react-pdf/types@^2.11.1":
+ version "2.11.1"
+ resolved "https://registry.yarnpkg.com/@react-pdf/types/-/types-2.11.1.tgz#ae37a12a883ae2d54a2b98b9b9ba32fbf4241478"
+ integrity sha512-i9xQgfaDU9QoeNnbp6rltXCWg1huEh195rpOuN8cE4BZ2FuLdQrsIcb2dhFF9aOxXf+XBA6LOSpIW051MDD/bw==
+ dependencies:
+ "@react-pdf/font" "^4.0.8"
+ "@react-pdf/primitives" "^4.3.0"
+ "@react-pdf/stylesheet" "^6.2.1"
+
"@reduxjs/toolkit@^1.9.0 || 2.x.x":
version "2.11.2"
resolved "https://registry.npmjs.org/@reduxjs/toolkit/-/toolkit-2.11.2.tgz"
@@ -1824,6 +1970,13 @@
dependencies:
tslib "^2.8.0"
+"@swc/helpers@^0.5.12":
+ version "0.5.23"
+ resolved "https://registry.yarnpkg.com/@swc/helpers/-/helpers-0.5.23.tgz#19287d0d86d962b111376039a50c792902c9a86a"
+ integrity sha512-5lSsMOTXURePglDfvuAQUqkGek9Hg2kksOYay2m0+XR++b2NWYL/4sWyuvVBIs8oKnJaxkdi9whaL/sqN13afw==
+ dependencies:
+ tslib "^2.8.0"
+
"@swc/types@^0.1.25":
version "0.1.25"
resolved "https://registry.npmjs.org/@swc/types/-/types-0.1.25.tgz"
@@ -2424,6 +2577,11 @@
loupe "^3.1.4"
tinyrainbow "^2.0.0"
+abs-svg-path@^0.1.1:
+ version "0.1.1"
+ resolved "https://registry.yarnpkg.com/abs-svg-path/-/abs-svg-path-0.1.1.tgz#df601c8e8d2ba10d4a76d625e236a9a39c2723bf"
+ integrity sha512-d8XPSGjfyzlXC3Xx891DJRyZfqk5JU0BJrDQcsWomFIV1/BIzPW5HDH5iDdWpqWaav0YVIEzT1RHTwWr0FFshA==
+
accepts@^2.0.0:
version "2.0.0"
resolved "https://registry.npmjs.org/accepts/-/accepts-2.0.0.tgz"
@@ -2661,11 +2819,28 @@ balanced-match@^4.0.2:
resolved "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz"
integrity sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==
+ version "0.0.8"
+ resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-0.0.8.tgz#1101e9544f4a76b1bc3b26d452ca96d7a35e7978"
+ integrity sha512-3XSA2cR/h/73EzlXXdU6YNycmYI7+kicTxks4eJg2g39biHR84slg2+des+p7iHYhbRg/udIS4TD53WabcOUkw==
+
+base64-js@^1.1.2, base64-js@^1.3.0:
+ version "1.5.1"
+ resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a"
+ integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==
+
baseline-browser-mapping@^2.8.3, baseline-browser-mapping@^2.9.0:
version "2.10.0"
resolved "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.0.tgz"
integrity sha512-lIyg0szRfYbiy67j9KN8IyeD7q7hcmqnJ1ddWmNt19ItGpNN64mnllmxUNFIOdOm6by97jlL6wfpTTJrmnjWAA==
+bidi-js@^1.0.2:
+ version "1.0.3"
+ resolved "https://registry.yarnpkg.com/bidi-js/-/bidi-js-1.0.3.tgz#6f8bcf3c877c4d9220ddf49b9bb6930c88f877d2"
+ integrity sha512-RKshQI1R3YQ+n9YJz2QQ147P66ELpa1FQEg20Dk8oW9t2KgLbpDLLp9aGZ7y8WHSshDknG0bknqGw5/tyCs5tw==
+ dependencies:
+ require-from-string "^2.0.2"
+
body-parser@^2.2.1:
version "2.2.2"
resolved "https://registry.npmjs.org/body-parser/-/body-parser-2.2.2.tgz"
@@ -2703,6 +2878,20 @@ braces@^3.0.3:
dependencies:
fill-range "^7.1.1"
+brotli@^1.3.2:
+ version "1.3.3"
+ resolved "https://registry.yarnpkg.com/brotli/-/brotli-1.3.3.tgz#7365d8cc00f12cf765d2b2c898716bcf4b604d48"
+ integrity sha512-oTKjJdShmDuGW94SyyaoQvAjf30dZaHnjJ8uAF+u2/vGJkJbJPJAT1gDiOJP5v1Zb6f9KEyW/1HpuaWIXtGHPg==
+ dependencies:
+ base64-js "^1.1.2"
+
+browserify-zlib@^0.2.0:
+ version "0.2.0"
+ resolved "https://registry.yarnpkg.com/browserify-zlib/-/browserify-zlib-0.2.0.tgz#2869459d9aa3be245fe8fe2ca1f46e2e7f54d73f"
+ integrity sha512-Z942RysHXmJrhqk88FmKBVq/v5tqmSkDz7p54G/MGyjMnCFFnC79XWNbg+Vta8W6Wb2qtSZTSxIGkJrRpCFEiA==
+ dependencies:
+ pako "~1.0.5"
+
browserslist@^4.24.0, browserslist@^4.26.2:
version "4.28.1"
resolved "https://registry.npmjs.org/browserslist/-/browserslist-4.28.1.tgz"
@@ -2859,6 +3048,11 @@ cliui@^8.0.1:
strip-ansi "^6.0.1"
wrap-ansi "^7.0.0"
+clone@^2.1.2:
+ version "2.1.2"
+ resolved "https://registry.yarnpkg.com/clone/-/clone-2.1.2.tgz#1b7f4b9f591f1e8f83670401600345a02887435f"
+ integrity sha512-3Pe/CF1Nn94hyhIYpjtiLhdCoEoz0DqQ+988E9gmeEdQZlojxnOb74wctFyuwWQHzqyf9X7C7MG8juUpqBJT8w==
+
clsx@^2.1.1:
version "2.1.1"
resolved "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz"
@@ -2876,11 +3070,23 @@ color-convert@^2.0.1:
dependencies:
color-name "~1.1.4"
+color-name@^2.0.0:
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/color-name/-/color-name-2.1.0.tgz#0b677385c1c4b4edfdeaf77e38fa338e3a40b693"
+ integrity sha512-1bPaDNFm0axzE4MEAzKPuqKWeRaT43U/hyxKPBdqTfmPF+d6n7FSoTFxLVULUJOmiLp01KjhIPPH+HrXZJN4Rg==
+
color-name@~1.1.4:
version "1.1.4"
resolved "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz"
integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==
+color-string@^2.1.4:
+ version "2.1.4"
+ resolved "https://registry.yarnpkg.com/color-string/-/color-string-2.1.4.tgz#9dcf566ff976e23368c8bd673f5c35103ab41058"
+ integrity sha512-Bb6Cq8oq0IjDOe8wJmi4JeNn763Xs9cfrBcaylK1tPypWzyoy2G3l90v9k64kjphl/ZJjPIShFztenRomi8WTg==
+ dependencies:
+ color-name "^2.0.0"
+
comma-separated-tokens@^2.0.0:
version "2.0.3"
resolved "https://registry.yarnpkg.com/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz#4e89c9458acb61bc8fef19f4529973b2392839ee"
@@ -3206,6 +3412,11 @@ devlop@^1.0.0, devlop@^1.1.0:
dependencies:
dequal "^2.0.0"
+dfa@^1.2.0:
+ version "1.2.0"
+ resolved "https://registry.yarnpkg.com/dfa/-/dfa-1.2.0.tgz#96ac3204e2d29c49ea5b57af8d92c2ae12790657"
+ integrity sha512-ED3jP8saaweFTjeGX8HQPjeC1YYyZs98jGNZx6IiBvxW7JG5v492kamAQB3m2wop07CvU/RQmzcKr6bgcC5D/Q==
+
diff@^8.0.2:
version "8.0.3"
resolved "https://registry.npmjs.org/diff/-/diff-8.0.3.tgz"
@@ -3259,6 +3470,11 @@ electron-to-chromium@^1.5.263:
resolved "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.307.tgz"
integrity sha512-5z3uFKBWjiNR44nFcYdkcXjKMbg5KXNdciu7mhTPo9tB7NbqSNP2sSnGR+fqknZSCwKkBN+oxiiajWs4dT6ORg==
+emoji-regex-xs@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/emoji-regex-xs/-/emoji-regex-xs-1.0.0.tgz#e8af22e5d9dbd7f7f22d280af3d19d2aab5b0724"
+ integrity sha512-LRlerrMYoIDrT6jgpeZ2YYl/L8EulRTt5hQcYjy5AInh7HWXKimpqx68aknBFpGL2+/IcogTcaydJEgaTmOpDg==
+
emoji-regex@^10.3.0:
version "10.6.0"
resolved "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.6.0.tgz"
@@ -3744,6 +3960,11 @@ eventemitter3@^5.0.1:
resolved "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.4.tgz"
integrity sha512-mlsTRyGaPBjPedk6Bvw+aqbsXDtoAyAzm5MO7JgU+yVRyMQ5O8bD4Kcci7BS85f93veegeCPkL8R4GLClnjLFw==
+events@^3.3.0:
+ version "3.3.0"
+ resolved "https://registry.yarnpkg.com/events/-/events-3.3.0.tgz#31a95ad0a924e2d2c419a813aeb2c4e878ea7400"
+ integrity sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==
+
eventsource-parser@^3.0.0, eventsource-parser@^3.0.1:
version "3.0.6"
resolved "https://registry.npmjs.org/eventsource-parser/-/eventsource-parser-3.0.6.tgz"
@@ -3912,6 +4133,11 @@ fflate@^0.4.8:
resolved "https://registry.yarnpkg.com/fflate/-/fflate-0.4.8.tgz#f90b82aefbd8ac174213abb338bd7ef848f0f5ae"
integrity sha512-FJqqoDBR00Mdj9ppamLa/Y7vxm+PRmNWA67N846RvsoYVMKB4q3y/de5PA7gUmRMYK/8CMz2GDZQmCRN1wBcWA==
+fflate@^0.8.2:
+ version "0.8.3"
+ resolved "https://registry.yarnpkg.com/fflate/-/fflate-0.8.3.tgz#bc27d8eb30343d4d512abb03480202ce65d825fc"
+ integrity sha512-tbZNuJrLwGUp3zshBtdy4W+ORxZuIh8a5ilyIEQDC5rY1f3U20JMry0Ll3WBzU58EZKsEuJFXhb5gwv8CsPvgA==
+
figures@^6.1.0:
version "6.1.0"
resolved "https://registry.npmjs.org/figures/-/figures-6.1.0.tgz"
@@ -3966,6 +4192,21 @@ flatted@^3.2.9:
resolved "https://registry.npmjs.org/flatted/-/flatted-3.4.1.tgz"
integrity sha512-IxfVbRFVlV8V/yRaGzk0UVIcsKKHMSfYw66T/u4nTwlWteQePsxe//LjudR1AMX4tZW3WFCh3Zqa/sjlqpbURQ==
+fontkit@^2.0.2:
+ version "2.0.4"
+ resolved "https://registry.yarnpkg.com/fontkit/-/fontkit-2.0.4.tgz#4765d664c68b49b5d6feb6bd1051ee49d8ec5ab0"
+ integrity sha512-syetQadaUEDNdxdugga9CpEYVaQIxOwk7GlwZWWZ19//qW4zE5bknOKeMBDYAASwnpaSHKJITRLMF9m1fp3s6g==
+ dependencies:
+ "@swc/helpers" "^0.5.12"
+ brotli "^1.3.2"
+ clone "^2.1.2"
+ dfa "^1.2.0"
+ fast-deep-equal "^3.1.3"
+ restructure "^3.0.0"
+ tiny-inflate "^1.0.3"
+ unicode-properties "^1.4.0"
+ unicode-trie "^2.0.0"
+
for-each@^0.3.3, for-each@^0.3.5:
version "0.3.5"
resolved "https://registry.npmjs.org/for-each/-/for-each-0.3.5.tgz"
@@ -4271,6 +4512,18 @@ hono@^4.11.4:
resolved "https://registry.npmjs.org/hono/-/hono-4.12.5.tgz"
integrity sha512-3qq+FUBtlTHhtYxbxheZgY8NIFnkkC/MR8u5TTsr7YZ3wixryQ3cCwn3iZbg8p8B88iDBBAYSfZDS75t8MN7Vg==
+hsl-to-hex@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/hsl-to-hex/-/hsl-to-hex-1.0.0.tgz#c58c826dc6d2f1e0a5ff1da5a7ecbf03faac1352"
+ integrity sha512-K6GVpucS5wFf44X0h2bLVRDsycgJmf9FF2elg+CrqD8GcFU8c6vYhgXn8NjUkFCwj+xDFb70qgLbTUm6sxwPmA==
+ dependencies:
+ hsl-to-rgb-for-reals "^1.1.0"
+
+hsl-to-rgb-for-reals@^1.1.0:
+ version "1.1.1"
+ resolved "https://registry.yarnpkg.com/hsl-to-rgb-for-reals/-/hsl-to-rgb-for-reals-1.1.1.tgz#e1eb23f6b78016e3722431df68197e6dcdc016d9"
+ integrity sha512-LgOWAkrN0rFaQpfdWBQlv/VhkOxb5AsBjk6NQVx4yEzWS923T07X0M1Y0VNko2H52HeSpZrZNNMJ0aFqsdVzQg==
+
html-encoding-sniffer@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/html-encoding-sniffer/-/html-encoding-sniffer-4.0.0.tgz#696df529a7cfd82446369dc5193e590a3735b448"
@@ -4325,6 +4578,11 @@ human-signals@^8.0.1:
resolved "https://registry.npmjs.org/human-signals/-/human-signals-8.0.1.tgz"
integrity sha512-eKCa6bwnJhvxj14kZk5NCPc6Hb6BdsU9DZcOnmQKSnO1VKrfV0zCvtttPZUsBvjmNDn8rpcJfpwSYnHBjc95MQ==
+hyphen@^1.6.4:
+ version "1.14.1"
+ resolved "https://registry.yarnpkg.com/hyphen/-/hyphen-1.14.1.tgz#c9fbd5e1af750f00d5034aa37f6ec41f95ffed93"
+ integrity sha512-kvL8xYl5QMTh+LwohVN72ciOxC0OEV79IPdJSTwEXok9y9QHebXGdFgrED4sWfiax/ODx++CAMk3hMy4XPJPOw==
+
iceberg-js@^0.8.1:
version "0.8.1"
resolved "https://registry.npmjs.org/iceberg-js/-/iceberg-js-0.8.1.tgz"
@@ -4384,7 +4642,7 @@ imurmurhash@^0.1.4:
resolved "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz"
integrity sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==
-inherits@~2.0.4:
+inherits@^2.0.3, inherits@~2.0.3, inherits@~2.0.4:
version "2.0.4"
resolved "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz"
integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==
@@ -4703,6 +4961,11 @@ is-unicode-supported@^2.0.0:
resolved "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-2.1.0.tgz"
integrity sha512-mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ==
+is-url@^1.2.4:
+ version "1.2.4"
+ resolved "https://registry.yarnpkg.com/is-url/-/is-url-1.2.4.tgz#04a4df46d28c4cff3d73d01ff06abeb318a1aa52"
+ integrity sha512-ITvGim8FhRiYe4IQ5uHSkj7pVaPDrCTkNd3yq3cV7iZAcJdHTUMPMEHcqSOy9xZ9qFenQCvi+2wjH9a1nXqHww==
+
is-weakmap@^2.0.2:
version "2.0.2"
resolved "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.2.tgz"
@@ -4757,6 +5020,13 @@ iterator.prototype@^1.1.5:
has-symbols "^1.1.0"
set-function-name "^2.0.2"
+jay-peg@^1.1.1:
+ version "1.1.1"
+ resolved "https://registry.yarnpkg.com/jay-peg/-/jay-peg-1.1.1.tgz#fdf410b89fa7a295bf74424ffe4c9083dbe7c363"
+ integrity sha512-D62KEuBxz/ip2gQKOEhk/mx14o7eiFRaU+VNNSP4MOiIkwb/D6B3G1Mfas7C/Fit8EsSV2/IWjZElx/Gs6A4ww==
+ dependencies:
+ restructure "^3.0.0"
+
jiti@^2.6.1:
version "2.6.1"
resolved "https://registry.npmjs.org/jiti/-/jiti-2.6.1.tgz"
@@ -4767,6 +5037,11 @@ jose@^6.1.3:
resolved "https://registry.npmjs.org/jose/-/jose-6.2.1.tgz"
integrity sha512-jUaKr1yrbfaImV7R2TN/b3IcZzsw38/chqMpo2XJ7i2F8AfM/lA4G1goC3JVEwg0H7UldTmSt3P68nt31W7/mw==
+js-md5@^0.8.3:
+ version "0.8.3"
+ resolved "https://registry.yarnpkg.com/js-md5/-/js-md5-0.8.3.tgz#921bab7efa95bfc9d62b87ee08a57f8fe4305b69"
+ integrity sha512-qR0HB5uP6wCuRMrWPTrkMaev7MJZwJuuw4fnwAzRgP4J4/F8RwtodOKpGp4XpqsLBFzzgqIO42efFAyz2Et6KQ==
+
"js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0:
version "4.0.0"
resolved "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz"
@@ -4992,6 +5267,14 @@ [email protected]:
lightningcss-win32-arm64-msvc "1.31.1"
lightningcss-win32-x64-msvc "1.31.1"
+linebreak@^1.1.0:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/linebreak/-/linebreak-1.1.0.tgz#831cf378d98bced381d8ab118f852bd50d81e46b"
+ integrity sha512-MHp03UImeVhB7XZtjd0E4n6+3xr5Dq/9xI/5FptGk5FrbDR3zagPa2DS6U8ks/3HjbKWG9Q1M2ufOzxV2qLYSQ==
+ dependencies:
+ base64-js "0.0.8"
+ unicode-trie "^2.0.0"
+
lines-and-columns@^1.1.6:
version "1.2.4"
resolved "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz"
@@ -5266,6 +5549,11 @@ mdast-util-to-string@^4.0.0:
dependencies:
"@types/mdast" "^4.0.0"
+media-engine@^1.0.3:
+ version "1.0.3"
+ resolved "https://registry.yarnpkg.com/media-engine/-/media-engine-1.0.3.tgz#be3188f6cd243ea2a40804a35de5a5b032f58dad"
+ integrity sha512-aa5tG6sDoK+k70B9iEX1NeyfT8ObCKhNDs6lJVpwF6r8vhUfuKMslIcirq6HIUYuuUYLefcEQOn9bSBOvawtwg==
+
media-typer@^1.1.0:
version "1.1.0"
resolved "https://registry.npmjs.org/media-typer/-/media-typer-1.1.0.tgz"
@@ -5742,6 +6030,13 @@ node-releases@^2.0.27:
resolved "https://registry.npmjs.org/node-releases/-/node-releases-2.0.36.tgz"
integrity sha512-TdC8FSgHz8Mwtw9g5L4gR/Sh9XhSP/0DEkQxfEFXOpiul5IiHgHan2VhYYb6agDSfp4KuvltmGApc8HMgUrIkA==
+normalize-svg-path@^1.1.0:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/normalize-svg-path/-/normalize-svg-path-1.1.0.tgz#0e614eca23c39f0cffe821d6be6cd17e569a766c"
+ integrity sha512-r9KHKG2UUeB5LoTouwDzBy2VxXlHsiM6fyLQvnJa0S5hrhzqElH/CH7TUGhT1fVvIYBIKf3OpY4YJ4CK+iaqHg==
+ dependencies:
+ svg-arc-to-cubic-bezier "^3.0.0"
+
npm-run-path@^4.0.1:
version "4.0.1"
resolved "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz"
@@ -5947,6 +6242,16 @@ package-manager-detector@^1.3.0:
resolved "https://registry.npmjs.org/package-manager-detector/-/package-manager-detector-1.6.0.tgz"
integrity sha512-61A5ThoTiDG/C8s8UMZwSorAGwMJ0ERVGj2OjoW5pAalsNOg15+iQiPzrLJ4jhZ1HJzmC2PIHT2oEiH3R5fzNA==
+pako@^0.2.5:
+ version "0.2.9"
+ resolved "https://registry.yarnpkg.com/pako/-/pako-0.2.9.tgz#f3f7522f4ef782348da8161bad9ecfd51bf83a75"
+ integrity sha512-NUcwaKxUxWrZLpDG+z/xZaCgQITkA/Dv4V/T6bw7VON6l1Xz/VnrBqrYjZQ12TamKHzITTfOEIYUj48y2KXImA==
+
+pako@~1.0.5:
+ version "1.0.11"
+ resolved "https://registry.yarnpkg.com/pako/-/pako-1.0.11.tgz#6c9599d340d54dfd3946380252a35705a6b992bf"
+ integrity sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==
+
parent-module@^1.0.0:
version "1.0.1"
resolved "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz"
@@ -5982,6 +6287,11 @@ parse-ms@^4.0.0:
resolved "https://registry.npmjs.org/parse-ms/-/parse-ms-4.0.0.tgz"
integrity sha512-TXfryirbmq34y8QBwgqCVLi+8oA3oWx2eAnSn62ITyEhEYaWRlVZ2DvMM9eZbMs/RfxPu/PK/aBLyGj4IrqMHw==
+parse-svg-path@^0.1.2:
+ version "0.1.2"
+ resolved "https://registry.yarnpkg.com/parse-svg-path/-/parse-svg-path-0.1.2.tgz#7a7ec0d1eb06fa5325c7d3e009b859a09b5d49eb"
+ integrity sha512-JyPSBnkTJ0AI8GGJLfMXvKq42cj5c006fnLz6fXy6zfoVjJizi8BNTpu8on8ziI1cKy9d9DGNuY17Ce7wuejpQ==
+
parse5@^7.2.1:
version "7.3.0"
resolved "https://registry.yarnpkg.com/parse5/-/parse5-7.3.0.tgz#d7e224fa72399c7a175099f45fc2ad024b05ec05"
@@ -6064,6 +6374,13 @@ pkce-challenge@^5.0.0:
resolved "https://registry.npmjs.org/pkce-challenge/-/pkce-challenge-5.0.1.tgz"
integrity sha512-wQ0b/W4Fr01qtpHlqSqspcj3EhBvimsdh0KlHhH8HRZnMsEa0ea2fTULOXOS9ccQr3om+GcGRk4e+isrZWV8qQ==
+png-js@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/png-js/-/png-js-2.0.0.tgz#7bc521aea1d47f5e3bf42eeecdd77095cba98d5f"
+ integrity sha512-GdzJuUMc6ZSpxFJWVxtOH1bzYHym+TOnveqUjb+VJIbZWbZzyiRGFiKhbiielfpYbgMlhHVhsJ0FTazfuRFkMA==
+ dependencies:
+ fflate "^0.8.2"
+
po-parser@^2.1.1:
version "2.1.1"
resolved "https://registry.npmjs.org/po-parser/-/po-parser-2.1.1.tgz"
@@ -6090,6 +6407,11 @@ postcss-selector-parser@^7.1.0:
cssesc "^3.0.0"
util-deprecate "^1.0.2"
+postcss-value-parser@^4.1.0:
+ version "4.2.0"
+ resolved "https://registry.yarnpkg.com/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz#723c09920836ba6d3e5af019f92bc0971c02e514"
+ integrity sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==
+
version "8.4.31"
resolved "https://registry.npmjs.org/postcss/-/postcss-8.4.31.tgz"
@@ -6162,7 +6484,7 @@ prompts@^2.4.2:
kleur "^3.0.3"
sisteransi "^1.0.5"
-prop-types@^15.8.1:
+prop-types@^15.6.2, prop-types@^15.8.1:
version "15.8.1"
resolved "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz"
integrity sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==
@@ -6224,6 +6546,13 @@ queue-microtask@^1.2.2:
resolved "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz"
integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==
+queue@^6.0.1:
+ version "6.0.2"
+ resolved "https://registry.yarnpkg.com/queue/-/queue-6.0.2.tgz#b91525283e2315c7553d2efa18d83e76432fed65"
+ integrity sha512-iHZWu+q3IdFZFX36ro/lKBkSvfkztY5Y7HMiPlOUjhupPcG2JMfst2KKEpu5XndviX/3UhFbRngUPNKtgvtZiA==
+ dependencies:
+ inherits "~2.0.3"
+
range-parser@^1.2.1:
version "1.2.1"
resolved "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz"
@@ -6474,6 +6803,11 @@ restore-cursor@^5.0.0:
onetime "^7.0.0"
signal-exit "^4.1.0"
+restructure@^3.0.0:
+ version "3.0.2"
+ resolved "https://registry.yarnpkg.com/restructure/-/restructure-3.0.2.tgz#e6b2fad214f78edee21797fa8160fef50eb9b49a"
+ integrity sha512-gSfoiOEA0VPE6Tukkrr7I0RBdE0s7H1eFCDBk05l1KIQT1UIKNc5JZy6jdyW6eYH3aR3g5b3PuL77rq0hvwtAw==
+
rettime@^0.10.1:
version "0.10.1"
resolved "https://registry.npmjs.org/rettime/-/rettime-0.10.1.tgz"
@@ -6557,6 +6891,11 @@ safe-array-concat@^1.1.3:
has-symbols "^1.1.0"
isarray "^2.0.5"
+safe-buffer@~5.2.0:
+ version "5.2.1"
+ resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6"
+ integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==
+
safe-push-apply@^1.0.0:
version "1.0.0"
resolved "https://registry.npmjs.org/safe-push-apply/-/safe-push-apply-1.0.0.tgz"
@@ -6586,6 +6925,11 @@ saxes@^6.0.0:
dependencies:
xmlchars "^2.2.0"
+ version "0.25.0-rc-603e6108-20241029"
+ resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.25.0-rc-603e6108-20241029.tgz#684dd96647e104d23e0d29a37f18937daf82df19"
+ integrity sha512-pFwF6H1XrSdYYNLfOcGlM28/j8CGLu8IvdrxqhjWULe2bPcKiKW4CV+OWqR/9fT52mywx65l7ysNkjLKBda7eA==
+
scheduler@^0.27.0:
version "0.27.0"
resolved "https://registry.npmjs.org/scheduler/-/scheduler-0.27.0.tgz"
@@ -6969,6 +7313,13 @@ string.prototype.trimstart@^1.0.8:
define-properties "^1.2.1"
es-object-atoms "^1.0.0"
+string_decoder@^1.1.1:
+ version "1.3.0"
+ resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.3.0.tgz#42f114594a46cf1a8e30b0a84f56c78c3edac21e"
+ integrity sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==
+ dependencies:
+ safe-buffer "~5.2.0"
+
stringify-entities@^4.0.0:
version "4.0.4"
resolved "https://registry.yarnpkg.com/stringify-entities/-/stringify-entities-4.0.4.tgz#b3b79ef5f277cc4ac73caeb0236c5ba939b3a4f3"
@@ -7065,6 +7416,11 @@ supports-preserve-symlinks-flag@^1.0.0:
resolved "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz"
integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==
+svg-arc-to-cubic-bezier@^3.0.0, svg-arc-to-cubic-bezier@^3.2.0:
+ version "3.2.0"
+ resolved "https://registry.yarnpkg.com/svg-arc-to-cubic-bezier/-/svg-arc-to-cubic-bezier-3.2.0.tgz#390c450035ae1c4a0104d90650304c3bc814abe6"
+ integrity sha512-djbJ/vZKZO+gPoSDThGNpKDO+o+bAeA4XQKovvkNCqnIS2t+S4qnLAGQhyyrulhCFRl1WWzAp0wUDV8PpTVU3g==
+
swr@^2.2.5:
version "2.4.1"
resolved "https://registry.yarnpkg.com/swr/-/swr-2.4.1.tgz#c9e48abff6bf4b04846342e2f1f6be108a078cf6"
@@ -7108,6 +7464,11 @@ [email protected]:
resolved "https://registry.yarnpkg.com/throttleit/-/throttleit-2.1.0.tgz#a7e4aa0bf4845a5bd10daa39ea0c783f631a07b4"
integrity sha512-nt6AMGKW1p/70DF/hGBdJB57B8Tspmbp5gfJ8ilhLnt7kkr2ye7hzD6NVG8GGErk2HWF34igrL2CXmNIkzKqKw==
+tiny-inflate@^1.0.0, tiny-inflate@^1.0.3:
+ version "1.0.3"
+ resolved "https://registry.yarnpkg.com/tiny-inflate/-/tiny-inflate-1.0.3.tgz#122715494913a1805166aaf7c93467933eea26c4"
+ integrity sha512-pkY1fj1cKHb2seWDy0B16HeWyczlJA9/WW3u3c4z/NiWDsO3DOU5D7nhTLE9CF0yXv/QZFY7sEJmj24dK+Rrqw==
+
tiny-invariant@^1.3.3:
version "1.3.3"
resolved "https://registry.npmjs.org/tiny-invariant/-/tiny-invariant-1.3.3.tgz"
@@ -7376,6 +7737,22 @@ undici-types@~7.21.0:
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-7.21.0.tgz#433f7dd1b5daa9ab4dacb721a5e11a8de51eadda"
integrity sha512-w9IMgQrz4O0YN1LtB7K5P63vhlIOvC7opSmouCJ+ZywlPAlO9gIkJ+otk6LvGpAs2wg4econaCz3TvQ9xPoyuQ==
+unicode-properties@^1.4.0, unicode-properties@^1.4.1:
+ version "1.4.1"
+ resolved "https://registry.yarnpkg.com/unicode-properties/-/unicode-properties-1.4.1.tgz#96a9cffb7e619a0dc7368c28da27e05fc8f9be5f"
+ integrity sha512-CLjCCLQ6UuMxWnbIylkisbRj31qxHPAurvena/0iwSVbQ2G1VY5/HjV0IRabOEbDHlzZlRdCrD4NhB0JtU40Pg==
+ dependencies:
+ base64-js "^1.3.0"
+ unicode-trie "^2.0.0"
+
+unicode-trie@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/unicode-trie/-/unicode-trie-2.0.0.tgz#8fd8845696e2e14a8b67d78fa9e0dd2cad62fec8"
+ integrity sha512-x7bc76x0bm4prf1VLg79uhAzKw8DVboClSN5VxJuQ+LKDOVEW9CdH+VY7SP+vX7xCYQqzzgQpFqz15zeLvAtZQ==
+ dependencies:
+ pako "^0.2.5"
+ tiny-inflate "^1.0.0"
+
unicorn-magic@^0.3.0:
version "0.3.0"
resolved "https://registry.npmjs.org/unicorn-magic/-/unicorn-magic-0.3.0.tgz"
@@ -7504,7 +7881,7 @@ use-sync-external-store@^1.2.2, use-sync-external-store@^1.4.0, use-sync-externa
resolved "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.6.0.tgz"
integrity sha512-Pp6GSwGP/NrPIrxVFAIkOQeyw8lFenOHijQWkUTrDvrF4ALqylP2C/KCkeS9dpUM3KvYRQhna5vt7IL95+ZQ9w==
-util-deprecate@^1.0.2:
+util-deprecate@^1.0.1, util-deprecate@^1.0.2:
version "1.0.2"
resolved "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz"
integrity sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==
@@ -7555,6 +7932,15 @@ victory-vendor@^37.0.2:
d3-time "^3.0.0"
d3-timer "^3.0.1"
+vite-compatible-readable-stream@^3.6.1:
+ version "3.6.1"
+ resolved "https://registry.yarnpkg.com/vite-compatible-readable-stream/-/vite-compatible-readable-stream-3.6.1.tgz#27267aebbdc9893c0ddf65a421279cbb1e31d8cd"
+ integrity sha512-t20zYkrSf868+j/p31cRIGN28Phrjm3nRSLR2fyc2tiWi4cZGVdv68yNlwnIINTkMTmPoMiSlc0OadaO7DXZaQ==
+ dependencies:
+ inherits "^2.0.3"
+ string_decoder "^1.1.1"
+ util-deprecate "^1.0.1"
+
version "3.2.4"
resolved "https://registry.yarnpkg.com/vite-node/-/vite-node-3.2.4.tgz#f3676d94c4af1e76898c162c92728bca65f7bb07"
@@ -7825,6 +8211,11 @@ yoctocolors@^2.1.1:
resolved "https://registry.npmjs.org/yoctocolors/-/yoctocolors-2.1.2.tgz"
integrity sha512-CzhO+pFNo8ajLM2d2IW/R93ipy99LWjtwblvC1RsoSUMZgyLbYFr221TnSNT7GjGdYui6P459mw9JH/g/zW2ug==
+yoga-layout@^3.2.1:
+ version "3.2.1"
+ resolved "https://registry.yarnpkg.com/yoga-layout/-/yoga-layout-3.2.1.tgz#d2d1ba06f0e81c2eb650c3e5ad8b0b4adde1e843"
+ integrity sha512-0LPOt3AxKqMdFBZA3HBAt/t/8vIKq7VaQYbuA8WxCgung+p9TVyKRYdpvCb80HcdTN2NkbIKbhNwKUfm3tQywQ==
+
zod-to-json-schema@^3.24.6, zod-to-json-schema@^3.25.1:
version "3.25.1"
resolved "https://registry.npmjs.org/zod-to-json-schema/-/zod-to-json-schema-3.25.1.tgz"