pxengine 0.1.98 → 0.1.100

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.ts CHANGED
@@ -617,8 +617,252 @@ interface EditableOrganismPropDef {
617
617
  };
618
618
  }
619
619
 
620
+ interface WidgetTheme {
621
+ /** Card / container background. Replaces `cardSurface`. */
622
+ background?: string;
623
+ /** Inner surface background (rows, cells, option blocks). Replaces `black/20`. */
624
+ surface?: string;
625
+ /** Border color. Replaces `gray400`. */
626
+ border?: string;
627
+ /** Primary text. Replaces `cardText`. */
628
+ text?: string;
629
+ /** Secondary / muted text. Replaces `cardText/50`. */
630
+ textMuted?: string;
631
+ /** Accent / highlight color. Replaces `gold` (#BFAD82). Used for selected states, stars, progress, active steps. */
632
+ accent?: string;
633
+ /** Readable text color to place ON the accent (auto-contrast: white or near-black). */
634
+ accentForeground?: string;
635
+ /** Border width in px for cards/containers (default: keep existing 1px border). */
636
+ borderWidth?: number;
637
+ /** Corner radius in px for cards/containers. */
638
+ radius?: number;
639
+ /** Font family applied to widget text. */
640
+ fontFamily?: string;
641
+ /** Box-shadow / elevation CSS value (e.g. "0 1px 2px rgba(0,0,0,.4)"). */
642
+ shadow?: string;
643
+ /** Semantic success color (positive states, confirmations). */
644
+ success?: string;
645
+ /** Semantic warning color (caution states). */
646
+ warning?: string;
647
+ /** Semantic danger color (errors, destructive actions). */
648
+ danger?: string;
649
+ /** Optional brand gradient for hero/accent surfaces (e.g. "linear-gradient(135deg,#a,#b)"). */
650
+ gradient?: string;
651
+ }
652
+ /**
653
+ * React context that carries the active WidgetTheme down the render tree, so
654
+ * deeply-nested molecules can pick it up even when they aren't passed `theme`
655
+ * directly. An explicit `theme` prop always wins over the context value.
656
+ */
657
+ declare const WidgetThemeContext: React$1.Context<WidgetTheme | undefined>;
658
+ /** Resolve the effective theme: explicit prop first, else the nearest context. */
659
+ declare function useWidgetTheme(explicit?: WidgetTheme): WidgetTheme | undefined;
660
+ /** Convert a hex color to rgba with the given alpha (0–1). Falls back to the original string for non-hex values. */
661
+ declare function withAlpha(color: string, alpha: number): string;
662
+ /**
663
+ * Resolves a WidgetTheme into ready-to-use CSSProperties objects.
664
+ * Every property is undefined when no theme value is set, so Tailwind
665
+ * CSS-variable classes remain in effect as the default.
666
+ */
667
+ declare function th(theme?: WidgetTheme): {
668
+ root: CSSProperties;
669
+ surface: CSSProperties;
670
+ text: CSSProperties;
671
+ muted: CSSProperties;
672
+ accent: CSSProperties;
673
+ accentBg: CSSProperties;
674
+ accentBorder: CSSProperties;
675
+ accentText: CSSProperties;
676
+ accentSubtle: (alpha?: number) => CSSProperties;
677
+ semantic: (kind: "success" | "warning" | "danger") => CSSProperties;
678
+ gradientBg: CSSProperties;
679
+ };
680
+
681
+ /**
682
+ * Engine-agnostic analytics chart contract.
683
+ *
684
+ * Analytics modules (and the server's chart_decider output) describe charts
685
+ * declaratively via this config. The UI Library owns the translation into the
686
+ * concrete charting engine (Highcharts), so frontends never write chart code.
687
+ */
688
+ type AnalyticsChartType = "line" | "spline" | "area" | "areaspline" | "bar" | "column" | "pie" | "donut" | "funnel" | "heatmap" | "scatter";
689
+ /** A single data point. Supports scalar, tuple, and rich-object forms. */
690
+ type AnalyticsPoint = number | [string | number, number] | {
691
+ name?: string;
692
+ x?: string | number;
693
+ y?: number;
694
+ /** Used by heatmap (3rd dim) / treemap-style series. */
695
+ value?: number;
696
+ color?: string;
697
+ [key: string]: unknown;
698
+ };
699
+ interface AnalyticsSeries {
700
+ /** Series label shown in legend/tooltip. */
701
+ name: string;
702
+ data: AnalyticsPoint[];
703
+ /** Per-series override of the chart-level type (mixed charts). */
704
+ type?: AnalyticsChartType;
705
+ color?: string;
706
+ /** Stack bucket name — series sharing a stack are stacked together. */
707
+ stack?: string;
708
+ /** Plot on the secondary (opposite) y-axis. */
709
+ yAxis?: number;
710
+ }
711
+ interface AnalyticsAxisConfig {
712
+ title?: string;
713
+ type?: "linear" | "datetime" | "category" | "logarithmic";
714
+ categories?: (string | number)[];
715
+ /** Highcharts label format string, e.g. "${value:,.1f}M". */
716
+ format?: string;
717
+ min?: number;
718
+ max?: number;
719
+ /** Render on the opposite side (secondary axis). */
720
+ opposite?: boolean;
721
+ }
722
+ interface AnalyticsTooltipConfig {
723
+ shared?: boolean;
724
+ valuePrefix?: string;
725
+ valueSuffix?: string;
726
+ /** Highcharts pointFormat override. */
727
+ pointFormat?: string;
728
+ }
729
+ /** Stacking mode for bar/column/area families. */
730
+ type StackingMode = boolean | "normal" | "percent";
731
+ /** Time bucket hint for time-series grouping (consumed by data-mapping layer). */
732
+ type TimeGrouping = "day" | "week" | "month" | "quarter" | "year";
733
+ /**
734
+ * The full declarative chart config. Either pass this (`chartConfig`) or the
735
+ * flattened props on the molecule, or a raw Highcharts `config` for passthrough
736
+ * of server chart_decider output.
737
+ */
738
+ interface AnalyticsChartConfig {
739
+ type: AnalyticsChartType;
740
+ title?: string;
741
+ subtitle?: string;
742
+ series: AnalyticsSeries[];
743
+ /** Shared x categories (bar/column/line over labels). */
744
+ categories?: (string | number)[];
745
+ xAxis?: AnalyticsAxisConfig;
746
+ yAxis?: AnalyticsAxisConfig | AnalyticsAxisConfig[];
747
+ /** Series color overrides (falls back to the PXEngine analytics palette). */
748
+ colors?: string[];
749
+ stacked?: StackingMode;
750
+ legend?: boolean;
751
+ tooltip?: AnalyticsTooltipConfig;
752
+ dataLabels?: boolean | {
753
+ format?: string;
754
+ };
755
+ timeGrouping?: TimeGrouping;
756
+ height?: number;
757
+ }
758
+
620
759
  interface BaseMolecule extends BaseAtom {
621
760
  }
