@pollinations/ui 0.1.0-alpha.40 → 0.1.0-alpha.42

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.
Files changed (51) hide show
  1. package/README.md +5 -1
  2. package/dist/app-user-menu/sdk.d.ts +4 -2
  3. package/dist/app-user-menu/sdk.js +15 -14
  4. package/dist/app-user-menu/sdk.js.map +1 -1
  5. package/dist/auth/index.js +8 -8
  6. package/dist/auth/sdk.js +97 -8
  7. package/dist/auth/sdk.js.map +1 -1
  8. package/dist/{chunk-KLAOGE6Y.js → chunk-3UGI5F4I.js} +2 -2
  9. package/dist/{chunk-FZXMS7HJ.js → chunk-4Z7Q5IHS.js} +2 -2
  10. package/dist/{chunk-R3RMENGN.js → chunk-64ALJH5X.js} +3 -3
  11. package/dist/{chunk-WVDV47XQ.js → chunk-DEXJV7HO.js} +30 -2
  12. package/dist/chunk-DEXJV7HO.js.map +1 -0
  13. package/dist/{chunk-EHOK3XKM.js → chunk-FC3UE7XG.js} +25 -2
  14. package/dist/chunk-FC3UE7XG.js.map +1 -0
  15. package/dist/{chunk-OWQ2HDQB.js → chunk-ISOKPVX3.js} +2 -2
  16. package/dist/{chunk-MU7JQOTF.js → chunk-KLXFVVPE.js} +4 -4
  17. package/dist/{chunk-LAZ5O2ZK.js → chunk-O4GD4NTS.js} +2 -2
  18. package/dist/{chunk-MS2GGEMU.js → chunk-OHA5F7YF.js} +5 -5
  19. package/dist/{chunk-QPNEXTZ5.js → chunk-QH75CTQB.js} +2 -2
  20. package/dist/{chunk-WV4XTYMU.js → chunk-SVBJIRQY.js} +2 -2
  21. package/dist/{chunk-KTGSOTNW.js → chunk-WVBUY7NR.js} +4 -4
  22. package/dist/{chunk-B7T42IY2.js → chunk-ZBA2L5L4.js} +2 -2
  23. package/dist/connect.js +14 -14
  24. package/dist/connect.js.map +1 -1
  25. package/dist/gen/index.js +11 -26
  26. package/dist/gen/index.js.map +1 -1
  27. package/dist/{index-BR4r9rhQ.d.ts → index-uotEq_CF.d.ts} +7 -1
  28. package/dist/index.browser.min.js +1 -1
  29. package/dist/index.browser.min.js.map +1 -1
  30. package/dist/index.d.ts +64 -10
  31. package/dist/index.js +1718 -973
  32. package/dist/index.js.map +1 -1
  33. package/dist/markdown.js +6 -6
  34. package/dist/styles.css +1 -1
  35. package/dist/wallet/index.js +5 -5
  36. package/package.json +1 -1
  37. package/dist/chunk-DFYLQTCM.js +0 -107
  38. package/dist/chunk-DFYLQTCM.js.map +0 -1
  39. package/dist/chunk-EHOK3XKM.js.map +0 -1
  40. package/dist/chunk-WVDV47XQ.js.map +0 -1
  41. /package/dist/{chunk-KLAOGE6Y.js.map → chunk-3UGI5F4I.js.map} +0 -0
  42. /package/dist/{chunk-FZXMS7HJ.js.map → chunk-4Z7Q5IHS.js.map} +0 -0
  43. /package/dist/{chunk-R3RMENGN.js.map → chunk-64ALJH5X.js.map} +0 -0
  44. /package/dist/{chunk-OWQ2HDQB.js.map → chunk-ISOKPVX3.js.map} +0 -0
  45. /package/dist/{chunk-MU7JQOTF.js.map → chunk-KLXFVVPE.js.map} +0 -0
  46. /package/dist/{chunk-LAZ5O2ZK.js.map → chunk-O4GD4NTS.js.map} +0 -0
  47. /package/dist/{chunk-MS2GGEMU.js.map → chunk-OHA5F7YF.js.map} +0 -0
  48. /package/dist/{chunk-QPNEXTZ5.js.map → chunk-QH75CTQB.js.map} +0 -0
  49. /package/dist/{chunk-WV4XTYMU.js.map → chunk-SVBJIRQY.js.map} +0 -0
  50. /package/dist/{chunk-KTGSOTNW.js.map → chunk-WVBUY7NR.js.map} +0 -0
  51. /package/dist/{chunk-B7T42IY2.js.map → chunk-ZBA2L5L4.js.map} +0 -0
