pxengine 0.1.19 → 0.1.21
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.cjs +648 -385
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +110 -46
- package/dist/index.d.ts +110 -46
- package/dist/index.mjs +651 -390
- package/dist/index.mjs.map +1 -1
- package/dist/registry.json +258 -70
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -722,11 +722,12 @@ interface UISchema {
|
|
|
722
722
|
interface PXEngineRendererProps {
|
|
723
723
|
schema: UISchema | UIComponent;
|
|
724
724
|
onAction?: (action: any, payload?: any) => void;
|
|
725
|
+
disabled?: boolean;
|
|
725
726
|
}
|
|
726
727
|
declare const PXEngineRenderer: React__default.FC<PXEngineRendererProps>;
|
|
727
728
|
|
|
728
729
|
declare const buttonVariants: (props?: ({
|
|
729
|
-
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
730
|
+
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | "purple" | null | undefined;
|
|
730
731
|
size?: "sm" | "lg" | "default" | "icon" | null | undefined;
|
|
731
732
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
732
733
|
interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
@@ -1105,7 +1106,7 @@ declare const AvatarImage: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitiv
|
|
|
1105
1106
|
declare const AvatarFallback: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
1106
1107
|
|
|
1107
1108
|
declare const badgeVariants: (props?: ({
|
|
1108
|
-
variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
|
|
1109
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "purple" | null | undefined;
|
|
1109
1110
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1110
1111
|
interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
1111
1112
|
}
|
|
@@ -1420,7 +1421,7 @@ declare const IconAtom: React__default.FC<IconAtomType>;
|
|
|
1420
1421
|
*/
|
|
1421
1422
|
declare const ArrowToggleAtom: React__default.FC<ArrowToggleAtomType>;
|
|
1422
1423
|
|
|
1423
|
-
type ButtonVariant = "default" | "destructive" | "outline" | "secondary" | "ghost" | "link";
|
|
1424
|
+
type ButtonVariant = "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | "purple";
|
|
1424
1425
|
type ButtonSize = "default" | "sm" | "lg" | "icon";
|
|
1425
1426
|
/**
|
|
1426
1427
|
* Field types for EditableField molecule
|
|
@@ -1522,13 +1523,29 @@ interface EditableFieldProps {
|
|
|
1522
1523
|
* Custom renderer for the edit state
|
|
1523
1524
|
*/
|
|
1524
1525
|
renderEdit?: (value: any, onChange: (v: any) => void) => React.ReactNode;
|
|
1526
|
+
/**
|
|
1527
|
+
* Whether this is the latest message
|
|
1528
|
+
*/
|
|
1529
|
+
isLatestMessage?: boolean;
|
|
1530
|
+
/**
|
|
1531
|
+
* Whether to show the index number
|
|
1532
|
+
*/
|
|
1533
|
+
showIndex?: boolean;
|
|
1534
|
+
/**
|
|
1535
|
+
* Index of this field in the form
|
|
1536
|
+
*/
|
|
1537
|
+
index?: number;
|
|
1538
|
+
/**
|
|
1539
|
+
* Total number of fields in the form
|
|
1540
|
+
*/
|
|
1541
|
+
totalFields?: number;
|
|
1525
1542
|
}
|
|
1526
1543
|
|
|
1527
1544
|
/**
|
|
1528
1545
|
* EditableField
|
|
1529
1546
|
*
|
|
1530
1547
|
* A generic field that toggles between display and edit modes.
|
|
1531
|
-
*
|
|
1548
|
+
* Styled with purple labels and green "Suggested by an Agent" badge.
|
|
1532
1549
|
*/
|
|
1533
1550
|
declare const EditableField: React__default.NamedExoticComponent<EditableFieldProps>;
|
|
1534
1551
|
|
|
@@ -1647,18 +1664,6 @@ interface FormCardProps {
|
|
|
1647
1664
|
* Label for the "Proceed" button
|
|
1648
1665
|
*/
|
|
1649
1666
|
proceedLabel?: string;
|
|
1650
|
-
/**
|
|
1651
|
-
* Countdown for auto-proceed
|
|
1652
|
-
*/
|
|
1653
|
-
countdown?: number;
|
|
1654
|
-
/**
|
|
1655
|
-
* Whether the timer is paused
|
|
1656
|
-
*/
|
|
1657
|
-
isPaused?: boolean;
|
|
1658
|
-
/**
|
|
1659
|
-
* Pause/Resume handler
|
|
1660
|
-
*/
|
|
1661
|
-
onPause?: () => void;
|
|
1662
1667
|
/**
|
|
1663
1668
|
* Proceed handler
|
|
1664
1669
|
*/
|
|
@@ -1671,17 +1676,18 @@ interface FormCardProps {
|
|
|
1671
1676
|
* Footer content (optional)
|
|
1672
1677
|
*/
|
|
1673
1678
|
footer?: React.ReactNode;
|
|
1679
|
+
/**
|
|
1680
|
+
* Whether this is the latest message
|
|
1681
|
+
*/
|
|
1682
|
+
isLatestMessage?: boolean;
|
|
1674
1683
|
}
|
|
1675
1684
|
|
|
1676
1685
|
/**
|
|
1677
1686
|
* FormCard
|
|
1678
1687
|
*
|
|
1679
|
-
*
|
|
1680
|
-
*
|
|
1681
|
-
*
|
|
1682
|
-
* - Copy to clipboard functionality
|
|
1683
|
-
* - Integrated ActionButton with countdown
|
|
1684
|
-
* - Responsive layout
|
|
1688
|
+
* High-level molecule that assembles multiple EditableFields
|
|
1689
|
+
* into a cohesive card unit.
|
|
1690
|
+
* Styled with purple labels and green badges.
|
|
1685
1691
|
*/
|
|
1686
1692
|
declare const FormCard: React__default.NamedExoticComponent<FormCardProps>;
|
|
1687
1693
|
|
|
@@ -1843,49 +1849,40 @@ interface MCQCardProps {
|
|
|
1843
1849
|
*/
|
|
1844
1850
|
onSelect?: (key: string) => void;
|
|
1845
1851
|
/**
|
|
1846
|
-
* Triggered when the user clicks
|
|
1852
|
+
* Triggered when the user clicks Continue
|
|
1847
1853
|
*/
|
|
1848
|
-
|
|
1854
|
+
onProceed?: (key: string) => void;
|
|
1849
1855
|
/**
|
|
1850
|
-
*
|
|
1856
|
+
* Whether this message is the latest (controls interactivity)
|
|
1851
1857
|
*/
|
|
1852
1858
|
isLatestMessage?: boolean;
|
|
1853
|
-
/**
|
|
1854
|
-
* Countdown in seconds
|
|
1855
|
-
*/
|
|
1856
|
-
countdown?: number;
|
|
1857
|
-
/**
|
|
1858
|
-
* Whether the countdown is paused
|
|
1859
|
-
*/
|
|
1860
|
-
isPaused?: boolean;
|
|
1861
|
-
/**
|
|
1862
|
-
* Pause/Resume handler
|
|
1863
|
-
*/
|
|
1864
|
-
onPause?: () => void;
|
|
1865
1859
|
/**
|
|
1866
1860
|
* Loading state during submission
|
|
1867
1861
|
*/
|
|
1868
1862
|
isLoading?: boolean;
|
|
1869
1863
|
/**
|
|
1870
|
-
* Custom
|
|
1864
|
+
* Custom wrapper class name
|
|
1871
1865
|
*/
|
|
1872
1866
|
className?: string;
|
|
1873
1867
|
/**
|
|
1874
|
-
* Who made the final selection (for historical view)
|
|
1868
|
+
* Who made the final selection (used for historical view)
|
|
1875
1869
|
*/
|
|
1876
1870
|
selectionStatus?: "user" | "agent";
|
|
1871
|
+
/**
|
|
1872
|
+
* Optional action callback for external state management (e.g. PXEngine)
|
|
1873
|
+
*/
|
|
1874
|
+
onAction?: (action: any) => void;
|
|
1875
|
+
/**
|
|
1876
|
+
* Whether the interaction is disabled externally
|
|
1877
|
+
*/
|
|
1878
|
+
disabled?: boolean;
|
|
1877
1879
|
}
|
|
1878
1880
|
|
|
1879
1881
|
/**
|
|
1880
1882
|
* MCQCard
|
|
1881
1883
|
*
|
|
1882
1884
|
* A molecule for Multiple Choice Questions.
|
|
1883
|
-
*
|
|
1884
|
-
* - Recommended options with styling
|
|
1885
|
-
* - Radio-style selection
|
|
1886
|
-
* - Integrated ActionButton with countdown
|
|
1887
|
-
* - Peer/Agent approval labels
|
|
1888
|
-
* - Premium aesthetics
|
|
1885
|
+
* Styled to match OptionsRenderer from creator-engine
|
|
1889
1886
|
*/
|
|
1890
1887
|
declare const MCQCard: React__default.NamedExoticComponent<MCQCardProps>;
|
|
1891
1888
|
|
|
@@ -1949,4 +1946,71 @@ declare const TopPostsGrid: React__default.FC<TopPostsGridMolecule>;
|
|
|
1949
1946
|
*/
|
|
1950
1947
|
declare const CreatorActionHeader: React__default.FC<CreatorActionHeaderMolecule>;
|
|
1951
1948
|
|
|
1952
|
-
|
|
1949
|
+
interface CreatorSearchProps extends Omit<FormCardProps, "fields"> {
|
|
1950
|
+
/**
|
|
1951
|
+
* Status of the selection
|
|
1952
|
+
*/
|
|
1953
|
+
selectionStatus?: "user" | "agent";
|
|
1954
|
+
/**
|
|
1955
|
+
* Whether the message is the latest
|
|
1956
|
+
*/
|
|
1957
|
+
isLatestMessage?: boolean;
|
|
1958
|
+
/**
|
|
1959
|
+
* Optional field configuration to override dynamic generation
|
|
1960
|
+
*/
|
|
1961
|
+
fields?: FieldConfig[];
|
|
1962
|
+
}
|
|
1963
|
+
|
|
1964
|
+
/**
|
|
1965
|
+
* CreatorSearch
|
|
1966
|
+
*
|
|
1967
|
+
* A domain-specific molecule for the Creator Discovery workflow.
|
|
1968
|
+
* Encapsulates creator search settings like platforms, range, geography, keywords, etc.
|
|
1969
|
+
* Designed to match the MCQCard theme with premium dark aesthetics.
|
|
1970
|
+
*/
|
|
1971
|
+
declare const CreatorSearch: React__default.NamedExoticComponent<CreatorSearchProps>;
|
|
1972
|
+
|
|
1973
|
+
interface CampaignConceptCardProps extends Omit<FormCardProps, "fields" | "title"> {
|
|
1974
|
+
/**
|
|
1975
|
+
* Title of the concept
|
|
1976
|
+
*/
|
|
1977
|
+
title?: string;
|
|
1978
|
+
/**
|
|
1979
|
+
* Whether this concept is recommended
|
|
1980
|
+
*/
|
|
1981
|
+
isRecommended?: boolean;
|
|
1982
|
+
/**
|
|
1983
|
+
* Whether the card is expanded
|
|
1984
|
+
*/
|
|
1985
|
+
isOpen?: boolean;
|
|
1986
|
+
/**
|
|
1987
|
+
* Callback for toggling the card
|
|
1988
|
+
*/
|
|
1989
|
+
onToggle?: () => void;
|
|
1990
|
+
/**
|
|
1991
|
+
* Dynamic field data
|
|
1992
|
+
*/
|
|
1993
|
+
data: Record<string, any>;
|
|
1994
|
+
/**
|
|
1995
|
+
* Optional field configuration to override dynamic generation
|
|
1996
|
+
*/
|
|
1997
|
+
fields?: FieldConfig[];
|
|
1998
|
+
/**
|
|
1999
|
+
* Selection status for the footer
|
|
2000
|
+
*/
|
|
2001
|
+
selectionStatus?: "user" | "agent";
|
|
2002
|
+
/**
|
|
2003
|
+
* Whether this is the latest message
|
|
2004
|
+
*/
|
|
2005
|
+
isLatestMessage?: boolean;
|
|
2006
|
+
}
|
|
2007
|
+
|
|
2008
|
+
/**
|
|
2009
|
+
* CampaignConceptCard
|
|
2010
|
+
*
|
|
2011
|
+
* A domain-specific molecule for displaying a campaign concept.
|
|
2012
|
+
* Features an accordion-style collapsible header and custom data rendering.
|
|
2013
|
+
*/
|
|
2014
|
+
declare const CampaignConceptCard: React__default.NamedExoticComponent<CampaignConceptCardProps>;
|
|
2015
|
+
|
|
2016
|
+
export { Accordion, AccordionAtom, type AccordionAtomType, AccordionContent, AccordionItem, AccordionTrigger, ActionButton, type ActionButtonAtom, type ActionButtonProps, 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, CreatorGridCard, type CreatorGridCardMolecule, CreatorProfileSummary, type CreatorProfileSummaryMolecule, CreatorSearch, type CreatorSearchProps, 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, 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, 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, NotificationList, type NotificationListMolecule, PXEngineRenderer, Pagination, PaginationAtom, type PaginationAtomType, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PlatformIconGroup, type PlatformIconGroupMolecule, 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, StatsGrid, type StatsGridMolecule, 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, Tooltip, TooltipAtom, type TooltipAtomType, TooltipContent, TooltipProvider, TooltipTrigger, TopPostsGrid, type TopPostsGridMolecule, type UIAtom, type UIComponent, type UIMolecule, type UISchema, VideoAtom, type VideoAtomType, cn };
|
package/dist/index.d.ts
CHANGED
|
@@ -722,11 +722,12 @@ interface UISchema {
|
|
|
722
722
|
interface PXEngineRendererProps {
|
|
723
723
|
schema: UISchema | UIComponent;
|
|
724
724
|
onAction?: (action: any, payload?: any) => void;
|
|
725
|
+
disabled?: boolean;
|
|
725
726
|
}
|
|
726
727
|
declare const PXEngineRenderer: React__default.FC<PXEngineRendererProps>;
|
|
727
728
|
|
|
728
729
|
declare const buttonVariants: (props?: ({
|
|
729
|
-
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
730
|
+
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | "purple" | null | undefined;
|
|
730
731
|
size?: "sm" | "lg" | "default" | "icon" | null | undefined;
|
|
731
732
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
732
733
|
interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
@@ -1105,7 +1106,7 @@ declare const AvatarImage: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitiv
|
|
|
1105
1106
|
declare const AvatarFallback: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
1106
1107
|
|
|
1107
1108
|
declare const badgeVariants: (props?: ({
|
|
1108
|
-
variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
|
|
1109
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "purple" | null | undefined;
|
|
1109
1110
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1110
1111
|
interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
1111
1112
|
}
|
|
@@ -1420,7 +1421,7 @@ declare const IconAtom: React__default.FC<IconAtomType>;
|
|
|
1420
1421
|
*/
|
|
1421
1422
|
declare const ArrowToggleAtom: React__default.FC<ArrowToggleAtomType>;
|
|
1422
1423
|
|
|
1423
|
-
type ButtonVariant = "default" | "destructive" | "outline" | "secondary" | "ghost" | "link";
|
|
1424
|
+
type ButtonVariant = "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | "purple";
|
|
1424
1425
|
type ButtonSize = "default" | "sm" | "lg" | "icon";
|
|
1425
1426
|
/**
|
|
1426
1427
|
* Field types for EditableField molecule
|
|
@@ -1522,13 +1523,29 @@ interface EditableFieldProps {
|
|
|
1522
1523
|
* Custom renderer for the edit state
|
|
1523
1524
|
*/
|
|
1524
1525
|
renderEdit?: (value: any, onChange: (v: any) => void) => React.ReactNode;
|
|
1526
|
+
/**
|
|
1527
|
+
* Whether this is the latest message
|
|
1528
|
+
*/
|
|
1529
|
+
isLatestMessage?: boolean;
|
|
1530
|
+
/**
|
|
1531
|
+
* Whether to show the index number
|
|
1532
|
+
*/
|
|
1533
|
+
showIndex?: boolean;
|
|
1534
|
+
/**
|
|
1535
|
+
* Index of this field in the form
|
|
1536
|
+
*/
|
|
1537
|
+
index?: number;
|
|
1538
|
+
/**
|
|
1539
|
+
* Total number of fields in the form
|
|
1540
|
+
*/
|
|
1541
|
+
totalFields?: number;
|
|
1525
1542
|
}
|
|
1526
1543
|
|
|
1527
1544
|
/**
|
|
1528
1545
|
* EditableField
|
|
1529
1546
|
*
|
|
1530
1547
|
* A generic field that toggles between display and edit modes.
|
|
1531
|
-
*
|
|
1548
|
+
* Styled with purple labels and green "Suggested by an Agent" badge.
|
|
1532
1549
|
*/
|
|
1533
1550
|
declare const EditableField: React__default.NamedExoticComponent<EditableFieldProps>;
|
|
1534
1551
|
|
|
@@ -1647,18 +1664,6 @@ interface FormCardProps {
|
|
|
1647
1664
|
* Label for the "Proceed" button
|
|
1648
1665
|
*/
|
|
1649
1666
|
proceedLabel?: string;
|
|
1650
|
-
/**
|
|
1651
|
-
* Countdown for auto-proceed
|
|
1652
|
-
*/
|
|
1653
|
-
countdown?: number;
|
|
1654
|
-
/**
|
|
1655
|
-
* Whether the timer is paused
|
|
1656
|
-
*/
|
|
1657
|
-
isPaused?: boolean;
|
|
1658
|
-
/**
|
|
1659
|
-
* Pause/Resume handler
|
|
1660
|
-
*/
|
|
1661
|
-
onPause?: () => void;
|
|
1662
1667
|
/**
|
|
1663
1668
|
* Proceed handler
|
|
1664
1669
|
*/
|
|
@@ -1671,17 +1676,18 @@ interface FormCardProps {
|
|
|
1671
1676
|
* Footer content (optional)
|
|
1672
1677
|
*/
|
|
1673
1678
|
footer?: React.ReactNode;
|
|
1679
|
+
/**
|
|
1680
|
+
* Whether this is the latest message
|
|
1681
|
+
*/
|
|
1682
|
+
isLatestMessage?: boolean;
|
|
1674
1683
|
}
|
|
1675
1684
|
|
|
1676
1685
|
/**
|
|
1677
1686
|
* FormCard
|
|
1678
1687
|
*
|
|
1679
|
-
*
|
|
1680
|
-
*
|
|
1681
|
-
*
|
|
1682
|
-
* - Copy to clipboard functionality
|
|
1683
|
-
* - Integrated ActionButton with countdown
|
|
1684
|
-
* - Responsive layout
|
|
1688
|
+
* High-level molecule that assembles multiple EditableFields
|
|
1689
|
+
* into a cohesive card unit.
|
|
1690
|
+
* Styled with purple labels and green badges.
|
|
1685
1691
|
*/
|
|
1686
1692
|
declare const FormCard: React__default.NamedExoticComponent<FormCardProps>;
|
|
1687
1693
|
|
|
@@ -1843,49 +1849,40 @@ interface MCQCardProps {
|
|
|
1843
1849
|
*/
|
|
1844
1850
|
onSelect?: (key: string) => void;
|
|
1845
1851
|
/**
|
|
1846
|
-
* Triggered when the user clicks
|
|
1852
|
+
* Triggered when the user clicks Continue
|
|
1847
1853
|
*/
|
|
1848
|
-
|
|
1854
|
+
onProceed?: (key: string) => void;
|
|
1849
1855
|
/**
|
|
1850
|
-
*
|
|
1856
|
+
* Whether this message is the latest (controls interactivity)
|
|
1851
1857
|
*/
|
|
1852
1858
|
isLatestMessage?: boolean;
|
|
1853
|
-
/**
|
|
1854
|
-
* Countdown in seconds
|
|
1855
|
-
*/
|
|
1856
|
-
countdown?: number;
|
|
1857
|
-
/**
|
|
1858
|
-
* Whether the countdown is paused
|
|
1859
|
-
*/
|
|
1860
|
-
isPaused?: boolean;
|
|
1861
|
-
/**
|
|
1862
|
-
* Pause/Resume handler
|
|
1863
|
-
*/
|
|
1864
|
-
onPause?: () => void;
|
|
1865
1859
|
/**
|
|
1866
1860
|
* Loading state during submission
|
|
1867
1861
|
*/
|
|
1868
1862
|
isLoading?: boolean;
|
|
1869
1863
|
/**
|
|
1870
|
-
* Custom
|
|
1864
|
+
* Custom wrapper class name
|
|
1871
1865
|
*/
|
|
1872
1866
|
className?: string;
|
|
1873
1867
|
/**
|
|
1874
|
-
* Who made the final selection (for historical view)
|
|
1868
|
+
* Who made the final selection (used for historical view)
|
|
1875
1869
|
*/
|
|
1876
1870
|
selectionStatus?: "user" | "agent";
|
|
1871
|
+
/**
|
|
1872
|
+
* Optional action callback for external state management (e.g. PXEngine)
|
|
1873
|
+
*/
|
|
1874
|
+
onAction?: (action: any) => void;
|
|
1875
|
+
/**
|
|
1876
|
+
* Whether the interaction is disabled externally
|
|
1877
|
+
*/
|
|
1878
|
+
disabled?: boolean;
|
|
1877
1879
|
}
|
|
1878
1880
|
|
|
1879
1881
|
/**
|
|
1880
1882
|
* MCQCard
|
|
1881
1883
|
*
|
|
1882
1884
|
* A molecule for Multiple Choice Questions.
|
|
1883
|
-
*
|
|
1884
|
-
* - Recommended options with styling
|
|
1885
|
-
* - Radio-style selection
|
|
1886
|
-
* - Integrated ActionButton with countdown
|
|
1887
|
-
* - Peer/Agent approval labels
|
|
1888
|
-
* - Premium aesthetics
|
|
1885
|
+
* Styled to match OptionsRenderer from creator-engine
|
|
1889
1886
|
*/
|
|
1890
1887
|
declare const MCQCard: React__default.NamedExoticComponent<MCQCardProps>;
|
|
1891
1888
|
|
|
@@ -1949,4 +1946,71 @@ declare const TopPostsGrid: React__default.FC<TopPostsGridMolecule>;
|
|
|
1949
1946
|
*/
|
|
1950
1947
|
declare const CreatorActionHeader: React__default.FC<CreatorActionHeaderMolecule>;
|
|
1951
1948
|
|
|
1952
|
-
|
|
1949
|
+
interface CreatorSearchProps extends Omit<FormCardProps, "fields"> {
|
|
1950
|
+
/**
|
|
1951
|
+
* Status of the selection
|
|
1952
|
+
*/
|
|
1953
|
+
selectionStatus?: "user" | "agent";
|
|
1954
|
+
/**
|
|
1955
|
+
* Whether the message is the latest
|
|
1956
|
+
*/
|
|
1957
|
+
isLatestMessage?: boolean;
|
|
1958
|
+
/**
|
|
1959
|
+
* Optional field configuration to override dynamic generation
|
|
1960
|
+
*/
|
|
1961
|
+
fields?: FieldConfig[];
|
|
1962
|
+
}
|
|
1963
|
+
|
|
1964
|
+
/**
|
|
1965
|
+
* CreatorSearch
|
|
1966
|
+
*
|
|
1967
|
+
* A domain-specific molecule for the Creator Discovery workflow.
|
|
1968
|
+
* Encapsulates creator search settings like platforms, range, geography, keywords, etc.
|
|
1969
|
+
* Designed to match the MCQCard theme with premium dark aesthetics.
|
|
1970
|
+
*/
|
|
1971
|
+
declare const CreatorSearch: React__default.NamedExoticComponent<CreatorSearchProps>;
|
|
1972
|
+
|
|
1973
|
+
interface CampaignConceptCardProps extends Omit<FormCardProps, "fields" | "title"> {
|
|
1974
|
+
/**
|
|
1975
|
+
* Title of the concept
|
|
1976
|
+
*/
|
|
1977
|
+
title?: string;
|
|
1978
|
+
/**
|
|
1979
|
+
* Whether this concept is recommended
|
|
1980
|
+
*/
|
|
1981
|
+
isRecommended?: boolean;
|
|
1982
|
+
/**
|
|
1983
|
+
* Whether the card is expanded
|
|
1984
|
+
*/
|
|
1985
|
+
isOpen?: boolean;
|
|
1986
|
+
/**
|
|
1987
|
+
* Callback for toggling the card
|
|
1988
|
+
*/
|
|
1989
|
+
onToggle?: () => void;
|
|
1990
|
+
/**
|
|
1991
|
+
* Dynamic field data
|
|
1992
|
+
*/
|
|
1993
|
+
data: Record<string, any>;
|
|
1994
|
+
/**
|
|
1995
|
+
* Optional field configuration to override dynamic generation
|
|
1996
|
+
*/
|
|
1997
|
+
fields?: FieldConfig[];
|
|
1998
|
+
/**
|
|
1999
|
+
* Selection status for the footer
|
|
2000
|
+
*/
|
|
2001
|
+
selectionStatus?: "user" | "agent";
|
|
2002
|
+
/**
|
|
2003
|
+
* Whether this is the latest message
|
|
2004
|
+
*/
|
|
2005
|
+
isLatestMessage?: boolean;
|
|
2006
|
+
}
|
|
2007
|
+
|
|
2008
|
+
/**
|
|
2009
|
+
* CampaignConceptCard
|
|
2010
|
+
*
|
|
2011
|
+
* A domain-specific molecule for displaying a campaign concept.
|
|
2012
|
+
* Features an accordion-style collapsible header and custom data rendering.
|
|
2013
|
+
*/
|
|
2014
|
+
declare const CampaignConceptCard: React__default.NamedExoticComponent<CampaignConceptCardProps>;
|
|
2015
|
+
|
|
2016
|
+
export { Accordion, AccordionAtom, type AccordionAtomType, AccordionContent, AccordionItem, AccordionTrigger, ActionButton, type ActionButtonAtom, type ActionButtonProps, 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, CreatorGridCard, type CreatorGridCardMolecule, CreatorProfileSummary, type CreatorProfileSummaryMolecule, CreatorSearch, type CreatorSearchProps, 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, 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, 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, NotificationList, type NotificationListMolecule, PXEngineRenderer, Pagination, PaginationAtom, type PaginationAtomType, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PlatformIconGroup, type PlatformIconGroupMolecule, 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, StatsGrid, type StatsGridMolecule, 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, Tooltip, TooltipAtom, type TooltipAtomType, TooltipContent, TooltipProvider, TooltipTrigger, TopPostsGrid, type TopPostsGridMolecule, type UIAtom, type UIComponent, type UIMolecule, type UISchema, VideoAtom, type VideoAtomType, cn };
|