761
+ /** Shared schema for the configurable analytics chart family. */
762
+ interface BaseAnalyticsChartMolecule extends BaseMolecule {
763
+ title?: string;
764
+ subtitle?: string;
765
+ series?: AnalyticsSeries[];
766
+ categories?: (string | number)[];
767
+ xAxis?: AnalyticsAxisConfig;
768
+ yAxis?: AnalyticsAxisConfig | AnalyticsAxisConfig[];
769
+ colors?: string[];
770
+ stacked?: StackingMode;
771
+ legend?: boolean;
772
+ tooltip?: AnalyticsTooltipConfig;
773
+ dataLabels?: boolean | {
774
+ format?: string;
775
+ };
776
+ mode?: "light" | "dark" | "auto";
777
+ height?: number;
778
+ loading?: boolean;
779
+ error?: string | null;
780
+ emptyMessage?: string;
781
+ /** Full declarative config (alternative to flattened props). */
782
+ chartConfig?: AnalyticsChartConfig;
783
+ /** Raw Highcharts options passthrough (server chart_decider output). */
784
+ config?: Record<string, any>;
785
+ }
786
+ interface AnalyticsChartMolecule extends BaseAnalyticsChartMolecule {
787
+ type: "analytics-chart";
788
+ chartType?: AnalyticsChartConfig["type"];
789
+ }
790
+ interface LineChartMolecule extends BaseAnalyticsChartMolecule {
791
+ type: "line-chart";
792
+ }
793
+ interface AreaChartMolecule extends BaseAnalyticsChartMolecule {
794
+ type: "area-chart";
795
+ }
796
+ interface BarChartMolecule extends BaseAnalyticsChartMolecule {
797
+ type: "bar-chart";
798
+ }
799
+ interface StackedBarChartMolecule extends BaseAnalyticsChartMolecule {
800
+ type: "stacked-bar-chart";
801
+ }
802
+ interface ColumnChartMolecule extends BaseAnalyticsChartMolecule {
803
+ type: "column-chart";
804
+ }
805
+ interface StackedColumnChartMolecule extends BaseAnalyticsChartMolecule {
806
+ type: "stacked-column-chart";
807
+ }
808
+ interface PieChartMolecule extends BaseAnalyticsChartMolecule {
809
+ type: "pie-chart";
810
+ }
811
+ interface DonutChartMolecule extends BaseAnalyticsChartMolecule {
812
+ type: "donut-chart";
813
+ }
814
+ interface FunnelChartMolecule extends BaseAnalyticsChartMolecule {
815
+ type: "funnel-chart";
816
+ }
817
+ interface HeatmapChartMolecule extends BaseAnalyticsChartMolecule {
818
+ type: "heatmap-chart";
819
+ }
820
+ interface TimeSeriesChartMolecule extends BaseAnalyticsChartMolecule {
821
+ type: "time-series-chart";
822
+ }
823
+ interface ComparativeChartMolecule extends BaseAnalyticsChartMolecule {
824
+ type: "comparative-chart";
825
+ }
826
+ interface TrendIndicatorMolecule extends BaseMolecule {
827
+ type: "trend-indicator";
828
+ value: string | number;
829
+ trend?: "up" | "down" | "neutral";
830
+ invertColors?: boolean;
831
+ label?: string;
832
+ }
833
+ interface KPIMetricCardMolecule extends BaseMolecule {
834
+ type: "kpi-metric-card";
835
+ label: string;
836
+ value: string | number;
837
+ unit?: string;
838
+ delta?: string;
839
+ trend?: "up" | "down" | "neutral";
840
+ invertTrendColors?: boolean;
841
+ icon?: string;
842
+ sparkline?: number[];
843
+ sparklineColor?: string;
844
+ mode?: "light" | "dark" | "auto";
845
+ loading?: boolean;
846
+ }
847
+ interface AnalyticsSummaryCardMolecule extends BaseMolecule {
848
+ type: "analytics-summary-card";
849
+ title?: string;
850
+ subtitle?: string;
851
+ metrics: Array<{
852
+ label: string;
853
+ value: string | number;
854
+ unit?: string;
855
+ delta?: string;
856
+ trend?: "up" | "down" | "neutral";
857
+ invertTrendColors?: boolean;
858
+ icon?: string;
859
+ sparkline?: number[];
860
+ }>;
861
+ chart?: AnalyticsChartConfig;
862
+ columns?: 2 | 3 | 4;
863
+ mode?: "light" | "dark" | "auto";
864
+ loading?: boolean;
865
+ }
622
866
  interface DynamicFormCardMolecule extends BaseMolecule {
623
867
  type: "dynamic-form-card";
624
868
  data?: Record<string, any>;
@@ -1172,7 +1416,7 @@ interface GitHubIssueTrackerMolecule extends BaseMolecule {
1172
1416
  days_stale: number;
1173
1417
  }>;
1174
1418
  }