package/dist/index.d.ts CHANGED
@@ -1,13 +1,13 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as react from 'react';
3
3
  import { ReactNode, CSSProperties, FC, ComponentPropsWithoutRef, RefObject, ButtonHTMLAttributes, PropsWithChildren, ComponentType, ElementType } from 'react';
4
+ import { T as TileModality, D as DiscordIcon, G as GitHubIcon } from './index-uotEq_CF.js';
5
+ export { A as AccountIcon, a as AppIcon, b as ArrowLeftIcon, c as ArrowRightIcon, d as AudioIcon, B as BeakerIcon, e as BookIcon, f as BotIcon, g as BugIcon, C as CardIcon, h as ChatIcon, i as CheckIcon, j as ClipboardIcon, k as ClockIcon, l as CloudUploadIcon, m as CodeIcon, n as CubeIcon, o as DatabaseIcon, p as DownloadIcon, E as EarningsIcon, q as ExpandIcon, r as ExternalLinkIcon, s as EyeIcon, t as EyeOffIcon, u as GenApiIcon, v as GitBranchIcon, w as GitMergeIcon, x as GitPullRequestIcon, y as GlobeIcon, z as GoogleIcon, F as GraduationCapIcon, I as ImageIcon, H as InstagramIcon, J as IssueClosedIcon, K as KeyIcon, L as LayersIcon, M as LinkedInIcon, N as LockIcon, O as LogInIcon, P as LogOutIcon, Q as MailIcon, R as McpIcon, S as MediaFileIcon, U as MegaphoneIcon, V as MenuIcon, W as MicIcon, X as MoonIcon, Y as NewspaperIcon, Z as PauseIcon, _ as PencilIcon, $ as PlayIcon, a0 as PlusIcon, a1 as PowerIcon, a2 as PulseIcon, a3 as ReasoningIcon, a4 as ReceiptIcon, a5 as RefreshIcon, a6 as RobotIcon, a7 as RocketIcon, a8 as SearchIcon, a9 as ShieldCheckIcon, aa as SignOutIcon, ab as SparkleIcon, ac as SparklesIcon, ad as SpeakerIcon, ae as SproutIcon, af as StarIcon, ag as SunIcon, ah as TargetIcon, ai as TerminalIcon, aj as TokensIcon, ak as ToolIcon, al as TrashIcon, am as TrendUpIcon, an as UsageIcon, ao as VideoIcon, ap as WalletIcon, aq as WarningIcon, ar as XIcon, as as XSocialIcon } from './index-uotEq_CF.js';
4
6
  import { S as ScrollAreaProps, D as DialogProps } from './Dialog-D3Nqt8cE.js';
5
7
  export { a as Dialog, b as DialogBody, c as DialogBodyProps, d as DialogDescription, e as DialogFooter, f as DialogFooterProps, g as DialogHeader, h as DialogHeaderProps, i as DialogTitle, j as ScrollArea } from './Dialog-D3Nqt8cE.js';
6
8
  import { B as ButtonProps, a as ButtonAppearance } from './Button-Bt_eMnOx.js';
7
9
  export { b as Button } from './Button-Bt_eMnOx.js';
8
10
  import { I as IconProps } from './types-CCy9JNu9.js';
9
- import { D as DiscordIcon, G as GitHubIcon } from './index-BR4r9rhQ.js';
10
- export { A as AccountIcon, a as AppIcon, b as ArrowLeftIcon, c as ArrowRightIcon, d as AudioIcon, B as BeakerIcon, e as BookIcon, f as BotIcon, g as BugIcon, C as CardIcon, h as ChatIcon, i as CheckIcon, j as ClipboardIcon, k as ClockIcon, l as CloudUploadIcon, m as CodeIcon, n as CubeIcon, o as DatabaseIcon, p as DownloadIcon, E as EarningsIcon, q as ExpandIcon, r as ExternalLinkIcon, s as EyeIcon, t as EyeOffIcon, u as GenApiIcon, v as GitBranchIcon, w as GitMergeIcon, x as GitPullRequestIcon, y as GlobeIcon, z as GoogleIcon, F as GraduationCapIcon, I as ImageIcon, H as InstagramIcon, J as IssueClosedIcon, K as KeyIcon, L as LayersIcon, M as LinkedInIcon, N as LockIcon, O as LogInIcon, P as LogOutIcon, Q as MailIcon, R as McpIcon, S as MegaphoneIcon, T as MenuIcon, U as MicIcon, V as MoonIcon, W as NewspaperIcon, X as PauseIcon, Y as PencilIcon, Z as PlayIcon, _ as PlusIcon, $ as PowerIcon, a0 as PulseIcon, a1 as ReasoningIcon, a2 as ReceiptIcon, a3 as RefreshIcon, a4 as RobotIcon, a5 as RocketIcon, a6 as SearchIcon, a7 as ShieldCheckIcon, a8 as SignOutIcon, a9 as SparkleIcon, aa as SparklesIcon, ab as SpeakerIcon, ac as SproutIcon, ad as StarIcon, ae as SunIcon, af as TargetIcon, ag as TerminalIcon, ah as TokensIcon, ai as ToolIcon, aj as TrashIcon, ak as TrendUpIcon, al as UsageIcon, am as VideoIcon, an as WalletIcon, ao as WarningIcon, ap as XIcon, aq as XSocialIcon } from './index-BR4r9rhQ.js';
11
11
  export { C as Chip } from './Chip-v-ADv6cz.js';
