pxengine 0.1.82 → 0.1.84

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -3163,11 +3163,6 @@ declare const PresentationJobCard: React__default.FC<PresentationJobCardProps>;
3163
3163
  /**
3164
3164
  * Type definitions for ResearchReportJobCard component.
3165
3165
  */
3166
- interface ReportFormats {
3167
- pdf_url?: string;
3168
- html_url?: string;
3169
- markdown_url?: string;
3170
- }
3171
3166
  interface ReportTheme {
3172
3167
  primary?: string;
3173
3168
  secondary?: string;
@@ -3194,8 +3189,8 @@ interface ResearchReportJobCardProps {
3194
3189
  executive_summary?: string;
3195
3190
  /** Key findings (first 5) */
3196
3191
  key_findings?: string[];
3197
- /** Download URLs for various formats */
3198
- formats?: ReportFormats;
3192
+ /** HTML report URL */
3193
+ html_url?: string;
3199
3194
  /** Dynamic theme colors generated based on topic */
3200
3195
  theme?: ReportTheme;
3201
3196
  /** Error message if job failed */
@@ -3221,7 +3216,7 @@ interface ResearchReportJobOutput {
3221
3216
  executive_summary?: string;
3222
3217
  key_findings?: string[];
3223
3218
  theme?: ReportTheme;
3224
- formats: ReportFormats;
3219
+ html_url?: string;
3225
3220
  }
3226
3221
 
3227
3222
  declare const ResearchReportJobCard: React__default.FC<ResearchReportJobCardProps>;
@@ -3705,4 +3700,4 @@ declare function CreatorImageList({ creatorImages, creatorLength, isAgentOutput,
3705
3700
 
3706
3701
  declare function CreatorProgressBar({ statusDetails, timeRemaining: _timeRemaining, }: CreatorProgressBarProps): react_jsx_runtime.JSX.Element;
3707
3702
 
3708
- export { Accordion, AccordionAtom, type AccordionAtomType, AccordionContent, AccordionItem, AccordionTrigger, ActionButton, type ActionButtonAtom, type ActionButtonProps, type ActionPriority, ActionPriorityCard, type ActionPriorityCardMolecule, type ActionPriorityCardProps, type ActionPriorityItem, Alert, AlertAtom, type AlertAtomType, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogAtom, type AlertDialogAtomType, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, AlertTitle, ApprovalCard, type ApprovalCardMolecule, type ApprovalCardProps, type ApprovalDetail, type ApprovalStatus, ArrowToggleAtom, type ArrowToggleAtomType, AspectRatio, AspectRatioAtom, type AspectRatioAtomType, AudienceDemographicsCard, type AudienceDemographicsCardMolecule, AudienceMetricCard, type AudienceMetricCardMolecule, AudiencePersonaCard, type AudiencePersonaCardMolecule, type AudiencePersonaCardProps, Avatar, AvatarAtom, type AvatarAtomType, AvatarFallback, AvatarImage, Badge, BadgeAtom, type BadgeAtomType, type BaseAtom, type BaseMolecule, type BranchCI, BrandAffinityGroup, type BrandAffinityGroupMolecule, Breadcrumb, BreadcrumbAtom, type BreadcrumbAtomType, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, BudgetAllocCard, type BudgetAllocCardProps, type BudgetAllocItem, Button, type ButtonAction, ButtonAtom, type ButtonAtomType, type ButtonSize$1 as ButtonSize, type ButtonVariant$1 as ButtonVariant, Calendar, CalendarAtom, type CalendarAtomType, type CalendarEventAttendee, CalendarEventCard, type CalendarEventCardProps, type CalendarEventStatus, CampaignBriefCard, type CampaignBriefCardMolecule, type CampaignBriefCardProps, CampaignConceptCard, type CampaignConceptCardProps, CampaignSeedCard, type CampaignSeedCardAtom, type CampaignSeedCardProps, Card, CardAtom, type CardAtomType, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselAtom, type CarouselAtomType, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChannelPlanCard, type ChannelPlanCardMolecule, type ChannelPlanCardProps, type ChannelPlanItem, ChartAtom, type ChartAtomType, type ChartDataPoint, Checkbox, CheckboxAtom, type CheckboxAtomType, ChecklistCard, type ChecklistCardMolecule, type ChecklistCardProps, type ChecklistItem, Collapsible, CollapsibleAtom, type CollapsibleAtomType, CollapsibleContent, CollapsibleTrigger, type CollectedField, Command, CommandAtom, type CommandAtomType, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, type ComparisonAttribute, ComparisonCard, type ComparisonCardProps, type ComparisonOption, ConfirmationCard, type ConfirmationCardMolecule, type ConfirmationCardProps, ContentPreviewGallery, type ContentPreviewGalleryMolecule, ContextMenu, ContextMenuAtom, type ContextMenuAtomType, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuItem, ContextMenuLabel, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuTrigger, CountrySelectDisplay, CountrySelectEdit, CreatorActionHeader, type CreatorActionHeaderMolecule, CreatorCompactView, type CreatorCompactViewProps, type CreatorDetailData, CreatorExpandedPanel, CreatorGridCard, type CreatorGridCardMolecule, CreatorImageList, type CreatorImageListProps, CreatorProfileSummary, type CreatorProfileSummaryMolecule, CreatorProgressBar, type CreatorProgressBarProps, CreatorSearch, type CreatorSearchProps, type CreatorVersionData, CreatorWidget, type CreatorWidgetAction, type CreatorWidgetMolecule, type CreatorWidgetProps, CreatorWidgetSkeleton, type CreatorWidgetStatus, DataGrid, type DataGridMolecule, DataSourceChecklistCard, type DataSourceChecklistCardMolecule, type DataSourceChecklistCardProps, type DataSourceItem, DataTableCard, type DataTableCardMolecule, type DataTableCardProps, Dialog, DialogAtom, type DialogAtomType, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, Drawer, DrawerAtom, type DrawerAtomType, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuAtom, type DropdownMenuAtomType, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuTrigger, DynamicFormCard, type DynamicFormCardMolecule, type DynamicFormCardProps, EditableField, type EditableFieldProps, EmptyState, type EmptyStateMolecule, FeedbackRatingCard, type FeedbackRatingCardMolecule, type FeedbackRatingCardProps, type FetchCreatorDetailsParams, type FetchStatusParams, type FetchVersionsParams, FileUpload, type FileUploadMolecule, FilterBar, type FilterBarMolecule, Form, FormCard, type FormCardProps, FormControl, FormDescription, FormField, FormInputAtom, type FormInputAtomType, FormItem, FormLabel, FormMessage, FormSelectAtom, type FormSelectAtomType, FormTextareaAtom, type FormTextareaAtomType, type GapSize, GitHubConnectCard, type GitHubConnectCardProps, type GitHubConnectMolecule, GitHubIssueTrackerCard, type GitHubIssueTrackerCardProps, type GitHubIssueTrackerMolecule, GitHubRepoHealthCard, type GitHubRepoHealthCardProps, type GitHubRepoHealthMolecule, GitHubReposListCard, type GitHubReposListCardProps, GoalAlignmentCard, type GoalAlignmentCardMolecule, type GoalAlignmentCardProps, type GoalAlignmentItem, GoogleSheetsCard, type GoogleSheetsCardProps, GoogleSheetsConnectCard, type GoogleSheetsConnectCardProps, GoogleSheetsListCard, type GoogleSheetsListCardProps, GrowthChartCard, type GrowthChartCardMolecule, HoverCard, HoverCardContent, HoverCardTrigger, IconAtom, type IconAtomType, type IconName, Input, InputAtom, type InputAtomType, type InputElementLike, InputOTP, InputOTPAtom, type InputOTPAtomType, InputOTPGroup, InputOTPSeparator, InputOTPSlot, type InputType, InputWidget, type InputWidgetField, type InputWidgetFieldKind, type InputWidgetType, InsightDigestCard, type InsightDigestCardMolecule, type InsightDigestCardProps, type InsightDigestItem, InsightSummaryCard, type InsightSummaryCardMolecule, type InsightSummaryCardProps, type InsightSummaryItem, type KPIStatItem, KPIStatsCard, type KPIStatsCardMolecule, type KPIStatsCardProps, KbdAtom, type KbdAtomType, KeywordBundlesDisplay, KeywordBundlesEdit, Label, LabelAtom, type LabelAtomType, LayoutAtom, type LayoutAtomType, type LayoutDirection, LoadingOverlay, type LoadingOverlayMolecule, MCQCard, type MCQCardAtom, type MCQCardProps, type MCQOption, Menubar, MenubarCheckboxItem, MenubarContent, MenubarItem, MenubarLabel, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarTrigger, NavigationMenu, NavigationMenuContent, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NextStepCard, type NextStepCardMolecule, type NextStepCardProps, type NextStepItem, NotificationList, type NotificationListMolecule, PXEngineRenderer, Pagination, PaginationAtom, type PaginationAtomType, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type PersonaSegment, PlatformIconGroup, type PlatformIconGroupMolecule, PlatformSelectDisplay, PlatformSelectEdit, PollCard, type PollCardMolecule, type PollCardProps, type PollOption, type PollingConfig, Popover, PopoverAtom, type PopoverAtomType, PopoverContent, PopoverTrigger, type PresentationFormats, PresentationJobCard, type PresentationJobCardProps, type PriorityActionItem, PriorityActionsCard, type PriorityActionsCardMolecule, type PriorityActionsCardProps, Progress, ProgressAtom, type ProgressAtomType, type PullRequest, REGISTERED_COMPONENTS, RadioAtom, type RadioAtomType, RadioGroup, RadioGroupAtom, type RadioGroupAtomType, RadioGroupItem, RatingAtom, type RatingAtomType, RecommendationCard, type RecommendationCardMolecule, type RecommendationCardProps, type RepoItem, type ReportFormats, type ReportTheme, ResearchBriefCard, type ResearchBriefCardMolecule, type ResearchBriefCardProps, type ResearchBriefItem, ResearchReportJobCard, type ResearchReportJobCardProps, type ResearchReportJobOutput, ResizableAtom, type ResizableAtomType, ResizablePanel, ResizablePanelGroup, RiskSignalCard, type RiskSignalCardMolecule, type RiskSignalCardProps, type RiskSignalItem, type RunSseConfig, ScoreBreakdownCard, type ScoreBreakdownCardMolecule, type ScoreBreakdownCardProps, type ScoreBreakdownItem, ScrollArea, ScrollAreaAtom, type ScrollAreaAtomType, ScrollBar, SearchSpecCard, type SearchSpecCardAtom, type SearchSpecCardProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, type SelectOption, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, SeparatorAtom, type SeparatorAtomType, Sheet, SheetAtom, type SheetAtomType, SheetClose, type SheetColumn, SheetContent, SheetDescription, SheetFooter, SheetHeader, type SheetRow, type SheetTabItem, SheetTitle, SheetTrigger, Skeleton, SkeletonAtom, type SkeletonAtomType, Slider, SliderAtom, type SliderAtomType, type SocialPost, SocialPostCard, type SocialPostCardProps, type SocialPostMolecule, Spinner, SpinnerAtom, type SpinnerAtomType, type SpreadsheetItem, type StaleIssue, StatsGrid, type StatsGridMolecule, type StatusDetails, StepWizard, type StepWizardMolecule, Switch, SwitchAtom, type SwitchAtomType, Table, TableAtom, type TableAtomType, TableBody, TableCaption, TableCell, TableHead, TableHeader, TableRow, Tabs, TabsAtom, type TabsAtomType, TabsContent, TabsList, TabsTrigger, TagCloud, type TagCloudMolecule, TextAtom, type TextAtomType, type TextVariant, Textarea, TextareaAtom, TimelineAtom, type TimelineAtomType, TimelineCard, type TimelineCardMolecule, type TimelineCardProps, type TimelineStep, type TimelineStepStatus, ToggleAtom, type ToggleAtomType, Tooltip, TooltipAtom, type TooltipAtomType, TooltipContent, TooltipProvider, TooltipTrigger, TopPostsGrid, type TopPostsGridMolecule, type UIAtom, type UIComponent, type UIMolecule, type UISchema, VideoAtom, type VideoAtomType, type WidgetTheme, cn, defaultFetchSelections, defaultPersistSelection, elementToQAField, formatQAMessage, generateFieldsFromData, generateFieldsFromPropDefinitions, isInputAtom, submitWidgetToAgent, th, useCreatorWidgetPolling, withAlpha };
3703
+ export { Accordion, AccordionAtom, type AccordionAtomType, AccordionContent, AccordionItem, AccordionTrigger, ActionButton, type ActionButtonAtom, type ActionButtonProps, type ActionPriority, ActionPriorityCard, type ActionPriorityCardMolecule, type ActionPriorityCardProps, type ActionPriorityItem, Alert, AlertAtom, type AlertAtomType, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogAtom, type AlertDialogAtomType, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, AlertTitle, ApprovalCard, type ApprovalCardMolecule, type ApprovalCardProps, type ApprovalDetail, type ApprovalStatus, ArrowToggleAtom, type ArrowToggleAtomType, AspectRatio, AspectRatioAtom, type AspectRatioAtomType, AudienceDemographicsCard, type AudienceDemographicsCardMolecule, AudienceMetricCard, type AudienceMetricCardMolecule, AudiencePersonaCard, type AudiencePersonaCardMolecule, type AudiencePersonaCardProps, Avatar, AvatarAtom, type AvatarAtomType, AvatarFallback, AvatarImage, Badge, BadgeAtom, type BadgeAtomType, type BaseAtom, type BaseMolecule, type BranchCI, BrandAffinityGroup, type BrandAffinityGroupMolecule, Breadcrumb, BreadcrumbAtom, type BreadcrumbAtomType, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, BudgetAllocCard, type BudgetAllocCardProps, type BudgetAllocItem, Button, type ButtonAction, ButtonAtom, type ButtonAtomType, type ButtonSize$1 as ButtonSize, type ButtonVariant$1 as ButtonVariant, Calendar, CalendarAtom, type CalendarAtomType, type CalendarEventAttendee, CalendarEventCard, type CalendarEventCardProps, type CalendarEventStatus, CampaignBriefCard, type CampaignBriefCardMolecule, type CampaignBriefCardProps, CampaignConceptCard, type CampaignConceptCardProps, CampaignSeedCard, type CampaignSeedCardAtom, type CampaignSeedCardProps, Card, CardAtom, type CardAtomType, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselAtom, type CarouselAtomType, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChannelPlanCard, type ChannelPlanCardMolecule, type ChannelPlanCardProps, type ChannelPlanItem, ChartAtom, type ChartAtomType, type ChartDataPoint, Checkbox, CheckboxAtom, type CheckboxAtomType, ChecklistCard, type ChecklistCardMolecule, type ChecklistCardProps, type ChecklistItem, Collapsible, CollapsibleAtom, type CollapsibleAtomType, CollapsibleContent, CollapsibleTrigger, type CollectedField, Command, CommandAtom, type CommandAtomType, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, type ComparisonAttribute, ComparisonCard, type ComparisonCardProps, type ComparisonOption, ConfirmationCard, type ConfirmationCardMolecule, type ConfirmationCardProps, ContentPreviewGallery, type ContentPreviewGalleryMolecule, ContextMenu, ContextMenuAtom, type ContextMenuAtomType, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuItem, ContextMenuLabel, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuTrigger, CountrySelectDisplay, CountrySelectEdit, CreatorActionHeader, type CreatorActionHeaderMolecule, CreatorCompactView, type CreatorCompactViewProps, type CreatorDetailData, CreatorExpandedPanel, CreatorGridCard, type CreatorGridCardMolecule, CreatorImageList, type CreatorImageListProps, CreatorProfileSummary, type CreatorProfileSummaryMolecule, CreatorProgressBar, type CreatorProgressBarProps, CreatorSearch, type CreatorSearchProps, type CreatorVersionData, CreatorWidget, type CreatorWidgetAction, type CreatorWidgetMolecule, type CreatorWidgetProps, CreatorWidgetSkeleton, type CreatorWidgetStatus, DataGrid, type DataGridMolecule, DataSourceChecklistCard, type DataSourceChecklistCardMolecule, type DataSourceChecklistCardProps, type DataSourceItem, DataTableCard, type DataTableCardMolecule, type DataTableCardProps, Dialog, DialogAtom, type DialogAtomType, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, Drawer, DrawerAtom, type DrawerAtomType, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuAtom, type DropdownMenuAtomType, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuTrigger, DynamicFormCard, type DynamicFormCardMolecule, type DynamicFormCardProps, EditableField, type EditableFieldProps, EmptyState, type EmptyStateMolecule, FeedbackRatingCard, type FeedbackRatingCardMolecule, type FeedbackRatingCardProps, type FetchCreatorDetailsParams, type FetchStatusParams, type FetchVersionsParams, FileUpload, type FileUploadMolecule, FilterBar, type FilterBarMolecule, Form, FormCard, type FormCardProps, FormControl, FormDescription, FormField, FormInputAtom, type FormInputAtomType, FormItem, FormLabel, FormMessage, FormSelectAtom, type FormSelectAtomType, FormTextareaAtom, type FormTextareaAtomType, type GapSize, GitHubConnectCard, type GitHubConnectCardProps, type GitHubConnectMolecule, GitHubIssueTrackerCard, type GitHubIssueTrackerCardProps, type GitHubIssueTrackerMolecule, GitHubRepoHealthCard, type GitHubRepoHealthCardProps, type GitHubRepoHealthMolecule, GitHubReposListCard, type GitHubReposListCardProps, GoalAlignmentCard, type GoalAlignmentCardMolecule, type GoalAlignmentCardProps, type GoalAlignmentItem, GoogleSheetsCard, type GoogleSheetsCardProps, GoogleSheetsConnectCard, type GoogleSheetsConnectCardProps, GoogleSheetsListCard, type GoogleSheetsListCardProps, GrowthChartCard, type GrowthChartCardMolecule, HoverCard, HoverCardContent, HoverCardTrigger, IconAtom, type IconAtomType, type IconName, Input, InputAtom, type InputAtomType, type InputElementLike, InputOTP, InputOTPAtom, type InputOTPAtomType, InputOTPGroup, InputOTPSeparator, InputOTPSlot, type InputType, InputWidget, type InputWidgetField, type InputWidgetFieldKind, type InputWidgetType, InsightDigestCard, type InsightDigestCardMolecule, type InsightDigestCardProps, type InsightDigestItem, InsightSummaryCard, type InsightSummaryCardMolecule, type InsightSummaryCardProps, type InsightSummaryItem, type KPIStatItem, KPIStatsCard, type KPIStatsCardMolecule, type KPIStatsCardProps, KbdAtom, type KbdAtomType, KeywordBundlesDisplay, KeywordBundlesEdit, Label, LabelAtom, type LabelAtomType, LayoutAtom, type LayoutAtomType, type LayoutDirection, LoadingOverlay, type LoadingOverlayMolecule, MCQCard, type MCQCardAtom, type MCQCardProps, type MCQOption, Menubar, MenubarCheckboxItem, MenubarContent, MenubarItem, MenubarLabel, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarTrigger, NavigationMenu, NavigationMenuContent, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NextStepCard, type NextStepCardMolecule, type NextStepCardProps, type NextStepItem, NotificationList, type NotificationListMolecule, PXEngineRenderer, Pagination, PaginationAtom, type PaginationAtomType, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type PersonaSegment, PlatformIconGroup, type PlatformIconGroupMolecule, PlatformSelectDisplay, PlatformSelectEdit, PollCard, type PollCardMolecule, type PollCardProps, type PollOption, type PollingConfig, Popover, PopoverAtom, type PopoverAtomType, PopoverContent, PopoverTrigger, type PresentationFormats, PresentationJobCard, type PresentationJobCardProps, type PriorityActionItem, PriorityActionsCard, type PriorityActionsCardMolecule, type PriorityActionsCardProps, Progress, ProgressAtom, type ProgressAtomType, type PullRequest, REGISTERED_COMPONENTS, RadioAtom, type RadioAtomType, RadioGroup, RadioGroupAtom, type RadioGroupAtomType, RadioGroupItem, RatingAtom, type RatingAtomType, RecommendationCard, type RecommendationCardMolecule, type RecommendationCardProps, type RepoItem, type ReportTheme, ResearchBriefCard, type ResearchBriefCardMolecule, type ResearchBriefCardProps, type ResearchBriefItem, ResearchReportJobCard, type ResearchReportJobCardProps, type ResearchReportJobOutput, ResizableAtom, type ResizableAtomType, ResizablePanel, ResizablePanelGroup, RiskSignalCard, type RiskSignalCardMolecule, type RiskSignalCardProps, type RiskSignalItem, type RunSseConfig, ScoreBreakdownCard, type ScoreBreakdownCardMolecule, type ScoreBreakdownCardProps, type ScoreBreakdownItem, ScrollArea, ScrollAreaAtom, type ScrollAreaAtomType, ScrollBar, SearchSpecCard, type SearchSpecCardAtom, type SearchSpecCardProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, type SelectOption, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, SeparatorAtom, type SeparatorAtomType, Sheet, SheetAtom, type SheetAtomType, SheetClose, type SheetColumn, SheetContent, SheetDescription, SheetFooter, SheetHeader, type SheetRow, type SheetTabItem, SheetTitle, SheetTrigger, Skeleton, SkeletonAtom, type SkeletonAtomType, Slider, SliderAtom, type SliderAtomType, type SocialPost, SocialPostCard, type SocialPostCardProps, type SocialPostMolecule, Spinner, SpinnerAtom, type SpinnerAtomType, type SpreadsheetItem, type StaleIssue, StatsGrid, type StatsGridMolecule, type StatusDetails, StepWizard, type StepWizardMolecule, Switch, SwitchAtom, type SwitchAtomType, Table, TableAtom, type TableAtomType, TableBody, TableCaption, TableCell, TableHead, TableHeader, TableRow, Tabs, TabsAtom, type TabsAtomType, TabsContent, TabsList, TabsTrigger, TagCloud, type TagCloudMolecule, TextAtom, type TextAtomType, type TextVariant, Textarea, TextareaAtom, TimelineAtom, type TimelineAtomType, TimelineCard, type TimelineCardMolecule, type TimelineCardProps, type TimelineStep, type TimelineStepStatus, ToggleAtom, type ToggleAtomType, Tooltip, TooltipAtom, type TooltipAtomType, TooltipContent, TooltipProvider, TooltipTrigger, TopPostsGrid, type TopPostsGridMolecule, type UIAtom, type UIComponent, type UIMolecule, type UISchema, VideoAtom, type VideoAtomType, type WidgetTheme, cn, defaultFetchSelections, defaultPersistSelection, elementToQAField, formatQAMessage, generateFieldsFromData, generateFieldsFromPropDefinitions, isInputAtom, submitWidgetToAgent, th, useCreatorWidgetPolling, withAlpha };
package/dist/index.d.ts CHANGED
@@ -3163,11 +3163,6 @@ declare const PresentationJobCard: React__default.FC<PresentationJobCardProps>;
3163
3163
  /**
3164
3164
  * Type definitions for ResearchReportJobCard component.
3165
3165
  */
3166
- interface ReportFormats {
3167
- pdf_url?: string;
3168
- html_url?: string;
3169
- markdown_url?: string;
3170
- }
3171
3166
  interface ReportTheme {
3172
3167
  primary?: string;
3173
3168
  secondary?: string;
@@ -3194,8 +3189,8 @@ interface ResearchReportJobCardProps {
3194
3189
  executive_summary?: string;
3195
3190
  /** Key findings (first 5) */
3196
3191
  key_findings?: string[];
3197
- /** Download URLs for various formats */
3198
- formats?: ReportFormats;
3192
+ /** HTML report URL */
3193
+ html_url?: string;
3199
3194
  /** Dynamic theme colors generated based on topic */
3200
3195
  theme?: ReportTheme;
3201
3196
  /** Error message if job failed */
@@ -3221,7 +3216,7 @@ interface ResearchReportJobOutput {
3221
3216
  executive_summary?: string;
3222
3217
  key_findings?: string[];
3223
3218
  theme?: ReportTheme;
3224
- formats: ReportFormats;
3219
+ html_url?: string;
3225
3220
  }
3226
3221
 
3227
3222
  declare const ResearchReportJobCard: React__default.FC<ResearchReportJobCardProps>;
@@ -3705,4 +3700,4 @@ declare function CreatorImageList({ creatorImages, creatorLength, isAgentOutput,
3705
3700
 
3706
3701
  declare function CreatorProgressBar({ statusDetails, timeRemaining: _timeRemaining, }: CreatorProgressBarProps): react_jsx_runtime.JSX.Element;
3707
3702
 
3708
- export { Accordion, AccordionAtom, type AccordionAtomType, AccordionContent, AccordionItem, AccordionTrigger, ActionButton, type ActionButtonAtom, type ActionButtonProps, type ActionPriority, ActionPriorityCard, type ActionPriorityCardMolecule, type ActionPriorityCardProps, type ActionPriorityItem, Alert, AlertAtom, type AlertAtomType, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogAtom, type AlertDialogAtomType, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, AlertTitle, ApprovalCard, type ApprovalCardMolecule, type ApprovalCardProps, type ApprovalDetail, type ApprovalStatus, ArrowToggleAtom, type ArrowToggleAtomType, AspectRatio, AspectRatioAtom, type AspectRatioAtomType, AudienceDemographicsCard, type AudienceDemographicsCardMolecule, AudienceMetricCard, type AudienceMetricCardMolecule, AudiencePersonaCard, type AudiencePersonaCardMolecule, type AudiencePersonaCardProps, Avatar, AvatarAtom, type AvatarAtomType, AvatarFallback, AvatarImage, Badge, BadgeAtom, type BadgeAtomType, type BaseAtom, type BaseMolecule, type BranchCI, BrandAffinityGroup, type BrandAffinityGroupMolecule, Breadcrumb, BreadcrumbAtom, type BreadcrumbAtomType, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, BudgetAllocCard, type BudgetAllocCardProps, type BudgetAllocItem, Button, type ButtonAction, ButtonAtom, type ButtonAtomType, type ButtonSize$1 as ButtonSize, type ButtonVariant$1 as ButtonVariant, Calendar, CalendarAtom, type CalendarAtomType, type CalendarEventAttendee, CalendarEventCard, type CalendarEventCardProps, type CalendarEventStatus, CampaignBriefCard, type CampaignBriefCardMolecule, type CampaignBriefCardProps, CampaignConceptCard, type CampaignConceptCardProps, CampaignSeedCard, type CampaignSeedCardAtom, type CampaignSeedCardProps, Card, CardAtom, type CardAtomType, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselAtom, type CarouselAtomType, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChannelPlanCard, type ChannelPlanCardMolecule, type ChannelPlanCardProps, type ChannelPlanItem, ChartAtom, type ChartAtomType, type ChartDataPoint, Checkbox, CheckboxAtom, type CheckboxAtomType, ChecklistCard, type ChecklistCardMolecule, type ChecklistCardProps, type ChecklistItem, Collapsible, CollapsibleAtom, type CollapsibleAtomType, CollapsibleContent, CollapsibleTrigger, type CollectedField, Command, CommandAtom, type CommandAtomType, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, type ComparisonAttribute, ComparisonCard, type ComparisonCardProps, type ComparisonOption, ConfirmationCard, type ConfirmationCardMolecule, type ConfirmationCardProps, ContentPreviewGallery, type ContentPreviewGalleryMolecule, ContextMenu, ContextMenuAtom, type ContextMenuAtomType, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuItem, ContextMenuLabel, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuTrigger, CountrySelectDisplay, CountrySelectEdit, CreatorActionHeader, type CreatorActionHeaderMolecule, CreatorCompactView, type CreatorCompactViewProps, type CreatorDetailData, CreatorExpandedPanel, CreatorGridCard, type CreatorGridCardMolecule, CreatorImageList, type CreatorImageListProps, CreatorProfileSummary, type CreatorProfileSummaryMolecule, CreatorProgressBar, type CreatorProgressBarProps, CreatorSearch, type CreatorSearchProps, type CreatorVersionData, CreatorWidget, type CreatorWidgetAction, type CreatorWidgetMolecule, type CreatorWidgetProps, CreatorWidgetSkeleton, type CreatorWidgetStatus, DataGrid, type DataGridMolecule, DataSourceChecklistCard, type DataSourceChecklistCardMolecule, type DataSourceChecklistCardProps, type DataSourceItem, DataTableCard, type DataTableCardMolecule, type DataTableCardProps, Dialog, DialogAtom, type DialogAtomType, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, Drawer, DrawerAtom, type DrawerAtomType, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuAtom, type DropdownMenuAtomType, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuTrigger, DynamicFormCard, type DynamicFormCardMolecule, type DynamicFormCardProps, EditableField, type EditableFieldProps, EmptyState, type EmptyStateMolecule, FeedbackRatingCard, type FeedbackRatingCardMolecule, type FeedbackRatingCardProps, type FetchCreatorDetailsParams, type FetchStatusParams, type FetchVersionsParams, FileUpload, type FileUploadMolecule, FilterBar, type FilterBarMolecule, Form, FormCard, type FormCardProps, FormControl, FormDescription, FormField, FormInputAtom, type FormInputAtomType, FormItem, FormLabel, FormMessage, FormSelectAtom, type FormSelectAtomType, FormTextareaAtom, type FormTextareaAtomType, type GapSize, GitHubConnectCard, type GitHubConnectCardProps, type GitHubConnectMolecule, GitHubIssueTrackerCard, type GitHubIssueTrackerCardProps, type GitHubIssueTrackerMolecule, GitHubRepoHealthCard, type GitHubRepoHealthCardProps, type GitHubRepoHealthMolecule, GitHubReposListCard, type GitHubReposListCardProps, GoalAlignmentCard, type GoalAlignmentCardMolecule, type GoalAlignmentCardProps, type GoalAlignmentItem, GoogleSheetsCard, type GoogleSheetsCardProps, GoogleSheetsConnectCard, type GoogleSheetsConnectCardProps, GoogleSheetsListCard, type GoogleSheetsListCardProps, GrowthChartCard, type GrowthChartCardMolecule, HoverCard, HoverCardContent, HoverCardTrigger, IconAtom, type IconAtomType, type IconName, Input, InputAtom, type InputAtomType, type InputElementLike, InputOTP, InputOTPAtom, type InputOTPAtomType, InputOTPGroup, InputOTPSeparator, InputOTPSlot, type InputType, InputWidget, type InputWidgetField, type InputWidgetFieldKind, type InputWidgetType, InsightDigestCard, type InsightDigestCardMolecule, type InsightDigestCardProps, type InsightDigestItem, InsightSummaryCard, type InsightSummaryCardMolecule, type InsightSummaryCardProps, type InsightSummaryItem, type KPIStatItem, KPIStatsCard, type KPIStatsCardMolecule, type KPIStatsCardProps, KbdAtom, type KbdAtomType, KeywordBundlesDisplay, KeywordBundlesEdit, Label, LabelAtom, type LabelAtomType, LayoutAtom, type LayoutAtomType, type LayoutDirection, LoadingOverlay, type LoadingOverlayMolecule, MCQCard, type MCQCardAtom, type MCQCardProps, type MCQOption, Menubar, MenubarCheckboxItem, MenubarContent, MenubarItem, MenubarLabel, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarTrigger, NavigationMenu, NavigationMenuContent, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NextStepCard, type NextStepCardMolecule, type NextStepCardProps, type NextStepItem, NotificationList, type NotificationListMolecule, PXEngineRenderer, Pagination, PaginationAtom, type PaginationAtomType, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type PersonaSegment, PlatformIconGroup, type PlatformIconGroupMolecule, PlatformSelectDisplay, PlatformSelectEdit, PollCard, type PollCardMolecule, type PollCardProps, type PollOption, type PollingConfig, Popover, PopoverAtom, type PopoverAtomType, PopoverContent, PopoverTrigger, type PresentationFormats, PresentationJobCard, type PresentationJobCardProps, type PriorityActionItem, PriorityActionsCard, type PriorityActionsCardMolecule, type PriorityActionsCardProps, Progress, ProgressAtom, type ProgressAtomType, type PullRequest, REGISTERED_COMPONENTS, RadioAtom, type RadioAtomType, RadioGroup, RadioGroupAtom, type RadioGroupAtomType, RadioGroupItem, RatingAtom, type RatingAtomType, RecommendationCard, type RecommendationCardMolecule, type RecommendationCardProps, type RepoItem, type ReportFormats, type ReportTheme, ResearchBriefCard, type ResearchBriefCardMolecule, type ResearchBriefCardProps, type ResearchBriefItem, ResearchReportJobCard, type ResearchReportJobCardProps, type ResearchReportJobOutput, ResizableAtom, type ResizableAtomType, ResizablePanel, ResizablePanelGroup, RiskSignalCard, type RiskSignalCardMolecule, type RiskSignalCardProps, type RiskSignalItem, type RunSseConfig, ScoreBreakdownCard, type ScoreBreakdownCardMolecule, type ScoreBreakdownCardProps, type ScoreBreakdownItem, ScrollArea, ScrollAreaAtom, type ScrollAreaAtomType, ScrollBar, SearchSpecCard, type SearchSpecCardAtom, type SearchSpecCardProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, type SelectOption, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, SeparatorAtom, type SeparatorAtomType, Sheet, SheetAtom, type SheetAtomType, SheetClose, type SheetColumn, SheetContent, SheetDescription, SheetFooter, SheetHeader, type SheetRow, type SheetTabItem, SheetTitle, SheetTrigger, Skeleton, SkeletonAtom, type SkeletonAtomType, Slider, SliderAtom, type SliderAtomType, type SocialPost, SocialPostCard, type SocialPostCardProps, type SocialPostMolecule, Spinner, SpinnerAtom, type SpinnerAtomType, type SpreadsheetItem, type StaleIssue, StatsGrid, type StatsGridMolecule, type StatusDetails, StepWizard, type StepWizardMolecule, Switch, SwitchAtom, type SwitchAtomType, Table, TableAtom, type TableAtomType, TableBody, TableCaption, TableCell, TableHead, TableHeader, TableRow, Tabs, TabsAtom, type TabsAtomType, TabsContent, TabsList, TabsTrigger, TagCloud, type TagCloudMolecule, TextAtom, type TextAtomType, type TextVariant, Textarea, TextareaAtom, TimelineAtom, type TimelineAtomType, TimelineCard, type TimelineCardMolecule, type TimelineCardProps, type TimelineStep, type TimelineStepStatus, ToggleAtom, type ToggleAtomType, Tooltip, TooltipAtom, type TooltipAtomType, TooltipContent, TooltipProvider, TooltipTrigger, TopPostsGrid, type TopPostsGridMolecule, type UIAtom, type UIComponent, type UIMolecule, type UISchema, VideoAtom, type VideoAtomType, type WidgetTheme, cn, defaultFetchSelections, defaultPersistSelection, elementToQAField, formatQAMessage, generateFieldsFromData, generateFieldsFromPropDefinitions, isInputAtom, submitWidgetToAgent, th, useCreatorWidgetPolling, withAlpha };
3703
+ export { Accordion, AccordionAtom, type AccordionAtomType, AccordionContent, AccordionItem, AccordionTrigger, ActionButton, type ActionButtonAtom, type ActionButtonProps, type ActionPriority, ActionPriorityCard, type ActionPriorityCardMolecule, type ActionPriorityCardProps, type ActionPriorityItem, Alert, AlertAtom, type AlertAtomType, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogAtom, type AlertDialogAtomType, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, AlertTitle, ApprovalCard, type ApprovalCardMolecule, type ApprovalCardProps, type ApprovalDetail, type ApprovalStatus, ArrowToggleAtom, type ArrowToggleAtomType, AspectRatio, AspectRatioAtom, type AspectRatioAtomType, AudienceDemographicsCard, type AudienceDemographicsCardMolecule, AudienceMetricCard, type AudienceMetricCardMolecule, AudiencePersonaCard, type AudiencePersonaCardMolecule, type AudiencePersonaCardProps, Avatar, AvatarAtom, type AvatarAtomType, AvatarFallback, AvatarImage, Badge, BadgeAtom, type BadgeAtomType, type BaseAtom, type BaseMolecule, type BranchCI, BrandAffinityGroup, type BrandAffinityGroupMolecule, Breadcrumb, BreadcrumbAtom, type BreadcrumbAtomType, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, BudgetAllocCard, type BudgetAllocCardProps, type BudgetAllocItem, Button, type ButtonAction, ButtonAtom, type ButtonAtomType, type ButtonSize$1 as ButtonSize, type ButtonVariant$1 as ButtonVariant, Calendar, CalendarAtom, type CalendarAtomType, type CalendarEventAttendee, CalendarEventCard, type CalendarEventCardProps, type CalendarEventStatus, CampaignBriefCard, type CampaignBriefCardMolecule, type CampaignBriefCardProps, CampaignConceptCard, type CampaignConceptCardProps, CampaignSeedCard, type CampaignSeedCardAtom, type CampaignSeedCardProps, Card, CardAtom, type CardAtomType, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselAtom, type CarouselAtomType, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChannelPlanCard, type ChannelPlanCardMolecule, type ChannelPlanCardProps, type ChannelPlanItem, ChartAtom, type ChartAtomType, type ChartDataPoint, Checkbox, CheckboxAtom, type CheckboxAtomType, ChecklistCard, type ChecklistCardMolecule, type ChecklistCardProps, type ChecklistItem, Collapsible, CollapsibleAtom, type CollapsibleAtomType, CollapsibleContent, CollapsibleTrigger, type CollectedField, Command, CommandAtom, type CommandAtomType, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, type ComparisonAttribute, ComparisonCard, type ComparisonCardProps, type ComparisonOption, ConfirmationCard, type ConfirmationCardMolecule, type ConfirmationCardProps, ContentPreviewGallery, type ContentPreviewGalleryMolecule, ContextMenu, ContextMenuAtom, type ContextMenuAtomType, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuItem, ContextMenuLabel, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuTrigger, CountrySelectDisplay, CountrySelectEdit, CreatorActionHeader, type CreatorActionHeaderMolecule, CreatorCompactView, type CreatorCompactViewProps, type CreatorDetailData, CreatorExpandedPanel, CreatorGridCard, type CreatorGridCardMolecule, CreatorImageList, type CreatorImageListProps, CreatorProfileSummary, type CreatorProfileSummaryMolecule, CreatorProgressBar, type CreatorProgressBarProps, CreatorSearch, type CreatorSearchProps, type CreatorVersionData, CreatorWidget, type CreatorWidgetAction, type CreatorWidgetMolecule, type CreatorWidgetProps, CreatorWidgetSkeleton, type CreatorWidgetStatus, DataGrid, type DataGridMolecule, DataSourceChecklistCard, type DataSourceChecklistCardMolecule, type DataSourceChecklistCardProps, type DataSourceItem, DataTableCard, type DataTableCardMolecule, type DataTableCardProps, Dialog, DialogAtom, type DialogAtomType, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, Drawer, DrawerAtom, type DrawerAtomType, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuAtom, type DropdownMenuAtomType, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuTrigger, DynamicFormCard, type DynamicFormCardMolecule, type DynamicFormCardProps, EditableField, type EditableFieldProps, EmptyState, type EmptyStateMolecule, FeedbackRatingCard, type FeedbackRatingCardMolecule, type FeedbackRatingCardProps, type FetchCreatorDetailsParams, type FetchStatusParams, type FetchVersionsParams, FileUpload, type FileUploadMolecule, FilterBar, type FilterBarMolecule, Form, FormCard, type FormCardProps, FormControl, FormDescription, FormField, FormInputAtom, type FormInputAtomType, FormItem, FormLabel, FormMessage, FormSelectAtom, type FormSelectAtomType, FormTextareaAtom, type FormTextareaAtomType, type GapSize, GitHubConnectCard, type GitHubConnectCardProps, type GitHubConnectMolecule, GitHubIssueTrackerCard, type GitHubIssueTrackerCardProps, type GitHubIssueTrackerMolecule, GitHubRepoHealthCard, type GitHubRepoHealthCardProps, type GitHubRepoHealthMolecule, GitHubReposListCard, type GitHubReposListCardProps, GoalAlignmentCard, type GoalAlignmentCardMolecule, type GoalAlignmentCardProps, type GoalAlignmentItem, GoogleSheetsCard, type GoogleSheetsCardProps, GoogleSheetsConnectCard, type GoogleSheetsConnectCardProps, GoogleSheetsListCard, type GoogleSheetsListCardProps, GrowthChartCard, type GrowthChartCardMolecule, HoverCard, HoverCardContent, HoverCardTrigger, IconAtom, type IconAtomType, type IconName, Input, InputAtom, type InputAtomType, type InputElementLike, InputOTP, InputOTPAtom, type InputOTPAtomType, InputOTPGroup, InputOTPSeparator, InputOTPSlot, type InputType, InputWidget, type InputWidgetField, type InputWidgetFieldKind, type InputWidgetType, InsightDigestCard, type InsightDigestCardMolecule, type InsightDigestCardProps, type InsightDigestItem, InsightSummaryCard, type InsightSummaryCardMolecule, type InsightSummaryCardProps, type InsightSummaryItem, type KPIStatItem, KPIStatsCard, type KPIStatsCardMolecule, type KPIStatsCardProps, KbdAtom, type KbdAtomType, KeywordBundlesDisplay, KeywordBundlesEdit, Label, LabelAtom, type LabelAtomType, LayoutAtom, type LayoutAtomType, type LayoutDirection, LoadingOverlay, type LoadingOverlayMolecule, MCQCard, type MCQCardAtom, type MCQCardProps, type MCQOption, Menubar, MenubarCheckboxItem, MenubarContent, MenubarItem, MenubarLabel, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarTrigger, NavigationMenu, NavigationMenuContent, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NextStepCard, type NextStepCardMolecule, type NextStepCardProps, type NextStepItem, NotificationList, type NotificationListMolecule, PXEngineRenderer, Pagination, PaginationAtom, type PaginationAtomType, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type PersonaSegment, PlatformIconGroup, type PlatformIconGroupMolecule, PlatformSelectDisplay, PlatformSelectEdit, PollCard, type PollCardMolecule, type PollCardProps, type PollOption, type PollingConfig, Popover, PopoverAtom, type PopoverAtomType, PopoverContent, PopoverTrigger, type PresentationFormats, PresentationJobCard, type PresentationJobCardProps, type PriorityActionItem, PriorityActionsCard, type PriorityActionsCardMolecule, type PriorityActionsCardProps, Progress, ProgressAtom, type ProgressAtomType, type PullRequest, REGISTERED_COMPONENTS, RadioAtom, type RadioAtomType, RadioGroup, RadioGroupAtom, type RadioGroupAtomType, RadioGroupItem, RatingAtom, type RatingAtomType, RecommendationCard, type RecommendationCardMolecule, type RecommendationCardProps, type RepoItem, type ReportTheme, ResearchBriefCard, type ResearchBriefCardMolecule, type ResearchBriefCardProps, type ResearchBriefItem, ResearchReportJobCard, type ResearchReportJobCardProps, type ResearchReportJobOutput, ResizableAtom, type ResizableAtomType, ResizablePanel, ResizablePanelGroup, RiskSignalCard, type RiskSignalCardMolecule, type RiskSignalCardProps, type RiskSignalItem, type RunSseConfig, ScoreBreakdownCard, type ScoreBreakdownCardMolecule, type ScoreBreakdownCardProps, type ScoreBreakdownItem, ScrollArea, ScrollAreaAtom, type ScrollAreaAtomType, ScrollBar, SearchSpecCard, type SearchSpecCardAtom, type SearchSpecCardProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, type SelectOption, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, SeparatorAtom, type SeparatorAtomType, Sheet, SheetAtom, type SheetAtomType, SheetClose, type SheetColumn, SheetContent, SheetDescription, SheetFooter, SheetHeader, type SheetRow, type SheetTabItem, SheetTitle, SheetTrigger, Skeleton, SkeletonAtom, type SkeletonAtomType, Slider, SliderAtom, type SliderAtomType, type SocialPost, SocialPostCard, type SocialPostCardProps, type SocialPostMolecule, Spinner, SpinnerAtom, type SpinnerAtomType, type SpreadsheetItem, type StaleIssue, StatsGrid, type StatsGridMolecule, type StatusDetails, StepWizard, type StepWizardMolecule, Switch, SwitchAtom, type SwitchAtomType, Table, TableAtom, type TableAtomType, TableBody, TableCaption, TableCell, TableHead, TableHeader, TableRow, Tabs, TabsAtom, type TabsAtomType, TabsContent, TabsList, TabsTrigger, TagCloud, type TagCloudMolecule, TextAtom, type TextAtomType, type TextVariant, Textarea, TextareaAtom, TimelineAtom, type TimelineAtomType, TimelineCard, type TimelineCardMolecule, type TimelineCardProps, type TimelineStep, type TimelineStepStatus, ToggleAtom, type ToggleAtomType, Tooltip, TooltipAtom, type TooltipAtomType, TooltipContent, TooltipProvider, TooltipTrigger, TopPostsGrid, type TopPostsGridMolecule, type UIAtom, type UIComponent, type UIMolecule, type UISchema, VideoAtom, type VideoAtomType, type WidgetTheme, cn, defaultFetchSelections, defaultPersistSelection, elementToQAField, formatQAMessage, generateFieldsFromData, generateFieldsFromPropDefinitions, isInputAtom, submitWidgetToAgent, th, useCreatorWidgetPolling, withAlpha };
package/dist/index.mjs CHANGED
@@ -38772,8 +38772,9 @@ var ExportModal = ({ formats, title, onClose }) => {
38772
38772
  ] })
38773
38773
  ] });
38774
38774
  };
38775
- var FullscreenModal = ({ url, title, slideCount, onClose }) => {
38776
- const [currentSlide, setCurrentSlide] = useState10(1);
38775
+ var FullscreenModal = ({ url, title, slideCount, initialSlide = 1, onClose }) => {
38776
+ const [currentSlide, setCurrentSlide] = useState10(initialSlide);
38777
+ const [iframeReady, setIframeReady] = useState10(false);
38777
38778
  const iframeRef = useRef5(null);
38778
38779
  useEffect6(() => {
38779
38780
  const onKey = (e) => {
@@ -38781,7 +38782,10 @@ var FullscreenModal = ({ url, title, slideCount, onClose }) => {
38781
38782
  };
38782
38783
  const onMsg = (e) => {
38783
38784
  if (e.data?.type === "presentationExit") onClose();
38784
- if (e.data?.type === "slideChanged") setCurrentSlide(e.data.slide);
38785
+ if (e.data?.type === "slideChanged") {
38786
+ setCurrentSlide(e.data.slide);
38787
+ if (!iframeReady) setIframeReady(true);
38788
+ }
38785
38789
  };
38786
38790
  document.addEventListener("keydown", onKey);
38787
38791
  window.addEventListener("message", onMsg);
@@ -38789,14 +38793,26 @@ var FullscreenModal = ({ url, title, slideCount, onClose }) => {
38789
38793
  document.removeEventListener("keydown", onKey);
38790
38794
  window.removeEventListener("message", onMsg);
38791
38795
  };
38792
- }, [onClose]);
38796
+ }, [onClose, iframeReady]);
38793
38797
  useEffect6(() => {
38794
38798
  document.body.style.overflow = "hidden";
38795
38799
  return () => {
38796
38800
  document.body.style.overflow = "";
38797
38801
  };
38798
38802
  }, []);
38799
- const send = (type) => iframeRef.current?.contentWindow?.postMessage({ type }, "*");
38803
+ const sendSlideCommand = (command) => {
38804
+ const iframe = iframeRef.current;
38805
+ if (!iframe?.contentWindow) return;
38806
+ const totalSlides = slideCount || 1;
38807
+ let newSlide = currentSlide;
38808
+ if (command === "nextSlide") {
38809
+ newSlide = currentSlide >= totalSlides ? 1 : currentSlide + 1;
38810
+ } else {
38811
+ newSlide = currentSlide <= 1 ? totalSlides : currentSlide - 1;
38812
+ }
38813
+ setCurrentSlide(newSlide);
38814
+ iframe.contentWindow.postMessage({ type: command }, "*");
38815
+ };
38800
38816
  return /* @__PURE__ */ jsxs108("div", { className: "fixed inset-0 z-50 bg-black flex flex-col", children: [
38801
38817
  /* @__PURE__ */ jsxs108("div", { className: "flex items-center justify-between gap-4 px-4 h-11 bg-zinc-950/90 border-b border-zinc-800/60 flex-shrink-0", children: [
38802
38818
  /* @__PURE__ */ jsxs108("div", { className: "flex items-center gap-3 min-w-0", children: [
@@ -38812,8 +38828,9 @@ var FullscreenModal = ({ url, title, slideCount, onClose }) => {
38812
38828
  /* @__PURE__ */ jsx147(
38813
38829
  "button",
38814
38830
  {
38815
- onClick: () => send("prevSlide"),
38816
- className: "w-7 h-7 rounded-full border border-zinc-700 bg-zinc-800 hover:border-indigo-500 hover:text-indigo-400 text-zinc-400 flex items-center justify-center transition-colors",
38831
+ onClick: () => sendSlideCommand("prevSlide"),
38832
+ disabled: !iframeReady,
38833
+ className: "w-7 h-7 rounded-full border border-zinc-700 bg-zinc-800 hover:border-indigo-500 hover:text-indigo-400 text-zinc-400 flex items-center justify-center transition-colors disabled:opacity-30 disabled:cursor-not-allowed",
38817
38834
  "aria-label": "Previous slide",
38818
38835
  children: /* @__PURE__ */ jsx147(ChevronLeft2, {})
38819
38836
  }
@@ -38821,8 +38838,9 @@ var FullscreenModal = ({ url, title, slideCount, onClose }) => {
38821
38838
  /* @__PURE__ */ jsx147(
38822
38839
  "button",
38823
38840
  {
38824
- onClick: () => send("nextSlide"),
38825
- className: "w-7 h-7 rounded-full border border-zinc-700 bg-zinc-800 hover:border-indigo-500 hover:text-indigo-400 text-zinc-400 flex items-center justify-center transition-colors",
38841
+ onClick: () => sendSlideCommand("nextSlide"),
38842
+ disabled: !iframeReady,
38843
+ className: "w-7 h-7 rounded-full border border-zinc-700 bg-zinc-800 hover:border-indigo-500 hover:text-indigo-400 text-zinc-400 flex items-center justify-center transition-colors disabled:opacity-30 disabled:cursor-not-allowed",
38826
38844
  "aria-label": "Next slide",
38827
38845
  children: /* @__PURE__ */ jsx147(ChevronRight2, {})
38828
38846
  }
@@ -38846,7 +38864,10 @@ var FullscreenModal = ({ url, title, slideCount, onClose }) => {
38846
38864
  ref: iframeRef,
38847
38865
  src: url,
38848
38866
  title,
38849
- onLoad: () => iframeRef.current?.contentWindow?.postMessage({ type: "goToSlide", slide: currentSlide }, "*"),
38867
+ onLoad: () => {
38868
+ setIframeReady(true);
38869
+ iframeRef.current?.contentWindow?.postMessage({ type: "goToSlide", slide: initialSlide }, "*");
38870
+ },
38850
38871
  sandbox: "allow-same-origin allow-scripts allow-fullscreen",
38851
38872
  className: "absolute inset-0 w-full h-full border-0"
38852
38873
  }
@@ -38877,6 +38898,7 @@ var PresentationJobCard = ({
38877
38898
  const [copied, setCopied] = useState10(false);
38878
38899
  const [currentSlide, setCurrentSlide] = useState10(1);
38879
38900
  const [previewScale, setPreviewScale] = useState10(1);
38901
+ const [iframeReady, setIframeReady] = useState10(false);
38880
38902
  const intervalRef = useRef5(null);
38881
38903
  const previewRef = useRef5(null);
38882
38904
  const iframeRef = useRef5(null);
@@ -38885,6 +38907,7 @@ var PresentationJobCard = ({
38885
38907
  }, []);
38886
38908
  useEffect6(() => {
38887
38909
  updateScale();
38910
+ setIframeReady(false);
38888
38911
  if (typeof ResizeObserver === "undefined") return;
38889
38912
  const ro = new ResizeObserver(updateScale);
38890
38913
  if (previewRef.current) ro.observe(previewRef.current);
@@ -38895,13 +38918,24 @@ var PresentationJobCard = ({
38895
38918
  if (e.data?.type === "slideChanged") {
38896
38919
  setCurrentSlide(e.data.slide);
38897
38920
  if (e.data.total && !slideCount) setSlideCount(e.data.total);
38921
+ if (!iframeReady) setIframeReady(true);
38898
38922
  }
38899
38923
  };
38900
38924
  window.addEventListener("message", handler);
38901
38925
  return () => window.removeEventListener("message", handler);
38902
- }, [slideCount]);
38926
+ }, [slideCount, iframeReady]);
38903
38927
  const sendSlideCommand = (command) => {
38904
- iframeRef.current?.contentWindow?.postMessage({ type: command }, "*");
38928
+ const iframe = iframeRef.current;
38929
+ if (!iframe?.contentWindow) return;
38930
+ const totalSlides = slideCount || 1;
38931
+ let newSlide = currentSlide;
38932
+ if (command === "nextSlide") {
38933
+ newSlide = currentSlide >= totalSlides ? 1 : currentSlide + 1;
38934
+ } else {
38935
+ newSlide = currentSlide <= 1 ? totalSlides : currentSlide - 1;
38936
+ }
38937
+ setCurrentSlide(newSlide);
38938
+ iframe.contentWindow.postMessage({ type: command }, "*");
38905
38939
  };
38906
38940
  const isTerminal = status === "complete" || status === "failed";
38907
38941
  const onCompleteRef = useRef5(onComplete);
@@ -39064,6 +39098,7 @@ var PresentationJobCard = ({
39064
39098
  src: formats.html_url,
39065
39099
  title,
39066
39100
  sandbox: "allow-same-origin allow-scripts",
39101
+ onLoad: () => setIframeReady(true),
39067
39102
  style: {
39068
39103
  width: 1280,
39069
39104
  height: 720,
@@ -39090,7 +39125,7 @@ var PresentationJobCard = ({
39090
39125
  e.stopPropagation();
39091
39126
  sendSlideCommand("prevSlide");
39092
39127
  },
39093
- disabled: !hasHtml,
39128
+ disabled: !hasHtml || !iframeReady,
39094
39129
  className: "w-7 h-7 rounded-full border border-zinc-700 bg-zinc-800 hover:border-indigo-500 hover:text-indigo-400 text-zinc-400 flex items-center justify-center transition-colors disabled:opacity-30 disabled:cursor-not-allowed",
39095
39130
  "aria-label": "Previous slide",
39096
39131
  children: /* @__PURE__ */ jsx147(ChevronLeft2, {})
@@ -39108,7 +39143,7 @@ var PresentationJobCard = ({
39108
39143
  e.stopPropagation();
39109
39144
  sendSlideCommand("nextSlide");
39110
39145
  },
39111
- disabled: !hasHtml,
39146
+ disabled: !hasHtml || !iframeReady,
39112
39147
  className: "w-7 h-7 rounded-full border border-zinc-700 bg-zinc-800 hover:border-indigo-500 hover:text-indigo-400 text-zinc-400 flex items-center justify-center transition-colors disabled:opacity-30 disabled:cursor-not-allowed",
39113
39148
  "aria-label": "Next slide",
39114
39149
  children: /* @__PURE__ */ jsx147(ChevronRight2, {})
@@ -39125,6 +39160,7 @@ var PresentationJobCard = ({
39125
39160
  url: formats.html_url,
39126
39161
  title,
39127
39162
  slideCount,
39163
+ initialSlide: currentSlide,
39128
39164
  onClose: () => setShowFullscreen(false)
39129
39165
  }
39130
39166
  )
@@ -39161,94 +39197,6 @@ var ExpandIcon2 = () => /* @__PURE__ */ jsxs109("svg", { width: "14", height: "1
39161
39197
  /* @__PURE__ */ jsx148("line", { x1: "21", y1: "3", x2: "14", y2: "10" }),
39162
39198
  /* @__PURE__ */ jsx148("line", { x1: "3", y1: "21", x2: "10", y2: "14" })
39163
39199
  ] });
39164
- var FORMATS2 = [
39165
- {
39166
- key: "pdf_url",
39167
- label: "PDF",
39168
- ext: ".pdf",
39169
- emoji: "\u{1F4C4}",
39170
- desc: "Professional formatted report \u2014 open in any PDF viewer",
39171
- accent: { text: "text-red-400", bg: "bg-red-500/10 border-red-500/20" }
39172
- },
39173
- {
39174
- key: "html_url",
39175
- label: "HTML",
39176
- ext: ".html",
39177
- emoji: "\u{1F310}",
39178
- desc: "Interactive web version \u2014 open in any browser",
39179
- accent: { text: "text-blue-400", bg: "bg-blue-500/10 border-blue-500/20" }
39180
- }
39181
- ];
39182
- var ExportModal2 = ({ formats, title, onClose }) => {
39183
- const available = FORMATS2.filter((f) => formats[f.key]);
39184
- const filename = title.replace(/[^a-z0-9]/gi, "-").toLowerCase();
39185
- const [downloadingKey, setDownloadingKey] = useState11(null);
39186
- const handleDownload = async (fmtKey, url, ext) => {
39187
- if (downloadingKey) return;
39188
- const downloadName = `${filename}${ext}`;
39189
- const href = `/api/download?url=${encodeURIComponent(url)}&filename=${encodeURIComponent(downloadName)}`;
39190
- try {
39191
- setDownloadingKey(fmtKey);
39192
- const response = await fetch(href);
39193
- if (!response.ok) throw new Error(`status ${response.status}`);
39194
- const blob = await response.blob();
39195
- const objectUrl = window.URL.createObjectURL(blob);
39196
- const anchor = document.createElement("a");
39197
- anchor.href = objectUrl;
39198
- anchor.download = downloadName;
39199
- document.body.appendChild(anchor);
39200
- anchor.click();
39201
- anchor.remove();
39202
- window.URL.revokeObjectURL(objectUrl);
39203
- } catch {
39204
- window.open(href, "_blank", "noopener,noreferrer");
39205
- } finally {
39206
- setDownloadingKey(null);
39207
- }
39208
- };
39209
- return /* @__PURE__ */ jsxs109("div", { className: "fixed inset-0 z-50 flex items-center justify-center p-4", children: [
39210
- /* @__PURE__ */ jsx148("div", { className: "absolute inset-0 bg-black/70 backdrop-blur-sm", onClick: onClose }),
39211
- /* @__PURE__ */ jsxs109("div", { className: "relative z-10 bg-zinc-900 border border-zinc-800 rounded-2xl w-full max-w-sm p-6 shadow-2xl", children: [
39212
- /* @__PURE__ */ jsxs109("div", { className: "flex items-start justify-between mb-5", children: [
39213
- /* @__PURE__ */ jsxs109("div", { className: "min-w-0 pr-3", children: [
39214
- /* @__PURE__ */ jsx148("h3", { className: "text-sm font-semibold text-zinc-100", children: "Download Report" }),
39215
- /* @__PURE__ */ jsx148("p", { className: "text-xs text-zinc-500 mt-0.5 truncate", children: title })
39216
- ] }),
39217
- /* @__PURE__ */ jsx148("button", { onClick: onClose, className: "text-zinc-500 hover:text-zinc-200 transition-colors flex-shrink-0 mt-0.5", children: /* @__PURE__ */ jsx148(CloseIcon2, {}) })
39218
- ] }),
39219
- /* @__PURE__ */ jsxs109("div", { className: "space-y-2.5", children: [
39220
- available.length === 0 && /* @__PURE__ */ jsx148("p", { className: "text-sm text-zinc-500 text-center py-6", children: "No formats available yet" }),
39221
- available.map((fmt) => {
39222
- const url = formats[fmt.key];
39223
- const isDownloading = downloadingKey === fmt.key;
39224
- return /* @__PURE__ */ jsxs109(
39225
- "button",
39226
- {
39227
- type: "button",
39228
- disabled: Boolean(downloadingKey),
39229
- onClick: () => handleDownload(fmt.key, url, fmt.ext),
39230
- className: cn(
39231
- "flex w-full items-center gap-3.5 p-3.5 rounded-xl border transition-all text-left",
39232
- "hover:brightness-110 disabled:opacity-60 disabled:cursor-not-allowed",
39233
- fmt.accent.bg
39234
- ),
39235
- children: [
39236
- /* @__PURE__ */ jsx148("span", { className: "text-xl flex-shrink-0", children: fmt.emoji }),
39237
- /* @__PURE__ */ jsxs109("div", { className: "flex-1 min-w-0", children: [
39238
- /* @__PURE__ */ jsx148("p", { className: cn("text-sm font-semibold", fmt.accent.text), children: isDownloading ? `Downloading ${fmt.label}...` : fmt.label }),
39239
- /* @__PURE__ */ jsx148("p", { className: "text-xs text-zinc-500 mt-0.5 leading-relaxed", children: isDownloading ? "Please wait while the file is being prepared." : fmt.desc })
39240
- ] }),
39241
- /* @__PURE__ */ jsx148("span", { className: cn("flex-shrink-0", fmt.accent.text), children: /* @__PURE__ */ jsx148(DownloadIcon2, {}) })
39242
- ]
39243
- },
39244
- fmt.key
39245
- );
39246
- })
39247
- ] }),
39248
- /* @__PURE__ */ jsx148("p", { className: "text-xs text-zinc-600 mt-4 text-center", children: "Download links expire in 7 days" })
39249
- ] })
39250
- ] });
39251
- };
39252
39200
  var FullscreenPreviewModal = ({ url, title, onClose }) => {
39253
39201
  useEffect7(() => {
39254
39202
  const onKey = (e) => {
@@ -39303,7 +39251,7 @@ var ResearchReportJobCard = ({
39303
39251
  word_count: initialWordCount,
39304
39252
  executive_summary: initialSummary,
39305
39253
  key_findings: _initialFindings,
39306
- formats: initialFormats = {},
39254
+ html_url: initialHtmlUrl,
39307
39255
  theme: initialTheme,
39308
39256
  error: initialError,
39309
39257
  pollUrl,
@@ -39319,10 +39267,9 @@ var ResearchReportJobCard = ({
39319
39267
  const [sourceCount, setSourceCount] = useState11(initialSourceCount ?? 0);
39320
39268
  const [wordCount, setWordCount] = useState11(initialWordCount ?? 0);
39321
39269
  const [summary, setSummary] = useState11(initialSummary || "");
39322
- const [formats, setFormats] = useState11(initialFormats);
39270
+ const [htmlUrl, setHtmlUrl] = useState11(initialHtmlUrl || "");
39323
39271
  const [theme, setTheme] = useState11(initialTheme || DEFAULT_THEME);
39324
39272
  const [error, setError] = useState11(initialError);
39325
- const [showExport, setShowExport] = useState11(false);
39326
39273
  const [showPreview, setShowPreview] = useState11(false);
39327
39274
  const [previewScale, setPreviewScale] = useState11(1);
39328
39275
  const previewRef = useRef6(null);
@@ -39332,9 +39279,39 @@ var ResearchReportJobCard = ({
39332
39279
  const hasNotifiedRef = useRef6(false);
39333
39280
  onCompleteRef.current = onComplete;
39334
39281
  onFailedRef.current = onFailed;
39282
+ useEffect7(() => {
39283
+ setStatus(initialStatus);
39284
+ }, [initialStatus]);
39285
+ useEffect7(() => {
39286
+ if (initialTitle) setTitle(initialTitle);
39287
+ }, [initialTitle]);
39288
+ useEffect7(() => {
39289
+ if (initialHtmlUrl) setHtmlUrl(initialHtmlUrl);
39290
+ }, [initialHtmlUrl]);
39291
+ useEffect7(() => {
39292
+ if (initialDepth) setDepth(initialDepth);
39293
+ }, [initialDepth]);
39294
+ useEffect7(() => {
39295
+ if (initialSectionCount !== void 0) setSectionCount(initialSectionCount);
39296
+ }, [initialSectionCount]);
39297
+ useEffect7(() => {
39298
+ if (initialSourceCount !== void 0) setSourceCount(initialSourceCount);
39299
+ }, [initialSourceCount]);
39300
+ useEffect7(() => {
39301
+ if (initialWordCount !== void 0) setWordCount(initialWordCount);
39302
+ }, [initialWordCount]);
39303
+ useEffect7(() => {
39304
+ if (initialSummary) setSummary(initialSummary);
39305
+ }, [initialSummary]);
39306
+ useEffect7(() => {
39307
+ if (initialTheme) setTheme(initialTheme);
39308
+ }, [initialTheme]);
39309
+ useEffect7(() => {
39310
+ if (initialError) setError(initialError);
39311
+ }, [initialError]);
39335
39312
  const isTerminal = status === "complete" || status === "failed";
39336
39313
  const primaryColor = theme?.primary || DEFAULT_THEME.primary;
39337
- const hasHTML = Boolean(formats.html_url);
39314
+ const hasHTML = Boolean(htmlUrl);
39338
39315
  const updateScale = useCallback5(() => {
39339
39316
  if (previewRef.current) {
39340
39317
  setPreviewScale(previewRef.current.offsetWidth / 800);
@@ -39346,7 +39323,7 @@ var ResearchReportJobCard = ({
39346
39323
  const ro = new ResizeObserver(updateScale);
39347
39324
  if (previewRef.current) ro.observe(previewRef.current);
39348
39325
  return () => ro.disconnect();
39349
- }, [updateScale, formats.html_url]);
39326
+ }, [updateScale, htmlUrl]);
39350
39327
  useEffect7(() => {
39351
39328
  if (isTerminal || !pollUrl) return;
39352
39329
  const poll = async () => {
@@ -39368,7 +39345,7 @@ var ResearchReportJobCard = ({
39368
39345
  setSourceCount(output.source_count || 0);
39369
39346
  setWordCount(output.word_count || 0);
39370
39347
  setSummary(output.executive_summary || "");
39371
- setFormats(output.formats || {});
39348
+ setHtmlUrl(output.html_url || "");
39372
39349
  if (output.theme) {
39373
39350
  setTheme(output.theme);
39374
39351
  }
@@ -39429,6 +39406,26 @@ var ResearchReportJobCard = ({
39429
39406
  ] })
39430
39407
  ] }) }) });
39431
39408
  }
39409
+ const handleDownload = async () => {
39410
+ if (!htmlUrl) return;
39411
+ const filename = `${title.replace(/[^a-z0-9]/gi, "-").toLowerCase()}.html`;
39412
+ const href = `/api/download?url=${encodeURIComponent(htmlUrl)}&filename=${encodeURIComponent(filename)}`;
39413
+ try {
39414
+ const response = await fetch(href);
39415
+ if (!response.ok) throw new Error(`status ${response.status}`);
39416
+ const blob = await response.blob();
39417
+ const objectUrl = window.URL.createObjectURL(blob);
39418
+ const anchor = document.createElement("a");
39419
+ anchor.href = objectUrl;
39420
+ anchor.download = filename;
39421
+ document.body.appendChild(anchor);
39422
+ anchor.click();
39423
+ anchor.remove();
39424
+ window.URL.revokeObjectURL(objectUrl);
39425
+ } catch {
39426
+ window.open(htmlUrl, "_blank", "noopener,noreferrer");
39427
+ }
39428
+ };
39432
39429
  return /* @__PURE__ */ jsxs109(Fragment6, { children: [
39433
39430
  /* @__PURE__ */ jsx148("div", { className: cn("w-full", className), children: /* @__PURE__ */ jsxs109("div", { className: "bg-zinc-900 border border-zinc-800 rounded-2xl overflow-hidden", children: [
39434
39431
  /* @__PURE__ */ jsx148(
@@ -39482,14 +39479,15 @@ var ResearchReportJobCard = ({
39482
39479
  /* @__PURE__ */ jsxs109(
39483
39480
  "button",
39484
39481
  {
39485
- onClick: () => setShowExport(true),
39486
- className: "flex items-center gap-1.5 px-2.5 h-7 text-white text-xs font-medium rounded-lg transition-colors",
39482
+ onClick: handleDownload,
39483
+ disabled: !hasHTML,
39484
+ className: "flex items-center gap-1.5 px-2.5 h-7 text-white text-xs font-medium rounded-lg transition-colors disabled:opacity-50 disabled:cursor-not-allowed",
39487
39485
  style: { backgroundColor: primaryColor },
39488
39486
  onMouseEnter: (e) => e.currentTarget.style.filter = "brightness(1.15)",
39489
39487
  onMouseLeave: (e) => e.currentTarget.style.filter = "brightness(1)",
39490
39488
  children: [
39491
39489
  /* @__PURE__ */ jsx148(DownloadIcon2, {}),
39492
- /* @__PURE__ */ jsx148("span", { children: "Export" })
39490
+ /* @__PURE__ */ jsx148("span", { children: "Download" })
39493
39491
  ]
39494
39492
  }
39495
39493
  )
@@ -39507,7 +39505,7 @@ var ResearchReportJobCard = ({
39507
39505
  /* @__PURE__ */ jsx148(
39508
39506
  "iframe",
39509
39507
  {
39510
- src: formats.html_url,
39508
+ src: htmlUrl,
39511
39509
  title,
39512
39510
  sandbox: "allow-same-origin",
39513
39511
  style: {
@@ -39531,11 +39529,10 @@ var ResearchReportJobCard = ({
39531
39529
  !hasHTML && summary && /* @__PURE__ */ jsx148("div", { className: "mt-4 pt-4 border-t border-zinc-800/60", children: /* @__PURE__ */ jsx148("p", { className: "text-sm text-zinc-400 leading-relaxed line-clamp-3", children: summary }) })
39532
39530
  ] })
39533
39531
  ] }) }),
39534
- showExport && /* @__PURE__ */ jsx148(ExportModal2, { formats, title, onClose: () => setShowExport(false) }),
39535
39532
  showPreview && hasHTML && /* @__PURE__ */ jsx148(
39536
39533
  FullscreenPreviewModal,
39537
39534
  {
39538
- url: formats.html_url,
39535
+ url: htmlUrl,
39539
39536
  title,
39540
39537
  onClose: () => setShowPreview(false)
39541
39538
  }