1175
- type UIMolecule = CampaignSeedCardAtom | SearchSpecCardAtom | MCQCardAtom | ActionButtonAtom | StatsGridMolecule | EmptyStateMolecule | LoadingOverlayMolecule | InsightSummaryCardMolecule | ResearchBriefCardMolecule | PriorityActionsCardMolecule | KPIStatsCardMolecule | ApprovalCardMolecule | TimelineCardMolecule | FeedbackRatingCardMolecule | DataTableCardMolecule | ChecklistCardMolecule | PollCardMolecule | CampaignBriefCardMolecule | DataSourceChecklistCardMolecule | GoalAlignmentCardMolecule | AudiencePersonaCardMolecule | ChannelPlanCardMolecule | InsightDigestCardMolecule | ActionPriorityCardMolecule | RiskSignalCardMolecule | ScoreBreakdownCardMolecule | NextStepCardMolecule | PlatformIconGroupMolecule | CreatorProfileSummaryMolecule | AudienceMetricCardMolecule | FilterBarMolecule | FileUploadMolecule | TagCloudMolecule | CreatorGridCardMolecule | BrandAffinityGroupMolecule | ContentPreviewGalleryMolecule | DataGridMolecule | StepWizardMolecule | NotificationListMolecule | AudienceDemographicsCardMolecule | GrowthChartCardMolecule | TopPostsGridMolecule | CreatorActionHeaderMolecule | SocialPostMolecule | CreatorWidgetMolecule | GitHubConnectMolecule | GitHubRepoHealthMolecule | GitHubIssueTrackerMolecule | RecommendationCardMolecule | ConfirmationCardMolecule | DynamicFormCardMolecule;
1419
+ type UIMolecule = CampaignSeedCardAtom | SearchSpecCardAtom | MCQCardAtom | ActionButtonAtom | StatsGridMolecule | EmptyStateMolecule | LoadingOverlayMolecule | InsightSummaryCardMolecule | ResearchBriefCardMolecule | PriorityActionsCardMolecule | KPIStatsCardMolecule | ApprovalCardMolecule | TimelineCardMolecule | FeedbackRatingCardMolecule | DataTableCardMolecule | ChecklistCardMolecule | PollCardMolecule | CampaignBriefCardMolecule | DataSourceChecklistCardMolecule | GoalAlignmentCardMolecule | AudiencePersonaCardMolecule | ChannelPlanCardMolecule | InsightDigestCardMolecule | ActionPriorityCardMolecule | RiskSignalCardMolecule | ScoreBreakdownCardMolecule | NextStepCardMolecule | PlatformIconGroupMolecule | CreatorProfileSummaryMolecule | AudienceMetricCardMolecule | FilterBarMolecule | FileUploadMolecule | TagCloudMolecule | CreatorGridCardMolecule | BrandAffinityGroupMolecule | ContentPreviewGalleryMolecule | DataGridMolecule | StepWizardMolecule | NotificationListMolecule | AudienceDemographicsCardMolecule | GrowthChartCardMolecule | TopPostsGridMolecule | CreatorActionHeaderMolecule | SocialPostMolecule | CreatorWidgetMolecule | GitHubConnectMolecule | GitHubRepoHealthMolecule | GitHubIssueTrackerMolecule | RecommendationCardMolecule | ConfirmationCardMolecule | AnalyticsChartMolecule | LineChartMolecule | AreaChartMolecule | BarChartMolecule | StackedBarChartMolecule | ColumnChartMolecule | StackedColumnChartMolecule | PieChartMolecule | DonutChartMolecule | FunnelChartMolecule | HeatmapChartMolecule | TimeSeriesChartMolecule | ComparativeChartMolecule | TrendIndicatorMolecule | KPIMetricCardMolecule | AnalyticsSummaryCardMolecule | DynamicFormCardMolecule;
1176
1420
 