12
12
  export { Field } from '@ark-ui/react/field';
13
13
  import '@ark-ui/react/dialog';
@@ -92,6 +92,47 @@ type AppHeaderProps = {
92
92
  };
93
93
  declare function AppHeader({ children, navLabel, appName, autoHide, scrollTargetRef, brandHref, brandLabel, className, innerClassName, navClassName, }: AppHeaderProps): react_jsx_runtime.JSX.Element;
94
94
 
95
+ type RejectReason = "type" | "size" | "count";
96
+ type RejectedFile = {
97
+ file: File;
98
+ reason: RejectReason;
99
+ };
100
+ type PartitionOptions = {
101
+ maxFiles: number;
102
+ maxSizeBytes: number;
103
+ /** Comma-separated list: mime ("image/png"), wildcard ("image/*"), or extension (".webp"). */
104
+ accept?: string;
105
+ };
106
+
107
+ type AudioInputProps = {
108
+ value: File[];
109
+ onChange: (files: File[]) => void;
110
+ onBusyChange?: (busy: boolean) => void;
111
+ /** Browser-readable duration in seconds, or null when local preview is unavailable. */
112
+ onClipDuration?: (file: File, seconds: number | null) => void;
113
+ onReject?: (files: RejectedFile[]) => void;
114
+ accept?: string;
115
+ importLabel?: string;
116
+ inputLabel?: string;
117
+ tileModality?: TileModality;
118
+ maxFiles?: number;
119
+ maxSizeBytes: number;
120
+ disabled?: boolean;
121
+ /** Render the recording and import actions inline with a shared preview queue. */
122
+ actionsOnly?: boolean;
123
+ };
124
+ declare function AudioInput({ value, onChange, onBusyChange, onClipDuration, onReject, accept, importLabel, inputLabel, tileModality, maxFiles, maxSizeBytes, disabled, actionsOnly, }: AudioInputProps): react_jsx_runtime.JSX.Element;
125
+
126
+ type RecorderProps = {
127
+ onRecord: (file: File) => void;
128
+ onBusyChange?: (busy: boolean) => void;
129
+ maxBytes: number;
130
+ disabled?: boolean;
131
+ label?: string;
132
+ };
133
+ declare function AudioRecorder(props: RecorderProps): react_jsx_runtime.JSX.Element;
134
+ declare function VideoRecorder(props: RecorderProps): react_jsx_runtime.JSX.Element;
135
+
95
136
  type CalloutProps = {
96
137
  title: ReactNode;
97
138
  body: ReactNode;
@@ -363,12 +404,6 @@ type FieldStackProps = {
363
404
  /** Use one text control per field; group multiple controls separately. */
364
405
  declare function FieldStack({ label, children, helper, action, error, alignLabelRow, orientation, className, labelClassName, helperClassName, errorClassName, }: FieldStackProps): react_jsx_runtime.JSX.Element;
365
406
 
366
- type RejectReason = "type" | "size" | "count";
367
- type RejectedFile = {
368
- file: File;
369
- reason: RejectReason;
370
- };
371
-
372
407
  type FileUploadProps = {
373
408
  value: File[];
374
409
  onChange: (files: File[]) => void;
@@ -378,12 +413,16 @@ type FileUploadProps = {
378
413
  accept?: string;
379
414
  icon?: ReactNode;
380
415
  label?: ReactNode;
416
+ inputLabel?: string;
381
417
  previewIcon?: ReactNode;
418
+ tileModality?: TileModality;
382
419
  /** Fully locks the field: no add, no remove, drops ignored. */
383
420
  disabled?: boolean;
384
421
  className?: string;
422
+ /** Render the add control when the caller owns the preview queue. */
423
+ actionsOnly?: boolean;
385
424
  };
386
- declare function FileUpload({ value, onChange, onReject, maxFiles, maxSizeBytes, accept, icon, label, previewIcon, disabled, className, }: FileUploadProps): react_jsx_runtime.JSX.Element;
425
+ declare function FileUpload({ value, onChange, onReject, maxFiles, maxSizeBytes, accept, tileModality, icon, inputLabel, label, previewIcon, disabled, className, actionsOnly, }: FileUploadProps): react_jsx_runtime.JSX.Element | null;
387
426
 
388
427
  type InfoTipProps = {
389
428
  text?: ReactNode;
@@ -598,6 +637,21 @@ interface ToolCallDetailsProps {
598
637
  /** Framework-neutral disclosure for server- or client-executed tool calls. */
599
638
  declare function ToolCallDetails({ name, input, output, error, status, defaultOpen, className, }: ToolCallDetailsProps): react_jsx_runtime.JSX.Element;
600
639
 
640
+ declare function UploadedFileTile({ file, modality, disabled, onRemove, onClipDuration, previewIcon, drop, }: {
641
+ file: File;
642
+ modality?: TileModality;
643
+ disabled?: boolean;
644
+ onRemove: () => void;
645
+ onClipDuration?: (file: File, seconds: number | null) => void;
646
+ previewIcon?: ReactNode;
647
+ /** Keep a separately rendered preview a drop target for its original input. */
648
+ drop?: PartitionOptions & {
649
+ value: File[];
650
+ onChange: (files: File[]) => void;
651
+ onReject?: (files: RejectedFile[]) => void;
652
+ };
653
+ }): react_jsx_runtime.JSX.Element;
654
+
601
655
  /** Class merge for apps consuming the unprefixed Tailwind bridge in app.css. */
602
656
  declare function cn(...inputs: (string | undefined | null | false)[]): string;
603
657
 
@@ -1022,4 +1076,4 @@ type TextOwnProps<T extends ElementType> = PropsWithChildren<{
1022
1076
  type TextProps<T extends ElementType = "p"> = TextOwnProps<T> & Omit<ComponentPropsWithoutRef<T>, keyof TextOwnProps<T>>;
1023
1077
  declare function Text<T extends ElementType = "p">({ as, size, tone, weight, className, children, ...rest }: TextProps<T>): react_jsx_runtime.JSX.Element;
1024
1078
 
1025
- export { AccountIdentity, AccountIdentityLink, type AccountIdentityLinkProps, type AccountIdentityProps, AccountMenu, type AccountMenuProps, Alert, type AlertProps, AppBrand, type AppBrandProps, AppHeader, type AppHeaderProps, BrandMark, type BrandMarkProps, ButtonAppearance, ButtonGroup, type ButtonGroupProps, ButtonProps, Callout, type CalloutProps, ChatConversation, ChatConversationContent, type ChatConversationContentProps, type ChatConversationProps, ChatMessage, ChatMessageActions, type ChatMessageActionsProps, ChatMessageContent, type ChatMessageContentProps, ChatMessageHeader, type ChatMessageHeaderProps, type ChatMessageProps, type ChatMessageRole, ChatPromptInput, ChatPromptInputFooter, type ChatPromptInputFooterProps, type ChatPromptInputProps, ChatPromptTextarea, ChevronIcon, CodeBlock, type CodeBlockProps, Collapsible, type CollapsibleProps, ColorModeToggle, ConfirmationDialog, type ConfirmationDialogProps, ContentHeader, type ContentHeaderProps, CopyButton, type CopyButtonProps, CopyField, type CopyFieldProps, CopyStateIcon, DialogProps, DiscordIcon, Drawer, type DrawerProps, Dropdown, DropdownItem, type DropdownItemProps, type DropdownProps, EditableCombobox, type EditableComboboxProps, EditableComboboxToken, type EditableComboboxTokenProps, EmptyState, type EmptyStateProps, ExternalLinkButton, type ExternalLinkButtonProps, Eyebrow, type EyebrowProps, FieldStack, type FieldStackProps, FileUpload, type FileUploadProps, GitHubIcon, Heading, type HeadingProps, IconButton, type IconButtonIntent, type IconButtonProps, type IconButtonVariant, IconProps, IconTile, type IconTileProps, InfoTip, InlineLink, type InlineLinkProps, Input, type InputProps, KeyChip, type KeyChipProps, LinkCard, type LinkCardProps, LiveDot, LoadingStatus, MediaPlaceholder, type MediaPlaceholderProps, MultiSelect, type MultiSelectProps, NavItem, type NavItemProps, OUTAGE_MESSAGE, OutageNotice, type OutageNoticeProps, type PeriodGranularity, PeriodPicker, type PeriodPickerProps, type PeriodSelection, ScrollAreaProps, Section, type SectionProps, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, Skeleton, type SkeletonProps, Slider, type SliderProps, SocialCount, type SocialCountProps, StableLabel, type StableLabelProps, StatCard, type StatCardProps, Surface, type SurfaceProps, Switch, type SwitchProps, type SwitchSize, type SwitchStatus, TabButton, type TabButtonProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableDisclosureButton, type TableDisclosureButtonProps, TableHead, type TableHeadProps, TableHeaderCell, type TableHeaderCellProps, type TableProps, TableRow, type TableRowProps, Text, type TextProps, Textarea, type TextareaProps, ToolCallDetails, type ToolCallDetailsProps, type ToolCallStatus, Tooltip, cn, currentPeriod, formatCount, getPeriodBucketKeys, isPeriodSelectable, periodBucketKeyToDate, periodFromDate, periodToWindow, setColorMode, useColorMode, useOnline, useScrollLock };
1079
+ export { AccountIdentity, AccountIdentityLink, type AccountIdentityLinkProps, type AccountIdentityProps, AccountMenu, type AccountMenuProps, Alert, type AlertProps, AppBrand, type AppBrandProps, AppHeader, type AppHeaderProps, AudioInput, type AudioInputProps, AudioRecorder, BrandMark, type BrandMarkProps, ButtonAppearance, ButtonGroup, type ButtonGroupProps, ButtonProps, Callout, type CalloutProps, ChatConversation, ChatConversationContent, type ChatConversationContentProps, type ChatConversationProps, ChatMessage, ChatMessageActions, type ChatMessageActionsProps, ChatMessageContent, type ChatMessageContentProps, ChatMessageHeader, type ChatMessageHeaderProps, type ChatMessageProps, type ChatMessageRole, ChatPromptInput, ChatPromptInputFooter, type ChatPromptInputFooterProps, type ChatPromptInputProps, ChatPromptTextarea, ChevronIcon, CodeBlock, type CodeBlockProps, Collapsible, type CollapsibleProps, ColorModeToggle, ConfirmationDialog, type ConfirmationDialogProps, ContentHeader, type ContentHeaderProps, CopyButton, type CopyButtonProps, CopyField, type CopyFieldProps, CopyStateIcon, DialogProps, DiscordIcon, Drawer, type DrawerProps, Dropdown, DropdownItem, type DropdownItemProps, type DropdownProps, EditableCombobox, type EditableComboboxProps, EditableComboboxToken, type EditableComboboxTokenProps, EmptyState, type EmptyStateProps, ExternalLinkButton, type ExternalLinkButtonProps, Eyebrow, type EyebrowProps, FieldStack, type FieldStackProps, FileUpload, type FileUploadProps, GitHubIcon, Heading, type HeadingProps, IconButton, type IconButtonIntent, type IconButtonProps, type IconButtonVariant, IconProps, IconTile, type IconTileProps, InfoTip, InlineLink, type InlineLinkProps, Input, type InputProps, KeyChip, type KeyChipProps, LinkCard, type LinkCardProps, LiveDot, LoadingStatus, MediaPlaceholder, type MediaPlaceholderProps, MultiSelect, type MultiSelectProps, NavItem, type NavItemProps, OUTAGE_MESSAGE, OutageNotice, type OutageNoticeProps, type PeriodGranularity, PeriodPicker, type PeriodPickerProps, type PeriodSelection, ScrollAreaProps, Section, type SectionProps, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, Skeleton, type SkeletonProps, Slider, type SliderProps, SocialCount, type SocialCountProps, StableLabel, type StableLabelProps, StatCard, type StatCardProps, Surface, type SurfaceProps, Switch, type SwitchProps, type SwitchSize, type SwitchStatus, TabButton, type TabButtonProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableDisclosureButton, type TableDisclosureButtonProps, TableHead, type TableHeadProps, TableHeaderCell, type TableHeaderCellProps, type TableProps, TableRow, type TableRowProps, Text, type TextProps, Textarea, type TextareaProps, ToolCallDetails, type ToolCallDetailsProps, type ToolCallStatus, Tooltip, UploadedFileTile, VideoRecorder, cn, currentPeriod, formatCount, getPeriodBucketKeys, isPeriodSelectable, periodBucketKeyToDate, periodFromDate, periodToWindow, setColorMode, useColorMode, useOnline, useScrollLock };