pxengine 0.1.45 → 0.1.47

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
@@ -1272,6 +1272,92 @@ declare function Spinner({ className, ...props }: React.ComponentProps<"svg">):
1272
1272
  */
1273
1273
  declare function cn(...inputs: ClassValue[]): string;
1274
1274
 
1275
+ type ButtonVariant = "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | "purple";
1276
+ type ButtonSize = "default" | "sm" | "lg" | "icon";
1277
+ /**
1278
+ * Field types for EditableField molecule
1279
+ */
1280
+ type FieldType = "text" | "textarea" | "number" | "slider" | "checkbox" | "select" | "custom";
1281
+ /**
1282
+ * Field configuration for forms
1283
+ */
1284
+ interface FieldConfig {
1285
+ key: string;
1286
+ label: string;
1287
+ type: FieldType;
1288
+ placeholder?: string;
1289
+ required?: boolean;
1290
+ options?: string[] | Array<{
1291
+ label: string;
1292
+ value: string;
1293
+ }>;
1294
+ sliderConfig?: SliderConfig;
1295
+ numberConfig?: NumberConfig;
1296
+ rows?: number;
1297
+ renderDisplay?: (value: any) => React.ReactNode;
1298
+ renderEdit?: (value: any, onChange: (value: any) => void) => React.ReactNode;
1299
+ }
1300
+ /**
1301
+ * Slider configuration
1302
+ */
1303
+ interface SliderConfig {
1304
+ min: number;
1305
+ max: number;
1306
+ step: number;
1307
+ marks?: Record<number, string>;
1308
+ formatValue?: (value: any) => string;
1309
+ }
1310
+ /**
1311
+ * Number input configuration
1312
+ */
1313
+ interface NumberConfig {
1314
+ min?: number;
1315
+ max?: number;
1316
+ step?: number;
1317
+ formatValue?: (value: any) => string;
1318
+ }
1319
+ /**
1320
+ * Editable organism prop definition — mirrors admin PropDefinition with editable metadata.
1321
+ * Used by generateFieldsFromPropDefinitions() to create FieldConfig arrays.
1322
+ */
1323
+ interface EditableOrganismPropDef {
1324
+ name: string;
1325
+ type: "string" | "number" | "boolean" | "object" | "array";
1326
+ defaultValue?: any;
1327
+ description?: string;
1328
+ required?: boolean;
1329
+ editable?: boolean;
1330
+ editConfig?: {
1331
+ editFieldType: FieldType;
1332
+ placeholder?: string;
1333
+ options?: string[] | Array<{
1334
+ label: string;
1335
+ value: string;
1336
+ }>;
1337
+ sliderConfig?: {
1338
+ min: number;
1339
+ max: number;
1340
+ step: number;
1341
+ };
1342
+ numberConfig?: {
1343
+ min?: number;
1344
+ max?: number;
1345
+ step?: number;
1346
+ };
1347
+ };
1348
+ }
1349
+
1350
+ /**
1351
+ * Generates an array of FieldConfig from a data object
1352
+ * Useful for dynamic molecules that render whatever the server sends.
1353
+ */
1354
+ declare function generateFieldsFromData(data: Record<string, any>): FieldConfig[];
1355
+ /**
1356
+ * Generates an array of FieldConfig from organism propDefinitions.
1357
+ * Only includes props marked as editable, using editConfig for field type and config.
1358
+ */
1359
+ declare function generateFieldsFromPropDefinitions(propDefs: EditableOrganismPropDef[], data: Record<string, any>): FieldConfig[];
1360
+
1275
1361
  /**
1276
1362
  * TextAtom
1277
1363
  * Renders standardized text styles from UISchema
@@ -1539,51 +1625,6 @@ declare const IconAtom: React__default.FC<IconAtomType>;
1539
1625
  */
1540
1626
  declare const ArrowToggleAtom: React__default.FC<ArrowToggleAtomType>;
1541
1627
 