1177
1421
  type UIComponent = UIAtom | UIMolecule;
1178
1422
  interface UISchema {
@@ -1180,67 +1424,6 @@ interface UISchema {
1180
1424
  root: UIComponent;
1181
1425
  }
1182
1426
 
1183
- interface WidgetTheme {
1184
- /** Card / container background. Replaces `cardSurface`. */
1185
- background?: string;
1186
- /** Inner surface background (rows, cells, option blocks). Replaces `black/20`. */
1187
- surface?: string;
1188
- /** Border color. Replaces `gray400`. */
1189
- border?: string;
1190
- /** Primary text. Replaces `cardText`. */
1191
- text?: string;
1192
- /** Secondary / muted text. Replaces `cardText/50`. */
1193
- textMuted?: string;
1194
- /** Accent / highlight color. Replaces `gold` (#BFAD82). Used for selected states, stars, progress, active steps. */
1195
- accent?: string;
1196
- /** Readable text color to place ON the accent (auto-contrast: white or near-black). */
1197
- accentForeground?: string;
1198
- /** Border width in px for cards/containers (default: keep existing 1px border). */
1199
- borderWidth?: number;
1200
- /** Corner radius in px for cards/containers. */
1201
- radius?: number;
1202
- /** Font family applied to widget text. */
1203
- fontFamily?: string;
1204
- /** Box-shadow / elevation CSS value (e.g. "0 1px 2px rgba(0,0,0,.4)"). */
1205
- shadow?: string;
1206
- /** Semantic success color (positive states, confirmations). */
1207
- success?: string;
1208
- /** Semantic warning color (caution states). */
1209
- warning?: string;
1210
- /** Semantic danger color (errors, destructive actions). */
1211
- danger?: string;
1212
- /** Optional brand gradient for hero/accent surfaces (e.g. "linear-gradient(135deg,#a,#b)"). */
1213
- gradient?: string;
1214
- }
1215
- /**
1216
- * React context that carries the active WidgetTheme down the render tree, so
1217
- * deeply-nested molecules can pick it up even when they aren't passed `theme`
1218
- * directly. An explicit `theme` prop always wins over the context value.
1219
- */
1220
- declare const WidgetThemeContext: React$1.Context<WidgetTheme | undefined>;
1221
- /** Resolve the effective theme: explicit prop first, else the nearest context. */
1222
- declare function useWidgetTheme(explicit?: WidgetTheme): WidgetTheme | undefined;
1223
- /** Convert a hex color to rgba with the given alpha (0–1). Falls back to the original string for non-hex values. */
1224
- declare function withAlpha(color: string, alpha: number): string;
1225
- /**
1226
- * Resolves a WidgetTheme into ready-to-use CSSProperties objects.
1227
- * Every property is undefined when no theme value is set, so Tailwind
1228
- * CSS-variable classes remain in effect as the default.
1229
- */
1230
- declare function th(theme?: WidgetTheme): {
1231
- root: CSSProperties;
1232
- surface: CSSProperties;
1233
- text: CSSProperties;
1234
- muted: CSSProperties;
1235
- accent: CSSProperties;
1236
- accentBg: CSSProperties;
1237
- accentBorder: CSSProperties;
1238
- accentText: CSSProperties;
1239
- accentSubtle: (alpha?: number) => CSSProperties;
1240
- semantic: (kind: "success" | "warning" | "danger") => CSSProperties;
1241
- gradientBg: CSSProperties;
1242
- };
1243
-
1244
1427
  declare const REGISTERED_COMPONENTS: Set<string>;
1245
1428
  /**
1246
1429
  * PXEngineRenderer
@@ -3930,4 +4113,4 @@ interface AnalyticsChartProps {
3930
4113
  }
3931
4114
  declare function AnalyticsChart({ config: configProp, chartId, apiBase, authToken, height, className, loading: loadingProp, error: errorProp, }: AnalyticsChartProps): react_jsx_runtime.JSX.Element;
3932
4115
 
3933
- 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, AnalyticsChart, type AnalyticsChartProps, 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 JobProgress$2 as JobProgress, 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 PresentationJobOutput, 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, type JobProgress$1 as ResearchJobProgress, 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, WebSearchJobCard, type WebSearchJobCardProps, type WebSearchJobOutput, type WebSearchResult, type WidgetTheme, WidgetThemeContext, cn, defaultFetchSelections, defaultPersistSelection, elementToQAField, formatQAMessage, generateFieldsFromData, generateFieldsFromPropDefinitions, isInputAtom, submitWidgetToAgent, th, useCreatorWidgetPolling, useWidgetTheme, withAlpha };
4116
+ 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, AnalyticsChart, type AnalyticsChartMolecule, type AnalyticsChartProps, type AnalyticsSummaryCardMolecule, ApprovalCard, type ApprovalCardMolecule, type ApprovalCardProps, type ApprovalDetail, type ApprovalStatus, type AreaChartMolecule, 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 BarChartMolecule, type BaseAnalyticsChartMolecule, 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, type ColumnChartMolecule, Command, CommandAtom, type CommandAtomType, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, type ComparativeChartMolecule, 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, type DonutChartMolecule, 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 FunnelChartMolecule, 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, type HeatmapChartMolecule, 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 JobProgress$2 as JobProgress, type KPIMetricCardMolecule, type KPIStatItem, KPIStatsCard, type KPIStatsCardMolecule, type KPIStatsCardProps, KbdAtom, type KbdAtomType, KeywordBundlesDisplay, KeywordBundlesEdit, Label, LabelAtom, type LabelAtomType, LayoutAtom, type LayoutAtomType, type LayoutDirection, type LineChartMolecule, 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, type PieChartMolecule, 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 PresentationJobOutput, 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, type JobProgress$1 as ResearchJobProgress, 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 StackedBarChartMolecule, type StackedColumnChartMolecule, 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, type TimeSeriesChartMolecule, 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 TrendIndicatorMolecule, type UIAtom, type UIComponent, type UIMolecule, type UISchema, VideoAtom, type VideoAtomType, WebSearchJobCard, type WebSearchJobCardProps, type WebSearchJobOutput, type WebSearchResult, type WidgetTheme, WidgetThemeContext, cn, defaultFetchSelections, defaultPersistSelection, elementToQAField, formatQAMessage, generateFieldsFromData, generateFieldsFromPropDefinitions, isInputAtom, submitWidgetToAgent, th, useCreatorWidgetPolling, useWidgetTheme, withAlpha };
package/dist/index.mjs CHANGED
@@ -25923,12 +25923,12 @@ var TableAtom = ({
25923
25923
  rows,
25924
25924
  className,
25925
25925
  style,
25926
- headerTextColor = "#9ca3af",
25927
- headerBgColor = "#f9fafb",
25928
- rowTextColor = "#374151",
25929
- rowBgColor = "#ffffff",
25930
- hoverBgColor = "#faf5ff",
25931
- borderColor = "#f3f4f6"
25926
+ headerTextColor = "var(--muted-foreground-color, #9ca3af)",
25927
+ headerBgColor = "var(--card-background, #f9fafb)",
25928
+ rowTextColor = "var(--card-foreground-color, #374151)",
25929
+ rowBgColor = "var(--card-background, #ffffff)",
25930
+ hoverBgColor = "rgba(127, 127, 127, 0.18)",
25931
+ borderColor = "var(--border-color, #f3f4f6)"
25932
25932
  }) => {
25933
25933
  const safeHeaders = Array.isArray(headers) ? headers : [];
25934
25934
  const safeRows = Array.isArray(rows) ? rows : [];
@@ -38337,7 +38337,7 @@ var InsightSummaryCard = ({
38337
38337
  children: [
38338
38338
  /* @__PURE__ */ jsx134("h3", { className: "text-base font-semibold text-foreground", children: title }),
38339
38339
  summary ? /* @__PURE__ */ jsx134("p", { className: "mt-2 text-sm text-muted-foreground leading-relaxed", children: summary }) : null,
38340
- /* @__PURE__ */ jsx134("div", { className: "mt-4 space-y-2", children: insights.map((item, index) => /* @__PURE__ */ jsxs95(
38340
+ /* @__PURE__ */ jsx134("div", { className: "mt-4 space-y-2", children: (Array.isArray(insights) ? insights : []).map((item, index) => /* @__PURE__ */ jsxs95(
38341
38341
  "div",
38342
38342
  {
38343
38343
  className: "rounded-xl border border-border/70 bg-background/50 px-3 py-2",
@@ -43310,7 +43310,7 @@ function PlatformMetricsBanner({
43310
43310
  return /* @__PURE__ */ jsxs132(
43311
43311
  "div",
43312
43312
  {
43313
- className: "\r\n grid grid-cols-1 gap-3 rounded-xl py-4 px-4 shadow-sm\r\n md:flex md:overflow-x-auto md:gap-6 md:rounded-l-xl md:py-4 md:px-4 md:items-center md:gap-0 md:px-0 md:ml-8\r\n ",
43313
+ className: "\n grid grid-cols-1 gap-3 rounded-xl py-4 px-4 shadow-sm\n md:flex md:overflow-x-auto md:gap-6 md:rounded-l-xl md:py-4 md:px-4 md:items-center md:gap-0 md:px-0 md:ml-8\n ",
43314
43314
  style: { backgroundColor: bgColor },
43315
43315
  children: [
43316
43316
  /* @__PURE__ */ jsxs132("div", { className: "flex flex-col items-center md:min-w-0", children: [
@@ -44724,9 +44724,28 @@ var hcLoadPromise = null;
44724
44724
  function loadHighcharts() {
44725
44725
  if (hcSingleton) return Promise.resolve(hcSingleton);
44726
44726
  if (hcLoadPromise) return hcLoadPromise;
44727
- hcLoadPromise = import("highcharts").then((m) => {
44728
- hcSingleton = m.default ?? m;
44729
- return hcSingleton;
44727
+ hcLoadPromise = import("highcharts").then(async (m) => {
44728
+ const HC = m.default ?? m;
44729
+ const moduleLoaders = [
44730
+ () => import("highcharts/highcharts-more"),
44731
+ () => import("highcharts/highcharts-3d"),
44732
+ () => import("highcharts/modules/funnel"),
44733
+ () => import("highcharts/modules/sankey"),
44734
+ () => import("highcharts/modules/networkgraph"),
44735
+ () => import("highcharts/modules/heatmap"),
44736
+ () => import("highcharts/modules/treemap"),
44737
+ () => import("highcharts/modules/solid-gauge")
44738
+ ];
44739
+ for (const load of moduleLoaders) {
44740
+ try {
44741
+ const mod = await load();
44742
+ const init = mod?.default ?? mod;
44743
+ if (typeof init === "function") init(HC);
44744
+ } catch {
44745
+ }
44746
+ }
44747
+ hcSingleton = HC;
44748
+ return HC;
44730
44749
  });
44731
44750
  return hcLoadPromise;
44732
44751
  }