1542
- type ButtonVariant = "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | "purple";
1543
- type ButtonSize = "default" | "sm" | "lg" | "icon";
1544
- /**
1545
- * Field types for EditableField molecule
1546
- */
1547
- type FieldType = "text" | "textarea" | "number" | "slider" | "checkbox" | "select" | "custom";
1548
- /**
1549
- * Field configuration for forms
1550
- */
1551
- interface FieldConfig {
1552
- key: string;
1553
- label: string;
1554
- type: FieldType;
1555
- placeholder?: string;
1556
- required?: boolean;
1557
- options?: string[] | Array<{
1558
- label: string;
1559
- value: string;
1560
- }>;
1561
- sliderConfig?: SliderConfig;
1562
- numberConfig?: NumberConfig;
1563
- rows?: number;
1564
- renderDisplay?: (value: any) => React.ReactNode;
1565
- renderEdit?: (value: any, onChange: (value: any) => void) => React.ReactNode;
1566
- }
1567
- /**
1568
- * Slider configuration
1569
- */
1570
- interface SliderConfig {
1571
- min: number;
1572
- max: number;
1573
- step: number;
1574
- marks?: Record<number, string>;
1575
- formatValue?: (value: any) => string;
1576
- }
1577
- /**
1578
- * Number input configuration
1579
- */
1580
- interface NumberConfig {
1581
- min?: number;
1582
- max?: number;
1583
- step?: number;
1584
- formatValue?: (value: any) => string;
1585
- }
1586
-
1587
1628
  interface EditableFieldProps {
1588
1629
  /**
1589
1630
  * Unique identifier
@@ -2400,4 +2441,4 @@ interface StageIndicatorProps extends Omit<StageIndicatorMolecule, "id" | "type"
2400
2441
  */
2401
2442
  declare const StageIndicator: React__default.FC<StageIndicatorProps>;
2402
2443
 
2403
- export { Accordion, AccordionAtom, type AccordionAtomType, AccordionContent, AccordionItem, AccordionTrigger, ActionButton, type ActionButtonAtom, type ActionButtonProps, AgentCard, type AgentCardMolecule, AgentDataTable, type AgentDataTableMolecule, Alert, AlertAtom, type AlertAtomType, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogAtom, type AlertDialogAtomType, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, AlertTitle, ArrowToggleAtom, type ArrowToggleAtomType, AspectRatio, AspectRatioAtom, type AspectRatioAtomType, AudienceDemographicsCard, type AudienceDemographicsCardMolecule, AudienceMetricCard, type AudienceMetricCardMolecule, Avatar, AvatarAtom, type AvatarAtomType, AvatarFallback, AvatarImage, Badge, BadgeAtom, type BadgeAtomType, type BaseAtom, type BaseMolecule, BrandAffinityGroup, type BrandAffinityGroupMolecule, Breadcrumb, BreadcrumbAtom, type BreadcrumbAtomType, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonAtom, type ButtonAtomType, type ButtonSize$1 as ButtonSize, type ButtonVariant$1 as ButtonVariant, Calendar, CalendarAtom, type CalendarAtomType, 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, ChartAtom, type ChartAtomType, Checkbox, CheckboxAtom, type CheckboxAtomType, Collapsible, CollapsibleAtom, type CollapsibleAtomType, CollapsibleContent, CollapsibleTrigger, Command, CommandAtom, type CommandAtomType, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContentPreviewGallery, type ContentPreviewGalleryMolecule, ContextMenu, ContextMenuAtom, type ContextMenuAtomType, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuItem, ContextMenuLabel, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuTrigger, CountrySelectDisplay, CountrySelectEdit, CreatorActionHeader, type CreatorActionHeaderMolecule, CreatorCompactView, type CreatorCompactViewProps, 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, 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, EditableField, type EditableFieldProps, EmptyState, type EmptyStateMolecule, 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, GrowthChartCard, type GrowthChartCardMolecule, HoverCard, HoverCardContent, HoverCardTrigger, IconAtom, type IconAtomType, type IconName, Input, InputAtom, type InputAtomType, InputOTP, InputOTPAtom, type InputOTPAtomType, InputOTPGroup, InputOTPSeparator, InputOTPSlot, type InputType, InstructionPreview, type InstructionPreviewMolecule, 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, MultiAgentCard, type MultiAgentCardMolecule, MultiAgentPlan, type MultiAgentPlanMolecule, MultiAgentUISelector, type MultiAgentUISelectorMolecule, NavigationMenu, NavigationMenuContent, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NotificationList, type NotificationListMolecule, PXEngineRenderer, Pagination, PaginationAtom, type PaginationAtomType, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PlatformIconGroup, type PlatformIconGroupMolecule, PlatformSelectDisplay, PlatformSelectEdit, type PollingConfig, Popover, PopoverAtom, type PopoverAtomType, PopoverContent, PopoverTrigger, Progress, ProgressAtom, type ProgressAtomType, RadioAtom, type RadioAtomType, RadioGroup, RadioGroupAtom, type RadioGroupAtomType, RadioGroupItem, RatingAtom, type RatingAtomType, ResizableAtom, type ResizableAtomType, ResizablePanel, ResizablePanelGroup, 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, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Skeleton, SkeletonAtom, type SkeletonAtomType, Slider, SliderAtom, type SliderAtomType, Spinner, SpinnerAtom, type SpinnerAtomType, StageIndicator, type StageIndicatorMolecule, 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, ToggleAtom, type ToggleAtomType, ToolListCard, type ToolListCardMolecule, Tooltip, TooltipAtom, type TooltipAtomType, TooltipContent, TooltipProvider, TooltipTrigger, TopPostsGrid, type TopPostsGridMolecule, type UIAtom, type UIComponent, UIComponentSelector, type UIComponentSelectorMolecule, type UIMolecule, type UISchema, VideoAtom, type VideoAtomType, WorkflowVisualizer, type WorkflowVisualizerMolecule, cn, useCreatorWidgetPolling };
2444
+ export { Accordion, AccordionAtom, type AccordionAtomType, AccordionContent, AccordionItem, AccordionTrigger, ActionButton, type ActionButtonAtom, type ActionButtonProps, AgentCard, type AgentCardMolecule, AgentDataTable, type AgentDataTableMolecule, Alert, AlertAtom, type AlertAtomType, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogAtom, type AlertDialogAtomType, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, AlertTitle, ArrowToggleAtom, type ArrowToggleAtomType, AspectRatio, AspectRatioAtom, type AspectRatioAtomType, AudienceDemographicsCard, type AudienceDemographicsCardMolecule, AudienceMetricCard, type AudienceMetricCardMolecule, Avatar, AvatarAtom, type AvatarAtomType, AvatarFallback, AvatarImage, Badge, BadgeAtom, type BadgeAtomType, type BaseAtom, type BaseMolecule, BrandAffinityGroup, type BrandAffinityGroupMolecule, Breadcrumb, BreadcrumbAtom, type BreadcrumbAtomType, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonAtom, type ButtonAtomType, type ButtonSize$1 as ButtonSize, type ButtonVariant$1 as ButtonVariant, Calendar, CalendarAtom, type CalendarAtomType, 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, ChartAtom, type ChartAtomType, Checkbox, CheckboxAtom, type CheckboxAtomType, Collapsible, CollapsibleAtom, type CollapsibleAtomType, CollapsibleContent, CollapsibleTrigger, Command, CommandAtom, type CommandAtomType, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContentPreviewGallery, type ContentPreviewGalleryMolecule, ContextMenu, ContextMenuAtom, type ContextMenuAtomType, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuItem, ContextMenuLabel, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuTrigger, CountrySelectDisplay, CountrySelectEdit, CreatorActionHeader, type CreatorActionHeaderMolecule, CreatorCompactView, type CreatorCompactViewProps, 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, 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, EditableField, type EditableFieldProps, EmptyState, type EmptyStateMolecule, 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, GrowthChartCard, type GrowthChartCardMolecule, HoverCard, HoverCardContent, HoverCardTrigger, IconAtom, type IconAtomType, type IconName, Input, InputAtom, type InputAtomType, InputOTP, InputOTPAtom, type InputOTPAtomType, InputOTPGroup, InputOTPSeparator, InputOTPSlot, type InputType, InstructionPreview, type InstructionPreviewMolecule, 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, MultiAgentCard, type MultiAgentCardMolecule, MultiAgentPlan, type MultiAgentPlanMolecule, MultiAgentUISelector, type MultiAgentUISelectorMolecule, NavigationMenu, NavigationMenuContent, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NotificationList, type NotificationListMolecule, PXEngineRenderer, Pagination, PaginationAtom, type PaginationAtomType, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PlatformIconGroup, type PlatformIconGroupMolecule, PlatformSelectDisplay, PlatformSelectEdit, type PollingConfig, Popover, PopoverAtom, type PopoverAtomType, PopoverContent, PopoverTrigger, Progress, ProgressAtom, type ProgressAtomType, RadioAtom, type RadioAtomType, RadioGroup, RadioGroupAtom, type RadioGroupAtomType, RadioGroupItem, RatingAtom, type RatingAtomType, ResizableAtom, type ResizableAtomType, ResizablePanel, ResizablePanelGroup, 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, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Skeleton, SkeletonAtom, type SkeletonAtomType, Slider, SliderAtom, type SliderAtomType, Spinner, SpinnerAtom, type SpinnerAtomType, StageIndicator, type StageIndicatorMolecule, 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, ToggleAtom, type ToggleAtomType, ToolListCard, type ToolListCardMolecule, Tooltip, TooltipAtom, type TooltipAtomType, TooltipContent, TooltipProvider, TooltipTrigger, TopPostsGrid, type TopPostsGridMolecule, type UIAtom, type UIComponent, UIComponentSelector, type UIComponentSelectorMolecule, type UIMolecule, type UISchema, VideoAtom, type VideoAtomType, WorkflowVisualizer, type WorkflowVisualizerMolecule, cn, generateFieldsFromData, generateFieldsFromPropDefinitions, useCreatorWidgetPolling };
package/dist/index.d.ts CHANGED
@@ -1272,6 +1272,92 @@ declare function Spinner({ className, ...props }: React.ComponentProps<"svg">):
1272
1272
  */
1273
1273
  declare function cn(...inputs: ClassValue[]): string;
1274
1274
 
1275
+ type ButtonVariant = "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | "purple";
1276
+ type ButtonSize = "default" | "sm" | "lg" | "icon";
1277
+ /**
1278
+ * Field types for EditableField molecule
1279
+ */
1280
+ type FieldType = "text" | "textarea" | "number" | "slider" | "checkbox" | "select" | "custom";
1281
+ /**
1282
+ * Field configuration for forms
1283
+ */
1284
+ interface FieldConfig {
1285
+ key: string;
1286
+ label: string;
1287
+ type: FieldType;
1288
+ placeholder?: string;
1289
+ required?: boolean;
1290
+ options?: string[] | Array<{
1291
+ label: string;
1292
+ value: string;
1293
+ }>;
1294
+ sliderConfig?: SliderConfig;
1295
+ numberConfig?: NumberConfig;
1296
+ rows?: number;
1297
+ renderDisplay?: (value: any) => React.ReactNode;
1298
+ renderEdit?: (value: any, onChange: (value: any) => void) => React.ReactNode;
1299
+ }
1300
+ /**
1301
+ * Slider configuration
1302
+ */
1303
+ interface SliderConfig {
1304
+ min: number;
1305
+ max: number;
1306
+ step: number;
1307
+ marks?: Record<number, string>;
1308
+ formatValue?: (value: any) => string;
1309
+ }
1310
+ /**
1311
+ * Number input configuration
1312
+ */
1313
+ interface NumberConfig {
1314
+ min?: number;
1315
+ max?: number;
1316
+ step?: number;
1317
+ formatValue?: (value: any) => string;
1318
+ }
1319
+ /**
1320
+ * Editable organism prop definition — mirrors admin PropDefinition with editable metadata.
1321
+ * Used by generateFieldsFromPropDefinitions() to create FieldConfig arrays.
1322
+ */
1323
+ interface EditableOrganismPropDef {
1324
+ name: string;
1325
+ type: "string" | "number" | "boolean" | "object" | "array";
1326
+ defaultValue?: any;
1327
+ description?: string;
1328
+ required?: boolean;
1329
+ editable?: boolean;
1330
+ editConfig?: {
1331
+ editFieldType: FieldType;
1332
+ placeholder?: string;
1333
+ options?: string[] | Array<{
1334
+ label: string;
1335
+ value: string;
1336
+ }>;
1337
+ sliderConfig?: {
1338
+ min: number;
1339
+ max: number;
1340
+ step: number;
1341
+ };
1342
+ numberConfig?: {
1343
+ min?: number;
1344
+ max?: number;
1345
+ step?: number;
1346
+ };
1347
+ };
1348
+ }
1349
+
1350
+ /**
1351
+ * Generates an array of FieldConfig from a data object
1352
+ * Useful for dynamic molecules that render whatever the server sends.
1353
+ */
1354
+ declare function generateFieldsFromData(data: Record<string, any>): FieldConfig[];
1355
+ /**
1356
+ * Generates an array of FieldConfig from organism propDefinitions.
1357
+ * Only includes props marked as editable, using editConfig for field type and config.
1358
+ */
1359
+ declare function generateFieldsFromPropDefinitions(propDefs: EditableOrganismPropDef[], data: Record<string, any>): FieldConfig[];
1360
+
1275
1361
  /**
1276
1362
  * TextAtom
1277
1363
  * Renders standardized text styles from UISchema
@@ -1539,51 +1625,6 @@ declare const IconAtom: React__default.FC<IconAtomType>;
1539
1625
  */
1540
1626
  declare const ArrowToggleAtom: React__default.FC<ArrowToggleAtomType>;
1541
1627
 
1542
- type ButtonVariant = "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | "purple";
1543
- type ButtonSize = "default" | "sm" | "lg" | "icon";
1544
- /**
1545
- * Field types for EditableField molecule
1546
- */
1547
- type FieldType = "text" | "textarea" | "number" | "slider" | "checkbox" | "select" | "custom";
1548
- /**
1549
- * Field configuration for forms
1550
- */
1551
- interface FieldConfig {
1552
- key: string;
1553
- label: string;
1554
- type: FieldType;
1555
- placeholder?: string;
1556
- required?: boolean;
1557
- options?: string[] | Array<{
1558
- label: string;
1559
- value: string;
1560
- }>;
1561
- sliderConfig?: SliderConfig;
1562
- numberConfig?: NumberConfig;
1563
- rows?: number;
1564
- renderDisplay?: (value: any) => React.ReactNode;
1565
- renderEdit?: (value: any, onChange: (value: any) => void) => React.ReactNode;
1566
- }
1567
- /**
1568
- * Slider configuration
1569
- */
1570
- interface SliderConfig {
1571
- min: number;
1572
- max: number;
1573
- step: number;
1574
- marks?: Record<number, string>;
1575
- formatValue?: (value: any) => string;
1576
- }
1577
- /**
1578
- * Number input configuration
1579
- */
1580
- interface NumberConfig {
1581
- min?: number;
1582
- max?: number;
1583
- step?: number;
1584
- formatValue?: (value: any) => string;
1585
- }
1586
-
1587
1628
  interface EditableFieldProps {
1588
1629
  /**
1589
1630
  * Unique identifier
@@ -2400,4 +2441,4 @@ interface StageIndicatorProps extends Omit<StageIndicatorMolecule, "id" | "type"
2400
2441
  */
2401
2442
  declare const StageIndicator: React__default.FC<StageIndicatorProps>;
2402
2443
 
2403
- export { Accordion, AccordionAtom, type AccordionAtomType, AccordionContent, AccordionItem, AccordionTrigger, ActionButton, type ActionButtonAtom, type ActionButtonProps, AgentCard, type AgentCardMolecule, AgentDataTable, type AgentDataTableMolecule, Alert, AlertAtom, type AlertAtomType, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogAtom, type AlertDialogAtomType, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, AlertTitle, ArrowToggleAtom, type ArrowToggleAtomType, AspectRatio, AspectRatioAtom, type AspectRatioAtomType, AudienceDemographicsCard, type AudienceDemographicsCardMolecule, AudienceMetricCard, type AudienceMetricCardMolecule, Avatar, AvatarAtom, type AvatarAtomType, AvatarFallback, AvatarImage, Badge, BadgeAtom, type BadgeAtomType, type BaseAtom, type BaseMolecule, BrandAffinityGroup, type BrandAffinityGroupMolecule, Breadcrumb, BreadcrumbAtom, type BreadcrumbAtomType, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonAtom, type ButtonAtomType, type ButtonSize$1 as ButtonSize, type ButtonVariant$1 as ButtonVariant, Calendar, CalendarAtom, type CalendarAtomType, 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, ChartAtom, type ChartAtomType, Checkbox, CheckboxAtom, type CheckboxAtomType, Collapsible, CollapsibleAtom, type CollapsibleAtomType, CollapsibleContent, CollapsibleTrigger, Command, CommandAtom, type CommandAtomType, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContentPreviewGallery, type ContentPreviewGalleryMolecule, ContextMenu, ContextMenuAtom, type ContextMenuAtomType, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuItem, ContextMenuLabel, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuTrigger, CountrySelectDisplay, CountrySelectEdit, CreatorActionHeader, type CreatorActionHeaderMolecule, CreatorCompactView, type CreatorCompactViewProps, 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, 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, EditableField, type EditableFieldProps, EmptyState, type EmptyStateMolecule, 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, GrowthChartCard, type GrowthChartCardMolecule, HoverCard, HoverCardContent, HoverCardTrigger, IconAtom, type IconAtomType, type IconName, Input, InputAtom, type InputAtomType, InputOTP, InputOTPAtom, type InputOTPAtomType, InputOTPGroup, InputOTPSeparator, InputOTPSlot, type InputType, InstructionPreview, type InstructionPreviewMolecule, 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, MultiAgentCard, type MultiAgentCardMolecule, MultiAgentPlan, type MultiAgentPlanMolecule, MultiAgentUISelector, type MultiAgentUISelectorMolecule, NavigationMenu, NavigationMenuContent, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NotificationList, type NotificationListMolecule, PXEngineRenderer, Pagination, PaginationAtom, type PaginationAtomType, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PlatformIconGroup, type PlatformIconGroupMolecule, PlatformSelectDisplay, PlatformSelectEdit, type PollingConfig, Popover, PopoverAtom, type PopoverAtomType, PopoverContent, PopoverTrigger, Progress, ProgressAtom, type ProgressAtomType, RadioAtom, type RadioAtomType, RadioGroup, RadioGroupAtom, type RadioGroupAtomType, RadioGroupItem, RatingAtom, type RatingAtomType, ResizableAtom, type ResizableAtomType, ResizablePanel, ResizablePanelGroup, 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, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Skeleton, SkeletonAtom, type SkeletonAtomType, Slider, SliderAtom, type SliderAtomType, Spinner, SpinnerAtom, type SpinnerAtomType, StageIndicator, type StageIndicatorMolecule, 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, ToggleAtom, type ToggleAtomType, ToolListCard, type ToolListCardMolecule, Tooltip, TooltipAtom, type TooltipAtomType, TooltipContent, TooltipProvider, TooltipTrigger, TopPostsGrid, type TopPostsGridMolecule, type UIAtom, type UIComponent, UIComponentSelector, type UIComponentSelectorMolecule, type UIMolecule, type UISchema, VideoAtom, type VideoAtomType, WorkflowVisualizer, type WorkflowVisualizerMolecule, cn, useCreatorWidgetPolling };
2444
+ export { Accordion, AccordionAtom, type AccordionAtomType, AccordionContent, AccordionItem, AccordionTrigger, ActionButton, type ActionButtonAtom, type ActionButtonProps, AgentCard, type AgentCardMolecule, AgentDataTable, type AgentDataTableMolecule, Alert, AlertAtom, type AlertAtomType, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogAtom, type AlertDialogAtomType, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, AlertTitle, ArrowToggleAtom, type ArrowToggleAtomType, AspectRatio, AspectRatioAtom, type AspectRatioAtomType, AudienceDemographicsCard, type AudienceDemographicsCardMolecule, AudienceMetricCard, type AudienceMetricCardMolecule, Avatar, AvatarAtom, type AvatarAtomType, AvatarFallback, AvatarImage, Badge, BadgeAtom, type BadgeAtomType, type BaseAtom, type BaseMolecule, BrandAffinityGroup, type BrandAffinityGroupMolecule, Breadcrumb, BreadcrumbAtom, type BreadcrumbAtomType, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonAtom, type ButtonAtomType, type ButtonSize$1 as ButtonSize, type ButtonVariant$1 as ButtonVariant, Calendar, CalendarAtom, type CalendarAtomType, 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, ChartAtom, type ChartAtomType, Checkbox, CheckboxAtom, type CheckboxAtomType, Collapsible, CollapsibleAtom, type CollapsibleAtomType, CollapsibleContent, CollapsibleTrigger, Command, CommandAtom, type CommandAtomType, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContentPreviewGallery, type ContentPreviewGalleryMolecule, ContextMenu, ContextMenuAtom, type ContextMenuAtomType, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuItem, ContextMenuLabel, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuTrigger, CountrySelectDisplay, CountrySelectEdit, CreatorActionHeader, type CreatorActionHeaderMolecule, CreatorCompactView, type CreatorCompactViewProps, 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, 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, EditableField, type EditableFieldProps, EmptyState, type EmptyStateMolecule, 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, GrowthChartCard, type GrowthChartCardMolecule, HoverCard, HoverCardContent, HoverCardTrigger, IconAtom, type IconAtomType, type IconName, Input, InputAtom, type InputAtomType, InputOTP, InputOTPAtom, type InputOTPAtomType, InputOTPGroup, InputOTPSeparator, InputOTPSlot, type InputType, InstructionPreview, type InstructionPreviewMolecule, 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, MultiAgentCard, type MultiAgentCardMolecule, MultiAgentPlan, type MultiAgentPlanMolecule, MultiAgentUISelector, type MultiAgentUISelectorMolecule, NavigationMenu, NavigationMenuContent, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NotificationList, type NotificationListMolecule, PXEngineRenderer, Pagination, PaginationAtom, type PaginationAtomType, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PlatformIconGroup, type PlatformIconGroupMolecule, PlatformSelectDisplay, PlatformSelectEdit, type PollingConfig, Popover, PopoverAtom, type PopoverAtomType, PopoverContent, PopoverTrigger, Progress, ProgressAtom, type ProgressAtomType, RadioAtom, type RadioAtomType, RadioGroup, RadioGroupAtom, type RadioGroupAtomType, RadioGroupItem, RatingAtom, type RatingAtomType, ResizableAtom, type ResizableAtomType, ResizablePanel, ResizablePanelGroup, 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, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Skeleton, SkeletonAtom, type SkeletonAtomType, Slider, SliderAtom, type SliderAtomType, Spinner, SpinnerAtom, type SpinnerAtomType, StageIndicator, type StageIndicatorMolecule, 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, ToggleAtom, type ToggleAtomType, ToolListCard, type ToolListCardMolecule, Tooltip, TooltipAtom, type TooltipAtomType, TooltipContent, TooltipProvider, TooltipTrigger, TopPostsGrid, type TopPostsGridMolecule, type UIAtom, type UIComponent, UIComponentSelector, type UIComponentSelectorMolecule, type UIMolecule, type UISchema, VideoAtom, type VideoAtomType, WorkflowVisualizer, type WorkflowVisualizerMolecule, cn, generateFieldsFromData, generateFieldsFromPropDefinitions, useCreatorWidgetPolling };